type: rule
status: active
timestamp: 2026-06-29
tags: [agents-md, self-update, knowledge-discipline, hard-rule]

Rule additions land in 3 places: concept file + AGENTS.md table + count

Add rule: write to knowledge/rules/ + AGENTS.md entry + bump section count. All three same commit

Three-place update when a rule is added

Rule

When user says “add this rule” or a locked grill answer becomes a rule:

PlaceAction
1. Concept fileWrite knowledge/rules/<area>/<kebab-name>.md with OKF frontmatter and body
2. AGENTS.md tableAdd a one-line entry under the relevant subsection (e.g. ### Agent behaviour (N) — knowledge/rules/agent/)
3. Count headerBump ### <Category> (N) — ... count to N+1 AND the top-of-file ## Rules (TOTAL) — non-negotiable total

All three in the same commit. Conventional commit: docs(knowledge): add <slug> rule (3-place update).

Why all three

When this rule fires

When this rule does NOT fire

Anti-patterns

Cross-refs


Edit on GitHub · Back to index