Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By thewolffv0.4.1MITIn 1 marketplace
Scaffold a new plugin for this repository that passes its test bar on day one. Also holds the shared libraries, templates and release-review agents the other plugins copy.
Claude hands work to one, or you mention it with @.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Start a new Claude Code plugin in this repository that meets the test bar on day one.
The repository's AGENTS.md test bar, as ledger gate check enforces it, asks six things of every plugin, kind-agnostic: it can't break the
session (every hook exits 0 inside its budget on any input, never a deny or block for its own
fault), its failures are visible (an errors.log line and a systemMessage, and the unavailable
path of every program it shells out to is tested against a real capture), its text says what
to do when it can't (every skill and agent has a "When this can't run" section; every deny text
names a command), its behaviour is proved (an evals/manifest.json declaring what each hook
can return and one evals/<x>.scenario.json per event × outcome, replayed by the nightly
canary), its state is declared and pruned (state in .claude-plugin/plugin.json, with a
prune command for anything kept for a number of days), and a release is written down (a
version bump has a CHANGELOG.md entry and a README release heading, and the repository
README has a row naming the plugin). ledger gate check, in the ledger plugin, enforces the six before a
push. This plugin makes meeting them the default rather than a retrofit.
/plugin marketplace add thewolff/jo-wolff-plugins
/plugin install plugin-kit@jo-wolff-plugins
/plugin-kit:new-plugin (skill new-plugin) runs the scaffolder:
node "${CLAUDE_PLUGIN_ROOT}/scripts/new-plugin.mjs" <name> --events PreToolUse,Stop --description "<one sentence>" [--judge]
run from inside the repository the plugin is for, which writes plugins/<name>/ under that
repository's git toplevel (--dest <plugins dir> names another destination; a cwd in no git
repository is refused naming --dest, so the kit's own checkout and the marketplace cache it is
installed from are never where a plugin lands):
| File | What it is |
|---|---|
lib/hook-runner.mjs | a copy of this plugin's lib/hook-runner.mjs: runHook(event, import.meta.url, { plugin, quiet }) reads stdin, parses it (empty is {}), runs the module's exported handle(input, { env }) on a worker thread, prints its JSON, exits 0 once stdout has taken the whole answer (an answer past one 64 KiB pipe buffer is drained, not cut short; the wait ends at the same deadline, and an undrained answer is one errors.log line). Stdin not JSON, a thrown error, or no answer in 4 s (inside the host's 5 s budget, so the host never kills the hook and loses the message; the one timer lives on the main thread, which does nothing but wait, so it fires whatever the handler is doing: a stdin the host holds open, a promise that never settles, a synchronous loop that never yields; at the deadline the thread is terminated and an answer that would have come later is never printed as a late block) → one line in ${XDG_STATE_HOME:-~/.local/state}/<plugin>/errors.log and { systemMessage: "<plugin> <event> failed open: <why>" } (not on SessionEnd, whose output the host discards). The handler's env carries HOOK_RUNNER_STARTED_AT_MS (when the runner started, before stdin) and HOOK_RUNNER_DEADLINE_MS, so a handler that budgets its own work counts from the runner's clock; a process group the handler registers (lib/judge.mjs does, through { kitReap } messages) is killed when the runner exits. A hook never exits 2. |
lib/judge.mjs | with --judge: a copy of this plugin's lib/judge.mjs, the shared judge dispatch (see "Shared judge" below); the kit's test/judge.test.mjs diffs every shipped copy against the kit's |
hooks/hooks.json | one entry per event, node "${CLAUDE_PLUGIN_ROOT}/hooks/<event>.mjs", timeout 5; tool events get a matcher |
hooks/<event>.mjs | one handler per event, handle(input, { env }) returning null (allow) until the rule is written; the header comment says what the runner does and what the handler owes. The handler runs on a worker thread (that is what makes the deadline hold), so it returns a plain JSON-able object or null and nothing else: never process.exit() (the thread ending is "ended without an answer", a logged fault), never its own stdout writes (only what the runner prints is the answer), a subprocess gets its cwd passed explicitly from input.cwd (the thread's process.cwd() is the runner's), and a child's environment goes on the spawn's env, not process.env |
test/hook-contract.test.mjs | per hook: empty stdin, malformed JSON, an unknown event, an unwritable state directory, no config → exit 0 inside 5 s, no deny/block/continue: false; malformed JSON → one errors.log line and a systemMessage |
test/fixtures/README.md | the rule that every captured <x>.txt has an <x>.unavailable.txt sibling, and how to capture one |
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub thewolff/jo-wolff-plugins --plugin plugin-kitPlugins from other owners that cover similar ground