Shared Rule Capture — turn repetition into enforced memory
Overview
When the owner has to say the same thing more than once, the build has failed to remember. This skill captures repeated owner rules as skills, laws, or code gates in the same turn so future agents load them automatically and cannot violate them.
When to Use
- The owner says "I already told you...", "always...", "never...", "do X before Y", or repeats a constraint.
- You notice yourself about to restate a rule the owner already stated this session.
- A governor or audit report shows high
owner_restatementcounts.
Core Pattern
- Detect repetition. Note when a rule-like statement appears from the owner.
- Draft a skill or law candidate in the same turn.
- Write it immediately. Do not ask for approval. Place it in the correct skill directory and update
AGENTS.mdif project-specific. - Add a mechanical gate wherever possible (pre-commit hook, protected-feature check, governor detector, watch rule) so the rule enforces itself.
- Run the original task under the new rule, then verify the rule is loaded next time.
Rules
- Capture the rule in the same turn it is stated or confirmed.
- Do not ask the owner for approval to capture a rule. Approval requests are themselves restatement failures. Write the skill, then tell the owner what you captured.
- Task-only or capture-only is a half-failure: capture, then run the task, then verify the rule is loaded next time.
- A skill candidate must be <500 words and include concrete triggers, not abstract philosophy.
- Do not capture one-off corrections that are specific to a single bug. Capture patterns.
- If a rule can be enforced by code, enforce it by code in the same PR/turn (pre-commit, check script, governor detector, or watch rule).
Red Flags
- "I keep having to tell you..."
- "Same problem as last time..."
- "Why did you do X again?"
- Writing a long explanation instead of a skill.
- Asking "should I capture this as a skill?"
- Capturing a rule without adding a mechanical gate.
Verify
After capturing: the next agent session that touches the same topic loads the skill and follows it without the owner restating it.
After adding a gate: run the gate and confirm it blocks the failure mode it was written for.