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 cuzfrogv0.22.0MITIn 1 marketplace
Keeps Claude from editing readonly files or adding exports to modules marked no-new-exports, per MODULE.md descriptors. PreToolUse hooks check every Edit, MultiEdit and Write and reject violations with a reason.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
Executables (bin/) — files in this plugin's bin/ directory are added to the Bash tool's PATH while the plugin is enabled.
1 caution to review before installing
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.
Hooks that controls the entropy of the codebase by enforcing module boundaries, helping combat slops.
Supported agent harnesses:
Adding support for another agent (qwen-code, cursor, ...) means adding a bridge.
Module contracts as guardrails. Each directory can contain a descriptor file (default MODULE.md) that declares:
readonly — files cannot be editedno-new-exports — files where no new exports are allowed (body still editable)The extension intercepts agent write/edit operations and enforces these contracts. Violations are blocked with a reason.
The attempt to add 2 public helper functions is blocked, forcing the agent to re-think the design.

no-new-exports list?index.ts or mod.rs. A child module may import from a parent module's internal files (not recommended but allowed). (Only Typescript/JavaScript and Rust are supported)pi install npm:@cuzfrog/module-gates
Or load directly for a single session:
pi -e npm:@cuzfrog/module-gates
As a plugin, from this repository's marketplace (no login required — public repo):
/plugin marketplace add cuzfrog/module-gates
/plugin install module-gates@cuzfrog
On the first hook invocation the plugin installs its runtime dependencies into its data directory.
Or as plain hooks wired into a project (requires the package installed in the project):
npm install --save-dev @cuzfrog/module-gates
npx module-gates install-claude
This writes PreToolUse and SessionStart hooks into .claude/settings.json; npx module-gates uninstall-claude removes them. The SessionStart hook injects the system prompt hint automatically.
Or reuse an existing pi installation by pointing hooks at it manually in ~/.claude/settings.json:
{
"hooks": {
"PreToolUse": [
{
"matcher": "Edit|MultiEdit|Write",
"hooks": [
{
"type": "command",
"command": "node \"$HOME/.pi/agent/npm/node_modules/@cuzfrog/module-gates/src/bridges/claude/run.mjs\" pre-tool-use"
}
]
}
],
"SessionStart": [
{
"matcher": "startup|resume|clear",
"hooks": [
{
"type": "command",
"command": "node \"$HOME/.pi/agent/npm/node_modules/@cuzfrog/module-gates/src/bridges/claude/run.mjs\" session-start"
}
]
}
]
}
}
The pi install directory may differ; locate run.mjs under your pi npm root. The SessionStart hook (system prompt injection) is optional — PreToolUse alone enforces the gates.
As a plugin (requires the package installed in the project):
npm install --save-dev @cuzfrog/module-gates
devin plugins install cuzfrog/module-gates
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 cuzfrog/module-gates --plugin module-gatesPlugins from other owners that cover similar ground