bug-hunt
Skill1 starsChanged 47 days agoMITView on GitHub
Use when asked to bug-hunt, explore, fuzz or click through your web app on staging to find bugs — /bug-hunt [scenarios|area] [--mode]. Staging only; not for prod, iOS or per-PR verification.
- Reads credentials
27 other projects use a version of this.
Adopted by
Most recently taken up by
- chrisallenlane/claude-swe-workflowstheir own version, first seen Nov 29, 2026
- Nexus-Organization-Infosec/ClaudeSkillstheir own version, first seen Nov 21, 2026
- Narjhan-ng/claude-skillstheir own version, first seen Nov 16, 2026
- fullstackhouse/skillstheir own version, first seen Nov 15, 2026
- iaintsaket/how-saket-claudestheir own version, first seen Nov 15, 2026
- taecontrol/skillstheir own version, first seen Nov 8, 2026
Used with
Projects with it also use test-first, decide and 4 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
MaxwellCalkinSkilltest-first
Test-first development practices for high-quality code
Also in 3 projects that use this
dirienSkilldecide
Three-agent adversarial debate protocol for strategic decisions. Two advocates steelman opposing positions while a moderator identifies risks and synthesizes a binding consensus. Use when choosing between alternatives, evaluating tradeoffs, or making high-stakes decisions.
Also in 3 projects that use this
GitHubSkillrefactor
Surgical code refactoring to improve maintainability without changing behavior. Covers extracting functions, renaming variables, breaking down god functions, improving type safety, eliminating code smells, and applying design patterns. Less drastic than repo-rebuilder; use for gradual improvements.
Also in 3 projects that use this
genomewalkerSkilllearn
Learn from web sources, generate SKILL.md, and store key patterns in soul memory. Trigger keywords: learn, skill-gen, web-learn, documentation, tutorial.
Also in 3 projects that use this
AWSSkillship
Finalize dev work on an issue branch — update docs, push, and open a PR.
Also in 3 projects that use this
NVIDIASkillresearch
Before designing a feature, research how comparable libraries solve the problem, check best practices, known pitfalls, and upstream changes. Use when starting a new feature, investigating an unfamiliar area, or the user asks to research something.
Also in 3 projects that use this
Other versions27 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 27
- Use-Tusk/drift-node-sdk★ 173same name
- danpeg/bug-hunt★ 144same name
- EthanReedLabs/sulde★ 99same name
- griffinhilly/claude-code-synthesis★ 67same name
- chrisallenlane/claude-swe-workflows★ 21same name
- jedijashwa/pullmark★ 13same name
- blamechris/chroxy★ 8same name
- yeaight7/agent-powerups★ 6same name
- jocarrd/crux-agents★ 4same name
- coderPerseus/skills★ 2same name
17 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository4 other files it gives its agents.
- appstore-preflightSkill
- feature-showcaseSkill
- task-lifecycleSkill
- tech-designSkill
The file
We split this skill into the rules it gives an agent
10 rules. 0 are common, 1 is distinctive, and 9 are very specific to this project.
0
Common
Most of the 23 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 13
No selection = every scenario.
- Very specific: line 40
Install: run sh <this skill's directory>/install.sh yourself in a terminal (auto mode refuses to register MCP servers or write …
- Very specific: line 41
Permissions outside auto mode: Add allow rules (in ~/.claude/settings.json) for the verifier's otp command, Bash(sh …
- Very specific: line 46
Staging only: Never point a run at production or any host not listed in staging-origins.txt.
- Very specific: line 47
Synthetic data only: Only the test mailbox's plus-addresses, the scenario's synthetic details and the fixtures in scenarios/fixtures/.
- Very specific: line 48
Never print secrets: Don't cat or Read ~/.config/bug-hunt/.env, any state file under ~/.cache/bug-hunt/, or cookies.
- Very specific: line 50
Only the bug-hunt browser: Use mcp__bug-hunt-browser__* tools, never the everyday Playwright or Chrome MCP.
- Very specific: line 63
Read the selected scenario files.
- Distinctive: line 72
Check the landed URL:
- Very specific: line 101
Write the verifier's reply, unchanged, to <CACHE>/<RUN>/reply.txt, then $BH findings <RUN> <id> <mode> < <CACHE>/<RUN>/reply.txt and rm …
“Common” is measured: kept by at least 6 in 10 of the 23 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Bug Hunt
An on-demand sweep of your web app on staging. For each scenario in scenarios/*.md you (the orchestrator) prepare a fresh browser session, dispatch the restricted bug-hunt-verifier sub-agent to pursue the scenario's goal like a real user (happy path and/or chaotic-user fuzz), then check its evidence and write a triage-ready report with screenshots: report.md on disk and the same report as a private claude.ai Artifact page. The user triages the report. Nothing is filed to a tracker.
$BH below means sh ~/.claude/skills/bug-hunt/tooling/bin/bug-hunt. Shell variables don't persist between calls, so write the full command and the literal run id (<RUN>) every time.
Usage: /bug-hunt [scenario-ids|area] [--mode happy|fuzz|both]
- No selection = every scenario. Ids are filenames without
.md, comma or space separated. An area is one of the distinctarea:values in thescenarios/*.mdfront-matter. An unknown id or area → stop and list the valid ones (ls ~/.claude/skills/bug-hunt/scenarios/*.md). --modedefaults toboth. A scenario runs only the modes listed in its ownmodes:.
Setup (once per machine, done by the user)
- Staging identities.
- A mailbox with plus-addressing, 2-step verification and an IMAP app password (a Google Workspace or Gmail mailbox works). Call its address
QA_MAILBOX_BASE. The tool only reads messages with the sign-in-code subject (OTP_SUBJECT) sent to the exact test address. - In your app, create a test account as
<QA_MAILBOX_BASE>+qa-member(for exampleqa+qa-member@example.test) and finish its registration by hand.session membersigns it in with an email + one-time code and checks thatSIGNED_IN_PATHopens; it does not register accounts. This is the finished member everyfinished-memberscenario uses. - Prepare a batch of unregistered addresses
<QA_MAILBOX_BASE>+qa-signup-NNN(001,002, …) that your staging accepts (invite them first if your app requires it), list them one per line in~/.config/bug-hunt/signup-pool.txt, and leave them unregistered. Each sign-up run burns one.
- A mailbox with plus-addressing, 2-step verification and an IMAP app password (a Google Workspace or Gmail mailbox works). Call its address
- Config folder. From this skill's directory:
mkdir -p ~/.config/bug-hunt && cp -R config.example/. ~/.config/bug-hunt/ && mv ~/.config/bug-hunt/env.example ~/.config/bug-hunt/.env && chmod 600 ~/.config/bug-hunt/.env, then edit both files.~/.config/bug-hunt/staging-origins.txt: one exact origin per line (https://staging.example.test; scheme + host[:port], no path or trailing slash).#comments and blank lines are ignored. List only hosts that never serve production data. Comparison is exact string equality, so there is no pattern to widen.http://,localhost, IP literals, paths and trailing slashes are rejected. It fails closed: if the file is missing, empty or unreadable, or any one line is invalid, the tooling and the verifier's guard hook refuse every origin (they never fall back to allowing). What is checked, exactly: the URLs the tooling opens itself (sign-in andSIGNED_IN_PATH) and the URLs the verifier types intobrowser_navigateorbrowser_tabs. Links it clicks, server redirects, form posts and requests the page makes on its own are not checked and can reach any origin. So list only a staging that doesn't link or redirect into production: no links to a production marketing site or app ("open the app" buttons), and no production sign-in provider.~/.config/bug-hunt/.env(mode 600):APP_WEB_STAGING_URL=https://<one of the origins listed above> IMAP_HOST=imap.gmail.com IMAP_PORT=993 IMAP_USER=<mailbox> IMAP_APP_PASSWORD=<app password> QA_MAILBOX_BASE=<mailbox> RUNS_DIR=~/bug-hunt/runs OTP_SUBJECT=<exact subject line of your sign-in-code email> SIGNED_IN_PATH=<a page that redirects to login when signed out>SIGNED_IN_PATHis required and has no default, because a public/would pass while signed out. Optional, with defaults:LOGIN_PATH=/login,EMAIL_LABEL=Email address,SUBMIT_LABEL=Continue,CODE_LABEL=Code(if it contains{n}the code goes into six boxes named with{n}=1..6, e.g.Digit {n}),RATE_LIMITED_TEXT(the text your app shows when it throttles code requests; empty = no rate-limit retry),OTP_BUDGET_PER_HOUR=8,OTP_BUDGET_PER_EMAIL=3(keep these below your app's own send limits).config.example/env.examplelists every key.QA_MAILBOX_BASEhas no+tag.RUNS_DIRmust be a gitignored folder;new-runrefuses one inside a git work tree that isn't ignored.new-runalso refuses if a run with the same minute's id already exists (wait a minute), and deletes session caches left in~/.cache/bug-hunt/<old run id>/by runs that never reached cleanup.APP_WEB_STAGING_URLmust be listed instaging-origins.txt; anything else, prod included, is refused. There is deliberately no--base-urlargument: the origin is fixed by these files plusBUG_HUNT_ALLOWED_ORIGIN.
~/.config/bug-hunt/signup-pool.txt: unregistered addresses your staging accepts, one per line; blank lines and lines starting with#are ignored.session reserve-signuptakes the first address, removes it from the pool and appends it toused.txt, whatever the outcome.- Install: run
sh <this skill's directory>/install.shyourself in a terminal (auto mode refuses to register MCP servers or write~/.claude/agents/). It links the skill and the agent, installs the tooling, creates~/.cache/bug-hunt/{active,mcp-out}and registers thebug-hunt-browserMCP (--isolated --headless --storage-state ~/.cache/bug-hunt/active/state.json --output-dir ~/.cache/bug-hunt/mcp-out). - Permissions outside auto mode. Add allow rules (in
~/.claude/settings.json) for the verifier's otp command,Bash(sh $HOME/.claude/skills/bug-hunt/tooling/bin/bug-hunt otp:*), and for the orchestrator's$BHcalls,Bash(sh ~/.claude/skills/bug-hunt/tooling/bin/bug-hunt:*); otherwise every call prompts. - Start Claude Code with the allowed origin exported (the verifier's guard hook reads it, and it must be one of the origins in
staging-origins.txt; any other value makes the hook refuse every typed navigation):BUG_HUNT_ALLOWED_ORIGIN=<one of the listed origins> claude. The origin has no trailing slash or path.BUG_HUNT_SELF_TEST=1is only for a self-test: run a local build of your app with a few bugs you planted on purpose, point the hunt at it and check the report finds them. The variable does nothing else than unlock localhost as a target: thenAPP_WEB_STAGING_URLandBUG_HUNT_ALLOWED_ORIGINmay behttp://localhost[:port]orhttp://127.0.0.1[:port]. Never set it otherwise.
Rules
- Staging only. Never point a run at production or any host not listed in
staging-origins.txt. The one exception is the self-test: withBUG_HUNT_SELF_TEST=1,http://localhost[:port]orhttp://127.0.0.1[:port], and nothing else. - Synthetic data only. Only the test mailbox's plus-addresses, the scenario's synthetic details and the fixtures in
scenarios/fixtures/. - Never print secrets. Don't
cator Read~/.config/bug-hunt/.env, any state file under~/.cache/bug-hunt/, or cookies. The one exception is step 1'sgrepof theAPP_WEB_STAGING_URL=andLOGIN_PATH=lines. - Never give the verifier a path to a secret, a run id, or anything under
~/.config, or under~/.cacheother than the uploads folder<FIXTURES>. Its prompt holds only what's listed in step 2b. - Only the bug-hunt browser. Use
mcp__bug-hunt-browser__*tools, never the everyday Playwright or Chrome MCP. Never load any other session file into it, in particular a saved login of a real account. The only member is the onesession membersigns in. - Never file tickets. Report to the user only.
- The report Artifact is private and published only after
scanis clean. Publish it from your session scratchpad (never from a repo folder), don't share it, and don't publish anything else from the run.
Procedure
Follow it literally.
- Start.
- Load the browser tools you need in one go: ToolSearch
select:mcp__bug-hunt-browser__browser_close,mcp__bug-hunt-browser__browser_navigate,mcp__bug-hunt-browser__browser_snapshot,mcp__bug-hunt-browser__browser_console_messages,mcp__bug-hunt-browser__browser_network_requests. If they don't exist → stop:install.shhasn't been run, or Claude Code wasn't restarted. - Check the origin:
printenv BUG_HUNT_ALLOWED_ORIGIN,printenv BUG_HUNT_SELF_TESTandgrep -E '^(APP_WEB_STAGING_URL|LOGIN_PATH)=' ~/.config/bug-hunt/.env(noLOGIN_PATHline means the default/login). Continue only if the variable is exactly the origin (scheme + host[:port], no trailing slash) of the configured URL and that origin is listed in~/.config/bug-hunt/staging-origins.txt(the one other config file you may read), or, only whenBUG_HUNT_SELF_TESTis exactly1,http://localhost[:port]orhttp://127.0.0.1[:port](the tooling and the guard allow the same; no other host, ever). Otherwise → stop and tell the user to restart Claude Code as in Setup step 6. Below,<BASE>is that origin. $BH validate, then$BH new-run(prints<RUN>, e.g.2026-10-10-0930; a! N OTP codes sent in the last hourline on stderr is only a warning;setup-failed: OTP budget …means the hourly budget (default 8) was reached → stop and tell the user to wait), then$BH session member <RUN>(signs the member in once for the whole run; prints the state path, which you don't need). Any failure → stop with the printed cause (fromsession memberonwards, run the end-of-run cleanup first).- Work out absolute paths (Write and the verifier need them, not
~):printf '%s\n' "$HOME/.cache/bug-hunt"→<CACHE>; the browser output folder is<CACHE>/mcp-out; the uploads folder<FIXTURES>is<CACHE>/mcp-out/bug-hunt/scenarios/fixtures. The browser MCP only uploads files from inside its output folder, and the verifier's guard only allows paths containing/bug-hunt/scenarios/fixtures/; this copy satisfies both (step 2a.0 fills it). - Read the selected scenario files. From each, take
id,persona,start,modesandbudget.max_turnsfrom the front-matter, and the body (everything after the closing---).
- Load the browser tools you need in one go: ToolSearch
For each selected scenario, in filename order, except that scenarios that sign out or burn a pool address (a
fresh-signuprun) run last; for each of its modes, happy before fuzz:a. Setup. 0. Reset the browser output folder and stage the upload fixtures in it:
find <CACHE>/mcp-out -mindepth 1 -deletethenmkdir -p <FIXTURES> && cp ~/.claude/skills/bug-hunt/scenarios/fixtures/* <FIXTURES>/.$BH session activate <RUN> member(personafinished-member) or$BH session activate <RUN> empty(personafresh-signup).browser_close. If it doesn't return (it sometimes hangs and gets backgrounded after ~120 s), carry on: the check in step 4 is what proves the new context. Stop the backgrounded call if the harness offers that. Remember that it timed out: after step c.3, addbrowser_close timed out: context may be reused from the previous scenarioto the end of that findings file'snotes(Edit, thenjq empty). The run still proceeds.browser_navigateto<BASE><start>.- Check the landed URL:
finished-member: the path is not the login page (LOGIN_PATH) and not an onboarding or sign-up page. If it is, run$BH session member <RUN>once, then repeat 1–4. If that command fails or the path is still a sign-in page, run$BH findings <RUN> <id> <mode> --setup-failed "<cause>"and go to the next scenario run.fresh-signup: the page is signed out (the sign-in screen with its email box, not a signed-in page). If not, repeat 1–4 once, then setup-failed as above.
fresh-signuponly, after the check passes:$BH session reserve-signup <RUN>prints<ADDR>. On failure (pool empty) → setup-failed with the printed cause.
OTP budget. Apps usually limit code sends per address and per IP (set
OTP_BUDGET_PER_HOUR/OTP_BUDGET_PER_EMAILbelow yours).session memberandsession reserve-signuplog each code they cause to~/.cache/bug-hunt/otp-sends.log(with a short hash of the address, never the address), andnew-run,session memberandsession reserve-signupall refuse atOTP_BUDGET_PER_HOURin the last hour;session memberalso refuses onceOTP_BUDGET_PER_EMAILcodes went to the member within 15 minutes (so a mid-sweep re-sign-in can't trip the app's limit). The verifier's own in-scenario "Resend code" clicks count against the app's limit too, but are not in that log. Ifsession memberfails withsetup-failed: rate-limited — wait and retry, record it as setup-failed like any other cause. If a sign-up run hit the app's "too many codes" message (orotptimed out right after it), the address was never used: tell the user to move it from~/.config/bug-hunt/used.txtback to the top ofsignup-pool.txt.After a setup-failed, empty the browser output folder (
find <CACHE>/mcp-out -mindepth 1 -delete) and skip b and c. Three setup failures in a row → stop the sweep (staging or the mailbox is down): skip the remaining scenarios, do step 3, and tell the user. A setup that succeeds resets the count.b. Verify. Dispatch the Agent tool with
subagent_type: "bug-hunt-verifier"and this prompt, filled in:Scenario: <id> Mode: <happy|fuzz> (happy: ignore the "Fuzz twists" section) Base URL: <BASE> Start path: <start> Turn budget: about <max_turns> tool calls Uploads folder: <FIXTURES>/ Sign-up address: <ADDR> ← fresh-signup only; omit the line otherwise <the scenario body, verbatim>Nothing else: no run id, no other path under
~/.configor~/.cache, no findings from earlier scenarios. If the agent type doesn't exist → stop (install not done). Keep its reply text exactly as returned.c. Check.
- Call
browser_console_messageswithlevel: "error"andall: true(every error since the context opened; the default is only since the last navigation), andbrowser_network_requestswithstatic: false. The network list covers only the current tab, since the last explicit navigation, so it is partial by nature. Write each raw output, unchanged, to<CACHE>/<RUN>/console.txtand<CACHE>/<RUN>/network.txt, then:jq -n --rawfile console <CACHE>/<RUN>/console.txt --rawfile network <CACHE>/<RUN>/network.txt '{console: $console, network: $network}' | $BH collect <RUN> <id> <mode>It redacts and keeps only errors and failed requests. It prints<RUNS_DIR>/<RUN>/network/<id>-<mode>.json; the run folder<RUNDIR>is the folder abovenetwork/. Thenrm <CACHE>/<RUN>/console.txt <CACHE>/<RUN>/network.txt. - Move this run's screenshots into the run, then empty the browser output folder (it also holds page snapshots and console logs with signed-in content). The verifier's screenshots are auto-named
page-<timestamp>.pngorelement-<timestamp>.pngat the top of the folder. Files the verifier downloaded land there too under their own names; they are not moved and are wiped with the folder. The staged fixtures sit in a subfolder and aren't moved either:find <CACHE>/mcp-out -maxdepth 1 -type f \( -name 'page-*.png' -o -name 'element-*.png' \) -exec mv {} <RUNDIR>/screens/ \;thenfind <CACHE>/mcp-out -mindepth 1 -delete. - Write the verifier's reply, unchanged, to
<CACHE>/<RUN>/reply.txt, then$BH findings <RUN> <id> <mode> < <CACHE>/<RUN>/reply.txtandrm <CACHE>/<RUN>/reply.txt. It writes<RUNDIR>/findings/<id>-<mode>.jsonand drops findings whose screenshots aren't on disk. A reply with no valid JSON is recorded asincomplete, not an error. - Review the evidence. Read
<RUNDIR>/findings/<id>-<mode>.json. For each finding, open every cited screenshot (Read<RUNDIR>/screens/<name>). Drop or downgrade a finding only on screenshot grounds. If a cited screenshot contradicts the claim, Edit the JSON: remove the finding and add"<title> — dropped by orchestrator: <reason>"todropped. If it shows a lesser problem, lowerseverityand say so in the finding'sactual. A cited evidence line missing from<RUNDIR>/network/<id>-<mode>.jsonis never grounds to drop or downgrade. Anetwork:line: keep the finding as it is, because the network list is partial (current tab only, since the last navigation). Aconsole:line: the console list from step 1 (all: true) is complete for this context, so a cited error that isn't in it marks the finding unconfirmed: keep it, and append(unconfirmed: the cited console error is not in the collected console list)to itsactual. Thenjq empty <RUNDIR>/findings/<id>-<mode>.jsonto confirm the file is still valid JSON. Your edits are redacted again (and the file rewritten) by$BH report, soscanwon't delete the report over them; still keep secrets and member details out of your notes. Don't add findings of your own; console errors and failed requests already get their own section in the report.
- Finish.
$BH report <RUN>prints two paths:report.mdandreport.html. Both are rendered from the same findings; the HTML adds a run diagram, severity bars, finding cards with their screenshots and a scenario status grid.$BH scan <RUN>. On failure, stop here and don't publish anything (Stop conditions).- The end-of-run cleanup:
$BH cleanup <RUN>(deletes the run's session state and resets the browser to signed out),find <CACHE>/mcp-out -mindepth 1 -deleteandbrowser_close. - Publish the report Artifact.
$BH artifact <RUN> <SCRATCH>, where<SCRATCH>is your session scratchpad directory (absolute, from your system prompt). It copiesreport.htmland only the screenshots it links into<SCRATCH>/bug-hunt-<RUN>/and prints one JSON line{"file_path", "root", "files"}. Call the Artifact tool once with exactly those three values,icon: "bug"and a one-sentencedescription(run id, scenario count, headline count such as "0 blocker or major, 11 minor"). Don't edit the staged HTML. A! N screenshots left outwarning means the 250-file publish limit was hit: say so. No scratchpad, or the Artifact tool unavailable → skip this step and say so;report.mdis still the record. - Show the user the Artifact link, the
report.mdpath and its severity table, plus any scenario that wassetup-failedorincomplete. The page is private until the user shares it from its Share menu.
Stop conditions
Config missing or invalid · staging-origins.txt missing, empty or invalid · BUG_HUNT_ALLOWED_ORIGIN unset or not the configured staging origin (or localhost under BUG_HUNT_SELF_TEST=1) · browser tools or the verifier agent missing · validate, new-run or session member failing in step 1 · three setup failures in a row · scan failure (it deletes the offending files; tell the user which ones it printed).
Report the step, the cause and the fix, then end. Once session member has run, always run the end-of-run cleanup before ending, whatever the reason: session state must not outlive the run. Don't work around a failure, and never deploy to staging.
Writing scenarios
Write your own scenarios in scenarios/ — see example-sign-out.md for the format (front-matter with id, area, persona, start, modes, budget, then ## Goal, ## Success criteria, ## Fuzz twists, ## Out of bounds). id must match the filename; area is any kebab-case word you choose to group scenarios. Personas: finished-member (starts signed in as the test member) and fresh-signup (starts signed out; the verifier drives your sign-up itself with a pool address).
Limitations
- Sign-in supports email + one-time code only. A password or SSO app needs
tooling/src/session.tsadapted. - Redaction terms are edited in code: add your app's sensitive field names to
TERMSintooling/src/terms.ts; scan and redaction share that one list.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
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.

