# Cc Safety Net

Operate CC Safety Net: explain why a command was blocked, triage false positives...

- Repository: https://github.com/kenryu42/cc-safety-net (1883 stars)
- Category: AI and agents
- License: MIT
- Last updated: 2026-11-01
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add kenryu42/cc-safety-net --skill cc-safety-net -g -a claude-code -y`
Codex: `npx skills add kenryu42/cc-safety-net --skill cc-safety-net -g -a codex -y`
Cursor: `npx skills add kenryu42/cc-safety-net --skill cc-safety-net -g -a cursor -y`
Gemini CLI: `npx skills add kenryu42/cc-safety-net --skill cc-safety-net -g -a gemini-cli -y`
Claude Code plugin marketplace: `/plugin marketplace add kenryu42/cc-safety-net`

## Description

Operate CC Safety Net: explain why a command was blocked, triage false positives, configure custom rulebooks, manage agent CLI integrations, and diagnose protection.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# CC Safety Net

CC Safety Net hooks into coding agent CLIs (Claude Code, Codex, Cursor, Gemini CLI, and others)
and blocks destructive commands and secret access before they run. The `cc-safety-net` CLI
inspects and controls that protection. Run it as `npx -y cc-safety-net`.

## Learn the current CLI

The installed CLI is the authority for command syntax. Do not guess flags.

```bash
npx -y cc-safety-net --help
npx -y cc-safety-net help <command>
```

Run `npx -y cc-safety-net rule doc` and treat that output as the complete source of truth for
rulebook schema, paths, GitHub sources, matching behavior, and validation.

These commands are read-only and safe to run for discovery: `--help`, `--version`, `status`,
`doctor`, `logs` (without `--prune-legacy`), `explain`, `rule list`, `rule verify`, `rule doc`,
`policy check`, `help`. Every other command mutates configuration or installed integrations; run
those only as part of a workflow below.

## Core model

- Built-in guards always apply. Custom rules only add restrictions; nothing in rule config can
  bypass built-in CC Safety Net protections.
- Config files (`rule.json`) list rulebook sources. Rule definitions live in `rulebook.json`,
  not directly in `rule.json`.
- Three scopes: user (all projects), project (current project only), and shareable GitHub
  rulebooks at `.cc-safety-net/rules/<rulebook-name>/rulebook.json` in a repository.
- Rulebooks are live files. The runtime reads each `rulebook.json` on every tool call, so a saved
  edit applies to the next command with no sync step.
- `policy.json` sets the safety level, per-feature toggles, per-rule overrides, and path lists. It
  has two scopes: the project file `.cc-safety-net/policy.json`, committed and shared with the
  team, layered on the user file that applies to every project.
- The session safety level is `standard`, `strict`, or `paranoid`, set per session with the
  `CC_SAFETY_NET_LEVEL` environment variable.

## Choose the workflow

The rest: https://github.com/kenryu42/cc-safety-net/blob/HEAD/skills/cc-safety-net/SKILL.md
