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 Travis-Gilbertv1.0.0In 1 marketplace
Enforce specification compliance via PreToolUse hooks. Checks every edit against the active spec document and blocks deviations before they land.
You run one by typing its /name in Claude Code.
2 cautions to review before installing
A hook runs when Claude writes or edits files
A command runs shell commands (! syntax) when you invoke it
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.
Enforce specification compliance during Claude Code sessions via hooks. Checks every edit against the active spec document and flags deviations before they land.
| Command | Description |
|---|---|
/spec-guard PATH [--protected files] | Activate spec enforcement for this session |
/spec-grind PATH [--verify CMD] [--max-iterations N] | Autonomous spec implementation loop |
/cancel-grind | Cancel an active grind loop |
A PreToolUse hook fires before every Edit/Write/MultiEdit. It checks whether the file being edited matches a protected path from the spec. If it does, a warning is emitted.
/spec-guard specs/collage-hero-design-spec.md --protected src/styles/global.css,src/components/CollageHero
Feed it a spec and a verification command. Claude iterates until every requirement is implemented and verified, then outputs a completion promise to exit the loop.
/spec-grind specs/paper-trail-spec.md --verify 'npm test' --max-iterations 25
The Stop hook prevents Claude from exiting until the spec is complete or max iterations are reached.
All state is session-local and stored in .claude/:
.claude/spec-guard.local.md -- active spec content.claude/spec-guard-protected.local.txt -- protected file paths.claude/spec-grind.local.md -- grind loop state (iteration, spec, verify command)These files are ephemeral. Delete them to deactivate.
The PreToolUse hook (check-spec.sh) currently operates in warn-only mode. To enable hard blocking, change exit 0 to exit 2 on the protected-path match in hooks/check-spec.sh.
npx claudepluginhub travis-gilbert/claude-marketplace --plugin spec-guardBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground