cc-safe-setup
Safety hooks for Claude Code — 700 pre-built hooks that prevent file deletion, credential leaks, git disasters, and token waste during autonomous AI coding sessions. 9,200+ tests. Install with npx cc-safe-setup.
Free to install — no account needed
Copy the command below and paste into your agent.
Instant access • No coding needed • No account needed
What you get in 5 minutes
- Full skill code ready to install
- Works with 1 AI agent
- Lifetime updates included
Description
--- name: cc-safe-setup description: Safety hooks for Claude Code — 700 pre-built hooks that prevent file deletion, credential leaks, git disasters, and token waste during autonomous AI coding sessions. 9,200+ tests. Install with npx cc-safe-setup. --- # cc-safe-setup Safety-first configuration for Claude Code. Prevents the accidents that happen when AI writes code autonomously. ## What it does Installs pre-built safety hooks into your Claude Code environment. These hooks run automatically before/after tool calls to block dangerous operations. **Categories:** - **File protection**: Block `rm -rf`, prevent overwriting files outside project - **Git safety**: Prevent force-push to main, block `reset --hard` - **Credential guards**: Stop `.env` files from being committed or read by AI - **Token optimization**: Warn on large file reads, limit subagent spawning - **Quality gates**: Detect lazy rewrites, verify claims before committing ## Quick start ```bash npx cc-safe-setup ``` This runs an interactive wizard that configures hooks based on your risk profile. ## Install individual hooks ```bash 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 ``` ## Why hooks instead of CLAUDE.md rules 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. ## Resources - Repository: https://github.com/yurukusa/cc-safe-setup - Hook Selector (find hooks for your setup): https://yurukusa.github.io/cc-safe-setup/hook-selector.html - Token Checkup (diagnose waste): https://yurukusa.github.io/cc-safe-setup/token-checkup.html
Security Status
Unvetted
Not yet security scanned
Related AI Tools
More Grow Business tools you might like
codex-collab
FreeUse when the user asks to invoke, delegate to, or collaborate with Codex on any task. Also use PROACTIVELY when an independent, non-Claude perspective from Codex would add value — second opinions on code, plans, architecture, or design decisions.
Rails Upgrade Analyzer
FreeAnalyze Rails application upgrade path. Checks current version, finds latest release, fetches upgrade notes and diffs, then performs selective upgrade preserving local customizations.
Asta MCP — Academic Paper Search
FreeDomain expertise for Ai2 Asta MCP tools (Semantic Scholar corpus). Intent-to-tool routing, safe defaults, workflow patterns, and pitfall warnings for academic paper search, citation traversal, and author discovery.
Hand Drawn Diagrams
FreeCreate hand-drawn Excalidraw diagrams, flows, explainers, wireframes, and page mockups. Default to monochrome sketch output; allow restrained color only for page mockups when the user explicitly wants webpage-like fidelity.
Move Code Quality Checker
FreeAnalyzes Move language packages against the official Move Book Code Quality Checklist. Use this skill when reviewing Move code, checking Move 2024 Edition compliance, or analyzing Move packages for best practices. Activates automatically when working
Claude Memory Kit
Free"Persistent memory system for Claude Code. Your agent remembers everything across sessions and projects. Two-layer architecture: hot cache (MEMORY.md) + knowledge wiki. Safety hooks prevent context loss. /close-day captures your day in one command. Z