debug-pocock
Skill5 starsChanged 46 days agoMITView on GitHub
use this as an alternative to debug when you want a tight red-capable feedback loop before any hypothesis — Pocock diagnosing-bugs shape. do not load with debug or debug-anthropic.
In this repository49 other files it gives its agents.
- AGENTS.mdAGENTS.md
- maintainers/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- buying-researcherSkill
- cursor-cloud-agents-whenSkill
- debug-anthropicSkill
- debugSkill
- discover-the-ideaSkill
- docs-google-styleSkill
- golang-safetySkill
- golang-securitySkill
- golang-testingSkill
- grok-acpSkill
- host-config-pyinfraSkill
- lang-cppSkill
- lang-csharpSkill
- lang-cSkill
- lang-dartSkill
- lang-dockerSkill
- lang-goSkill
- lang-javaSkill
- lang-js-tsSkill
- lang-kotlinSkill
- lang-luaSkill
- lang-makefileSkill
- lang-phpSkill
- lang-powershellSkill
- lang-protobufSkill
- lang-pythonSkill
- lang-rubySkill
- lang-rustSkill
- lang-shellSkill
- lang-sqlSkill
- lang-swiftSkill
- lang-terraformSkill
- language-routerSkill
- lang-web-markupSkill
- modern-pythonSkill
- pr-reviewSkill
- sdlc-artifactsSkill
- sdlc-onboardingSkill
- security-hardeningSkill
- shell-safetySkill
- tddSkill
- tracker-sdlcSkill
- ui-craftSkill
- ux-designSkill
- verify-before-doneSkill
- yagniSkill
The file
Files
Debug (Pocock alternative)
Alternative to default debug.
Iron law
No hypothesis until you have a tight loop that can go red on this exact symptom. Run the loop command once and show its output before the first hypothesis.
Phases
- Loop — failing test, curl, CLI fixture, headless script, replay, harness, fuzz, bisect, or differential. Tighten: faster, sharper assert, more deterministic. Flakes: raise repro rate until debuggable. Cannot build a loop → stop, list tries, ask the operator.
- Reproduce + minimise — same failure the user named. Shrink until every remaining piece is load-bearing.
- Hypothesise — 3–5 ranked, each falsifiable (“If X, then changing Y …”). Show the list; don’t block if the operator is AFK.
- Instrument — one variable; debugger over log-spam. Tag logs
[DEBUG-xxxx]so cleanup is one grep. Perf: measure first. - Fix — failing test at a real seam (
tdd), then fix, then re-run the original loop. No correct seam → that is the finding; do not fake a shallow test. - Cleanup — loop green, tagged logs gone, throwaways gone, winning hypothesis in the commit/PR.
Always
Redact secrets in anything you show (<REDACTED>). Credentials stay in env, not in the log you paste.
Never
- Load with
debugordebug-anthropic. - Copy
scripts/from upstream. - Hypothesise from reading code with no red-capable command.
Upstream
Rewrite of mattpocock/skills skills/engineering/diagnosing-bugs @ 74ca5fe077456a0b3b2f5310cf9430999fd0b5fd (MIT). See SOURCES.md.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
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.

