Not loaded · from dev
Installs PreToolUse hooks that block dangerous git commands (push, reset --hard, clean, branch -D) before execution. Prevents destructive git operations in Claude Code.
Claude Code won't load this skill
It ships in dev 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.
Block destructive git ops before they run.
Sets up a PreToolUse hook that intercepts and blocks dangerous git commands before Claude executes them.
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, then make it executable with chmod +x:
.claude/hooks/block-dangerous-git.sh~/.claude/hooks/block-dangerous-git.shAdd the PreToolUse hook to the appropriate settings file. The block is identical for both scopes — only the command path differs: project uses "$CLAUDE_PROJECT_DIR"/.claude/hooks/block-dangerous-git.sh, global uses ~/.claude/hooks/block-dangerous-git.sh.
{
"hooks": {
"PreToolUse": [
{
"matcher": "Bash",
"hooks": [
{
"type": "command",
"command": "\"$CLAUDE_PROJECT_DIR\"/.claude/hooks/block-dangerous-git.sh"
}
]
}
]
}
}
If the settings file already exists, merge the hook into the existing hooks.PreToolUse array — don't overwrite other settings.
Ask if the 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.
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.
Once the dev plugin is enabled (plugins.dev.enabled: true), this hook blocks the
agent from switching the primary checkout's branch (git switch <branch>,
git checkout <branch>, git switch -b <new>) unconditionally — with no
branch-lock file and no config toggle (ADR 0083 §2, untouchable primary). git commit, git worktree add, read-only git, and registered .red/tmp/worktrees/<lane>/<slug> worktrees stay
allowed; the human terminal is not intercepted. The historical
dev.lock.primary-branch key is retained as read-only legacy history only — it no
longer enables or disables the guard.
When an opt-in branch lock is active, this hook also blocks the branch-leaving /
work-loss family in the primary checkout. That behaviour is documented in full at
branch-lock; this hook is self-contained and reaches
the same verdict without sourcing it.
The full behaviour (dangerous patterns + branch-lock awareness + worktree
scope + the no-dependency contract) is pinned by
scripts/tests/block-dangerous-git.test.sh,
run directly with bash.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub reddb-io/red-skills --plugin dev59 skills in this plugin
/adr-editorProposal-driven reverse grill for the active `.red/adr/` collection. Ranks active ADR clusters, recommends where to start, confronts one cluster with current implementation evidence, and applies maintainer-approved dispositions through the full ADR verb set. Use to review, curate, reorganise, fix, or extend ADRs and to pay down accumulated decision debt./afkAutonomous loop that drains the `ready-for-agent` queue on the issue tracker. Registers the project with the `redskilled` daemon at a runner and a target width, arms the drain, and observes; the daemon admits each Worker, which claims an issue, works it in its own workspace, validates, lands, and closes. Use when the user wants to run AFK execution, drain a Spec, hammer specific issues, or otherwise let agents grind through the backlog./Other plugins' skills for the same job