feat(#141): add /debug skill — structured hypothesis-driven debugging#142
Merged
Conversation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the
/debugskill at.claude/skills/debug/SKILL.md. Closes #141.A methodology skill that enforces five disciplines on debug sessions:
curl/ browser repro from step 4. Unit tests verify code correctness, not feature correctness.Stack appendices (Web + Desktop) carry the stack-specific bits — surface-evidence requirements (step 1), architecture-surface maps (step 2), and evidence-tests cookbooks (step 4). The methodology body stays portable across stacks; appendices are where stack-specific knowledge accumulates over time.
Web appendix covers browser routing, framework configs (Next/Nuxt/Vite), SPA-fallback layers, CDN, origin, the shared API client, backend handlers, and auth providers.
Desktop appendix covers Electron / Tauri / native-shell concerns: app entry points, IPC bridges, native modules, auto-updater, sandbox / entitlements, code signing, crash reports.
Includes a "When NOT to use" section so the methodology overhead doesn't sandbag simple bugs (typos, off-by-ones, greenfield exploration), and a maintainer note ("don't add an appendix until you have a real session's worth of patterns to seed it") so we don't ship speculative half-finished tables.
Why this skill exists
A real OAuth debug session in a managed project saw three sequential fixes chase adjacent symptoms because each was hypothesis-then-fix without evidence in between. Each cycle costs deploys + approvals + user patience. This skill is the "never do that again" guardrail — and the methodology is generic enough that any stack benefits.
Testing
markdown-lintworkflow on.github/workflows/markdownlint.ymlshould passhttps://link to commonly-stable resources;Link Checkworkflow should passshellcheckexposure.claude/skills/<name>/SKILL.md)Per the apexyard release-cut model, this targets
dev. After merge, the next release tag picks this up and adopters get the skill via/update.Closes #141
Glossary
curl -Ioutput, browser DevTools redirect chain, console errors, the exact URL in the address bar. The skill refuses to advance past step 1 without these.