claude

guard-hooks

Safety guard hooks that block destructive CLI commands and sensitive file edits, with user-approval override flow via AskUserQuestion. Pure-Python hooks (3.9+), no jq required.

3 on GitHubby grukuv2.8.0updated 14 days ago
/

Plugin guard-hooks from marketplace gruku-tools in Gruku/claude-tools. Commands read from the repo's manifest — 13 days ago.

This plugin runs code on your machine — its hooks fire automatically on events like tool use. The exact commands are listed below; read them before installing.

What it installs

Skills (2)

  • install

    Install guard hooks into user-scoped ~/.claude/settings.json. Use when the user says "install guard hooks", "set up guard hooks", or "enable guard hooks".

  • safe-worktree-removal

    Use BEFORE running `git worktree remove`, `git worktree prune`, or any worktree cleanup on Windows or against worktrees that contain submodules or have long paths. Routes through the safe deinit-first procedure to prevent the dotfile-cascade incident where `--force` removal wipes top-level `.git/`,

Hooks (6)

  • SessionStart

    bash "${CLAUDE_PLUGIN_ROOT}/hooks/session-start.sh"

  • PreToolUse

    CLAUDE_HOOK_SCRIPT=guard_bash.py . "${CLAUDE_PLUGIN_ROOT}/hooks/run_hook.sh"

  • PreToolUse

    CLAUDE_HOOK_SCRIPT=guard_edits.py . "${CLAUDE_PLUGIN_ROOT}/hooks/run_hook.sh"

  • PostToolUse

    CLAUDE_HOOK_SCRIPT=ask_question_approval.py . "${CLAUDE_PLUGIN_ROOT}/hooks/run_hook.sh"

  • PostToolUse

    CLAUDE_HOOK_SCRIPT=consume_approval.py . "${CLAUDE_PLUGIN_ROOT}/hooks/run_hook.sh"

  • UserPromptSubmit

    CLAUDE_HOOK_SCRIPT=guard_approve.py . "${CLAUDE_PLUGIN_ROOT}/hooks/run_hook.sh"

View source on GitHub

Problems found in this repo's manifests

  • "taskmaster" points to ./plugins/taskmaster, which doesn't exist in the repo — install will fail
  • "rr-tui" points to ./plugins/taskmaster/mods/rr-tui, which doesn't exist in the repo — install will fail
  • "taskmaster-mods" points to ./plugins/taskmaster/mods/taskmaster-mods, which doesn't exist in the repo — install will fail

More from Gruku/claude-tools

All 15 plugins →

Apply the Reality Reprojection design system to any web project — generate components, convert existing code, review compliance

7 skills · 5 commands · hooks

3

UE5.5 shader development: HLSL design (Opus) + Material Graph generation (Sonnet) + paste into Material Editor

6 skills · 4 commands · hooks

3

Apply the Reality Reprojection design system to any web project — generate components, convert existing code, review compliance

5 skills · 5 commands

3

Apply the Reality Reprojection design system to any web project — generate components, convert existing code, review compliance

5 skills · 5 commands

3

Author UE5 materials from YAML. Live mode drives the Material Editor via MCPBridge (localhost:13580); clipboard mode emits T3D paste text. HLSL Architect (Opus) + Node Generator (Sonnet) agent chain for complex designs, direct YAML for simple wiring. Requires: pyyaml.

5 skills · 3 commands · hooks

3

Apply the Reality Reprojection design system to any web project — generate components, convert existing code, review compliance

7 skills · hooks

3

Maintain guard-hooks?

This page updates itself from your repo. Add the badge to your README, or get it Featured to pin it above the organic results with a followed link to your site.

claude & codex plugins15 plugins