| name | source-command-reflect |
| description | Convert repeated human corrections into durable repository agent rules. |
source-command-reflect
Use this skill when the user asks to run the migrated source command reflect.
Command Template
Reflect
Use this after the human corrected AI-generated work.
Process
- Read the current diff.
- Identify what the human changed.
- Decide whether the correction is local or a general repository rule.
- If it is general, update
AGENTS.md with a short stable rule.
- Route the lesson to any affected task guide under
docs/agent/.
- If it is reviewable, update
docs/REVIEW.md.
- Add or update a pattern and eval scenario when they make the behavior clearer.
- Extend
tests/knowledge_contract.cmake when the invariant is machine-checkable.
- Keep executable examples synchronized with the new rule.
- Separate first causal failures from cascading IDE or generated-file
diagnostics when generalizing the correction.
- Do not add noisy or overly specific rules.
Output
Summarize:
- What was learned.
- Which file was updated.
- Why the rule is general enough to keep.
- Which guide, review check, pattern, eval, or contract test was synchronized.