investigate-bug
Skill1 starsChanged 2 months agoMITView on GitHub
Work a bug the way Tejas wants it worked — reproduce first, isolate with evidence, form one hypothesis at a time, trace the mechanism end to end before proposing a fix. Same "show the mechanism, not the symptom" discipline as the PR-review skills. Use when asked to "debug X", "figure out why Y", "investigate this failure", or handed a stack trace / bug report.
8 other projects use a version of this.
Adopted by
Most recently taken up by
- danielvm-git/bigpowerstheir own version, first seen Nov 6, 2026
- Esri/calcite-design-systemtheir own version, first seen Nov 2, 2026
- lvndry/skillstheir own version, first seen Nov 1, 2026
- dativo-io/talontheir own version, first seen Oct 25, 2026
- BuilderIO/agent-nativetheir own version, first seen Oct 17, 2026
- jasonhulbert/skillstheir own version, first seen Oct 9, 2026
Other versions8 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 8
- BuilderIO/agent-native★ 7.6ksame name
- Esri/calcite-design-system★ 385same name
- danielvm-git/bigpowers★ 288same name
- dativo-io/talon★ 18same name
- hamakyo/okf-skills★ 2same name
- jasonhulbert/skills★ 1same name
- napnap11/claude-skills★ 1same name
- lvndry/skills★ 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 repository73 other files it gives its agents.
- AGENTS.mdAGENTS.md
- bigquery-analyticsSkill
- cache-invalidationSkill
- mongo-aggregationSkill
- mongo-modelingSkill
- postgres-aggregationSkill
- postgres-indexingSkill
- redis-coordinationSkill
- redis-patternsSkill
- review-querySkill
- code-migrationSkill
- cut-releaseSkill
- data-migrationSkill
- deploy-serviceSkill
- hotfixSkill
- rollbackSkill
- design-endpointSkill
- design-eventSkill
- design-schemaSkill
- evolve-contractSkill
- scaffold-nestjs-moduleSkill
- scaffold-projectSkill
- incident-responseSkill
- on-callSkill
- postmortemSkill
- audit-skillsSkill
- distill-review-styleSkill
- write-skillSkill
- debug-with-tracesSkill
- define-alertsSkill
- instrument-serviceSkill
- evaluate-dependencySkill
- grillSkill
- handoffSkill
- orientSkill
- phased-deliverySkill
- spikeSkill
- to-questionnaireSkill
- write-adrSkill
- write-prdSkill
- devops-pr-reviewSkill
- go-backend-pr-reviewSkill
- nestjs-backend-pr-reviewSkill
- python-backend-pr-reviewSkill
- react-frontend-pr-reviewSkill
- bisectSkill
- break-couplingSkill
- dead-code-sweepSkill
- deslopifySkill
- extract-moduleSkill
- rebase-cleanSkill
- resolve-merge-conflictsSkill
- split-commitSkill
- tddSkill
- wait-whatSkill
- wide-renameSkill
- bullmqSkill
- kafkaSkill
- sqs-consumerSkill
- audit-dependenciesSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 5 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 8 edited versions we read keep these.
5
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 18
Write the repro as a failing test if the codebase allows it.
- Distinctive: line 23
Check the boundary: is it the code, the data, the config, the environment, or a dependency version?
- Distinctive: line 29
Don't shotgun multiple changes hoping one sticks.
- Distinctive: line 32
Follow the actual path: entry point → each call → the failing operation.
- Distinctive: line 38
Explain before fixing: Write two or three sentences: the mechanism, the trigger condition, why it didn't show up earlier.
- Very specific: line 60
If the bug caused user-facing impact, follow with incident/postmortem.
“Common” is measured: kept by at least 6 in 10 of the 8 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
Investigate a bug
The rule from the review corpus applies here too: don't assert a cause you can't trace. Quote the line, the caller, the state, and what happens on the next cycle.
Order of operations
- Reproduce.
- Get the exact inputs, environment, version/commit, and expected-vs-actual.
- Reproduce locally or in a test before touching anything. A bug you can't reproduce is a bug you can't confirm fixed — say so if it's not reproducible and switch to evidence-gathering (logs, traces, metrics around the event).
- Write the repro as a failing test if the codebase allows it.
- Isolate.
- Narrow to the smallest failing case. Remove variables one at a time.
git bisectwhen it's a regression and the good/bad commits are known.- Check the boundary: is it the code, the data, the config, the environment, or a dependency version?
- One hypothesis at a time.
- State it: "I think X because Y." Make a prediction it implies. Test that prediction. Confirm or kill it before moving on.
- Don't shotgun multiple changes hoping one sticks.
- Trace the mechanism.
- Follow the actual path: entry point → each call → the failing operation.
- For concurrency: which goroutine/async task, what ordering, what shared state.
- For queues: terminal vs retryable, deleted vs redelivered.
- For cache: is the read key derived identically to the write key.
- For contract bugs: what changed in the shape/code and who consumes it.
- Explain before fixing. Write two or three sentences: the mechanism, the trigger condition, why it didn't show up earlier. If you can't, you're not done isolating.
- Fix at the right altitude. Smallest change that addresses the mechanism — not a broad refactor, not a band-aid one layer too shallow. Reuse existing helpers/patterns rather than adding an abstraction.
- Prove the fix. The repro test now passes; nearby cases still pass; add a regression test named for the bug.
- Check for siblings. Does the same pattern exist elsewhere in this repo or a sibling service? Flag it even if out of scope for the current fix.
Output
- Summary — mechanism, trigger, blast radius, since when.
- Evidence — the log lines / traces / diffs that prove it, with locations.
- Fix — what changed and why it's at the right altitude.
- Regression test — added.
- Related — other places the pattern appears.
If the bug caused user-facing impact, follow with
incident/postmortem.
Anti-patterns
- ❌ Proposing a cause from reading the code without reproducing.
- ❌ Multiple simultaneous speculative changes.
- ❌ Fixing the symptom (swallow the error, add a retry) without the mechanism.
- ❌ A broad refactor smuggled into a bug fix.
- ❌ No regression test.
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.

