bug
Skill1 starsChanged 9 months agoMITView on GitHub
Investigates and resolves bugs using structured diagnosis. Categorizes by system, traces root cause, proposes minimal fix, and suggests prevention. Use when debugging issues or investigating unexpected behavior.
9 other projects use a version of this.
Adopted by
Most recently taken up by
- retospect/precis-mcptheir own version, first seen Oct 3, 2026
- ccch1mneyyy/dsh-TUItheir own version, first seen Oct 2, 2026
- yicheng47/runnertheir own version, first seen Oct 1, 2026
- SatanshuMishra/interphasetheir own version, first seen Sep 30, 2026
- savinofiore/lexitheir own version, first seen Sep 29, 2026
- jamillazarev/multica-opstheir own version, first seen Sep 25, 2026
Used with
Projects with it also use feature and init.
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.Other versions9 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 9
- ccch1mneyyy/dsh-TUI★ 4ksame name
- yicheng47/runner★ 206same name
- ulises-jeremias/agent-toolkit★ 18same name
- jamillazarev/multica-ops★ 13same name
- retospect/precis-mcp★ 4same name
- savinofiore/lexi★ 4same name
- mimoccc/my-claude-skills★ 1same name
- marcusbelz/di2-starter-kit★ 0same name
- SatanshuMishra/interphase★ 0same 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 repository48 other files it gives its agents.
- accessibilitySkill
- api-designSkill
- api-integrationSkill
- architectSkill
- async-patternsSkill
- best-practicesSkill
- buildSkill
- cachingSkill
- ci-cdSkill
- config-managementSkill
- containerizeSkill
- database-designSkill
- data-modelingSkill
- data-pipelineSkill
- debug-latencySkill
- dependency-updateSkill
- deploySkill
- dev-setupSkill
- docsSkill
- error-handlingSkill
- estimateSkill
- feature-flag-opsSkill
- git-recoverySkill
- i18nSkill
- iacSkill
- incidentSkill
- load-testingSkill
- loggingSkill
- migrateSkill
- monitoringSkill
- observability-debugSkill
- onboardSkill
- perfSkill
- phase-gateSkill
- pr-authorSkill
- qaSkill
- refactorSkill
- reviewSkill
- rollbackSkill
- schema-evolutionSkill
- scope-checkSkill
- security-auditSkill
- state-managementSkill
- tech-debtSkill
- tech-stackSkill
- telemetrySkill
- testingSkill
- workflowSkill
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 6 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 8
Don't guess. Trace systematically from symptom to root cause.
- Distinctive: line 12
Before touching code, establish the facts.
- Distinctive: line 49
Follow the data flow from trigger to symptom:
- Distinctive: line 74
Verify the fix doesn't break related behavior (run full test suite)
- Distinctive: line 75
If the fix is non-obvious, add a comment explaining WHY (the commit message explains WHAT, the comment explains WHY)
- Distinctive: line 79
After fixing, harden against recurrence:
- Distinctive: line 82
Check for similar bugs: - if this off-by-one exists here, does it exist in analogous code?
“Common” is measured: kept by at least 6 in 10 of the 6 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 Investigation
Don't guess. Trace systematically from symptom to root cause.
Step 1: Characterize
Before touching code, establish the facts.
SYMPTOM: [what's happening vs what should happen]
REPRODUCIBLE: [always / sometimes / once - steps to reproduce]
ENVIRONMENT: [OS, runtime, build type, deploy target]
FIRST SEEN: [when - correlate with recent deploys/changes]
IMPACT: [who's affected, how badly, workaround exists?]If it's intermittent, suspect: race conditions, resource exhaustion, timing-dependent logic, external service flakiness, or uninitialized state.
Step 2: Categorize
Identify the bug's domain to narrow the search space:
| Category | Symptoms | Where to Look |
| Input/Validation | Wrong results from user actions, rejected valid input | Event handlers, validators, parsers, type coercion |
| Logic/State | Wrong computations, impossible states, inconsistent data | Business logic, state machines, conditionals, data flow |
| Data | Missing, corrupt, or stale data | Persistence layer, serialization, migrations, cache |
| Network | Timeouts, malformed payloads, intermittent failures | HTTP clients, retry logic, error handling, payload schemas |
| Concurrency | Intermittent corruption, deadlocks, lost updates | Shared state, locking, async/await, transaction isolation |
| Lifecycle | Crashes on start/stop, leaks, state loss across restarts | Init/cleanup order, resource management, persistence |
| Integration | External service misbehavior, version mismatches | API contracts, SDK versions, config, auth |
Step 3: Isolate
Narrow the search:
- Binary search in time:
git bisectto find the commit that introduced it. - Binary search in space: Comment out / bypass components until the bug disappears. The last thing you re-enabled is the culprit.
- Minimal reproduction: Strip away everything unrelated. Can you trigger it in a test? In a REPL?
- Read the error, really read it: Stack traces, error codes, log messages. The answer is often in the output - read it carefully before jumping to hypotheses.
Step 4: Trace Root Cause
Follow the data flow from trigger to symptom:
User action → [handler] → [service] → [data layer] → [external system]
↑
Bug is HERE (root cause)
↓
Symptom appears downstreamCommon root causes:
- Off-by-one in boundary logic
- Null/undefined where a value was assumed present
- Type coercion producing unexpected results
- Stale closure capturing old state
- Missing
await/ uncaught promise rejection - Transaction not isolated (dirty read)
- Initialization order dependency
- Integer overflow / floating point precision
Step 5: Fix
Fix the root cause, not the symptom.
- Minimal change - touch only what's necessary
- Verify the fix doesn't break related behavior (run full test suite)
- If the fix is non-obvious, add a comment explaining WHY (the commit message explains WHAT, the comment explains WHY)
Step 6: Prevent
After fixing, harden against recurrence:
- Add a regression test that fails without the fix and passes with it
- Check for similar bugs - if this off-by-one exists here, does it exist in analogous code?
- Add a guard - assertion, type constraint, or validation that would catch this class of bug earlier
- Improve observability - would better logging or metrics have caught this sooner?
Output
BUG: [concise description]
CATEGORY: [input / logic / data / network / concurrency / lifecycle / integration]
ROOT CAUSE: [what's actually wrong and why it produces the symptom]
FIX: [specific code change - file:line, what to change]
REGRESSION TEST: [test that catches this]
SIMILAR RISKS: [other places in the codebase with the same pattern]
PREVENTION: [guard, validation, or process change to prevent recurrence]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.

