Safety setup

From yurukusa/cc-safe-setup · View interactive version

Safety setup is an AI agent skill from the GitHub repository yurukusa/cc-safe-setup. Safety hooks for Claude Code — 916 pre-built hooks that prevent file deletion, credential leaks, git disasters, and token waste during autonomous AI coding sessions. Install with npx github:yurukusa/cc-safe-setup.

How to use this skill

Skill file

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:

Quick start

npx github:yurukusa/cc-safe-setup

This runs an interactive wizard that configures hooks based on your risk profile.

Install individual hooks

npx github:yurukusa/cc-safe-setup --install-example large-read-guard
npx github:yurukusa/cc-safe-setup --install-example prevent-rm-rf
npx github:yurukusa/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

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.