From safety-net
Configures CC Safety Net blocking rules at user, project, or shareable GitHub scope. Reads existing configs, suggests rules from project context, writes valid JSON, and validates with sync, verify, and test commands.
How this skill is triggered — by the user, by Claude, or both
Slash command
/safety-net:cc-safety-netThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
<!-- Keep the workflow below in sync with src/opencode/builtin-commands/templates/cc-safety-net.ts. -->
Help the user configure custom blocking rules for CC Safety Net.
Use information already provided in the user's prompt. Ask only when the scope, action, rule intent, merge behavior, or target command is unclear.
npx -y cc-safety-net rule doc and treat that output as the complete source of truth for schema, paths, GitHub sources, matching behavior, and validation.npx -y cc-safety-net rule verifynpx -y cc-safety-net rule listrule doc.
rule.json and <rulebook-name>/rulebook.json..cc-safety-net/rules/<rulebook-name>/rulebook.json in the current repository.owner/repo; installing rules from a GitHub source is outside this workflow..cc-safety-net/rules/<rulebook-name>/rulebook.json, and ensure the source name, directory name, and rulebook name match exactly.npx -y cc-safety-net rule sync, npx -y cc-safety-net rule verify, npx -y cc-safety-net rule test, and npx -y cc-safety-net rule list.npx -y cc-safety-net rule sync --global, npx -y cc-safety-net rule verify, npx -y cc-safety-net rule test --global, and npx -y cc-safety-net rule list.npx -y cc-safety-net rule verify and npx -y cc-safety-net rule test <rulebook-name>. Run sync and list only if the rulebook is also installed in local rule.json.rulebook.json, not directly in rule.json..safety-net.json or ~/.cc-safety-net/config.json rules. Convert existing legacy files with npx -y cc-safety-net rule migrate.allowed_commands, and every rule must have at least one blocked fixture.rule; include allowed fixtures for close-but-safe commands.project-rules; do not put filesystem paths in rules.npx -y cc-safety-net rule sync.npx claudepluginhub kenryu42/cc-safety-net --plugin safety-netGuides creation of markdown-based Hookify rules to block dangerous bash commands, warn on risky file edits, and enforce behavioral guardrails in Claude Code.
Installs 695 safety hooks that prevent file deletion, credential leaks, git disasters, and token waste during autonomous AI coding sessions.
Creates and configures Hookify rules (.md files with YAML frontmatter) for pattern matching and warnings on bash, file, prompt, and stop events. Includes regex guidance, condition syntax, and file organization.