diagnosing-bugs
Skill2 starsChanged 13 days agoApache-2.0View on GitHub
Diagnose reproducible defects, failing tests, regressions, flaky behavior, performance problems, and unexpected runtime results through an evidence-led feedback loop. Use when the user asks to diagnose, debug, investigate, find a root cause, or fix a reported defect. Diagnose without editing unless the request also authorizes a fix.
193 other projects use a version of this.
Adopted by
Most recently taken up by
- ChatbotXIO/ChatbotXtheir own version, first seen Nov 9, 2026
- wowyuarm/dsh-agent-teamtheir own version, first seen Nov 8, 2026
- Contexera/dsh-agent-teamtheir own version, first seen Nov 8, 2026
- The-Vibe-Company/quivrtheir own version, first seen Nov 8, 2026
- gaoyu06/harnesstheir own version, first seen Nov 8, 2026
- DnsQueen/orcinus-skillstheir own version, first seen Nov 8, 2026
Used with
Projects with it also use setup-ts-deep-modules, loop-me 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.
liufeng1976Skillsetup-ts-deep-modules
Wire dependency-cruiser into a TypeScript repo so each package is a deep module — implementation hidden in subfolders, reachable only through its entry-point files. User-invoked.
Also in 43 projects that use this
RoentekSkillloop-me
Grill me about specs for the workflows I want to build, within this workspace.
Also in 55 projects that use this
LesaniSkillwriting-beats
Shape an article as a journey of beats, choose-your-own-adventure style. The user picks a starting beat from the raw material, you write only that beat, then offer options for where to pivot next, beat by beat, until the article reaches a natural end. Use when the user has raw material and wants to assemble it as a narrative rather than an argument.
Also in 58 projects that use this
AWSSkillto-questionnaire
Turn a decision you can't fully answer into a questionnaire for someone else to fill in.
Also in 88 projects that use this
LesaniSkillwriting-shape
Take a markdown file of raw material and shape it into an article through a conversational session — drafting candidate openings, growing the piece paragraph by paragraph, arguing about format (lists, tables, callouts, quotes) at each step. Use when the user has a pile of notes, fragments, or a rough draft and wants help turning it into something publishable.
Also in 56 projects that use this
AWSSkillwizard
Generate an interactive bash wizard that walks a human through steps only they can perform. Use when provisioning infrastructure, setting up credentials or CI secrets, walking an unfamiliar third-party dashboard, or running a one-off migration or cutover. Don't invoke this for steps the agent can perform itself.
Also in 122 projects that use this
- +1 more from Lesani
- +2 more from aws
Other versions193 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 193
- mattpocock/skills★ 309ksame name
- QuivrHQ/quivr★ 40ksame name
- The-Vibe-Company/quivr★ 40ksame name
- GreyDGL/PentestGPT★ 16ksame name
- ArcReel/ArcReel★ 6.3ksame name
- vinvcn/mattpocock-skills-zh-CN★ 5.5ksame name
- withcoral/coral★ 4.9ksame name
- bestofjs/bestofjs★ 3.1ksame name
- getsentry/sentry-react-native★ 1.8ksame name
- ChatbotXIO/ChatbotX★ 1.1ksame name
183 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 repository9 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- code-reviewSkill
- gatekeep-prsSkill
- orchestrate-agentsSkill
- shape-goalSkill
- to-ticketsSkill
- wayfinderSkill
The file
We split this skill into the rules it gives an agent
11 rules. 0 are common, 10 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 180 edited versions we read keep these.
10
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
When the repository provides an AGENTS.md, apply its shared coding discipline: inspect affected code, callers, tests, and shared utilities …
- Very specific: line 13
Read repository instructions, relevant domain skills, nearby tests, CONTEXT.md, and applicable ADRs before changing anything.
- Distinctive: line 14
Check active Beads state. When a bug bead exists, keep its symptom, reproduction, evidence, and disposition current.
- Distinctive: line 18
Before forming a cause theory, create one command that exercises the reported path and can distinguish the exact failure from success.
- Distinctive: line 35
Run it and capture the command plus concise observed evidence.
- Distinctive: line 42
Write three to five ranked, falsifiable hypotheses.
- Distinctive: line 43
Test one variable at a time.
- Distinctive: line 54
Run the regression test green, then rerun the original unminimized loop.
- Distinctive: line 55
Run affected repository checks.
- Distinctive: line 59
Remove all tagged instrumentation and throwaway harnesses unless the user approved keeping them.
- Distinctive: line 62
If blocked, return one decision or dependency, evidence tried, available options, recommendation, current branch/check state, and remaining …
“Common” is measured: kept by at least 6 in 10 of the 180 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
Diagnose Bugs
When the repository provides an AGENTS.md, apply its shared coding discipline: inspect affected code, callers, tests, and shared utilities before changing code; keep authorized fixes complete and focused; and state material assumptions. Ask only questions that could change scope, correctness, or authority.
Establish authority and context
- Determine whether the request authorizes diagnosis only or diagnosis plus a fix. Do not edit product code for a diagnosis-only request.
- Read repository instructions, relevant domain skills, nearby tests,
CONTEXT.md, and applicable ADRs before changing anything. - Check active Beads state. When a bug bead exists, keep its symptom, reproduction, evidence, and disposition current. Store distilled facts and artifact paths, not raw logs or transcripts.
Build the feedback loop
Before forming a cause theory, create one command that exercises the reported path and can distinguish the exact failure from success.
Prefer, in order:
- An existing focused unit, integration, or end-to-end test.
- A minimal CLI, API, browser, or fixture-driven reproduction.
- A deterministic replay, differential comparison, or benchmark.
- A bounded stress loop for intermittent behavior.
- A temporary harness around the narrowest real interface.
The loop must be:
- Red-capable: it detects the user's symptom, not merely a nearby error.
- Repeatable: repeated runs produce a trustworthy verdict; for flaky defects, record the reproduction rate.
- Focused: unrelated setup and noise are removed.
- Agent-runnable: it can run unattended within the authorized environment.
Run it and capture the command plus concise observed evidence. If no trustworthy loop can be built, stop with the missing environment, artifact, access, or user action needed. Do not replace reproduction with speculation.
Evidence from one lane does not prove another. A settings API response or component receipt is not executable readiness. A fix for a hosted-runtime or architecture-specific failure passes its acceptance row only with acceptance set --evidence-lane <lane> after a run in that environment. A whole-chain row needs --evidence-scope whole-chain. While the environment is unavailable, report the row as planned or blocked.
Minimize and explain
- Reduce the input, configuration, callers, and environment while preserving the failure.
- Write three to five ranked, falsifiable hypotheses. For each, state the observation that would support or refute it.
- Test one variable at a time. Prefer debuggers, traces, profilers, and narrow boundary logging over broad log collection.
- Mark temporary instrumentation with a unique searchable tag.
- Identify the root cause only when evidence rules in one explanation and rules out credible alternatives.
For diagnosis-only work, stop here and return the cause, evidence, impact, and smallest recommended correction. Clearly label anything still unverified.
Fix when authorized
- Choose a regression-test seam that observes public behavior and represents the real failure. If no sound seam exists, document that architectural limitation instead of adding a misleading test.
- Convert the minimized reproduction into a failing test and run it red.
- Make the smallest correction that addresses the established cause. Do not bundle opportunistic refactors.
- Run the regression test green, then rerun the original unminimized loop.
- Run affected repository checks.
Clean up and return
- Remove all tagged instrumentation and throwaway harnesses unless the user approved keeping them.
- Record the correct hypothesis and evidence in the bead, commit, or PR.
- Report: outcome; diagnosis or fix; reproduction command; root-cause evidence; changed files and commit when applicable; checks; residual risks; and untested lanes.
- If blocked, return one decision or dependency, evidence tried, available options, recommendation, current branch/check state, and remaining risk.
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.

