From imbue-code-guardian
Enables code review stop hook in .reviewer/settings.local.json using jq. Takes optional shell expression for conditional enforcement (defaults to always).
How this skill is triggered — by the user, by Claude, or both
Slash command
/imbue-code-guardian:reviewer-enableThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
The user may provide a shell expression as an argument. If provided, use that as the `enabled_when` value. If not provided, default to `"true"` (always enforce).
The user may provide a shell expression as an argument. If provided, use that as the enabled_when value. If not provided, default to "true" (always enforce).
Examples of expressions the user might provide:
true -- always enforcetest -n "${CI:-}" -- only in CI environmentstest "$(git rev-parse --abbrev-ref HEAD)" != "main" -- only on feature branchesRun this command, substituting the expression:
jq -n --argjson existing "$(cat .reviewer/settings.local.json 2>/dev/null || echo '{}')" --arg expr "<expression>" '$existing * {"stop_hook": {"enabled_when": $expr}}' > .reviewer/settings.local.json.tmp && mv .reviewer/settings.local.json.tmp .reviewer/settings.local.json
Then confirm that the stop hook has been enabled and show the configured expression.
npx claudepluginhub imbue-ai/code-guardian --plugin imbue-code-guardianProvides procedures for suppressing hook re-fire loops using sentinel files, detecting CR incremental-mode and stale reviews, and handling no-target-PR scenarios.
Enables auto permissions review hook for current Claude Code session. Auto-approves read-only operations, sends ambiguous Bash to Haiku, reviews edits only in accept-edits mode.
Guides creation of Claude Code writing hooks for code quality gates, static analysis, and workflow automation using structured TDD tasks on events like PreToolUse.