Not loaded · from mattpocock-skills
Installs a PreToolUse hook that blocks dangerous git commands (push, reset --hard, clean, branch -D) before execution. Use when adding git safety guardrails to Claude Code.
Claude Code won't load this skill
It ships in mattpocock-skills at skills/, but Claude Code only loads skills/<name>/SKILL.md and folders listed under skills in plugin.json. Installing the plugin doesn't add it.
Sets up a PreToolUse hook that intercepts and blocks dangerous git commands before Claude executes them.
git push (all variants including --force)git reset --hardgit clean -f / git clean -fdgit branch -Dgit checkout . / git restore .When blocked, Claude sees a message telling it that it does not have authority to access these commands.
Ask the user: install for this project only (.claude/settings.json) or all projects (~/.claude/settings.json)?
The bundled script is at: scripts/block-dangerous-git.sh
Copy it to the target location based on scope:
.claude/hooks/block-dangerous-git.sh~/.claude/hooks/block-dangerous-git.shMake it executable with chmod +x.
Add to the appropriate settings file:
Project (.claude/settings.json):
{
"hooks": {
"PreToolUse": [
{
"matcher": "Bash",
"hooks": [
{
"type": "command",
"command": "\"$CLAUDE_PROJECT_DIR\"/.claude/hooks/block-dangerous-git.sh"
}
]
}
]
}
}
Global (~/.claude/settings.json):
{
"hooks": {
"PreToolUse": [
{
"matcher": "Bash",
"hooks": [
{
"type": "command",
"command": "~/.claude/hooks/block-dangerous-git.sh"
}
]
}
]
}
}
If the settings file already exists, merge the hook into existing hooks.PreToolUse array — don't overwrite other settings.
Ask if user wants to add or remove any patterns from the blocked list. Edit the copied script accordingly.
Run a quick test:
echo '{"tool_input":{"command":"git push origin main"}}' | <path-to-script>
Should exit with code 2 and print a BLOCKED message to stderr.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (matheusdmlopes/skills-ptbr) — no native marketplace selected
npx claudepluginhub p/matheusdmlopes-mattpocock-skills35 skills in this plugin
/ask-mattPergunte qual skill ou fluxo se encaixa na sua situação. Um roteador sobre as skills deste repositório./claude-handoffTransfira a conversa atual para um novo agente em segundo plano que assume o trabalho imediatamente./codebase-designVocabulário compartilhado para projetar deep modules. Use quando o usuário quiser projetar ou melhorar a interface de um módulo, encontrar oportunidades de aprofundamento, decidir onde uma costura deve ficar, tornar o código mais testável ou navegável por IA, ou quando outra skill precisar do vocabulário de deep modules./code-reviewRevise as alterações desde um ponto fixo (commit, branch, tag ou merge-base) ao longo de dois eixos — Padrões (o código segue os padrões de código documentados deste repositório?) e Spec (o código corresponde ao que a issue/spec de origem pediu?). Executa ambas as revisões em subagentes paralelos e as relata lado a lado. Use quando o usuário quiser revisar um branch, um PR, alterações em andamento ou pedir para "revisar desde X"./diagnosing-bugsCiclo de diagnóstico para bugs difíceis e regressões de desempenho. Use quando o usuário disser "diagnostique"/"debugue isso", ou relatar algo quebrado/lançando erro/falhando/lento./domain-modelingConstrua e refine o modelo de domínio de um projeto. Use ao discutir a terminologia da base de código, ao escrever ou editar um CONTEXT.md, ou ao registrar ou editar um ADR.15 plugins ship this exact skill · first indexed Jul 13, 2026
Showing 6 of 15 plugins, one per repository first
Other plugins' skills for the same job