agentleFS
uac-opsuac-ops/founder-stack/skills/debug/SKILL.md

debug

Skill0 starsChanged 6 months agoMITView on GitHub

Find and fix the root cause of a bug systematically — reproduce, isolate, hypothesize, verify — instead of patching symptoms. Use when the user says "it's broken", "bug", "error", "it doesn't work", "fix this", "why is this happening", or a test is failing. Cross-cutting; run any time.

190 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use add-discord, add-slack and 10 more.

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.
  • MicrosoftSkill

    add-discord

    Add Discord bot channel integration via Chat SDK.

    Also in 11 projects that use this

  • MicrosoftSkill

    add-slack

    Add Slack channel integration via Chat SDK.

    Also in 11 projects that use this

  • +10 more from microsoft

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 1 is distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 177 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Check that ## 05 Build is filled in COMPANY.md.

    line 26
  2. Very specific:

    Isolate with debugger: Read the full error and stack trace, check what changed recently (git log, git bisect), and halve the problem …

    line 33
  3. Distinctive:

    Look for siblings: Search for the same pattern elsewhere in the code.

    line 42
  4. Very specific:

    Rewind if needed: If the cause is a spec, design, or data-model flaw, rewind Stage per the orchestrator rule instead of patching in code.

    line 43
  5. Very specific:

    Update ## 06 Test → Known bugs (mark fixed, with root cause).

    line 53
  6. Very specific:

    If the fix is a shortcut, log it in ## 05 Build → Tech debt log.

    line 54

“Common” is measured: kept by at least 6 in 10 of the 177 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

Debug — fix the cause, not the symptom

Random changes until the error goes away create new bugs. This skill finds why something fails, fixes that, and proves it with a test so it never returns.

Connected skills

  • Reads: ## 05 Build
  • Writes: ## 06 Test → Known bugs, ## 05 Build → Tech debt log when relevant
  • Agents: debugger
  • Previous: any
  • Next: back to whatever stage was running

Goal

The root cause is identified with evidence, fixed, and covered by a regression test.

Inputs

  • The bug report: what happened, what was expected, where, and how often.

Before you start

Check that ## 05 Build is filled in COMPANY.md. If a section you depend on is empty or still _TBD_, stop and tell the founder which skill fills it (see the orchestrator's stage table) instead of guessing.

Process

  1. Reproduce it. Get a reliable repro (steps, input, environment). If you can't, gather more data (logs, error tracking, user steps) before touching code. No repro, no fix.
  2. Write the failing test that captures the bug, where practical.
  3. Isolate with debugger. Read the full error and stack trace, check what changed recently (git log, git bisect), and halve the problem until one unit misbehaves.
  4. Hypothesize, then test it. State "I think X because Y" and run one experiment that could prove it wrong. One variable at a time.
  5. Fix the root cause — the earliest point where things go wrong, not where the error surfaces.
  6. Verify. The failing test passes, the full suite is green, and the original repro no longer fails.
  7. Look for siblings. Search for the same pattern elsewhere in the code.
  8. Rewind if needed. If the cause is a spec, design, or data-model flaw, rewind Stage per the orchestrator rule instead of patching in code.

Exit criteria

  • Root cause stated in one sentence, with the evidence that confirms it.
  • A regression test fails before the fix and passes after.
  • Full suite green; sibling occurrences checked.
  • Evidence shown for each criterion above (command output, screenshot, link, or measurement), not just asserted.

Update the ledger

  • Update ## 06 Test → Known bugs (mark fixed, with root cause).
  • If the fix is a shortcut, log it in ## 05 Build → Tech debt log.
  • Decision Log: YYYY-MM-DD · fixed <bug> · root cause <cause>.

Handoff

"Fixed at the root, with a test guarding it. Back to /company to continue."

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.