ProSkillsLibraryFreePassScan
DevOps & Cloud

DevOps & Cloud · agent skill

Incident Commander

Mitigate first. Then a blameless postmortem.

What it does

Loads when it is needed

Your agent loads it when production is down or degraded, or the user writes a postmortem. It carries 5 rules and reads a profile.md with your details before it starts, so the output matches your brand and project.

Same prompt, with and without

Checkout 5xx after deploy

Prompt · PagerDuty just fired, checkout is throwing 502s and I'm the only one on call. What do we do?

[FIRING] checkout-alb-5xx-high
ALB app/prod-checkout 5xx rate 18.4% (threshold 2%) since 09:41 UTC
Target group checkout-tg: 4 of 6 targets unhealthy (health check /healthz timing out)
ECS service checkout: desired 6, running 6, last deployment 09:32 UTC, task def checkout:218 (previous: checkout:217)
RDS prod-orders: CPU 96%, connections 498/500
Now: 09:47 UTC

Profile used: AWS, ECS Fargate behind an ALB, GitHub Actions; staging, production

Without the skill
Priority is to stop the bleeding, not find root cause. The deploy at 09:32 is the prime suspect, so roll back first. 1. Say in your team channel that you're on it and that you're rolling back (so there's a record). 2. Roll back now: aws ecs update-service --cluster <cluster> --service checkout --task-definition checkout:217. Before you do, spend 30 seconds checking whether checkout:218 shipped a database migration that 217 can't run against. If it didn't, roll back. 3. Watch it: new tasks should pass /healthz, the target group should return to 6/6 healthy, and the 5xx rate should fall. RDS connections should drop from 498/500 as the 218 tasks drain. 4. In parallel, look at RDS: Performance Insights or pg_stat_activity for what's using CPU and connections. Likely theories: 218 opens more connections per task (pool size change), a slow query or missing index, or a long-running migration holding locks. Don't reboot RDS; that makes it worse. 5. If connections stay maxed after the rollback, find the stuck sessions in pg_stat_activity and terminate idle-in-transaction or long-running ones. 6. If the rollback doesn't help, the DB is the problem and not the deploy; escalate and get more people in. After it's stable: update the status page/stakeholders, collect timeline notes, and schedule a postmortem. Don't redeploy 218 until the cause is known.
With the skill
SEV2 declared 09:48 UTC: checkout 5xx at 18.4% is above the 5% line but not a full outage. Updates every 30 min. Solo, so hats in order: commander (decide), ops (you run it), comms (post). Timeline: postmortems/2026-10-16-checkout-502.md 09:32 deploy task def checkout:218 rolls out 09:41 alert ALB 5xx 18.4%, 4/6 targets unhealthy 09:47 obs RDS CPU 96%, connections 498/500 09:48 cmdr SEV2 declared Hypothesis: the 09:32 release is the only change and the alert came 9 minutes later. Connections sit at the 500 cap, so requests and the health check queue on the database and time out. Change 1 (only one): roll back to the previous task definition. aws ecs update-service --cluster prod --service checkout --task-definition checkout:217 Blast radius: rolling replace of 6 tasks. Undo: same command with checkout:218. Expect: 5xx under 2% and connections under 400 within about 10 min. Say "go" and run it yourself; I won't touch production. Not doing: restarting or failing over RDS, adding tasks (more tasks, more connections), patching forward. Tell me: what changed in :218 (pool size, new query)? Is minimumHealthyPercent 100? Post now: [SEV2] Checkout errors - Update 1 - 09:50 UTC Status: Investigating Impact: about 18% of checkout requests fail since 09:41 UTC. Cause: not yet known. Actions: rolling back the 09:32 UTC release. Next update: 10:20 UTC.

Both answers from the same model (Claude sonnet), 2026-10-16. The one without the skill was written in a separate session that never saw it. Shortened where marked with …

Install

One command, in your project

It detects your agent; add --agent all for every agent.

npx proskills-cli add incident-commander --order <order id from your receipt>

Or copy the skill folder (the one holding SKILL.md) into the directory your agent reads, then restart it or start a new session.

AgentThis projectEvery project
Claude Code.claude/skills/~/.claude/skills/
Cursor.agents/skills/ (or .cursor/skills/)~/.cursor/skills/
Codex.agents/skills/~/.agents/skills/
Gemini CLI.agents/skills/ (or .gemini/skills/)~/.gemini/skills/

Changelog

What changed

  • v1.0.0 · 2026-10-16
    • First versioned release: Mitigate first. Then a blameless postmortem.
    • Scanned 100/100 before release.

Keep it current with npx proskills-cli update; your profile.md is never touched. Everyone who bought it gets the update free and an email when it lands.

Same collection

More from DevOps & Cloud

The scan checks spec compliance, token cost, clarity and security patterns. A clean scan is not a guarantee: static scanners can be evaded. Scan any skill yourself.