agentsclimarketplace

Debug playbook

Skill atuljha23/holocron/skills/debug-playbook

Role-aware Claude Code plugin: 10 specialist agents (frontend, backend, QA, a11y, perf, security, architect, debugger, code-reviewer, docs), 15 domain commands, 8 skills, and a SQLite-backed learning crystal that compounds your corrections across sessions.

Install
npx -y skills add atuljha23/holocron --skill debug-playbook

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Hypothesis-driven debugging — reproduce, hypothesize, probe, locate, fix, guard. Use when something is broken and you don't yet know why.

SKILL.md

2.6 KB, as published. Nobody here has run it

Debug playbook

The order of operations matters more than the tools.

1. Reproduce

Nothing else is useful until you can make the bug happen on demand.

  • Exact command / action / input that triggers it
  • Minimum conditions — strip away anything not required
  • If you can't repro, narrow: which environments? which users? which data? which times?
  • Unreproducible bugs are intermittent bugs, which are race / env / state leaks — treat them as such.

2. Hypothesize

List 2–3 concrete theories. For each:

  • What you think is happening (one sentence)
  • What observation would confirm it
  • What observation would kill it

If you have only one hypothesis, you're not thinking hard enough — or it's so obvious you should skip to step 4.

3. Probe

Add the cheapest probe that separates your top two hypotheses.

  • A targeted log line > reading the code again
  • git bisect when the timeline is wide and the test is binary
  • strace / dtrace / perf when the surface is the runtime, not the code
  • Differential execution — run on a known-good input and a known-bad input, diff the trace

Resist the urge to add logs everywhere. Add one at the pivot point.

4. Locate

When observation singles out the hypothesis, point at the line. Not the region — the line.

Ask: why does this line break? What invariant did we assume here that isn't true?

5. Fix

Minimum change that resolves the root cause. Nothing adjacent.

  • Not: "add a try/catch so we don't see the error"
  • Not: "bump the retry so it eventually succeeds"
  • Not: "rewrite this section while I'm here"

6. Guard

Add a test that fails without your fix and passes with it. The test should target the condition, not mimic the scenario.

Anti-patterns

  • Shotgun debugging — changing five things, one passed. Revert four of them and find which one.
  • Bandaid reflex — catching exceptions you don't understand. You're hiding the bug, not fixing it.
  • Upgrade cure — "upgrading the dep fixed it". Maybe. Or maybe it re-broke differently. Read the changelog.
  • "Works on my machine" — an environment bug. Find the environmental difference.
  • Adding retries — every retry hides a bug you didn't diagnose.

Writing up the diagnosis

Short report:

What happened: <observable>
Root cause: <one sentence, concrete>
Why tests missed it: <honest answer>
Fix: <the change, minimum>
Regression guard: <the test>

If you can't write this report, you haven't finished debugging.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.