Force Push Blocker
Block git force push commands using the if condition for efficient filtering. Prevents accidental force pushes that can overwrite remote history. Covers --force, --force-with-lease, and the -f shorthand.
npx claude-code-templates@latest --hook security/force-push-blocker claude-code — force-push-blocker
Scanned by NVIDIA SkillSpector
Automated static analysis (no LLM) · v2.12.0 · 2026-10-17
1 observation
scanner score 17/100
SkillSpector looks for patterns such as shell commands, credential access, network calls or unpinned dependencies. An observation is something worth reading in the files before you install, not a confirmed vulnerability. Components that run code locally, like hooks, MCP servers and security tooling, naturally show more of them.
- Tool Parameter AbuseTool Misuse · force-push-blocker.json:10
Learn more about NVIDIA SkillSpector.
Content
JSON
{
"description": "Block git force push commands using the if condition for efficient filtering. Pr..."
"hooks": {
"PreToolUse": [1 item]
}
}