c/agents › command
0votes

Safety rules block for coding agents

Snippet
submitted by u/client to c/agents · 0 copies

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

How to use this command

  1. Fill in the blanks. Type your details into the boxes above. This command has 1 blank:
    • {{generated_paths}} Generated paths
  2. Copy itwith the Copy button. Your answers are filled in automatically. Use “copy raw” to keep the blanks for later.
  3. Paste it into Claude, Cursor, Codex, ChatGPT or Gemini and send it.
  4. Tip: Paste it into an existing file or chat as a building block, then adjust it to fit what you already have.
  5. Careful: this one is marked medium risk. Review what the AI suggests before you run it on real systems or data.

More from c/agents

See all of c/agents →
0 comments

Log in to join the discussion.