---
name: reflect
description: Turn Maya's repeated "No, actually" corrections from learning/corrections.jsonl into rules in rules.json and CLAUDE.md, park one-off corrections in learning/candidates.md, then replan with the week skill.
---
# reflect

1. Read learning/corrections.jsonl. Each line has "time", "message" and "words". Do not edit this file.
2. Group corrections that say the same thing.
3. If a group has corrections from two or more different "message" ids:
   - Write ONE short rule in Maya's own words (reuse her wording, do not add to it).
   - Add it to rules.json under "rules": {"id": "R1" (next free id), "text": the rule, "receipts": [{"time": ..., "words": exact words}, ...] one per correction}.
   - Add the same rule, with its id, to the "Rules" section of CLAUDE.md.
   - Skip it if an equal rule already exists; add any new receipts to it instead.
4. A group from only one message goes in learning/candidates.md (time and exact words). Nothing else.
5. Never invent a rule. Never make a rule from a correction you guessed at, or from one message.
6. Then replan with the week skill.
