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 raiyanyahyav0.2.2MIT
If-this-then-that rules for Claude Code: gate git pushes on tests and scans, protect files, auto-format after edits, and steer the agent — all from one readable rules file.
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.
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.
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
If-this-then-that rules for Claude Code.
Gate git push on your tests. Protect files from the agent. Auto-format after edits.
Run end-of-turn checks. Steer the agent with instructions — all from one readable rules file
that Claude itself can show and edit.
CI tells you ten minutes after you pushed. Code review tells you tomorrow. huuk tells the agent while it's still typing — and the agent fixes it on the spot:
One real recorded session (sped up 2×, idle trimmed): a protected config.json
steers the agent away, the push gate catches a failing test and Claude fixes it,
and /huuk:check dry-runs the rules.
When a rule fails, the action is blocked and the reason — including the failing tool's output — is fed straight back into Claude's context. The loop closes in seconds, inside the session, while the fix is cheap.
# try it without installing
claude --plugin-dir /path/to/huuk
# or install from a marketplace / git URL
/plugin install <marketplace-or-git-url>
Then, inside any project:
/huuk:setup
which inspects the repo (test runner, linter, formatter, existing Makefile /
pre-commit config), writes a starter .claude/huuk.rules.json, and trusts it.
| Command | What it does |
|---|---|
/huuk:setup | Create a starter rules file with checks auto-detected from the project |
/huuk:rules | Show the active rules — or edit them in plain English: "also require mypy before pushes" |
/huuk:check | Dry-run: would git push (or any command) pass right now? |
Rules live in two files, merged at runtime (comments allowed in both):
| File | Scope | |
|---|---|---|
<project>/.claude/huuk.rules.json | project | commit it — the whole team's agents follow the same policy |
~/.claude/huuk.rules.json | global | your personal rules, in every project |
A project rule with the same id overrides the global one (set "enabled": false to opt
a project out of a global rule). Edits take effect immediately — the engine re-reads
the files on every event.
{
"rules": [
{
"id": "gate-push",
"description": "Tests and lint must pass before any git push",
"on": "bash:git push*",
"severity": "block", // "block" (default) or "warn"
"do": [
{ "run": "pytest -q" },
{ "run": "ruff check ." }
]
},
{
"id": "protect-env",
"description": "Env files are managed by hand",
"on": "edit:.env*",
"do": [{ "steer": "Don't modify env files. Tell the user which variable to set." }]
},
{
"id": "init-branch-name",
"description": "Ask before git init which branch name to use",
"on": "bash:git init", // exact match — the retried `git init -b main` sails through
"do": [{ "steer": "Ask the user what the default branch should be named, then run `git init -b <name>`." }]
}
]
}
See examples/huuk.rules.json for a fuller starter set.
Every action is just shell — so rules can hit APIs, generate reports, and run any check you can script. A tour of what people actually gate:
🌐 API hits — verify the world outside the repo:
{
"id": "deploy-needs-healthy-staging",
"description": "Staging API must answer before deploying",
"on": "bash:npm run deploy*",
"do": [{ "run": "curl -fsS --max-time 10 https://staging.example.com/health" }]
},
{
"id": "openapi-contract",
"description": "Lint the API contract before pushing API changes",
"on": "bash:git push*",
"if": { "exists": "openapi.yaml" },
"do": [{ "run": "npx @stoplight/spectral-cli lint openapi.yaml" }]
}
Generated from the plugin's indexed repository (raiyanyahya/huuk) — no native marketplace selected
npx claudepluginhub p/raiyanyahya-huukBuilt 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