PagerDuty's open source Claude Code plugins that bring operational intelligence into your development workflow.
| Plugin | Description |
|---|---|
| pre-commit-risk-scoring | Pre-commit risk assessment using PagerDuty incident history, change event correlation, and git diff analysis |
- Claude Code v1.0.33 or later
Run this once in any Claude Code session:
/plugin marketplace add pagerduty/claude-code-pluginsOpen the plugin manager and go to the Discover tab to browse available plugins:
/pluginOr install a plugin directly:
/plugin install pagerduty@pagerduty-claude-code-pluginsThe plugins bundle a PagerDuty MCP server that needs an API token. Git commit history is read directly from the local repository.
Option A: Per-repo via .claude/settings.local.json (recommended)
This file is gitignored by default, so secrets stay local:
{
"env": {
"PAGERDUTY_API_KEY": "your-pagerduty-token"
}
}If the file already exists, merge the env key into it.
Option B: Global via ~/.claude/settings.json
This applies the key to all projects:
{
"env": {
"PAGERDUTY_API_KEY": "your-pagerduty-token"
}
}If the file already exists, merge the env key into it.
Note: You may need to restart VS Code for environment variable changes to take effect.
PagerDuty > User Profile > User Settings > API Access > Create API User Token.
Restart Claude Code after setting the key so the MCP server picks it up.
You can configure a repository so team members are automatically prompted to add this marketplace when they trust the project folder. Add the following to your project's .claude/settings.json:
{
"extraKnownMarketplaces": {
"pagerduty-claude-code-plugins": {
"source": {
"source": "github",
"repo": "pagerduty/claude-code-plugins"
}
}
}
}To also auto-enable specific plugins for the project:
{
"extraKnownMarketplaces": {
"pagerduty-claude-code-plugins": {
"source": {
"source": "github",
"repo": "pagerduty/claude-code-plugins"
}
}
},
"enabledPlugins": {
"pagerduty@pagerduty-claude-code-plugins": true
}
}Update the marketplace to get the latest plugins:
/plugin marketplace update pagerduty-claude-code-pluginsDisable a plugin without uninstalling:
/plugin disable pagerduty@pagerduty-claude-code-pluginsUninstall a plugin:
/plugin uninstall pagerduty@pagerduty-claude-code-pluginsA plugin that assesses pre-commit risk by correlating PagerDuty incident history with current code changes.
The /pagerduty:pre-commit-risk-scoring command gathers PagerDuty incident data for your service, analyzes your current git diff, and looks for correlations between the areas you are changing and areas that have historically caused incidents. It surfaces active incidents, recent incident patterns, structural risk signals in the diff, and actionable recommendations.
With uncommitted changes in your working tree:
/pagerduty:pre-commit-risk-scoringOn first run, the plugin resolves your repository to a PagerDuty service through a fallback chain:
- Explicit argument passed at invocation (one-time override, not cached)
- Cached config in
.claude/risk-config.json - Backstage
catalog-info.yamlannotation (pagerduty.com/service-id) - Auto-detection by matching the repository name against PagerDuty services
- Manual input via interactive prompt
The resolved mapping is saved to .claude/risk-config.json for subsequent runs.
You can pass a service name as a one-time override. This takes highest priority, skipping cache and auto-detection, and will not update .claude/risk-config.json:
/pagerduty:pre-commit-risk-scoring my-service-nameThe command produces a structured risk assessment containing:
- Active incidents for the mapped service (highest-priority signal)
- Incident history summary over the last 90 days
- Change analysis with file-level and structural risk signals
- Correlation findings between current changes and past incidents
- Risk score from 0 (no risk) to 5 (critical), based on incident correlation and change analysis
- Recommendations based on identified risk factors
Delete .claude/risk-config.json and re-run /pagerduty:pre-commit-risk-scoring to pick a different service.
.claude-plugin/
marketplace.json # Marketplace registry
plugin.json # Plugin metadata
commands/
pre-commit-risk-scoring.md # Slash command definition
.mcp.json # PagerDuty MCP server declaration
| Server | Declared in | Tools used |
|---|---|---|
| PagerDuty | .mcp.json (plugin-local) |
get_service, list_services, list_incidents, list_incident_notes, list_service_change_events |
We welcome contributions! Please see CONTRIBUTING.md for guidelines.
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.