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.0MITIn 1 marketplace
Before big work in a repository, make the agent find the existing pattern for each new piece and record reuse, replace or new; hooks hold writes, commits and PRs until that receipt exists.
Claude loads one when your task matches it, or you run it by name.
2 cautions to review before installing
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Before an agent does big work in a repository, it has to look for the repository's existing way of doing each thing it is about to add, decide reuse, replace, or new-with-reason for each, and write that down. Two hooks hold the work until it has, on Claude Code and on OMP.
The problem it answers: a design review that asks "where did this introduce a new pattern when an existing one served?" keeps coming back with a long list. Agents start writing before they have read what is already there. This plugin makes the reading mandatory and the result inspectable.
skills/pattern-check/SKILL.md) is the method: list every new piece, then for
each one grep the repository for its nouns and verbs, list what is registered beside it in the
same router, registry or directory, read the hits, and read the conventions files if present.
Each piece ends as reuse, replace, or new with a reason, a better design cell (none: <what was weighed>,
or the design that beats the pattern-fit one with its axis and its cost), and five columns
saying how it fails, filled from its error paths.scripts/pattern-check.mjs) opens the receipt, records the table, and shows
status. The receipt is Markdown at <repo>/.pattern-check/<session>.md, with a copy in the
plugin's state directory.git commit, gh pr create, >/>> redirects, sed -i and tee into the repository,
until the receipt exists. The deny text names the exact command to run. Under N files it
never fires.sessions/<key>.json (the files touched) and stop/<key> (the refusal record). The receipt
copy and current/<repo> stay: one is evidence, the other is overwritten by the next session.
Removing twice is a no-op; a session that never ends (a crash) keeps its files.All three hooks fail open on the plugin's own faults. Empty or malformed stdin, stdin not closed within
2 s, a state file that does not parse, a config that does not, an unwritable state directory, a
thrown error: the hook exits 0, the call goes through, a one-line warning is shown (Claude Code's
systemMessage), and one line naming the hook file and the reason is appended to
<state dir>/errors.log. When errors.log itself cannot be written the warning says so. Only the
agent's omission, no receipt, denies. Rerunning a hook on the same input is safe; hooks never
retry; each has a 5 s timeout in hooks.json.
Claude Code:
/plugin marketplace add thewolff/jo-wolff-plugins
/plugin install pattern-check@jo-wolff-plugins
From a shell: claude plugin marketplace add thewolff/jo-wolff-plugins then
claude plugin install pattern-check@jo-wolff-plugins.
Node 18 or later is needed on PATH; the hooks and the script are plain Node ESM with no
dependencies.
OMP, from a shell:
omp plugin marketplace add thewolff/jo-wolff-plugins
omp plugin install pattern-check@jo-wolff-plugins
Inside a running OMP session use /marketplace add and /marketplace install with the same
arguments.
OMP does not run hooks/hooks.json. The install registers omp/pattern-check-omp.ts instead,
which feeds OMP's events to the same two hook functions:
tool_call for edit (including a hashline patch naming several files), write and bash
goes to the PreToolUse hook; a deny becomes a blocked tool call with the same text.session_stop goes to the Stop hook; a refusal continues the turn with the same text, once per
turn.The session key is OMP's session id, so the counter, the receipt and the refusal record are the
files a Claude Code hook would use for that id, and the config and off switches are the same
files. The adapter fails open: a throw inside it lets the call or the stop through and shows one
warning. Tools that write without naming the file in their input (ast_edit, eval) are not
counted; the commit and PR blocks remain the backstop. Loading routes, the event table and the
reversal are in omp/REGISTRATION.md.
At the start of big work, the agent runs:
node "<plugin root>/scripts/pattern-check.mjs" open "<what you are about to build>"
does the search the skill describes, and records the table:
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 pattern-checkPlugins from other owners that cover similar ground