agentleFS
pmarreckpmarreck/llm_skills/hulk-bug-handoff/SKILL.md

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.

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
  1. Very specific:

    If you disagree with a fix, or applied it with deliberate changes, tell Hulk why (hulk-smash or a note to ~/Code/hulk/inbox).

    line 67

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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-smash and 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
EOF

The 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.diff appears in your project root, and the fix is recorded as refs/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
./test

Cherry-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

MistakeInstead
"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 changeFix your own change; Hulk bounces those back.
Deleting bugfixN.diff to unblock a commitApply the fix; the gate checks git, not the file.
git cherry-pick refs/hulk/pending/... for a fix of several commitsRun the apply command the note prints (BASE..ref).

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.