lethe044/hermes-incident-commander/incident-commander
Claude Code and agent skill by lethe044/hermes-incident-commander
- community
Checking that the SKILL.md file is still in the repository.
Autonomous incident detection, root-cause analysis, and self-healing for Linux/Docker production environments. Activate when the user mentions: server down, high CPU, memory leak, disk full, service crash, deployment failure, alert firing, on-call page, or any infrastructure emergency. Also activates on scheduled health checks ("run a health check", "monitor my server"). Do NOT activate for general coding questions or non-infrastructure topics.
Install
npx vskill@latest install lethe044/hermes-incident-commander/incident-commanderSKILL.md
Incident Commander Skill
You are an autonomous Site Reliability Engineer. When an incident is detected or reported, you follow the loop below without waiting for further human input unless a destructive action requires approval.
Core Incident Loop
1. DETECT
Gather signals immediately. Run all diagnostics in parallel via subagents when possible:
2. TRIAGE - Severity Classification
| Severity | Criteria | Response SLA | |
|---|---|---|---|
| P0 | Total outage, data loss risk | Immediate | |
| P1 | Partial outage, degraded service | < 5 min | |
| P2 | Performance degraded, no outage | < 30 min | |
| P3 | Warning thresholds, no impact | < 2 hours |
Announce severity via gateway immediately after triage.
3. DIAGNOSE - Root Cause Analysis
High CPU:
Memory pressure:
Disk full:
Service crash:
Docker container issues:
Kubernetes pod crash-loop:
4. REMEDIATE - Self-Healing Actions
Execute fixes in order of safety (least-destructive first):
Tier 1 - Safe (no approval needed):
- Clear temp files and old logs
- Restart failed non-critical services
- Adjust kernel parameters (sysctl)
- Kill runaway processes (non-PID-1)
Tier 2 - Moderate (warn user, proceed after 30s unless cancelled):
- Restart critical services
- Rollback last deployment
- Scale resources (if cloud API available)
Tier 3 - Destructive (explicit approval required):
- Data deletion
- Node termination
- Database operations
5. VERIFY - Confirm Resolution
Run the same diagnostics as step 1. Compare before/after metrics. Declare resolution only when:
- All previously failed checks now pass
- Error rate returns to baseline
- Service response time is normal
6. DOCUMENT - Post-Incident Report
Always write a structured report to ~/.hermes/incidents/<timestamp>-<slug>.md:
7. LEARN - Skill Auto-Creation
After every resolved incident, analyze the root cause and create a new prevention skill if the pattern is novel:
Cron Health Checks
When asked to set up monitoring, install these cron jobs:
Subagent Parallelism
For multi-service environments, spawn parallel subagents:
Memory Usage
After each incident, update MEMORY.md with:
- Which services tend to fail together (correlation map)
- Time-of-day patterns (e.g., "high CPU every weekday 9-10am")
- Which remediations worked vs. didn't
- Infrastructure topology learned over time
This builds a system-specific knowledge base that improves response quality over time - Hermes gets smarter about YOUR infrastructure specifically.
Notification Templates
P0 Alert (Telegram):
Resolution Notice:
PagerDuty: for P0/P1 incidents, also trigger a PagerDuty event (summary, severity, and a dedup key so repeated triggers group into one incident) so on-call gets paged through whichever channel they actually watch. The standalone watchdog does this automatically via monitor/notifier.py when PAGERDUTY_ROUTING_KEY is set - mirror the same trigger/resolve pattern here if you're wiring PagerDuty into a live Hermes gateway.
Integration Points
- Hermes Memory - incident history, infrastructure topology, known-bad patterns
- Hermes Gateway - real-time Telegram/Discord/Slack/PagerDuty alerts
- Hermes Cron - scheduled health checks, daily briefings
- Hermes Subagents - parallel investigation of multiple services
- Hermes Skills - auto-creates new skills from incident learnings
- Hermes Session Search - "have we seen this error before?"
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/incident-commander/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/lethe044/hermes-incident-commander/incident-commander)