/fsh:bug-huntfrom fsh
Reproduce, diagnose, and fix a reported bug via a triage → reproduce → diagnose → failing-test → fix → verify loop. Forbids speculative fixes that paper over symptoms. Files a tracker task on give-up.
Ships in fsh. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are running the bug-hunt skill against a reported bug (a tracker task, an error-monitoring issue, or a free-text report). Your job is to find the confirmed root cause and fix it at the narrowest correct layer — not to ship the first plausible-looking patch.
A green test achieved against a synthetic flow that doesn't exercise the real code path is a failure of this skill, not a success. So is a "fix" at a layer the bug never touched.
This skill is repo-agnostic. Gather the concrete details from the repository you're running in:
AGENTS.md / CLAUDE.md.AGENTS.md / package.json scripts).## Skill profile in the repo's root AGENTS.md: a tracker database/project id + default status/priority/tags). If none is configured, ask the user where to file it.The user invokes this skill with one of:
Without an explicit confirmed reproduction pointing at this layer:
try/catch that swallows the error so the symptom disappearsRead the report. On a scratch note, write two columns:
Suspects start at zero evidence and stay there until Phase 4 produces some. Do not treat a report's "prime suspects" as a confirmed root cause — it's the reporter's hypothesis, often written before they tried to reproduce.
If all of these hold, skip to Fix + Verify (Phases 6–7):
If you have to guess at any of those, it isn't trivial. Run the full loop. If in doubt, run the full loop — it's cheaper than shipping the wrong fix.
Get a real reproduction against the real code path. No fix is allowed before this step succeeds.
For frontend bugs: reproduce in a browser pointing at the app; capture console errors, network failure response bodies, the visible UI state, the URL.
If you can only reproduce in a synthetic unit test that fabricates state and calls a service directly, that is not a reproduction — it's a fabrication. Either you produce the bug through the real entry point or you don't have a bug confirmed yet.
If you cannot reproduce after a reasonable attempt: stop, tell the user what you tried, and ask for repro steps. Don't skip ahead.
Write a falsifiable hypothesis. It must:
You get 3 diagnose passes. If after three hypothesis-and-test cycles you cannot pin the cause, stop and Quarantine (below).
Before editing the code under fix:
A test that's green on the base branch is not a regression test for this bug. Either rewrite it to exercise the real path or accept that you don't have a regression guard. Use the repo's documented test command for the touched layer.
List the candidate layers where the fix could live (request/resolver boundary; job/transaction boundary; domain service; repository/query; entity/schema invariant). Pick the narrowest layer where the violated invariant naturally lives: the fewest call sites changed, the most localized blast radius, the layer closest to where the invariant is defined.
Counter-examples to reject:
null — fix the upstream service.try/catch because one of them flaked once — handle the one, or fix the flake.Before saving any diff, re-read the Forbidden fixes list. If your fix touches any of those patterns, stop and reconsider.
If anything is not green, loop back to Diagnose. Do not ship.
Short markdown summary — inline in your final message or as a PR comment via gh pr comment <N>:
# Bug: <one-line description>
## Symptoms
- <observed>
## Reproduction (real path)
- <entry point, command, expected vs actual>
## Confirmed root cause
- Category: <data-model | logic | race | shared-state | boundary-violation | wrong-input | upstream>
- Evidence: <stored-state/log/trace citation>
## Fix
- Layer: <request | job-boundary | service | repository | entity>
- Files: <list>
- Why not <other candidate layer>: <one sentence>
## Regression guard
- Test: <path> — fails on the base branch, passes with fix.
Only when you've exhausted 3 diagnose passes without a falsifiable hypothesis backed by evidence. Steps:
## Skill profile — a Notion DB, Linear project, or GitHub issues; if none configured, ask the user). Include:
Bug investigation: <short description>What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub fullstackhouse/skills --plugin fsh35 skills in this plugin
/blacksmithMigrate a repository's GitHub Actions workflows to Blacksmith runners — inventory every job, move the ones that build, run or test the app (image builds get the sticky-disk Docker actions, a size-capped cache and a Dockerfile audit for cache killers), leave glue, deploy and credential-bound jobs on GitHub, capture a per-step timing baseline, hand off to `deliver --no-merge` with the decision table in the PR, and measure real rebuilds on that PR when the existing runs can't settle it. Use when asked to "move CI to Blacksmith", "cut GitHub Actions spend", "make the image build faster", or right after the Blacksmith app was installed on an org. Args: a repo path (default: the current repo), plus `--audit-only` to print the decision table and write nothing./brainstormDivergent conversation before any artifact exists — question the idea, weigh alternatives including building nothing, then converge on one routed next step (drop it, park it as a ticket, kick off implementation, or bug-hunt) with a handoff brief. Use when the user says "should we build this", "I have an idea", "let's think this through", or "is this worth doing". Read-only until the routing is confirmed./broRestate the last message in plain human language, with no jargon./claude-desktop-handoffHand one GUI-only step to Claude Desktop running on the same machine, over a shared temp directory, so this session can keep working autonomously instead of stopping. Use when the step needs the user's own logged-in browser (a vendor console with no API, an OAuth app registration, an SSO-gated admin page, anything behind a password manager or passkey), this session is non-interactive (Conductor, `-p`, cloud) or has only a headless browser, and Claude Desktop is installed on this machine — that last fact is what picks this skill over its sibling. Prints one prompt for the user to paste into Claude Desktop; the two sessions then talk through files, so Desktop can ask a question mid-task and get an answer without the user relaying it. Use `desktop-handoff` instead when the hand might be a different runtime, a different OS, or not Claude at all./decideWork through the decisions a session has left open — one at a time, each briefed on its own (what's at stake first, then the detail), facts looked up instead of asked, 1-2 alternatives plus the status quo as the last lettered option, one recommendation — then stop and wait for the answer before raising the next. Records each answer where the project keeps decisions before moving on. Use when the user asks "what's still open / what's left to decide", "co do decyzji", "present each one separately and ask me", "walk me through them one by one", or when a long session is ending with deferred choices nobody ever answered. `grill-me` interrogates a plan the user brought; this one empties a queue the work produced./deliverDeliver the work on the current branch, or an existing PR, to a level — run all relevant local checks (lint/typecheck/tests), get the change reviewed and fixed locally through the review-loop skill before anything is pushed, open or update a PR, work the CI loop, then stop at `ready` with a Next moves block offering each level the repo's own workflows reach (e.g. dev, staging, prod). `--pr <N> --to <level>` carries out the owner's chosen move: it is resumable, re-runs only the steps whose proof no longer matches the PR's patch-id, merges, and promotes the merge up to that level. Supports --base to target a branch other than the repo default (stacked PRs), --bot-review / --no-bot-review to force a PR bot's on-record review on or off, and --review-rounds N (0-10) to cap the local review loop — 0 skips it. CI is slow and a bot reviewer is slower; do not lean on either as a first pass. `--merge-only --pr <N> --expect-head <sha>` is a deprecated alias of `--pr <N> --to <first level>`, kept for one release.