Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1.2 KiB
1.2 KiB
name, description
| name | description |
|---|---|
| explain | Explain code and its interactions. Trigger when the operator asks what code does, how a mechanism works, why components interact, or invokes /explain on a file, function, role or module. |
Explain the named code so an engineer who has never seen it can follow it:
- Read the code and every collaborator it touches (callers, callees, templates, configs) before explaining; never explain from the name alone.
- Lead with the purpose in one sentence, then walk the flow in execution order: inputs, transformations, side effects, outputs. Name the real files and line references.
- Make the interactions explicit: which component induces, triggers, or consumes which, and where the single source of truth lives. Point out trip-wires (non-obvious ordering, escaping, caching, permission edges) as part of the flow, not as an appendix.
- Afterwards ask whether to persist a Mermaid diagram of the explained
mechanism under a
## Schemaheading in the README.md next to the affected code (create the heading if missing, replace its previous diagram if present). On approval, keep the diagram to the explained scope: components as nodes, induction/data flow as labeled edges.