debugging
Skill19 starsChanged 6 months agoMITView on GitHub
Helps diagnose and fix runtime errors, crashes, and unexpected behavior.
116 other projects use a version of this.
Adopted by
Most recently taken up by
- thistleknot/skillstheir own version, first seen Nov 8, 2026
- DevNewbie1826/skillstheir own version, first seen Nov 8, 2026
- MasihMoafi/skillstheir own version, first seen Nov 8, 2026
- ishandutta2007/Awesome-Claude-Skillstheir own version, first seen Nov 8, 2026
- idavidov13/agentic-playwrighttheir own version, first seen Nov 8, 2026
- profdorly/ultimate-dev-skillstheir own version, first seen Nov 8, 2026
Used with
Projects with it also use Problem-Solving Techniques, media-processing 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.
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
JetBrainsSkillssr
Guide for using Structural Search and Replace in IntelliJ. Use when creating or modifying SSR inspections or search patterns.
Also in 3 projects that use this
mrgoonieSkillweb-frameworks
Build modern full-stack web applications with Next.js (App Router, Server Components, RSC, PPR, SSR, SSG, ISR), Turborepo (monorepo management, task pipelines, remote caching, parallel execution), and RemixIcon (3100+ SVG icons in outlined/filled styles). Use when creating React applications, implementing server-side rendering, setting up monorepos with multiple packages, optimizing build performance and caching strategies, adding icon libraries, managing shared dependencies, or working with TypeScript full-stack projects.
Also in 6 projects that use this
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 category and workflow references.
Also in 3 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 versions116 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 116
- tursodatabase/turso★ 25ksame name
- JetBrains/intellij-community★ 21ksame name
- DetachHead/rebased★ 6.5ksame name
- mrgoonie/claudekit-skills★ 2.2ksame name
- JetBrains/MPS★ 1.7ksame name
- danieleteti/delphimvcframework★ 1.4ksame name
- glommer/pgmicro★ 1.2ksame name
- karrioapi/karrio★ 799same name
- rapidaai/voice-ai★ 755same name
- i-am-manware/Manware-s-AI-Learning-Toolkit★ 717same name
106 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.
- ci-fixSkill
- codeql-fixSkill
- database-reviewSkill
- frontend-implementationSkill
- git-conflict-resolveSkill
- provider-debugSkill
- pr-reviewSkill
- security-auditSkill
- test-writerSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 3 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 104 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 38
Use refactor-plan for restructuring or a dedicated perf approach.
- Distinctive: line 48
Read the actual error. The most useful information is usually the bottom of the stack trace (the user-code frame nearest the failure), not …
- Very specific: line 62
Test the hypothesis with the smallest possible change.
- Distinctive: line 76
Verify the fix. Reproduce the original failure with the fix in place and confirm the failure no longer occurs.
- Very specific: line 84
If the bug is intermittent or environment-dependent, document the reproduction steps including the seed/timing/concurrency that triggered …
- Distinctive: line 88
When the diagnosis is uncertain, prefer instrumentation (structured logs at boundaries, metrics around the suspect path) over speculative …
“Common” is measured: kept by at least 6 in 10 of the 104 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 root cause of a runtime failure and fix it at the right layer. Beat the urge to patch the symptom — a fix that hides the bug is worse than no fix.
Use this skill when
- The user has an error message, stack trace, or panic and wants to know what is wrong.
- The user describes broken behavior ("X used to work and now it doesn't", "this is sometimes wrong", "the page renders but the number is off").
- The user pastes log output and asks why the system is misbehaving.
- The user has a crash, hang, or out-of-memory in production and wants to find the cause.
Do NOT use this skill when
- The user wants to build a new feature. Use a coding skill. Bugs found during feature work are still part of the feature work.
- The user wants performance work without an actual functional bug.
Use
refactor-planfor restructuring or a dedicated perf approach. - The user wants tests written for code that already works. Use
test-writer.
Procedure
- Reproduce the issue, or get as close as you can. A bug you cannot reproduce is a bug you cannot verify a fix for. Ask the user for: the exact command/request, the input, the environment (OS, runtime version, env vars), and the last known good state.
- Read the actual error. The most useful information is usually the bottom of the stack trace (the user-code frame nearest the failure), not the top. Note the exception type, the message, the file and line, and any "caused by" chain.
- Narrow scope. Bisect by:
- Time:
git logbetween known-good and known-bad. Reach forgit bisectwhen the regression window is wide. - Code path: comment out or short-circuit branches until the failing call disappears. The smallest reproducing input wins.
- Data: which inputs fail? Strip fields until the failing subset is minimal.
- Time:
- Form a hypothesis. State it explicitly: "I think X is null because Y returns undefined on empty arrays." A vague hypothesis ("maybe it's a race condition") wastes time — make it falsifiable.
- Test the hypothesis with the smallest possible change. A
console.log, a debugger breakpoint, a unit test that calls the suspect function with the suspect input. If the hypothesis is wrong, the test should tell you cleanly, not just "still broken". - Fix at the right layer. Ask: where did the invariant first break?
That is the layer to fix. Common anti-patterns to avoid:
- Symptom patching: catching an exception three layers above where it was thrown to keep the UI green.
- Defensive bloat: adding null checks everywhere instead of fixing the function that returned null.
- Magic retries: retrying a request whose failure mode you have not diagnosed.
- Silent fallback: replacing an unexpected value with a default so the error stops surfacing.
- Verify the fix. Reproduce the original failure with the fix in place and confirm the failure no longer occurs. If you wrote a test as part of the diagnosis (step 5), keep it — that test is the regression guard.
- Note what you learned in the PR description or commit message: what was broken, the root cause, and why the fix lives where it does. Future readers debug similar bugs faster when the history is annotated.
- If the bug is intermittent or environment-dependent, document the reproduction steps including the seed/timing/concurrency that triggered it. "Couldn't reproduce" is not a fix — it is a finding to escalate or instrument.
- When the diagnosis is uncertain, prefer instrumentation (structured logs at boundaries, metrics around the suspect path) over speculative refactors. You can always remove the instrumentation; you cannot un-ship a guess.
Examples
In scope: "TypeError: Cannot read property 'id' of undefined at user.ts:42."
→ Open user.ts:42. Trace where the undefined originates by walking
the call chain backward. If getUser() returns undefined on a missing
ID, the bug is getUser() returning undefined instead of throwing or
returning a typed null, not the caller failing to handle it.
In scope: "Sometimes this test fails in CI but never locally."
→ Treat as a flake until proven otherwise. Look for: time-of-day dependence, shared mutable state across tests, race conditions on fixtures, clock-dependent assertions. Run the test in a tight loop locally with the CI's parallelism settings before declaring it "works on my machine".
In scope: "Memory keeps climbing in production."
→ Ask for the metric (RSS? heap?), the rate, and the deploy that preceded it. Look for unbounded caches, listeners that get attached on every request, or array fields that accumulate. A heap snapshot diff at two points usually identifies the leaking type within minutes.
In scope: "Why is the response sometimes empty?"
→ "Sometimes" implies a non-deterministic input. Inventory the sources of non-determinism: time, randomness, ordering of async operations, cache state, retry behavior, partial data from an upstream service. Add a structured log at the boundary where the response is built and re-run until a successful and an empty response sit side by side.
Out of scope: "Make this faster."
→ A performance ask without a functional bug is not a debugging
task. Use refactor-plan or measure first.
Out of scope: "Refactor this module while you're in there."
→ Refactors and bugfixes are separate PRs. A refactor inside a bugfix makes the fix hard to verify and hard to revert.
Self-check before responding
- Did I read the actual error, including the file:line at the bottom of the trace?
- Did I state a falsifiable hypothesis before proposing a fix?
- Did I verify the fix reproduces the original failure first, then not after the fix?
- Did I fix the root cause, not a symptom three layers up?
- Did I avoid adding silent fallbacks, retries, or broad try/catches to make the error disappear?
- Did I propose or write a regression test where it is cheap to do so?
- Did I note what changed and why in a place future debuggers will find it?
- For intermittent failures, did I check shared state, time, and ordering before concluding "flake"?
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.

