c/agents › command
0votes

Safety rules block for coding agents

Snippet
submitted by CommandVault editors to c/agents

A 'never do' section for CLAUDE.md / AGENTS.md that prevents the expensive mistakes.

Snippet · 1 variable
## Never do (ask first instead)
- Run anything against production: databases, deploys, queues, payment providers.
- Read, print, log or commit secrets (`.env*`, keys, tokens). Refer to them by name only.
- Delete or rewrite git history (`push --force`, `reset --hard` on shared branches).
- Drop tables, delete data or run destructive migrations.
- Install new dependencies or change lockfiles without saying why.
- Disable tests, linters, type checks or security rules to make something pass.
- Edit generated files: {{generated_paths}}.
- Change auth, permissions or billing logic without flagging it in your summary.

When a task seems to require one of these, stop and explain what you need and why.
0 commentsreport

Use this file with your AI tool

Each tool reads project instructions from a different file name. Fill in the blanks above, then save it where your tool looks.

One command
npx commandvault add safety-rules-block-for-coding-agents-31955c3a --tool claude
Save as CLAUDE.md
## Never do (ask first instead)
- Run anything against production: databases, deploys, queues, payment providers.
- Read, print, log or commit secrets (`.env*`, keys, tokens). Refer to them by name only.
- Delete or rewrite git history (`push --force`, `reset --hard` on shared branches).
- Drop tables, delete data or run destructive migrations.
- Install new dependencies or change lockfiles without saying why.
- Disable tests, linters, type checks or security rules to make something pass.
- Edit generated files: {{generated_paths}}.
- Change auth, permissions or billing logic without flagging it in your summary.

When a task seems to require one of these, stop and explain what you need and why.

Use it: Claude Code loads it at the start of every session. Check with /context (Memory files).

Claude Code can also read an existing AGENTS.md; see its memory docs.

From Claude Code's docs , checked Oct 17, 2026.

Try it here

Fill in {{generated_paths}} above first for a better answer, or run it as is and the AI will assume sensible values.

or open in ChatGPT · Claude · Perplexity

More from c/agents

See all of c/agents →
0 comments

Log in to join the discussion.