<!-- cloud_safe: degrade -->
rule-writing
When to use
- Creating a new rule in
src/rules/{name}.md - Rewriting an existing rule (not a typo fix)
- Deciding whether something should be a rule at all
- Converting a learning from
learning-to-rule-or-skillinto a concrete rule
Do NOT use this skill when:
- The content is a multi-step workflow → use
skill-writing - The content is reference material agents cite → use
guideline-writing - The content is a user-invoked action → use
command-writing
Rule vs skill vs guideline — critical test
| Intent | Artifact |
|---|---|
| "Agent must always/never do X" | Rule |
| "When Y happens, run these steps" | Skill |
| "Here is knowledge the agent may cite" | Guideline |
A rule is a constraint — it states a boundary, not a workflow. If the
content needs numbered steps, it is a skill.
Procedure
0. Run the Drafting Protocol
Creating or materially rewriting a rule must go through Understand →
Research → Draft from the