debugging
Skill0 starsChanged 10 days agoMITView on GitHub
Find and fix the root cause of a bug, failing test, crash or slowdown by first building a check that fails on it. Use when the user reports something broken, throwing, failing, flaky or slow, or says "debug this" or "diagnose".
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 repository11 other files it gives its agents.
- global/AGENTS.mdAGENTS.md
- cleanupSkill
- documentationSkill
- evidenceSkill
- hillclimbSkill
- improveSkill
- plan-with-meSkill
- review-loopSkill
- tasksSkill
- unslopSkill
- whySkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 7 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 122 edited versions we read keep these.
7
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 11
When the cause is already plain, such as a typo, a wrong constant or a missing import, just fix it.
- Distinctive: line 19
Before forming any theory, make one command that reproduces the user's exact symptom.
- Distinctive: line 40
If you can't build one, stop.
- Distinctive: line 51
Write three to five before testing any.
- Distinctive: line 68
When the bug could plausibly come back, turn the shrunk repro into a regression test at a level where it exercises the real bug.
- Distinctive: line 76
Remove the tagged logs and any throwaway harnesses.
- Distinctive: line 77
Put the cause, and how you proved it, in the commit body.
“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
Most of the work is the first step: a check that fails on this bug. With one, the cause falls out. Without one, reading code produces theories, not fixes.
When the cause is already plain, such as a typo, a wrong constant or a missing import, just fix it. Use this method when it isn't.
Redact secrets in anything you show, and keep credentials in environment variables rather than in scripts.
1. Build a failing check
Before forming any theory, make one command that reproduces the user's exact symptom. Try roughly in this order:
- A failing test at whatever level reaches the bug.
- A script or
curlagainst the running dev server. - The CLI with a fixture input, diffed against known good output.
- A browser script that asserts on the page, console or network. In T3 Code the preview tools can drive it.
- A captured request, payload or log replayed through the code path.
- A throwaway harness that calls the code directly.
- Many random inputs, for bugs that are only sometimes wrong.
git bisect runwith the check, when it worked at an earlier commit.- The same input through the old and new versions, with the outputs diffed.
The check is ready when you have run it and it:
- fails on the symptom the user described, not a nearby one
- gives the same result every run. For a flaky bug, loop it, run it in parallel or add load until it fails often enough to work with.
- runs in seconds, without a person in the loop
If you can't build one, stop. Say what you tried, and ask for access to where it reproduces, a captured log, HAR file or recording, or permission to add temporary logging. Don't guess at a fix without a check.
2. Shrink it
Cut inputs, steps, config and data one at a time, rerunning the check after each cut, until every part left is needed for the failure.
3. Rank hypotheses
Write three to five before testing any. Give each a prediction: "if X is the cause, changing Y makes the check pass". Show the list to the user, who may already know which one it is, but carry on with your ranking unless they answer.
4. Test one at a time
Each probe tests one prediction and changes one thing. Prefer a debugger or
REPL, then logs at the boundary that separates two hypotheses. Tag every
temporary log with a unique prefix such as [DEBUG-a4f2] so one search finds
them all. For a slowdown, measure a baseline and bisect instead of logging.
5. Fix it where it starts
Fix the cause, not where it shows. A guard that hides the symptom is not a fix.
When the bug could plausibly come back, turn the shrunk repro into a regression test at a level where it exercises the real bug. Watch it fail before the fix and pass after. If the only place a test fits is too shallow to reproduce the bug, say so instead of writing a test that would pass anyway.
6. Clean up and report
- Rerun the original check and confirm it passes.
- Remove the tagged logs and any throwaway harnesses.
- Put the cause, and how you proved it, in the commit body.
Hand back per the evidence skill: the check failing before the fix and
passing after.
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.

