agentleFS
evolplusevolplus/talos/skills/incident-debugging/SKILL.md

incident-debugging

Skill9 starsChanged 6 months agoApache-2.0View on GitHub

Diagnose incidents in deployed environments from a DevOps operating stance. Use when a staging or production-like service is failing, error rates spike, rollouts regress, infrastructure degrades, or operators need timeline, impact, mitigation, rollback, and routing evidence without mutating systems or exposing secrets by default.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 7 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when DevOps is asked to diagnose a deployed-environment incident or regression.

    line 14
  2. Distinctive:

    Route follow-up: If root cause is code, route to BE/FE Dev.

    line 29
  3. Very specific:

    Write incident report content: Use docs/devops/<task-id>/incident-debugging.md or task notes, plus open issues for unresolved risks.

    line 30
  4. Distinctive:

    Never mutate staging/production during incident debugging without explicit approval and scoped command.

    line 34
  5. Distinctive:

    Never dump secrets or broad environment variables while investigating.

    line 35
  6. Distinctive:

    Never claim root cause without evidence.

    line 36
  7. Distinctive:

    Never hide an observability gap.

    line 37
  8. Distinctive:

    Never let rollback recommendation omit data/migration compatibility constraints.

    line 38

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Incident Debugging

When to use

Use this skill when DevOps is asked to diagnose a deployed-environment incident or regression. The default mode is read-only investigation and mitigation planning; mutation requires explicit operator approval and a scoped task/change record.

Inputs and outputs

  • Inputs: incident statement, target environment, time window, recent deploy reports, release version, monitoring/log references, rollback readiness, and any approved access method.
  • Outputs: incident timeline, impact summary, suspected cause, evidence, immediate mitigation options, rollback recommendation, routing to Dev/SA/QA/PM, and post-incident follow-up tasks.

Procedure

  1. Declare incident scope. Record environment, service, version, symptoms, affected users/flows, start time, and current severity. If scope is vague, ask for target environment and symptom.
  2. Stay read-only by default. Inspect deploy reports, health endpoints, logs, metrics, traces, Kubernetes events, Docker status, and remote host state using approved credential references. Do not mutate services unless explicitly approved.
  3. Build a timeline. Correlate deploy events, config changes, migrations, alerts, traffic changes, dependency incidents, and first user impact.
  4. Check common failure classes. Recent release, migration lock/data error, config/secret mismatch, resource exhaustion, dependency outage, certificate/DNS issue, queue backlog, bad rollout, or observability gap.
  5. Assess mitigation. Options include rollback, disable feature flag, scale capacity, pause worker, drain traffic, retry failed jobs, or route to Dev for code fix. Name risk and owner for each option.
  6. Preserve evidence safely. Capture sanitized log excerpts, metric names, alert names, resource statuses, and timestamps. Do not include PII, tokens, auth headers, secret values, kubeconfig contents, or private keys.
  7. Route follow-up. If root cause is code, route to BE/FE Dev. If architecture/data contract, route to SA. If missing test, route to QA-Author/QA-Exec. If unclear product impact, route to PM/BA.
  8. Write incident report content. Use docs/devops/<task-id>/incident-debugging.md or task notes, plus open issues for unresolved risks.

Hard rules

  • Never mutate staging/production during incident debugging without explicit approval and scoped command.
  • Never dump secrets or broad environment variables while investigating.
  • Never claim root cause without evidence; use confidence labels.
  • Never hide an observability gap; record it as a follow-up.
  • Never let rollback recommendation omit data/migration compatibility constraints.

References

  • ../rollback-readiness/SKILL.md - rollback decision support.
  • ../observability-readiness/SKILL.md - telemetry gap classification.
  • ../migration-safety/SKILL.md - migration-related incident checks.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.