Writing Rules (Codex)
Rule Quality Criteria
- Specific and testable.
- Actionable remediation path.
- Minimal ambiguity.
- Aligned with repository tooling.
Workflow
- Identify recurring failure modes.
- Convert each into a short rule with examples.
- Tie rules to checks (lint/test/CI) where possible.
- Keep policy docs concise and high-signal.
- Periodically prune outdated rules.