
Incident Response
- 48 installs
- 6 repo stars
- Updated March 13, 2026
- alphaonedev/openclaw-graph
incident-response is a Claude skill that runs the DevOps incident lifecycle - detection, analysis, containment, and recovery - with integrations for Kubernetes, Prometheus, and PagerDuty.
About
This skill manages the incident-response lifecycle in DevOps environments, covering detection, analysis, containment, and recovery. A developer uses it to scan logs and metrics for anomalies, isolate affected resources such as Kubernetes pods, and automate rollbacks or restores from backups. It integrates with monitoring and alerting tools like Prometheus and PagerDuty.
- Runs the detect, analyze, contain, recover incident lifecycle
- Isolates affected Kubernetes pods and automates rollbacks
- Integrates with Prometheus, PagerDuty, and CI/CD pipelines
Incident Response by the numbers
- 48 all-time installs (skills.sh)
- Ranked #743 of 1,435 DevOps & CI/CD skills by installs in the Skillselion catalog
- Data as of Jul 28, 2026 (Skillselion catalog sync)
incident-response capabilities & compatibility
- Works with
- kubernetes · jenkins
- Use cases
- security audit · devops
- Pricing
- Bring your own API key
What incident-response says it does
This skill enables OpenClaw to manage the full incident response lifecycle in DevOps environments, including detection, analysis, containment, and recovery of security incidents
Isolates affected resources, such as pausing pods in Kubernetes with command `openclaw incident contain --resource pod-123 --action pause`.
npx skills add https://github.com/alphaonedev/openclaw-graph --skill incident-responseAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 48 |
|---|---|
| repo stars | ★ 6 |
| Last updated | March 13, 2026 |
| Repository | alphaonedev/openclaw-graph ↗ |
What it does
Detect, analyze, contain, and recover from security and reliability incidents in DevOps environments.
Who is it for?
Automating detection, containment, and recovery of incidents in DevOps and SRE workflows.
Skip if: Non-operational security work such as static code auditing.
When should I use this skill?
Monitoring detects anomalies, during an active breach, or for scheduled incident drills.
What you get
Anomalies are detected, affected resources isolated, and systems recovered via rollbacks or backups.
- Detected incident reports
- Contained resources
- Automated recovery or rollback
By the numbers
- Covers a 4-step lifecycle: detect, analyze, contain, recover
Files
Purpose
This skill enables OpenClaw to manage the full incident response lifecycle in DevOps environments, including detection, analysis, containment, and recovery of security incidents, using automated tools and integrations.
When to Use
Use this skill when monitoring detects anomalies in DevOps pipelines (e.g., unusual traffic in Kubernetes clusters), during active breaches (e.g., unauthorized access), or for scheduled drills. Apply it in SRE workflows to minimize downtime, such as integrating with CI/CD tools for real-time alerts.
Key Capabilities
- Detection: Scans logs and metrics via API endpoint
/api/incident/detectwith JSON payload like{"source": "k8s-logs", "threshold": 0.8}to identify threats based on predefined rules. - Analysis: Parses incident data using CLI flag
--analyze-depth 2to correlate events, e.g., linking IP addresses to user sessions. - Containment: Isolates affected resources, such as pausing pods in Kubernetes with command
openclaw incident contain --resource pod-123 --action pause. - Recovery: Automates rollbacks or restores from backups, e.g., via API call to
/api/incident/recoverwith payload{"backup_id": "snapshot-456"}. - Supports integration with tools like Prometheus for monitoring and integrates SRE best practices for incident tracking.
Usage Patterns
To use this skill, first set the environment variable for authentication: export OPENCLAW_API_KEY=your_api_key. Then, follow this pattern:
1. Authenticate and initialize: Run openclaw auth --key $OPENCLAW_API_KEY to set up sessions. 2. Detect incidents: Execute openclaw incident detect --env prod --type network to scan for issues. 3. Analyze results: Pipe output to analysis, e.g., openclaw incident analyze --id 123 --format json. 4. Contain if needed: Use openclaw incident contain --id 123 --scope cluster to isolate. 5. Recover: Call openclaw incident recover --id 123 --backup latest to restore. For automated workflows, embed in scripts: Write a Bash snippet like:
export OPENCLAW_API_KEY=your_key
openclaw incident detect --env staging
if [ $? -ne 0 ]; then openclaw incident contain --id $(echo $output | jq .id); fiAlways validate inputs to avoid false positives, e.g., check JSON configs for required fields like "threshold".
Common Commands/API
- CLI Commands:
- Detect:
openclaw incident detect --env dev --type app-vuln --threshold 0.7(flags:--envfor environment,--typefor incident type,--thresholdfor sensitivity). - Analyze:
openclaw incident analyze --id 456 --depth 1(flag:--depthfor recursion level, outputs JSON with fields like"affected_resources"). - Contain:
openclaw incident contain --id 789 --action isolate --resource k8s-pod(flag:--actionfor operations like isolate or block). - Recover:
openclaw incident recover --id 789 --method rollback(flag:--methodfor strategies like rollback or restore). - API Endpoints (all require Authorization header with
$OPENCLAW_API_KEY): - POST
/api/incident/detect: Body{ "env": "prod", "type": "network" }to trigger detection. - GET
/api/incident/analyze/{id}: Query paramdepth=2for detailed analysis. - PUT
/api/incident/contain/{id}: Body{ "action": "isolate", "resource": "pod-123" }. - POST
/api/incident/recover/{id}: Body{ "method": "rollback", "backup_id": "snapshot-abc" }.
Config format: Use JSON files for inputs, e.g., {"env": "staging", "types": ["app-vuln", "network"]} in a file passed via --config path/to/config.json.
Integration Notes
Integrate with DevOps tools by exporting data to monitoring systems like ELK Stack or Prometheus. For Kubernetes, use webhooks: Configure OpenClaw to send alerts via openclaw incident hook --url https://your-k8s-webhook.com --event detect. In CI/CD, add to Jenkins pipelines with a step like:
stage('Incident Check') {
sh 'openclaw incident detect --env prod > incident.log'
if (readFile('incident.log').contains('alert')) { error 'Incident detected' }
}For SRE, link with tools like PagerDuty by setting env vars: export PAGERSERVICE_KEY=your_key and use openclaw incident notify --service pagerduty. Ensure configs match formats, e.g., YAML for hooks: hooks: - url: https://pagerduty.com events: [detect, analyze].
Error Handling
Check CLI exit codes: 0 for success, 1 for detection errors (e.g., invalid flags), 2 for API failures. For APIs, parse HTTP responses: 400 for bad requests (e.g., missing fields in JSON), 401 for auth issues (verify $OPENCLAW_API_KEY). Handle in scripts like:
response=$(openclaw incident detect --env invalid)
if [ $? -eq 1 ]; then echo "Error: Invalid environment"; exit 1; fiLog errors with --verbose flag for debugging, and retry transient errors (e.g., network issues) using loops in code. Always validate JSON responses for fields like "error_code" before proceeding.
Concrete Usage Examples
1. Detect and Contain a Network Incident in Staging: In a DevOps pipeline, detect anomalies in staging env: Run openclaw incident detect --env staging --type network. If an incident ID is returned (e.g., 123), contain it with openclaw incident contain --id 123 --action isolate. This prevents spread during deployment tests.
2. Analyze and Recover from an Application Vulnerability: For a detected app vuln, analyze logs: Use openclaw incident analyze --id 456 --depth 1 to get details, then recover by openclaw incident recover --id 456 --method rollback --backup latest. This restores the app from a snapshot in a production SRE scenario.
Graph Relationships
- Connected to: devops-sre cluster (e.g., links to monitoring skill for log ingestion, deployment skill for auto-rollbacks).
- Tagged with: incident-response (shares edges with security skills), security (relates to access-control skills), devops (integrates with ci-cd skills).
Related skills
FAQ
What lifecycle stages does this skill cover?
Detection, analysis, containment, and recovery of incidents.
Which tools does it integrate with?
Kubernetes for containment, Prometheus and ELK for monitoring, Jenkins for CI/CD, and PagerDuty for alerting.