DuoMDuoM
DuoM: MCP servers, skills and rules for your agent, checked before installContact: studo.doum@gmail.comDocsFor makersReportTermsPrivacy
MCPSkillsStacksRulesDocs
Sign in
GA

General Agent RulesRule

by DUOMReport

Baseline rules for any project: read before editing, small diffs, run the checks, never touch secrets.

Developer toolsLicense: CC0-1.0Updated yesterdayrule/general

Install

Run in your project folder (DuoM CLI: risk check, then write; undo with npx duom@1 undo)
npx duom@1 add rule/general --client claude-code

Writes to CLAUDE.md in your project (where Claude Code reads it). If the project has an AGENTS.md but no CLAUDE.md, DuoM creates CLAUDE.md starting with @AGENTS.md so Claude Code keeps reading it. Only the marked block is added; the rest of the file is left alone, and remove takes out only that block.

Manual: paste into CLAUDE.md
CLAUDE.md
<!-- duom:rule/general -->
## Working rules
- Read the files you are about to change, and the code that calls them, before editing.
- Keep each change as small as the task allows. Do not reformat, rename or "clean up" code you were not asked to touch.
- Follow the patterns already in the codebase (naming, folder layout, error handling) instead of introducing new ones.
- Do not add a dependency for something a few lines or the standard library can do.
- After a change, run the project's checks (tests, type check, lint) and report the real result. If you could not run them, say so.
- Never print, commit or move secrets (.env files, keys, tokens). Do not read ~/.ssh or credential stores.
- Ask before anything destructive or hard to undo: deleting files, dropping data, force-pushing, changing CI or deploy config.
- When something is unclear, state your assumption in one line and continue; stop and ask only when a wrong guess would be costly.
<!-- /duom:rule/general -->

The rule

Working rules

  • Read the files you are about to change, and the code that calls them, before editing.
  • Keep each change as small as the task allows. Do not reformat, rename or "clean up" code you were not asked to touch.
  • Follow the patterns already in the codebase (naming, folder layout, error handling) instead of introducing new ones.
  • Do not add a dependency for something a few lines or the standard library can do.
  • After a change, run the project's checks (tests, type check, lint) and report the real result. If you could not run them, say so.
  • Never print, commit or move secrets (.env files, keys, tokens). Do not read ~/.ssh or credential stores.
  • Ask before anything destructive or hard to undo: deleting files, dropping data, force-pushing, changing CI or deploy config.
  • When something is unclear, state your assumption in one line and continue; stop and ask only when a wrong guess would be costly.

Risk signals No signals

Written by DuoM. Rules are plain instructions in a text file; nothing runs on its own.