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 jasonm4130v0.6.2MITIn 1 marketplace
Denies git commits that change code without updating covering docs, and Agent or Workflow calls without a model. Its hooks run on every commit and tool call, and GATES_DISABLE in settings.json turns any gate off.
Trending plugins
7-day copy clicks
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
git-hooks, commit-guard, docs-sync, docs-drift, model-selection, config-validation, 1password-ssh, pretooluse ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Executables (bin/) — files in this plugin's bin/ directory are added to the Bash tool's PATH while the plugin is enabled.
Three stateless PreToolUse gates, a PostToolUse config guard and two
never-blocking nudges, in one plugin.
Each intercepts a specific, high-signal action at the moment it is about to
happen, and each carries an ack marker so a deliberate override costs one token in
history rather than a disabled hook.
| Gate | Fires on | Decision | Ack marker |
|---|---|---|---|
| docs-sync | git commit that changes code without staging its covering docs | deny | docs-sync:ack |
| workflow-model | a Workflow script that fans out with no per-agent model: | deny | model-guard:ack |
| agent-model | an Agent dispatch that omits model | deny | set model |
| json-config-guard | a write that leaves settings.json / .mcp.json unparseable | reports after the fact (exit 2) | fix the syntax |
| signing-nudge | a Bash failure caused by a locked 1Password SSH agent (git signing, SSH push) | adds context telling Claude to ask you to unlock instead of retrying | none needed |
| consolidation trigger | a repo that has moved far since its docs were last checked against each other | in-session nudge, never blocks | /docs-consolidate --defer |
They share a plugin because they share a design: no flag files, no session state,
fail open on anything they cannot decide, and route the decision to whoever can
actually resolve it — deny when Claude can fix the thing itself, ask when only
the human can see what the hook cannot.
/plugin install gates@jasonm4130-claude-skills
GATES_DISABLE names the gates that must not run, comma separated. Put it in the
env block of a settings.json. Claude Code applies that block to the session,
and hook subprocesses inherit it.
// ~/.claude/settings.json — every session
// <repo>/.claude/settings.json — this project only
{
"env": { "GATES_DISABLE": "docs-sync,agent-model" }
}
| Name | Turns off |
|---|---|
docs-sync | the docs-sync gate |
workflow-model | the Workflow model gate |
agent-model | the Agent model gate |
json-config-guard | the JSON config guard |
docs-consolidate | the consolidation trigger, both of its hooks |
signing-nudge | the 1Password signing nudge |
Matching is exact, so DOCS-SYNC and docs_sync disable nothing. An
unrecognised name is ignored in silence, because a guard that shouts about its own
configuration is worse than one that misses. If a gate still fires, check the
spelling against this table first.
There is no per-gate file to edit and no restart. A disabled gate exits 0 before it reads anything, so it costs one process start and nothing else.
A git commit that changes code without touching its covering docs is denied with
a reason, so the docs update — or an explicit "no doc impact" call — happens in the
same commit, not never.
Docs drift is a silent failure: code lands, README/CLAUDE.md go stale, and the gap is only discovered sessions later. Ecosystem research (2026-07) found that the designs which actually work block at a hard boundary, while passive nudges fail structurally: Stop-hook stdout is printed to the terminal but never injected into the model's context, and post-compaction "re-read the docs" reminders lose to the compaction summary's momentum. A PreToolUse gate on the commit command is the cheapest point where the change and its documentation are both still in working memory.
Two rules, checked on every git commit in any repo:
Plugins-monorepo rule — changes under
plugins/<name>/{scripts,hooks,agents,workflows}/ without a staged
plugins/<name>/README.md or plugins/<name>/CLAUDE.md for the same plugin.
Generic nearest-covering-doc rule — for any other changed code file, walk up from
its directory to the repo root; the nearest level holding a README.md, CLAUDE.md,
or AGENTS.md is that file's covering doc set. A doc at the repo root covers a
file only when it mentions it — by basename, stem, top-level directory, or chezmoi
target name (dot_zshenv → .zshenv) — because the root README is every file's
nearest doc and otherwise gated every commit (256 denials in 33 sessions, mostly
acked reflexively). Nested docs cover their whole subtree as before. If none of the
covering docs are in the commit, the commit is denied — this is the general failure path where the system
changes, the docs don't, and a future agent session reads the stale docs as the source
of truth. A repo with no such docs anywhere above the changed file has nothing to
drift and stays silent.
What the commit "includes" is the union of already-staged files, paths named in
git add segments of the same compound command, and modified tracked files when
committing with -a. Pathspecs passed directly to git commit <paths> are not parsed
(rare in agent usage).
7-day copy clicks
Plugins from other owners that cover similar ground
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 jasonm4130/claude-skills --plugin gates