agentsclimarketplace

Safety setup

Skill gaebalai/cc-guard/skills/safety-setup

Safety hooks for Claude Code — 695 pre-built hooks that prevent file deletion, credential leaks, git disasters, and token waste during autonomous AI coding sessions. Install with npx @gaebalai/cc-guard.From its SKILL.md

Install
npx -y skills add gaebalai/cc-guard --skill safety-setup

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

1.8 KB, as published. Nobody here has run it

cc-guard

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

npx @gaebalai/cc-guard

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

Install individual hooks

npx @gaebalai/cc-guard --install-example large-read-guard
npx @gaebalai/cc-guard --install-example prevent-rm-rf
npx @gaebalai/cc-guard --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

Keep looking

Skills are one crate of 627,801. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.