/vfx-core:git-guardrails-claude-codefrom vfx-core
Installs a PreToolUse hook that blocks destructive git commands (push, reset --hard, clean -f, branch -D, checkout/restore .) before they run, with a Python hook that fails closed.
Ships in vfx-core. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Installs a PreToolUse hook that intercepts destructive git commands before Claude runs them.
jq; on a machine
without jq (Git for Windows does not ship it) it printed "jq: command not found", exited 0 and
blocked NOTHING. The bundled hook is plain Python and blocks when it cannot read its input.python, never bash. On Windows the bash on PATH is the
WSL stub, so a bash "..." hook dies silently outside Claude Code's own shell.git push (all variants, including git -C <dir> push and after &&)git reset --hardgit clean with -f in its flags (-f, -fd, -xfd; -n dry runs are allowed)git branch -D (lower-case -d on a merged branch is allowed)git checkout . / git checkout -- . / git restore .Claude sees "BLOCKED: ... The user has prevented you from doing this."
Install for this project only (.claude/settings.json) or all projects
(~/.claude/settings.json)?
The bundled hook is scripts/block_dangerous_git.py. Copy it to:
.claude/hooks/block_dangerous_git.py~/.claude/hooks/block_dangerous_git.pyMerge into the existing hooks.PreToolUse array - never overwrite other settings or hooks.
Project (.claude/settings.json):
{
"hooks": {
"PreToolUse": [
{
"matcher": "Bash",
"hooks": [
{ "type": "command", "command": "python \"$CLAUDE_PROJECT_DIR/.claude/hooks/block_dangerous_git.py\"" }
]
}
]
}
}
Global (~/.claude/settings.json): same block with
"command": "python ~/.claude/hooks/block_dangerous_git.py".
Use python on Windows (python3 is a Microsoft Store stub there); python3 on macOS/Linux if
python is absent. Check the interpreter with python -c "print(1)" first: if the interpreter is
missing the hook exits with a non-2 error, which Claude Code does NOT treat as a block - the guard
would be off. The step 5 check catches this.
Ask whether to add or remove patterns; edit the DANGEROUS list in the copied hook.
Run the bundled self-test against the copied hook (copy scripts/test_block_dangerous_git.py next to it):
python .claude/hooks/test_block_dangerous_git.py
It must print PASS n/n: every guarded command blocked, every ordinary command (git status,
git pull, git checkout main, ...) allowed, and unparsable input blocked. Then start a NEW Claude
Code session (hooks load at start) and ask it to run git push --dry-run: the call must be refused.
What SKILL.md sets; muted values are Claude Code's defaults
14 skills in this plugin
/brave-searchResearches VFX topics with Brave Search - MCP web search for filtered URL lists, an LLM Context script for deep research with extracted page content, and image search for references. Use when searching for tutorials, docs, errors, plugins or software updates./development-managementRuns Specification-Driven Development (spec-kit) workflows - agent creation, constitutional governance, roadmaps, specs and validation. Use when creating or auditing agents, writing a constitution, or validating compliance./gap-checkAudits Claude's own knowledge gaps against a settled plan before building - sorts confident from guessed, researches public gaps, and lists unknowns for the user. Use after /grill-me, before a build session, or on 'gap-check' or 'check your assumptions'./grill-meInterview the user relentlessly about a plan or design until reaching shared understanding, resolving each branch of the decision tree. Use when user wants to stress-test a plan, get grilled on their design, or mentions "grill me"./loop-gauntletRuns a build-until-it-matches loop in a DCC - an agent rebuilds a scene from reference images, scoring renders against a human-authored rubric until a stop rule fires. Use for 'iterate until it matches', Blender set rebuilds from refs, or writing or judging such a loop prompt./qwen-delegateDelegates tasks to the local Qwen model on Ollama so file content stays on the machine and out of Claude's context. Use for "ask Qwen" or "do this locally", NDA-safe file analysis, large-file summaries, boilerplate and BlinkScript drafts.npx claudepluginhub sideshowroberto/vfx-agent-toolkit --plugin vfx-coreOther plugins' skills for the same job