debugging
Skill0 starsChanged 4 days agoMITView on GitHub
Find and fix the root cause of a bug: reproduce it, narrow it down, test one hypothesis at a time, fix the cause, and add a regression test. Use for a bug report, a failing test or CI job, an error or stack trace, or behaviour that differs from what's expected, before proposing a fix.
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
- justincordova/agentstheir own version, first seen Nov 29, 2026
- valsecchi75/project-scaffoldertheir 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 repository25 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- adopt-toolkitSkill
- codebase-assessmentSkill
- code-optimiserSkill
- code-review-gateSkill
- commit-and-prSkill
- dependency-checkSkill
- design-thinking-ideationSkill
- devops-review-gateSkill
- doc-generatorSkill
- graph-of-thoughtSkill
- implementation-specSkill
- phase-acceptance-checkSkill
- project-retrospectiveSkill
- refactorerSkill
- requirements-elicitationSkill
- research-briefSkill
- test-generationSkill
- trade-off-analysisSkill
- tree-of-thoughtSkill
- value-chain-analysisSkill
- vrio-analysisSkill
- antigravitySkill
- codexSkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 6 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 122 edited versions we read keep these.
6
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 14
If it can't be reproduced, stop and say so, with what you tried.
- Distinctive: line 20
If it used to work, find the change that broke it: git log -p on the files involved, and if no commit stands out, git bisect with the …
- Distinctive: line 21
Check the boundaries: what goes into the failing function, and what comes out.
- Distinctive: line 24
When a theory is ruled out, say so and drop it.
- Very specific: line 28
Add a regression test: Write it before the fix and watch it fail, then fix and watch it pass.
- Distinctive: line 29
Look for the same mistake elsewhere (the same pattern, the same helper used by other callers) and cover those too, or list them.
- Distinctive: line 36
Don't make the symptom go away: no catching and ignoring errors, no loosening or deleting tests, no retries or sleeps over a race you …
“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
Debugging
Find the cause before changing code. A fix that wasn't preceded by a reproduction is a guess.
Steps
- Reproduce it. Find the exact command, input or steps, and run them. Record the real output: the error, the exit code, the wrong result.
- For a CI failure, read the job's log first, then reproduce it locally with the same command and versions.
- If it can't be reproduced, stop and say so, with what you tried. Ask for the missing detail (input, environment, version) rather than fixing blind.
- Read what it tells you.
- An error: the full message and stack trace, the first failure rather than the last. Find the line it points at before forming a theory.
- A wrong result, with no error: work out the expected value by hand, then follow the intermediate values until they first differ from yours. That's where to look.
- Narrow it down.
- Shrink the input to the smallest one that still fails.
- If it used to work, find the change that broke it:
git log -pon the files involved, and if no commit stands out,git bisectwith the reproduction as the test. - Check the boundaries: what goes into the failing function, and what comes out.
- One hypothesis at a time. State it, and what evidence would confirm or rule it out. Change or add one thing (a log line, an assertion, a value), rerun, and look. Remove temporary logging afterwards.
- For a regression, the most direct check is the reproduction against the last good version (
git show <rev>:<file>, or a checkout in a separate worktree). - When a theory is ruled out, say so and drop it. Don't stack fixes for several theories.
- For a regression, the most direct check is the reproduction against the last good version (
- Settle what's correct, then fix the root cause.
- Know the intended behaviour before choosing a fix: the spec, the tests, the reporter. "What it did before" isn't automatically right. If the rule is ambiguous (rounding, time zones, ordering), ask.
- The fix goes where the cause is, not where the symptom shows. If the cause is outside the change's scope (another module, a dependency, the platform), fix what's needed here, record the rest in
docs/tech-debt.md, and tell the user.
- Add a regression test. Write it before the fix and watch it fail, then fix and watch it pass. If the fix came first, check it both ways (stash only the fix,
git stash push -- <fix files>, rerun, thengit stash pop). If no test can be written, say why.- Look for the same mistake elsewhere (the same pattern, the same helper used by other callers) and cover those too, or list them.
- Check the result. Rerun the original reproduction, then the project's tests. Then use what was fixed the way it's used (the run it gate in
docs/process.md); for library code with no app, the reproduction through its public interface is that use. - Report. The cause, the evidence, the fix, and the test, kept short. Add how the bug got through if it says something (no test covered the case, a "refactor" that changed behaviour). Then run any pre-PR gates
docs/process.mdcalls for, and hand over with thecommit-and-prskill.
Don't
- Don't change several things at once. You won't know which one mattered, and the rest become unexplained changes.
- Don't make the symptom go away: no catching and ignoring errors, no loosening or deleting tests, no retries or sleeps over a race you haven't explained.
- Don't get past a failure by skipping hooks or editing permission, sandbox or CI settings. If one of those is the cause, tell the user.
- Don't print secrets while investigating. Environment variables, config and logs can hold tokens: check whether a value is set, not what it is.
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.

