agentleFS
YauhenBichelYauhenBichel/engineering-skills/skills/debug/SKILL.md

debug

Skill0 starsChanged 52 days agoApache-2.0View on GitHub

Finds the root cause of a bug methodically. Use for errors, crashes, wrong results or flaky behaviour.

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:

    Read the full error and stack trace.

    line 8
  2. Distinctive:

    Write a failing test that captures the exact failure.

    line 11

“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

Steps

  1. Reproduce the bug with the smallest input. Run pytest tests/test_bug.py or the exact failing command in isolation.
  2. Read the full error and stack trace. Record the exception type, file path, and line number.
  3. Form one hypothesis. Test it using logs, a debugger, or git bisect. Do not guess.
  4. Find the root cause, not the symptom. Verify the failing condition matches your hypothesis.
  5. Write a failing test that captures the exact failure. Run it to confirm it fails.
  6. Apply the fix. Run the full test suite. Show the new test passing and existing tests green.
  7. Scan related code paths. Note what else the cause may affect and log follow-up tasks.

Checklist

  • Reproduction is minimal and deterministic
  • Full stack trace and error context are captured
  • Single hypothesis tested with evidence
  • Root cause identified, not a symptom workaround
  • Failing test written and confirmed to fail before the fix
  • Fix applied and all tests pass
  • Related code paths reviewed for side effects

Output

  • Minimal reproduction command or test case
  • Root cause explanation with file and line reference
  • Failing test code and the applied fix
  • List of affected code paths or follow-up tasks

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.