debug-systematically
Skill7 starsChanged 15 days agoMITView on GitHub
Use when a bug resists the first fix — reproduce it, bisect to the introducing change, test one hypothesis at a time, fix the root cause, and add a regression test.
5 other projects use a version of this.
Adopted by
Most recently taken up by
- VelimirMueller/ai-development-skillsword for word, first seen Oct 25, 2026
- linellazatin/skillstheir own version, first seen Oct 17, 2026
- RiyanKothari/riyans-claude-skillstheir own version, first seen Oct 6, 2026
- cellrishi-code/claude-skills-atlastheir own version, first seen Oct 4, 2026
- Chrike/coding-agent-skillstheir own version, first seen Aug 4, 2026
Other versions5 projects use a version of this.
Word for word · 1
- VelimirMueller/ai-development-skills★ 7100% same
Edited · 0
None found.
Wrote their own version · 4
- cellrishi-code/claude-skills-atlas★ 6same name
- Chrike/coding-agent-skills★ 1same name
- linellazatin/skills★ 1same name
- RiyanKothari/riyans-claude-skills★ 1same name
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 repository156 other files it gives its agents.
- skills/swift/swiftui-design-principles/AGENTS.mdAGENTS.md
- skills/swift/ios-code-audit/CLAUDE.mdCLAUDE.md
- skills/swift/swift-focusengine-pro/llms.txtllms.txt
- build-llm-seamSkill
- build-mcp-serverSkill
- build-rag-pipelineSkill
- secure-llm-featuresSkill
- set-up-llm-evalsSkill
- build-nextjs-backendSkill
- build-supabase-edge-functionSkill
- configure-backend-testsSkill
- design-http-apiSkill
- harden-backendSkill
- scaffold-fastapi-serviceSkill
- scaffold-go-serviceSkill
- scaffold-hono-serviceSkill
- secure-supabase-rlsSkill
- set-up-backend-authSkill
- set-up-background-jobsSkill
- set-up-databaseSkill
- set-up-nextjs-supabase-authSkill
- set-up-observabilitySkill
- set-up-supabaseSkill
- build-cliSkill
- release-cliSkill
- set-up-dev-toolchainSkill
- audit-securitySkill
- audit-toolchainSkill
- extend-skillsetSkill
- promote-releaseSkill
- set-up-stack-profileSkill
- write-commit-messagesSkill
- write-pull-requestsSkill
- analyze-complexitySkill
- apply-algorithmsSkill
- apply-design-patternsSkill
- apply-design-principlesSkill
- apply-solidSkill
- choose-data-structureSkill
- enforce-dependency-ruleSkill
- refactor-safelySkill
- slice-and-estimateSkill
- write-clean-testsSkill
- write-readable-codeSkill
- clean-frontend-scaffoldingSkill
- configure-accessibilitySkill
- configure-analyticsSkill
- configure-ciSkill
- configure-error-trackingSkill
- configure-lintingSkill
- configure-test-stackSkill
- configure-typescriptSkill
- create-moduleSkill
- optimize-performanceSkill
- scaffold-frontend-projectSkill
- set-up-authSkill
- set-up-design-systemSkill
- set-up-document-headSkill
- set-up-error-boundariesSkill
- set-up-feature-flagsSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
2
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 32
Prefer the simplest explanation that fits all the evidence.
- Distinctive: line 41
Write the test that fails on the old code and passes on the fix.
“Common” is measured: kept by at least 6 in 10 of the 4 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
Debug Systematically
Replaces the "try things until it works" loop with a falsifiable process (The Pragmatic Programmer). Pairs with write-clean-tests — the regression test is the proof the bug cannot return.
1. Reproduce
A bug you cannot reproduce you cannot fix or verify. Capture the exact input, environment and steps that trigger it; if it is intermittent, add logging or run the loop until it fails. State the symptom in one sentence, not the suspected cause.
2. Bisect to the introducing change
git log --oneline -20
git bisect start 2>/dev/null # only if you have a known-good and known-bad commitNarrow the search by halves: the commit that introduced it, the one input field that matters, the one boundary value that flips it. The change that introduced the bug is the most reliable clue to its cause.
3. Test one hypothesis at a time
- Form a falsifiable prediction ("if X is the cause, then changing Y fixes it and nothing else does").
- Change one thing, observe, record. Never change several at once — you will not know which one worked.
- Prefer the simplest explanation that fits all the evidence; resist the theory you already believe.
4. Fix the root cause
Fix the why, not the symptom. Patching the output where it shows up leaves the cause to resurface elsewhere. If the fix feels like a workaround, the cause is one level deeper.
5. Add a regression test
Write the test that fails on the old code and passes on the fix. That test is the proof the bug cannot return, and the reviewer's evidence the fix is real.
Verify
The symptom is gone under the exact reproduction, the bisect points to one change, and the regression test fails on the reverted fix and passes on it. State the root cause and the fix in the note.
When to deviate
- An incident in production: stop the bleeding first (roll back, feature flag off), then debug the cause off the hot path.
- A bug that reproduces only under a dependency's bug: fix or pin the dependency, do not build a shim.
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.

