debug
Skill2 starsChanged 34 days agoMITView on GitHub
Debug and analyze errors following best practices
192 other projects use a version of this.
Adopted by
Most recently taken up by
- PeanutGT/NutsSkillstheir own version, first seen Nov 8, 2026
- jskswamy/skillstheir own version, first seen Nov 8, 2026
- Firzus/agent-skillstheir own version, first seen Nov 8, 2026
- domengabrovsek/agent-configtheir own version, first seen Nov 8, 2026
- domengabrovsek/claudetheir own version, first seen Nov 8, 2026
- microsoft/veronatheir own version, first seen Nov 8, 2026
Used with
Projects with it also use add-discord, add-slack 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.
MicrosoftSkilladd-discord
Add Discord bot channel integration via Chat SDK.
Also in 11 projects that use this
MicrosoftSkilladd-slack
Add Slack channel integration via Chat SDK.
Also in 11 projects that use this
- +10 more from microsoft
Other versions192 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 192
- Yeachan-Heo/oh-my-claude-sisyphus★ 41ksame name
- Yeachan-Heo/oh-my-claudecode★ 41ksame name
- anthropics/knowledge-work-plugins★ 35ksame name
- gavrielc/nanoclaw★ 31ksame name
- nanocoai/nanoclaw★ 31ksame name
- qwibitai/nanoclaw★ 31ksame name
- openai/symphony★ 27ksame name
- FalkorDB/FalkorDB★ 10ksame name
- NVIDIA/TensorRT-Model-Optimizer★ 5.6ksame name
- NVIDIA/Model-Optimizer★ 5.6ksame name
182 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 repository75 other files it gives its agents.
- acceptance-criteriaSkill
- architect-guideSkill
- architect-reviewSkill
- audit-fixerSkill
- avo-admin-expertSkill
- backend-services-expertSkill
- bug-hunt-allSkill
- bug-hunt-fixSkill
- bug-huntSkill
- build-feature-remoteSkill
- build-featureSkill
- codeSkill
- component-testSkill
- controller-expertSkill
- create-qa-documentSkill
- devops-expertSkill
- execute-qaSkill
- feature-qaSkill
- fix-bug-indexSkill
- fix-honeybadgerSkill
- fix-spec-bugsSkill
- fix-system-testSkill
- frontend-expertSkill
- frontend-reviewSkill
- full-qa-fixSkill
- full-qaSkill
- full-reviewSkill
- green-ciSkill
- group-issuesSkill
- honeybadger-auditSkill
- ideateSkill
- impact-assessmentSkill
- improveSkill
- merge-mainSkill
- model-expertSkill
- model-testSkill
- native-bug-hunt-fixSkill
- native-bug-huntSkill
- page-speedSkill
- plan-questionsSkill
- planSkill
- plan-system-testsSkill
- policy-testSkill
- prdSkill
- prd-worktreeSkill
- product-questionSkill
- product-question-tldrSkill
- qa-branchSkill
- qa-testerSkill
- refactor-sweepSkill
- resolve-honeybadgerSkill
- resolve-issueSkill
- resolve-issuesSkill
- review-acceptance-criteriaSkill
- review-fixesSkill
- review-railsSkill
- rspec-test-expertSkill
- scale-reviewSkill
- service-testSkill
- settle-pr-reviewSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 3 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 175 edited versions we read keep these.
3
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 39
Use parallel Agent subagents when investigating independent hypotheses to speed up the process.
- Distinctive: line 89
After implementing the fix:
- Distinctive: line 93
If the fix involved frontend changes, verify in browser if possible
“Common” is measured: kept by at least 6 in 10 of the 175 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 Error Analysis
You are an expert debugger specializing in root cause analysis. Your goal is to find the underlying issue, not just treat symptoms.
Error Context
- Error: $1
- Additional context: $2 $3 $4 $5
Phase 1: Capture & Reproduce
- Capture the error signal
- Parse the full error message and stack trace
- Identify the exact file, line number, and method where the failure occurs
- Note the error class/type (e.g., NoMethodError, ActiveRecord::RecordInvalid, JS TypeError)
- Classify the error type to guide investigation:
- Runtime error: Exception in application code — trace the call chain
- Test failure: Assertion not met — check test setup, factories, and expectations
- Frontend/JS error: Stimulus, Turbo, or DOM issue — check browser console, controller connections
- Database error: Migration, query, or constraint issue — check schema and SQL
- Identify reproduction conditions
- What action triggers the error?
- Is it consistent or intermittent?
- What data/state is required?
Phase 2: Hypothesis Generation
Generate 2-4 hypotheses for the root cause. For each hypothesis:
- What would cause this exact error message?
- What evidence would confirm or eliminate it?
Use parallel Agent subagents when investigating independent hypotheses to speed up the process.
Common root causes in this codebase:
- Turbo Stream/Frame target ID mismatches or missing responses
- Stimulus controller not connecting or incorrect action bindings
- Service object Result pattern misuse or missing error handling
- Factory/test setup missing required associations or tenant context
- Callback ordering issues (see MEMORY.md for
after_commitdeduplication gotcha) - Pundit policy logic errors or missing
authorizecalls - Stale element references after Turbo DOM replacement
Phase 3: Evidence-Based Elimination
For each hypothesis, gather concrete evidence:
- Read the code at the failure location — don't skim, understand the full flow
- Trace the execution path from entry point (route/controller) through services and models
- Check the data — model validations, associations, database constraints
- Search for related patterns — use Grep to find similar code that works correctly
- Check recent changes —
git logandgit difffor relevant files - Verify library usage — use context7 to check if Hotwire/Rails APIs are used correctly
Elimination rules:
- A hypothesis is eliminated if evidence directly contradicts it
- A hypothesis is confirmed if evidence supports it AND no contradicting evidence exists
- A hypothesis is unconfirmed if insufficient evidence exists — investigate further
Phase 4: Root Cause Determination
State the root cause with a clear causal chain:
- [Initial condition or trigger]
- [What happens as a result]
- [Why this produces the observed error]
Include:
- Root cause: One clear sentence
- Evidence: Specific files, lines, and code that prove it
- Causal chain: Step-by-step explanation of how the root cause produces the error
Phase 5: Targeted Fix
Implement the fix following these principles:
- Minimal changes — fix the root cause, don't refactor surrounding code
- Follow existing patterns — match the conventions in CLAUDE.md and surrounding code
- No symptom masking — don't rescue exceptions or add nil guards unless that's the actual fix
- Database safety — use transactions where data integrity matters
- Security awareness — don't introduce XSS, SQL injection, or authorization bypasses
Phase 6: Verification
After implementing the fix:
- Run the failing test/scenario to confirm it passes
- Run related tests to check for regressions (
bundle exec rspecon the relevant spec file) - Run linting (
bin/standardrb) to ensure code style compliance - If the fix involved frontend changes, verify in browser if possible
Report the verification results. If tests still fail, return to Phase 2 with new hypotheses.
Important Rules
- Start with investigation, not implementation — understand before you change
- Evidence over intuition — every conclusion needs supporting code/data
- Fix the cause, not the symptom — a nil guard on a value that shouldn't be nil is not a fix
- One fix at a time — don't bundle unrelated changes
- Verify the fix works — never skip the verification step
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.

