From cc-safe-setup
Installs 695 safety hooks that prevent file deletion, credential leaks, git disasters, and token waste during autonomous AI coding sessions.
How this skill is triggered — by the user, by Claude, or both
Slash command
/cc-safe-setup:safety-setupThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Safety-first configuration for Claude Code. Prevents the accidents that happen when AI writes code autonomously.
Safety-first configuration for Claude Code. Prevents the accidents that happen when AI writes code autonomously.
Installs pre-built safety hooks into your Claude Code environment. These hooks run automatically before/after tool calls to block dangerous operations.
Categories:
rm -rf, prevent overwriting files outside projectreset --hard.env files from being committed or read by AInpx cc-safe-setup
This runs an interactive wizard that configures hooks based on your risk profile.
npx cc-safe-setup --install-example large-read-guard
npx cc-safe-setup --install-example prevent-rm-rf
npx cc-safe-setup --install-example git-force-push-block
Rules in CLAUDE.md are suggestions — Claude can forget them. Hooks are enforced at the system level. A hook that blocks rm -rf cannot be overridden by the AI.
From 800+ hours of autonomous operation: the hooks that matter most are the ones you don't notice until something goes wrong.
npx claudepluginhub yurukusa/cc-safe-setup --plugin token-guardGuides setup of Claude Code Hooks for production safety, selecting profiles (Minimal, Standard, Autonomous), configuring env vars like CC_CONTEXT_MISSION_FILE, and running verification tests.
Installs PreToolUse hooks that block destructive git/shell commands (force-push to protected branches, git reset --hard with unstaged work, rm -rf outside worktree). Useful before unattended runs or after a near-miss.
Develops Claude Code hooks to run shell commands or LLM prompts on events like PreToolUse for automations, guardrails, quality checks, and pre-push tests.