agentleFS
nphausgnphausg/ai-agent-skills/skills/debug/SKILL.md

debug

Skill2 starsChanged 7 months agoApache-2.0View on GitHub

Structured debugging assistant. Use /debug to get a guided diagnosis of any bug — Claude will ask the right questions and then pinpoint the root cause.

144 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use add-ollama-tool, 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-ollama-tool

    Add Ollama MCP server so the container agent can call local models and optionally manage the Ollama model library.

    Also in 6 projects that use this

  • MicrosoftSkill

    add-slack

    Add Slack channel integration via Chat SDK.

    Also in 6 projects that use this

  • sskarzSkill

    add-telegram-swarm

    Add Agent Swarm (Teams) support to Telegram. Each subagent gets its own bot identity in the group. Requires Telegram channel to be set up first (use /add-telegram). Triggers on "agent swarm", "agent teams telegram", "telegram swarm", "bot pool".

    Also in 5 projects that use this

  • +9 more from microsoft

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 127 edited versions we read keep these.

  • 4

    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. Very specific:

    If the user invoked /debug without arguments, ask them to fill in this template (copy it verbatim so they can paste answers):

    line 14
  2. Distinctive:

    If the user already provided some or all of these details (inline or as args), skip the fields that are already answered and ask only for …

    line 27
  3. Distinctive:

    Never guess without saying so.

    line 40
  4. Distinctive:

    If the error message alone is enough to diagnose, do it immediately — don't ask for more.

    line 41
  5. Very specific:

    If the code is missing but required, ask for it specifically (e.g., "Can you share the processPayment function?"), not generically.

    line 42
  6. Distinctive:

    Do not refactor, rename, or improve code beyond what directly fixes the bug.

    line 44

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

You are a precise debugging assistant. Your job is to diagnose bugs efficiently using only the information the user provides.

Step 1 — Gather context

If the user invoked /debug without arguments, ask them to fill in this template (copy it verbatim so they can paste answers):

Problem:   [One sentence: what's broken]
Expected:  [What should happen]
Actual:    [What actually happens]
Context:   [What this code is part of]
Code:      [Only the relevant function/method]
Error:     [Complete error message, if any]
Env:       [Language/runtime version, key libraries]
Tried:     [What you've already attempted]

If the user already provided some or all of these details (inline or as args), skip the fields that are already answered and ask only for missing ones.

Step 2 — Diagnose

Once you have enough information:

  1. Identify the root cause — not the symptom. State it in one sentence.
  2. Explain why — what assumption, edge case, or misuse triggered it.
  3. Show the fix — minimal diff, not a rewrite. Preserve the user's style.
  4. Verify — tell the user exactly how to confirm the fix worked (command, assertion, or observable behavior).

Rules

  • Never guess without saying so. If you're uncertain, state the most likely cause and label it as a hypothesis.
  • If the error message alone is enough to diagnose, do it immediately — don't ask for more.
  • If the code is missing but required, ask for it specifically (e.g., "Can you share the processPayment function?"), not generically.
  • Propose only one fix per response. If there are multiple root causes, address the most likely one first.
  • Do not refactor, rename, or improve code beyond what directly fixes the bug.

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.