agentleFS
yeaight7yeaight7/agent-powerups/skills/failure-triage/SKILL.md

failure-triage

Skill6 starsChanged 4 months agoApache-2.0View on GitHub

Use when confronted with an unknown failure in CI or production, before committing to a deep debugging approach.

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

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    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 diving deep into a stack trace or spending hours reproducing a bug, triage it to determine the blast radius, subsystem, and …

    line 8
  2. Distinctive:

    Before choosing between deep debugging, bisecting, or reproduction work

    line 14

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

Purpose

Before diving deep into a stack trace or spending hours reproducing a bug, triage it to determine the blast radius, subsystem, and debugging approach. Do not start writing fixes until you have explicitly stated your triage hypothesis and confirmed the category.

When to Use

  • A CI job or production system is failing and the cause is unknown
  • A bug report arrives without a clear owner or subsystem
  • Before choosing between deep debugging, bisecting, or reproduction work

Inputs

  • The failure signal: stack trace, CI log excerpt, or error report
  • The repo, for recent-change inspection

Workflow

  1. Categorize the failure:
    • Syntax/Build error — fails before running
    • Logic error — runs, but produces wrong output
    • Infrastructure/Environment error — network timeout, missing DB table
    • Flaky/Non-deterministic error — fails sometimes
  2. Locate the origin. Scan the stack trace. Ignore framework/library internals. Find the highest frame that belongs to the first-party application code:

    # surface first-party frames (adjust the path filter to the repo layout)
    grep -n "src/" stacktrace.txt | head -20
  3. Check recent changes. Most bugs are in the newest code:

    git log -n 5 --oneline
    git diff HEAD~5 --stat
    git log -n 10 --oneline -- <suspect-file-or-dir>
  4. Formulate a hypothesis. State clearly: "I suspect this is an environment error caused by missing configuration, originating in src/config.ts."

Output

  • A stated category (build / logic / environment / flaky)
  • The suspected origin file or subsystem
  • An explicit triage hypothesis, before any fix is attempted

Verification

  • Failure assigned to exactly one category
  • Origin frame identified in first-party code, not framework internals
  • Recent commits checked for related changes
  • Hypothesis stated explicitly before any fix was written

Failure Modes

  • Fixing before triaging — patching the symptom at the crash site while the root cause lives elsewhere.
  • Blaming the framework — the highest first-party frame is the lead; library internals rarely are.
  • Skipping recent history — git log is the cheapest triage tool available; check it before anything expensive.

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.