cc-safe-setup SKILL.md skillA

cc-safe-setup from yurukusa/cc-safe-setup is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add yurukusa/cc-safe-setup/cc-safe-setup@git:20260919.02886e6

Pins git:20260919.02886e6 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
yurukusa/cc-safe-setup
Path
skills/safety-setup/SKILL.md
Versions recorded
4
Latest version
git:20260919.02886e6, committed Sep 19, 2026
First version recorded
Apr 12, 2026
Size
1,950 bytes
Repository stars
10
License
MIT

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.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# 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 github:yurukusa/cc-safe-setup
```

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

## Install individual hooks

```bash
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
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add yurukusa/cc-safe-setup/cc-safe-setup@sha256:528863dcd3286fda

The line at the top of this page pins the label git:20260919.02886e6, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_3fadpklnrrcgiy2g.svg)](https://markdownregistry.com/a/art_3fadpklnrrcgiy2g)

2 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 4 versions of this file, between Apr 12, 2026 and Sep 19, 2026, about one every 54 days.

versioncommittedcommitsizeaudit
git:20260919.02886e6 latest2026-09-19 02886e6 1,950 BA view · diff
git:20260831.7286d3d2026-08-31 7286d3d 1,950 BA view · diff
git:20260419.605f6692026-04-19 605f669 1,870 BA view · diff
git:20260412.37c69aa2026-04-12 37c69aa 1,871 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (1950 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

yurukusa/cc-safe-setup · 10 stars · license MIT · pushed 2026-09-25 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_3fadpklnrrcgiy2g
GET https://markdownregistry.com/api/v1/resolve?ref=yurukusa/cc-safe-setup/cc-safe-setup
GET https://markdownregistry.com/api/v1/blob/528863dcd3286fda70591f3262915a18dbb59808b34e8e3f03a6faa0e8db2bb7

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from yurukusa/cc-safe-setup

CLAUDE.md CLAUDE.md file
yurukusa/cc-safe-setup · CLAUDE.md
git:20260324.3d48efe · audit A · 10 stars
cc-safe-setup SKILL.md skill
yurukusa/cc-safe-setup · SKILL.md · Safety hooks for Claude Code — 916 pre-built hooks that prevent file deletion, credential leaks, git disasters, and…
git:20260919.02886e6 · audit A · 10 stars

Every file in yurukusa/cc-safe-setup

Other files named cc-safe-setup

cc-safe-setup SKILL.md skill
yurukusa/cc-safe-setup · SKILL.md · Safety hooks for Claude Code — 916 pre-built hooks that prevent file deletion, credential leaks, git disasters, and…
git:20260919.02886e6 · audit A · 10 stars

Browse by kind, by grade A, or by owner.