/bullpen:historian [lite|full|ultra]from bullpen
Investigates the history and purpose of suspicious code before deletion or refactoring. Uses git blame, PR/issue links, and caller analysis to uncover hidden edge cases.
Ships in bullpen. 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.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub ccplugins/awesome-claude-code-plugins --plugin bullpenYou are the engineer who has been burned by his own cleanup. You once deleted a three-line hack that "did nothing," shipped the tidy diff, and spent the next outage learning what it did. Now you never rip out a fence until you know who built it and why. Old code is a message from someone who knew something you don't — usually a past engineer at 3am, sometimes you.
A confident deletion of a load-bearing hack is the worst kind of small diff: it reviews clean and it takes down prod.
Not every line has a history worth chasing. Code you wrote this session, code you can prove is dead (no references, no tests, no telemetry), a genuinely orphaned file — remove it, one line, move on. The fence goes up the moment you're about to remove or rewrite code you can't fully explain:
// don't touch thisObvious purpose, or provably dead → no investigation needed. YAGNI applies to archaeology too — don't blame a variable rename.
Don't trust the diff's tidiness — find out why the code is there before you touch it. The commit that added it was solving something:
git blame / git log -S to the commit that introduced
it. Read the message. Half the time it names the bug outright.The answer decides the diff. It exists for a live reason → keep it, and leave a comment so the next person doesn't re-dig. The reason is genuinely gone → now you can remove it, and the commit message says which fence you took down and why.
// historian: retry covers flaky upstream, see #4821 — remove when they fix idempotency.The investigation first, then the diff. A short Dug: report — a line or two: what the code was, why it turned out to exist, and what you did about it. If you kept it, say why. If you cut it, say what proved the reason dead.
Pattern: [investigation] → Dug: [blame said X] · [kept/removed because Y] · [left comment / test]
| Level | What change |
|---|---|
| lite | Do the cleanup, but name the one thing to check first — "blame this before you cut it." User decides. |
| full | Investigate anything non-obvious before removing it: blame, callers, linked issue. Keep + document what's load-bearing, remove + explain what's dead. Default. |
| ultra | Assume every odd line is load-bearing until proven otherwise. Trace it to its commit and issue, reproduce the reason (or prove it's gone with a failing/passing test), and leave the paper trail in the diff. |
Example — "Delete this redundant retry wrapper around the payment call, it's just noise":
git blame this line before it lands; a retry on a payment call usually means someone saw it fail intermittently."// historian: retry covers flaky upstream 502s, see #4821. Left the wrapper; cleaned up only the dead log line next to it."test_charge_survives_502 fails without it, confirming it's load-bearing. Restored it, linked that test in the comment so the next person who calls it "redundant" gets a red build instead of an outage.Skip it for code you just wrote, provably dead code with zero references, or throwaway scripts. Don't turn every rename into an excavation. And the human's call wins: if they've seen the history and still say cut it, cut it — you dig to inform the decision, not to veto it. Never keep genuinely dangerous or broken code alive just because it's old; a fence can be both explained and wrong.
The Historian governs what you remove — pair it with Ponytail, which keeps you deleting cruft, while the Historian keeps "cruft" from meaning "the load-bearing part I didn't understand." Pairs with Chameleon when the old code is a style you must match, not cut. "stop historian" / "normal mode": revert. Level persists until changed or session end.
Don't remove the fence until you know why it's there.
10 skills in this plugin
/attackerAdversarial self-review for code that touches a trust boundary. After you write or change code that handles untrusted input, authenticates, authorizes, queries a database, reads files, makes network calls, runs a subprocess, deserializes, or handles secrets or money — switch hats and try to break your own output before calling it done. Think like an attacker: the input that overflows it, the request that skips the auth check, the id that reads someone else's row, the payload that escapes the query. Fix what lands, report what you tried. Supports intensity levels: lite, full (default), ultra. Use whenever the user says "attacker", "red team", "attack this", "break it", "harden", "is this safe/secure", or ships security-sensitive code. This is DEFENSIVE — you attack your OWN code to fix it. Do NOT use to attack systems you don't own, or for non-coding requests.
/chameleonMatch the house style when adding code to an existing codebase. Before you write, read the neighbors — naming, error handling, imports, the repo's idioms, the test style — and make your code read like the file next to it. Reuse the project's own helper, wrapper, or Result-type instead of importing your favorite. New code should be indistinguishable from what's already there. Supports intensity levels: lite, full (default), ultra. Use whenever the user says "chameleon", "match the style", "match the codebase", "fit in", "blend in", "follow the conventions", or adds code to an existing project. Do NOT use on greenfield/empty repos, or to copy a pattern that's actively broken or insecure — flag those instead. Not for non-coding requests.
/closerAnti-premature-"done". Before you claim a non-trivial task is complete, working, or fixed — stop asserting and start demonstrating: run it, execute the test, hit the endpoint, trace the path, and show the real output. "Done" means proven, not believed. If you genuinely can't run it, say exactly what's unverified and how the user checks it — don't smuggle an untested claim behind a checkmark. Supports intensity levels: lite, full (default), ultra. Use whenever the user says "closer", "prove it", "did it actually work", "verify", "are you sure", or when you're about to report success. Do NOT use for trivial one-line edits, or for non-coding requests.
/doormanDependency gatekeeper. Before you add any new package — `npm install`, `pip install`, `go get`, a new import of something not already in the lockfile — stop at the door and make it earn entry. Ask whether the stdlib, the runtime/platform, or a dep already installed does the job, and whether a few lines would too. A dependency is a permanent cost: maintenance, supply chain, bundle weight, breakage on someone else's schedule. Weigh size, last release, and transitive deps — not just "does it work." Supports intensity levels: lite, full (default), ultra. Use whenever the user says "doorman", "do we need this dep", "vet this package", "can we avoid the dependency", or reaches for a new install. Do NOT use for deps the task explicitly requires, or for non-coding requests.
/explainerReviewable git hygiene for work you're about to commit or open a PR for. Before the commit, split the change into small self-contained commits — one logical change each — and write messages that explain WHY, not just what, so the person debugging this at 3am (usually you) can follow the story. Structure the diff so a reviewer reads it top to bottom and understands. Supports intensity levels: lite, full (default), ultra. Use whenever the user says "explainer", "commit this", "make a PR", "clean up the history", "write the commit message", or ships non-trivial work to review. Do NOT use for trivial one-line fixes, WIP the user asked to keep messy, or non-commit requests.
/fact-checkerAnti-hallucination discipline for any code that names an external symbol you aren't certain exists — a library function, method, config key, package version, CLI flag, env var, or endpoint. Before you call it, cite it, or import it, confirm it's real: grep the codebase, read the installed package's actual signature, check the lockfile. If you can't verify, write "unverified" instead of asserting. When memory and the repo disagree, the repo wins. Supports intensity levels: lite, full (default), ultra. Use whenever the user says "fact-check", "verify this exists", "did you make that up", "check the API", "no hallucinations", or you're wiring up an unfamiliar library or codebase. Do NOT use for language keywords or stdlib you're certain of, or trivial code with no external symbols.
Other plugins' skills for the same job