agentleFS
AndrewTtofiAndrewTtofi/spine/skills/troubleshoot/SKILL.md

troubleshoot

Skill2 starsChanged 6 months agoMITView on GitHub

Use when something is broken — a failing test, a bug, an error, behavior that regressed. Drives a disciplined investigate → reproduce → root-cause → fix loop, checks the Spine for prior art, and records the root cause so the failure mode isn't repeated. Iron law — no fix without a confirmed root cause.

16 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use setup and frontend-design.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • VercelSkill

    setup

    Set up Vercel CLI and project configuration. Use when the user says "set up Vercel", "configure Vercel", "link to Vercel", or "vercel init".

    Also in 3 projects that use this

  • VercelSkill

    frontend-design

    Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 14 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Investigate: Follow the evidence: read the failing path, logs, recent diffs, and state.

    line 19
  2. Distinctive:

    Pin it with a test: Write a failing test that reproduces the bug (RED).

    line 24
  3. Very specific:

    Record in the Spine: Write the root cause and fix to journal.md.

    line 28
  4. Very specific:

    Check decisions/ early — the cheapest debugging is the bug you already solved.

    line 40

“Common” is measured: kept by at least 6 in 10 of the 14 edited versions of this file we could read. “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

troubleshoot — root cause, not symptom

The fast fix that doesn't understand the bug just moves it. This skill refuses to patch a symptom until the root cause is proven, and writes the lesson back so the next session doesn't relearn it.

Steps

  1. Read the Spine. Load context.md (architecture + language), conventions.md (test/debug commands), and decisions/ — has this surface bitten us before? A prior ADR may already hold the answer.
  2. Reproduce first. Get a reliable, minimal repro. If you can't reproduce it, you can't confirm a fix — gather more evidence before guessing.
  3. Investigate. Follow the evidence: read the failing path, logs, recent diffs, and state. Narrow the surface methodically. No speculative edits.
  4. Hypothesize. State a single falsifiable hypothesis about the root cause, then confirm it with evidence before changing anything. Iron law: no fix without a confirmed root cause.
  5. Pin it with a test. Write a failing test that reproduces the bug (RED). This is the proof of the cause and the guard against regression.
  6. Fix at the root. Make the minimal change that addresses the cause, not the symptom. Confirm the test goes GREEN and the original repro is gone.
  7. Record in the Spine. Write the root cause and fix to journal.md. If the failure mode is a durable lesson, add an ADR in .spine/decisions/NNNN-title.md so it's remembered. Hand off to verify to confirm against criteria.

Spine I/O

  • Reads: context.md, conventions.md, decisions/ (prior art), journal.md.
  • Writes: journal.md (root cause + fix), decisions/ (ADR for durable lessons).

Notes

  • Reproduce before you fix; a fix you can't see fail is a fix you can't trust.
  • Check decisions/ early — the cheapest debugging is the bug you already solved.
  • The regression test is non-negotiable: without it, the bug comes back.

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.