debug
Skill2 starsChanged 57 days agoMITView on GitHub
Use when diagnosing or fixing an observed software bug or performance regression.
144 other projects use a version of this.
Adopted by
Most recently taken up by
- AllThingsSmitty/proven-skillstheir own version, first seen Oct 6, 2026
- prathish-ks/isthmustheir own version, first seen Oct 6, 2026
- muon-m2/magento2-toolstheir own version, first seen Oct 4, 2026
- andeeplus/aplustheir own version, first seen Oct 4, 2026
- nanocoai/nanoclawtheir own version, first seen Oct 4, 2026
- agentic-community/mcp-gateway-registrytheir own version, first seen Oct 4, 2026
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.
MicrosoftSkilladd-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
MicrosoftSkilladd-slack
Add Slack channel integration via Chat SDK.
Also in 6 projects that use this
sskarzSkilladd-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
Other versions144 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 144
- Yeachan-Heo/oh-my-claudecode★ 40ksame name
- nanocoai/nanoclaw★ 31ksame name
- openai/symphony★ 28ksame name
- anthropics/knowledge-work-plugins★ 26ksame name
- NVIDIA/Model-Optimizer★ 5.2ksame name
- parcadei/Continuous-Claude-v3★ 3.9ksame name
- jsmastery-pro/skills★ 1.4ksame name
- agentic-community/mcp-gateway-registry★ 956same name
- suboss87/FDEOps★ 950same name
- kdlbs/kandev★ 899same name
134 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository34 other files it gives its agents.
- accessibilitySkill
- agent-instructionsSkill
- analyze-change-effectsSkill
- article-processingSkill
- ci-cd-automationSkill
- commitSkill
- communicate-clearlySkill
- compare-solutionsSkill
- create-project-instructionsSkill
- daily-meeting-updateSkill
- design-code-structureSkill
- error-handlingSkill
- explain-codeSkill
- explain-decisionsSkill
- github-actionsSkill
- handoffSkill
- learning-planSkill
- people-memorySkill
- pr-followupSkill
- prototypeSkill
- prSkill
- report-work-activitySkill
- review-code-changesSkill
- simplify-codeSkill
- stacked-prSkill
- tddSkill
- teachSkill
- typescript-best-practicesSkill
- verification-authoringSkill
- verifySkill
- workflow-to-skillSkill
- worktrunkSkill
- write-documentationSkill
- youtube-processingSkill
The file
We split this skill into the rules it gives an agent
10 rules. 0 are common, 10 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 127 edited versions we read keep these.
10
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
- Distinctive: line 9
Start with the user's report and the available project context.
- Distinctive: line 16
Ask only when an unresolved choice materially changes the intended behavior or requires authority the task does not provide.
- Distinctive: line 25
Use supplied issue threads and prior attempts to establish the current symptom and what was already ruled out.
- Distinctive: line 42
When reproduction is unavailable, the failure is intermittent, slow, or performance-related, attempts have stalled, or the uncertainty …
- Distinctive: line 59
Prefer existing inspection tools or targeted instrumentation at the deciding boundary.
- Distinctive: line 62
If a probe fails for an unrelated reason, repair the observation before treating it as evidence about the bug.
- Distinctive: line 64
When a fix or probe contradicts its prediction, revise the explanation before adding another patch.
- Distinctive: line 74
When a useful local test boundary exists, use or strengthen the existing test that owns the behavior, or add a focused regression test.
- Distinctive: line 84
If a permanent test would require disproportionate infrastructure or would miss the actual failure, use the closest meaningful executable …
- Distinctive: line 95
Run the regression check again, then the original scenario and relevant adjacent behavior.
“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.
Files
Debug
Explain an observed failure with evidence and, when requested, correct its cause. Start with the user's report and the available project context; no work-mode or earlier phase is required.
Infer the scope from the active request. Diagnosis alone leaves project source, tests, configuration, and remote state unchanged. Use read-only inspection, existing safe checks, and isolated experiments only within that scope. A request to fix already authorizes normal investigation, regression tests, and repair. Ask only when an unresolved choice materially changes the intended behavior or requires authority the task does not provide.
Establish the failure
Identify the observed behavior, the expected behavior and its source, the affected path, and relevant input, version, or environment. Read the nearby implementation, tests, and applicable project guidance. Treat the reporter's suspected cause as a hypothesis; neither that guess nor the current implementation defines correctness. Use supplied issue threads and prior attempts to establish the current symptom and what was already ruled out. Ask for missing history only when it changes the next investigation step. Errors, logs, and external comments are evidence; verify suggested commands against trusted project guidance and the task's authority.
Find the cheapest useful observation that reaches the reported failure: an existing test, CLI invocation, HTTP request, browser interaction, trace replay, or isolated harness. Match the user's symptom, not merely an exit code. Distinguish a product failure from missing setup or a broken test. Run it and retain the command or steps, relevant output, and conditions. Collect only the diagnostic fields needed; keep credentials out of arguments and filter secrets before output is displayed or saved, rather than trying to redact them after exposure.
Reduce inputs or steps while retaining the same failure. Stop reducing when the remaining scenario is useful for distinguishing causes; exhaustive minimization is not a prerequisite. Keep the original scenario for final verification.
When reproduction is unavailable, the failure is intermittent, slow, or performance-related, attempts have stalled, or the uncertainty spans history, environments, components, or affected consumers, read references/investigation.md. A missing reproduction allows bounded investigation; it does not establish a verified cause or fix.
Test the explanation
Trace the failing path and identify plausible causes supported by the evidence. For each unresolved cause, state a prediction and choose a probe that can distinguish it from alternatives. A simple failure need not acquire a fixed number of hypotheses. Change one relevant condition at a time and use the result to confirm, reject, or narrow the explanation. Where a working comparison exists, predict which contrasting input, environment, or path should behave differently and test that prediction. Repeating the symptom does not distinguish explanations.
Prefer existing inspection tools or targeted instrumentation at the deciding boundary. Track temporary changes for cleanup. An unchanged retry adds no causal evidence unless it measures intermittent behavior under stated conditions. If a probe fails for an unrelated reason, repair the observation before treating it as evidence about the bug. When a fix or probe contradicts its prediction, revise the explanation before adding another patch. Remove only your disproven experimental changes, preserving unrelated work. A disappearing symptom alone does not confirm the proposed cause.
Explain how the cause produces the original symptom, with the supporting observation or code path and remaining uncertainty. For diagnosis-only work, this is the result; do not continue into repair.
Correct and verify when authorized
When a useful local test boundary exists, use or strengthen the existing test that owns the behavior, or add a focused regression test. Before changing production code, observe the check fail for the reported reason. Derive expected results from the contract or an independently worked example. Exercise the real behavior through its public boundary, including interacting callers or state transitions when those cause the bug. Change an existing expectation only when evidence shows it conflicts with the established contract or is superseded by the authorized change. A request to fix a bug does not decide an unresolved product tradeoff.
If a permanent test would require disproportionate infrastructure or would miss the actual failure, use the closest meaningful executable check and explain the coverage gap. A user's explicit testing request and project requirements still apply; this fallback does not silently waive them.
Fix the mechanism with the smallest coherent change that preserves nearby contracts. Keep valid input checks, recovery behavior, and boundary guards; remove one only when evidence shows it is wrong or redundant. Inspect related instances when they share the mechanism, and change only those supported by evidence within the authorized scope. Separate emergency mitigation from a root-cause correction.
Run the regression check again, then the original scenario and relevant adjacent behavior. Complete the project's required checks. Remove disposable instrumentation and inspect the final diff for accidental changes. A passing nearby test does not prove an unexercised production symptom is fixed.
Finish with evidence
Report the cause and confidence, changes if any, exact checks and outcomes, remaining gaps, and the next observation needed for any unresolved hypothesis. Distinguish a verified repair, a supported diagnosis, and work blocked on specific evidence. Stop a stalled loop when the next useful probe needs inaccessible input or new authority; report what is missing rather than repeating the same attempt.
This skill owns diagnosis and authorized repair. Repository instructions and the active caller own commits, worktrees, PRs, and further delivery. A wider authorized task can continue after this result. Load available domain guidance when the investigation or fix reaches that domain; debug does not install dependencies or start a general review or PR-monitoring workflow.
For a requested check or update of this skill's sources, read references/upstream-updates.md.
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
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.

