cc-safety-net

Featured

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

AI & Automation 1,535 stars 75 forks Updated today MIT

Install

View on GitHub

Quality Score: 96/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

<!-- Keep the body below in sync with src/integrations/templates/cc-safety-net.ts. --> # 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. - R...

Details

Author
kenryu42
Repository
kenryu42/cc-safety-net
Created
8 months ago
Last Updated
today
Language
TypeScript
License
MIT

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category

Code & Development Listed

cc-safe-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 cc-safe-setup.

6 Updated 1 weeks ago
yurukusa
Code & Development Featured

verify-cc-safety-net

Launch and drive the real cc-safety-net CLI — the hook decision path, explain, status/doctor, logs, and the local policy GUI — against an isolated home, capturing evidence. Use when a change needs proof in the running app, not just the test suite.

1,535 Updated today
kenryu42
AI & Automation Listed

protect-ci-workflows

Guard against an agent weakening the automated checks that review its own work. CI/CD workflow files (.github/workflows/), the composite actions they call (.github/actions/) and the dependency-update automation (.github/dependabot.yml) define what must pass before a change lands -- so a shell command that rewrites or deletes them is the agent removing the gate that would catch it. The guard refuses shell write-commands targeting those paths; reads pass, and tool-driven regeneration (chock sync) passes because it writes through the tool, not shell editing. Best-effort and deliberately coarse: a compound command that both reads a protected file and writes elsewhere may be refused -- rewrite it in two steps. The 'chock: approved-config-change' escape marker is friction plus an audit trail, not authentication -- the agent can write it too; the check an agent cannot self-approve is branch protection and required-status-checks enforced server-side.

1 Updated yesterday
open-coder-ai