debugging
Skill9 starsChanged 7 days agoMITView on GitHub
Use when /bug-hunt or /fix-bug runs, when the user reports a bug or a failing behaviour, or when the user asks to look for bugs in a diff, a module or a flow of a phase-managed project.
135 other projects use a version of this.
Adopted by
Most recently taken up by
- fujidaiti/smooth_sheetstheir own version, first seen Nov 30, 2026
- joaovitoriasilva/enduraintheir own version, first seen Nov 29, 2026
- endurain-project/enduraintheir own version, first seen Nov 29, 2026
- Palanx/Claude-Configstheir own version, first seen Nov 29, 2026
- jacarty/claude-toolkittheir own version, first seen Nov 29, 2026
- justincordova/agentstheir own version, first seen Nov 29, 2026
Used with
Projects with it also use remove-ai-slops, ssr 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.
DevNewbie1826Skillremove-ai-slops
Remove AI-generated code slop from branch changes or an explicit file list while preserving behavior, including junk tests (prose pins, source greps, copied inventories, mock echoes), each proven by its class rule before a cut. Use when asked to remove slop, clean AI code, deslop, clean up generated code, strip slop, prune junk tests, or review generated-code cleanup. Start by locking behavior with regression tests, then use the workflow and category references.
Also in 3 projects that use this
JetBrainsSkillssr
Create or modify IntelliJ Structural Search and Replace patterns.
Also in 3 projects that use this
truongtv22SkillProblem-Solving Techniques
Apply systematic problem-solving techniques for complexity spirals (simplification cascades), innovation blocks (collision-zone thinking), recurring patterns (meta-pattern recognition), assumption constraints (inversion exercise), scale uncertainty (scale game), and dispatch when stuck. Techniques derived from Microsoft Amplifier project patterns adapted for immediate application.
Also in 4 projects that use this
mrgoonieSkillmedia-processing
Process multimedia files with FFmpeg (video/audio encoding, conversion, streaming, filtering, hardware acceleration) and ImageMagick (image manipulation, format conversion, batch processing, effects, composition). Use when converting media formats, encoding videos with specific codecs (H.264, H.265, VP9), resizing/cropping images, extracting audio from video, applying filters and effects, optimizing file sizes, creating streaming manifests (HLS/DASH), generating thumbnails, batch processing images, creating composite images, or implementing media processing pipelines. Supports 100+ formats, hardware acceleration (NVENC, QSV), and complex filtergraphs.
Also in 6 projects that use this
mrgoonieSkillmcp-management
Manage Model Context Protocol (MCP) servers - discover, analyze, and execute tools/prompts/resources from configured MCP servers. Use when working with MCP integrations, need to discover available MCP capabilities, filter MCP tools for specific tasks, execute MCP tools programmatically, access MCP prompts/resources, or implement MCP client functionality. Supports intelligent tool selection, multi-server management, and context-efficient capability discovery.
Also in 6 projects that use this
DevNewbie1826Skillprogramming
MUST USE for work on Python, Rust, TypeScript, JavaScript, or Go source files and project manifests, and whenever a test or spec file is written, reshaped, reviewed, or deleted. Triggers: write or edit code; add, change, or delete a test; test authoring gate; junk tests; new project; Go HTTP service (gin lane); Bubble Tea TUI; CJK IME; Connect-Go RPC; sqlc or pgx; branded IDs; exhaustive matching; unsafe Rust; Miri; oversized file; refactoring; logging, log levels, structured logging, or observability; arena, allocator, bumpalo, const fn, const generics, compile-time programming, zero-allocation APIs, bitfields, repr, scope guards, errdefer-style cleanup, Zig-like patterns, zero-copy parsing, packed data, or FFI; Rust public API design or macros.
Also in 3 projects that use this
- +6 more from mrgoonie
Other versions135 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 135
- tursodatabase/turso★ 25ksame name
- JetBrains/intellij-community★ 21ksame name
- DetachHead/rebased★ 6.6ksame name
- joaovitoriasilva/endurain★ 2.4ksame name
- endurain-project/endurain★ 2.4ksame name
- mrgoonie/claudekit-skills★ 2.2ksame name
- JetBrains/MPS★ 1.7ksame name
- danieleteti/delphimvcframework★ 1.4ksame name
- glommer/pgmicro★ 1.2ksame name
- rapidaai/voice-ai★ 762same name
125 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 repository18 other files it gives its agents.
- skills/foundation/templates/agents.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- skills/foundation/templates/CLAUDE.mdCLAUDE.md
- audit-ai-design-slopSkill
- backlogSkill
- brainstormSkill
- context-managerSkill
- cortexSkill
- design-studioSkill
- foundationSkill
- idea-researchSkill
- improve-loopSkill
- no-ai-design-slopSkill
- phase-flowSkill
- pipeline-loggerSkill
- releaseSkill
- synapseSkill
- wiki-keeperSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 5 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 122 edited versions we read keep these.
5
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 32
Reproduce: Write the exact steps, input and environment that trigger the symptom, and trigger it.
- Distinctive: line 33
Turn it into a test: Write the smallest automated test that fails because of the bug, when the stack allows it.
- Distinctive: line 38
Look sideways: Search the code for the same pattern elsewhere (same call, same assumption).
- Very specific: line 45
After three hypotheses that each fail on evidence: stop, record [INVESTIGATING] in known-errors with what was ruled out, and ask the user …
- Distinctive: line 51
Never probe systems the project does not own.
- Distinctive: line 52
Never print a secret value, even when the bug is that a secret leaks.
“Common” is measured: kept by at least 6 in 10 of the 122 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
Bug hunt and bug fixing
Two jobs, one discipline: nothing is called a bug until it is reproduced, and nothing is called fixed until the reproduction passes.
/bug-hunt [scope]— proactive. Look for defects nobody has reported yet. Read-only./fix-bug <symptom>— reactive. A known symptom: reproduce, find the root cause, fix it, prove it, record it.
The end-of-task bug hunt inside /task and the whole-project hunt inside /5-release use the same agents and the same proof rules.
/bug-hunt [scope]
Scope: --diff <range> (default: the uncommitted changes, else the last commit), --area <path or flow>, or --all.
- Partition. For
--all, split the project into at most four areas along real boundaries (a module, a flow, an integration, the data layer), usingwiki/architecture.md. List the classes already ruled out by earlier hunts fromlogs/pipeline/so they are not repeated. - Hunt. Dispatch one
project-scaffolder:bug-hunterper area, all in one message. They start in the background: treat each launch as started and wait for every completion notification before step 3. Each gets its area, the changes since the last release, the ruled-out classes andwiki/debugging/known-errors.md. - Refute. Deduplicate first (same root cause, same
path:line), then send every CRITICAL and HIGH finding, in one launch, toproject-scaffolder:sweeperwith the refutation job: it re-derives each one with its own commands and tries to prove it wrong, the same rule as the release rounds. - Mark each finding
confirmed(the sweeper ran the check and could not refute it),refuted,unverified(the check could not run, or MEDIUM and LOW findings that were not sent) orlead. Uncertain counts as refuted; not run never counts as confirmed. - Report in chat: a table of confirmed findings by severity, the counts of refuted and unverified findings and leads, and the next step:
/fix-bugfor a single finding,/taskfor a group of related findings. Write every finding with its status and reproduction, plus one pipeline-logger line per agent, tologs/pipeline/<today>.md. Do not repeat the agents' reports in chat.
/bug-hunt never edits product code.
/fix-bug <symptom>
This follows systematic debugging. Do not guess a fix before the cause is known.
- Reproduce. Write the exact steps, input and environment that trigger the symptom, and trigger it. Can't reproduce → gather more (logs, versions, data) or ask the user; do not fix what you cannot trigger.
- Turn it into a test. Write the smallest automated test that fails because of the bug, when the stack allows it. Run it and see it fail for the right reason.
- Isolate. Narrow it down: bisect commits, inputs or code paths until you find the smallest case that fails.
- Hypotheses. Two or three candidate causes, ranked. Check the top one with evidence (a log line, a value, a diff). A hypothesis you could not check is not the cause.
- Fix the cause, not the symptom. The smallest change at the root. Dispatch
project-scaffolder:builderwith a short plan (cause, change, the failing test) for anything beyond a few lines; in the release phase use/task --release-fix. - Prove it. The failing test passes; the original reproduction no longer triggers; dispatch
project-scaffolder:verifieron the diff. - Look sideways. Search the code for the same pattern elsewhere (same call, same assumption). Report each other occurrence; fix them only if the user agrees or they are in the same function.
- Record, as one operation:
wiki/debugging/known-errors.md→KE-NNN: context, symptom, root cause, fix, test that guards it.guardrails/errors-to-avoid.md→ERR-NNN: the pattern to avoid, the correct pattern, skills affected,Ref: KE-NNN.- Pass the lesson to the
synapseskill for the connected project skills. - Log
## [date] error | KE-NNN <title>.
After three hypotheses that each fail on evidence: stop, record [INVESTIGATING] in known-errors with what was ruled out, and ask the user for more context. Do not keep varying the fix.
Proof rules (both jobs)
- Reproduced in this session, by a command or exact steps, or it is a lead.
- Severity follows user impact: CRITICAL (data loss, security hole, main flow broken), HIGH (common path wrong), MEDIUM (uncommon path wrong, or common path degraded), LOW (cosmetic or self-healing).
- Never probe systems the project does not own. Hunting is on the local code and the local or test environments.
- Never print a secret value, even when the bug is that a secret leaks. Say where, not what.
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.

