coordinate-components
Installation
SKILL.md
Coordinate Components
Step 1 — Read AGENTS.md
Read AGENTS.md at the workspace root to learn the project's conventions before making changes.
Step 2 — Decide the scope
| Need | Mechanism | When to use |
|---|---|---|
| Subtree (same render mode) | CascadingValue component |
Theme, layout config within a layout |
| App-wide (all render modes) | CascadingValueSource<T> via DI |
Current user, feature flags, theme shared globally |
| Mutable shared state within a circuit | Scoped service + Action event |
Shopping cart, notification count, selected filters |
For parent→child one level: use [Parameter] / EventCallback (see author-component skill).
For persisting state across prerender→interactive: see support-prerendering skill.