agentleFS
Mohidkz05Mohidkz05/tack/.claude/skills/debug/SKILL.md

debug

Skill0 starsChanged 13 days agoMITView on GitHub

Find and fix the root cause of a bug or failing check systematically instead of guessing. Use when something is broken, a test fails, or behavior is unexpected.

190 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use update-nanoclaw, add-atomic-chat-tool 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

    update-nanoclaw

    Efficiently bring upstream NanoClaw updates into a customized install, with preview, selective cherry-pick, and low token usage.

    Also in 9 projects that use this

  • MicrosoftSkill

    add-atomic-chat-tool

    Add Atomic Chat MCP server so the container agent can call local models served by the Atomic Chat desktop app via its OpenAI-compatible API.

    Also in 8 projects that use this

  • +10 more from microsoft

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 177 edited versions we read keep these.

  • 2

    Distinctive

    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:

    Narrow it down: Read the full error and stack trace.

    line 12
  2. Distinctive:

    If you've tried three hypotheses without progress, stop.

    line 18

“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 systematically

Guess-and-patch fixes the symptom and hides the bug. Find the cause first.

  1. Reproduce. Get a command or test that shows the failure every time. If you can't reproduce it, gather more evidence before changing code.
  2. Capture it as a failing test, when practical. It becomes your proof of the fix.
  3. Narrow it down. Read the full error and stack trace. Bisect: inputs, recent commits (git log -p, git bisect), or by adding temporary logging at the boundaries.
  4. State the root cause in one sentence before you fix anything: "X happens because Y."
  5. Fix the cause, not the symptom. Check for the same pattern elsewhere in the code.
  6. Prove it. The new test passes, the old tests pass, and python3 .claude/hooks/tack verify --changed is green.
  7. Clean up temporary logging. Note the cause and fix in PROGRESS.md if it's worth remembering.

If you've tried three hypotheses without progress, stop. Summarize what you've ruled out and ask for input.

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.