Not loaded · from leandrocfe-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 leandrocfe-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
38 skills in this plugin
/ai-or-notJulga se uma referência foi feita por IA. Use quando o usuário colar um texto, artigo, imagem, vídeo, áudio ou link e perguntar se aquilo é IA, se é real, se foi feito por humano, ou pedir para checar de onde veio o material./ask-mattPergunte qual skill ou fluxo encaixa na sua situação. Um router sobre as skills deste repo./broReescreve a última mensagem em português simples, sem jargão. Use quando a resposta anterior ficou empolada, técnica demais ou difícil de entender./claude-handoffPassa a conversa atual para um background agent novo, que retoma o trabalho imediatamente./codebase-designVocabulário compartilhado para projetar módulos profundos (deep modules). Use quando o usuário quiser projetar ou melhorar a interface de um módulo, encontrar oportunidades de deepening, decidir onde colocar um seam, tornar o código mais testável ou navegável por IA, ou quando outra skill precisar do vocabulário de deep-module./code-reviewRevisa as mudanças desde um ponto fixo (commit, branch, tag ou merge-base) em dois eixos — Standards (o código segue os padrões de codificação documentados deste repo?) e Spec (o código faz o que a issue/spec de origem pediu?). Roda as duas revisões em sub-agents paralelos e reporta lado a lado. Use quando o usuário quiser revisar um branch, um PR, mudanças em andamento, ou pedir para "revisar desde X".Generated from the plugin's indexed repository (leandrocfe/skills) — no native marketplace selected
npx claudepluginhub p/leandrocfe-leandrocfe-skills15 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