agentleFS
qyndexqyndex/claude-init/.claude/skills/debug/SKILL.md

debug

Skill2 starsChanged 5 months agoMITView on GitHub

Run the four-phase systematic debugging loop (reproduce → isolate → diagnose → fix). Delegates to debugger agent. Modeled on superpowers/systematic-debugging.

192 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

1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 175 edited versions we read keep these.

  • 1

    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:

    If you can't reproduce in three tries, ask the user for the missing detail.

    line 25

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

Find the root cause. Don't paper over symptoms.

Four-phase loop

Phase 1 — Reproduce

Make the bug happen reliably. Capture:

  • Exact command
  • Exact input
  • Environment (node/python/etc. version, OS, env vars)
  • Stdout, stderr, exit code

If you can't reproduce in three tries, ask the user for the missing detail. Don't hope.

Phase 2 — Isolate

Bisect to the minimal reproducer:

  • git bisect if it worked at some prior commit
  • Strip inputs to the smallest case that still triggers
  • Disable unrelated code paths

Phase 3 — Diagnose

Trace the actual code path. Form a hypothesis. Test it. Iterate.

A hypothesis is valid only when it explains every observed symptom — not just some.

Phase 4 — Fix proposal

Smallest correct change. Cite the file:line. Hand off to implementer.

Hard rules

  • Don't fix without understanding. A fix you can't explain regresses.
  • Don't suppress. No try/except: pass, no // @ts-ignore, no broad catch {}.
  • Don't blame infra. Until proven otherwise, assume it's your code.
  • Cite the line. src/auth/login.ts:42 is specific. "The auth code" is not.
  • No commits. Debugger proposes; implementer commits.

Output

# Bug: <one-line title>

## Reproduction
Command: ...
Env: ...
Output: ...

## Cause
File: <path:line>
Issue: <what is wrong, why it triggers, how it explains every symptom>

## Fix proposal
File: <path>
Change: <minimal diff intent>
Why: <how this addresses the cause>
Test: <command to verify>

## Hand-off
implementer agent: apply the fix, run the test, then the full suite.

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.