atdd-plan
Produce an ATDD-first implementation plan in Claude Code's native plan mode, with named design patterns called out where they…
Evidence-first debugging for bugs that are hard to reproduce, intermittent, performance-related, or where previous static-analysis fixes have failed. Declares an explicit goal via /goal (the bug no longer reproduces), then loops through Hypothesis → Instrument → Reproduce →
Claude Code
$ npx -y skills add Flagrare/agent-skills --skill debug-hunt --agent claude-code
Codex
$ npx skills add Flagrare/agent-skills --skill debug-hunt -a codex -y
Cursor
$ npx skills add Flagrare/agent-skills --skill debug-hunt -a cursor -y
Gemini CLI
$ npx skills add Flagrare/agent-skills --skill debug-hunt -a gemini-cli -y
GitHub Copilot
$ npx skills add Flagrare/agent-skills --skill debug-hunt -a github-copilot -y
OpenCode
$ npx skills add Flagrare/agent-skills --skill debug-hunt -a opencode -y
Windsurf
$ npx skills add Flagrare/agent-skills --skill debug-hunt -a windsurf -y
name: debug-hunt description: "Evidence-first debugging for bugs that are hard to reproduce, intermittent, performance-related, or where previous static-analysis fixes have failed. Declares an explicit goal via /goal (the bug no longer reproduces), then loops through Hypothesis → Instrument → Reproduce → Analyze → Fix until that goal is met. Uses ATDD via /flagrare:atdd-plan to write the fix when the codebase has tests. Triggers when the user reports a difficult bug, says 'this only happens sometimes', 'my fix didn't work', 'I can't reproduce this consistently', 'what's causing this crash', 'hunt this bug down', 'there's a weird bug', 'something is broken intermittently', 'debug-hunt', or describes runtime behaviour that diverges from what the code says should happen."
Evidence-first debugging. The core principle: **never commit to a fix until runtime data proves the root cause**.
Static analysis tells you what *should* happen. Logs, spans, and runtime state tell you what *actually* happens. This skill closes the gap by treating debugging as a scientific loop, hypothesis, instrumentation, reproduction, analysis, not a guessing game.
---
Invoke `/goal` with this statement (fill in the bug from the user's description):
> **Goal:** `[bug description]` no longer reproduces. The root cause is confirmed by runtime evidence, not assumption. If the codebase has tests, a failing test captured the bug before the fix and passes after. All instrumentation is removed. The codebase is clean.
Surface the goal back to the user in one sentence so they can adjust scope before the loop starts. This is the exit condition, the entire session runs until these conditions hold.
---
**Gather facts before reading any code.**
Collect:
**Exploration option:**
If the bug involves observable behaviour in a running instance, a UI glitch, a wrong API response, a timing issue, degraded performance, offer to invoke `/flagrare:smoke-test` to surface evidence against the live system. Use `AskUserQuestion`:
**After gathering facts:**
Read the relevant code to understand the theoretical execution path. Then generate 2-4 plausible hypotheses. Be specific: "variable `userId` is null before the null-check on line 47" is a hypothesis; "something is null" is not. Each hypothesis needs a falsifiable condition, what would you see in the logs if this were true?
Hold all of them. Do not commit to one.
---
Before writing a single log line, check whether the codebase already contains a **working implementation** of the same pattern. A large class of bugs, wrong argument order, missing option, skipped step, is visible in a side-by-side comparison without any runtime evidence.
Search for:
Compare working vs. broken:
**If the diff reveals the root cause directly:** skip to Phase 5, Resolution. No instrumentation needed.
**If no working examples exist, or the comparison is inconclusive:** carry any hypotheses the comparison generated into Phase 3.
---
Design a logging strategy that proves or disproves each hypothesis. The goal is surgical: high-signal, low-noise, temporary.
For each hypothesis, decide:
Apply the instrumentation. Route logs to wherever the user can see them: console, file, stderr, a debug flag. Tag every inserted log line with `[DEBUG-HUNT]`, this prefix exists solely so cleanup in Phase 6 is fast and complete.
**Instrumentation principles:**
---
Tell the user exactly how to trigger the bug with the new instrumentation in place. Be specific: what to do, in what order, and, for intermittent bugs, how many attempts to make.
**Wait.** Do not proceed until the user confirms they have triggered the bug and has log output to share.
Analyze the logs against the hypothesis list:
If the logs are **inconclusive**: do not guess. Re-enter Phase 3 with refined instrumentation. Before adding more logs, state explicitly what the previous round failed to reveal and why, this keeps the instrumentation from growing into noise.
If the bug **does not reproduce** even with instrumentation: document the exact conditions under which it failed to fire. That is evidence too, adjust the hypothesis list and try again under different conditions or with instrum
Thirty-eight skills that wrap around your development cycle in Claude Code. They turn tickets into ATDD plans, smoke-test features against a running app or service, hunt down bugs with runtime evidence, guard commits against doc drift, run seven-axis code
Produce an ATDD-first implementation plan in Claude Code's native plan mode, with named design patterns called out where they…
Generate a comprehensive, impact-framed brag-doc entry for a chosen time window (day, week, biweek, month, or custom). Pulls…
Programmatic bug bashing, ingest a prescribed test plan (Notion, markdown, pasted spec), drive a real running system (browser via…
Run the career skills that are due, in one pass, and return one short combined digest plus an updated board. It reads timestamps…
Explore the codebase to map conventions, reusable utilities, analogous features, and data flows relevant to a planned change.…
Generate a daily code review report showing stale PRs, items needing your attention, and active work for your team. Use whenever…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.