hulk-bug-handoff
Skill2 starsChanged 4 months agoMITView on GitHub
Use when you find a bug outside your own project or change (a failing test, wrong output or broken tool you did not cause), when you are tempted to call a problem pre-existing or unrelated, when a bugfixN.diff file appears in your project root, or when a commit is refused because Hulk delivered bug fixes.
In this repository34 other files it gives its agents.
- capture-collaboration-evidenceSkill
- clarify-before-buildingSkill
- cross-platform-project-build-archSkill
- deep-code-reviewSkill
- dispatchSkill
- erect-agent-stackSkill
- fix-zig-deps-hashSkill
- gather-project-intentionsSkill
- handoffSkill
- i18nSkill
- llvm-guided-optimizationSkill
- mechatron-ciSkill
- memoriesSkill
- mficSkill
- multi-implementation-contractsSkill
- no-ai-slopSkill
- onboardSkill
- performance-profilingSkill
- planning-workSkill
- scaffold-zig-projectSkill
- ship-itSkill
- test-isolationSkill
- universal-app-frontendSkill
- upgrading-zig-16-to-17Skill
- walking-decisionsSkill
- writing-bendSkill
- writing-elmSkill
- writing-leanSkill
- writing-nixSkill
- writing-rocSkill
- writing-rustSkill
- writing-webassemblySkill
- writing-zigSkill
- zig-microbenchmarksSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 67
If you disagree with a fix, or applied it with deliberate changes, tell Hulk why (hulk-smash or a note to ~/Code/hulk/inbox).
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Handing bugs to Hulk
Review after: 2027-05-28. Hulk's delivery and gate were new on 2026-11-28; past
that date, check this against ~/Code/hulk/INTENT.md and the dotfiles' git-pending-fix-gate.
Hulk is the fleet's dedicated bug-fixing agent (~/Code/hulk). It exists so that no bug
gets waved off as "pre-existing", "unrelated" or "not mine". There is no such thing as a
bug that is nobody's problem.
Fix it or hand it off; never walk past it
- The bug is in your project, or your change caused it: fix it yourself, test first.
- Otherwise: pipe it to
hulk-smashand carry on with your task. That takes a minute and is the whole job. Do not leave it as a remark in your report.
A report looks like this (an illustration, not a real bug):
hulk-smash <<'EOF'
notify-session exits 0 but types nothing when the note path contains a space
repro: notify-session t5 --wake "/tmp/a b/inbox/n.md" -> {"status":"submitted"}
expected: the pointer in t5's prompt; actual: nothing arrives (hc read t5 shows an empty composer)
seen in: llmsend 3f2a1c9, while testing the mail watcher
EOFThe first line is the title. Give Hulk what it needs to reproduce without asking:
the exact command, the actual output (paste it), what you expected, and the file and line
or commit you saw it at. hulk-smash adds your project, branch, commit and host itself.
Options: --title, --priority high|urgent, --from NAME, --no-wake. If the command is
not on your PATH yet (your shell started before Hulk existed), use
~/Code/hulk/bin/hulk-smash. On a machine where Hulk is not installed, run it on Hulk's
host over ssh and name your project, since it cannot infer it there:
ssh HULK_HOST '~/Code/hulk/bin/hulk-smash --from PROJECT' <<'EOF' .... The fleet brief
names the host.
When Hulk sends a fix back
Hulk fixes the bug in its own worktree and delivers it one of two ways:
- Direct: your project had no live agent, a clean tree and an unmoved branch, so Hulk fast-forwarded it. You will just see the commit.
- Pending: a note
HULK FIX bugfixN: ...arrives in your inbox,bugfixN.diffappears in your project root, and the fix is recorded asrefs/hulk/pending/BRANCH/N.
To take a pending fix, run the apply command printed in the note (the gate's refusal prints it too), then the project's full suite:
git cherry-pick refs/hulk/pending/BRANCH/N # a fix of one commit
git cherry-pick BASE..refs/hulk/pending/BRANCH/N # a fix of several commits; the note gives BASE
# or, either way: git am -3 bugfixN.diff
./testCherry-picking the ref alone applies only the last commit of a fix of several commits,
so use the command as printed. Until the fix is in, the commit gate refuses commits on
that branch. Deleting bugfixN.diff does not unblock it: git checks whether the fix is in
the code (the fix commit, a patch-identical commit, or the commit you are making). Once
git sees it, the gate retires the ref and moves bugfixN.diff to the Trash itself.
If you disagree with a fix, or applied it with deliberate changes, tell Hulk why
(hulk-smash or a note to ~/Code/hulk/inbox). Hulk closes the fix with
hulk-audit --close, which retires the ref. Until then the gate refuses every commit on
that branch; ALLOW_PENDING_BUGFIX='your reason' lets one commit through. Never delete
Hulk's ref to get past the gate: Hulk audits every fix, re-files dropped ones and reports
them to Peter.
Common mistakes
| Mistake | Instead |
| "This failure is pre-existing, unrelated to my change." | Fix it, or hulk-smash it, then continue. |
| A bug report with no repro ("tests are flaky somewhere") | The command, its output, expected versus actual. |
| Handing Hulk a bug in your own current change | Fix your own change; Hulk bounces those back. |
Deleting bugfixN.diff to unblock a commit | Apply the fix; the gate checks git, not the file. |
git cherry-pick refs/hulk/pending/... for a fix of several commits | Run the apply command the note prints (BASE..ref). |
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.

