agentleFS
madebyarismadebyaris/advance-minimax-m3-cursor-rules/.cursor/skills/incident-triage-harness/SKILL.md

incident-triage-harness

Skill126 starsChanged 6 months agoMITView on GitHub

Production-style incident triage workflow for logs, metrics, code, safe mitigations, and M3 multimodal visual evidence (screenshots, screen recordings). Use when debugging alerts, regressions, outages, or suspicious runtime behavior.

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 9 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before doing anything else, identify:

    line 32
  2. Distinctive:

    Do not jump into code edits until you have at least one concrete failure hypothesis.

    line 39
  3. Distinctive:

    When the user attaches a screenshot of a broken UI, a screen recording of the failure, or a short clip of the symptom, the visual is …

    line 43
  4. Distinctive:

    Read the actual file in the current session.

    line 45
  5. Distinctive:

    Prefer the smallest safe mitigation that reduces impact:

    line 87
  6. Distinctive:

    add or restore a missing migration or config

    line 91
  7. Distinctive:

    Do not claim a root cause until the evidence supports it.

    line 94
  8. Distinctive:

    When reporting back, make clear:

    line 100
  9. Distinctive:

    If the system is safer but the root cause is still incomplete, say so explicitly.

    line 109

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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 Triage Harness

Investigate production-style failures with an evidence-first loop: confirm symptoms, narrow the blast radius, correlate signals, inspect code, and prove the smallest safe mitigation.

When to Use

  • User asks to debug an outage, incident, alert, regression, or mysterious failure
  • Logs, traces, deployments, migrations, config drift, or runtime behavior are involved
  • You need a structured loop for "hypothesis -> check -> narrow -> mitigate -> verify"

For deeper prompts, evidence templates, and mitigation checklists, also read reference.md in this skill directory.


Step 0: Triage The Situation

Before doing anything else, identify:

  1. User-visible symptom: What is broken right now?
  2. Blast radius: Which route, job, service, or user segment is affected?
  3. Recent change surface: Deploys, migrations, feature flags, config changes, dependency bumps
  4. Available evidence: logs, traces, dashboards, DB data, repo history, local repro, tests

Do not jump into code edits until you have at least one concrete failure hypothesis.

Step 0a: Visual Evidence (M3)

When the user attaches a screenshot of a broken UI, a screen recording of the failure, or a short clip of the symptom, the visual is primary evidence — not a supplement.

  • Read the actual file in the current session. Quote the visible text (error message, broken layout, empty state) directly in the report.
  • Name the file path in the closeout; do not describe the image from memory.
  • For a UI regression, treat the screenshot as the "what is broken" input. Treat a re-rendered post-fix frame as the "what is fixed" proof (multimodal-grounded).
  • For animation / interaction bugs, prefer a short clip over a single frame; cite the timestamp region of the relevant behavior.

Step 1: Evidence Loop

Use this sequence:

1. Confirm the symptom
2. Correlate recent changes with the failure window
3. Form the smallest plausible hypothesis
4. Check the hypothesis with the strongest available evidence
5. Narrow the cause before changing code
6. Prefer safe mitigation before broad refactors
7. Verify the mitigation at the affected surface

Step 2: What To Inspect

Inspect in this order when relevant:

  1. User symptom
    • broken page, failing endpoint, timeout, data corruption, auth issue
  2. Runtime evidence
    • logs, traces, metrics, console errors, network failures
  3. Recent change history
    • deploy timeline, feature flags, migrations, dependency changes
  4. Code surface
    • likely entry points, data flow, integration boundaries
  5. Persistence layer
    • DB schema, indexes, missing migrations, stale data, queue state

Step 3: Mitigation Bias

Prefer the smallest safe mitigation that reduces impact:

  • disable or isolate the failing path
  • revert a narrow change if the evidence is strong
  • add or restore a missing migration or config
  • patch one integration boundary rather than refactoring the whole subsystem

Do not claim a root cause until the evidence supports it.


Step 4: Closeout Expectations

When reporting back, make clear:

  • symptom confirmed
  • strongest hypothesis
  • evidence checked
  • mitigation applied or recommended
  • verification run
  • remaining unknowns

If the system is safer but the root cause is still incomplete, say so explicitly.

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.