
Description
Coordinate Components is a Blazor agent skill from the dotnet/skills repository for sharing state between components that are not linked by a direct parent and child parameter. Before changing code the agent reads the project's AGENTS.md to learn its conventions, then chooses a mechanism based on scope. A CascadingValue component covers a subtree in one render mode, such as theme or layout settings. A CascadingValueSource registered through dependency injection covers app-wide values across render modes, like the current user, feature flags or a global theme. A scoped service with an Action change event handles mutable shared state within a circuit, such as a shopping cart, notification count or selected filters. Simple one-level cases and prerender persistence are pointed to sibling skills.…
Highlights
- Picks a state-sharing mechanism by scope
- CascadingValue for subtree values
- CascadingValueSource through DI for app-wide state
- Scoped services with change events for mutable state
- Reads AGENTS.md before editing
Ratings & Reviews
No ratings yet
Be the first to rate coordinate-components.
People also visit

author-component
Create or review Blazor components (.razor files) with correct architecture

support-prerendering
Make interactive Blazor components work correctly with prerendering

plan-ui-change
Plan complex Blazor UI features by decomposing them into focused components

create-blazor-project
Create a new ASP.NET Core web application or web site using Blazor

csharp-developer
Building C# applications with .NET 8+, ASP.NET Core APIs, or Blazor web apps
coordinate-components FAQ
What problem does this skill solve?
Sharing state between Blazor components that don't have a direct parent-child parameter relationship.
Which mechanisms does it use?
CascadingValue for a subtree, CascadingValueSource<T> through DI for app-wide state across render modes, and a scoped service with an Action event for mutable state within a circuit.
What about simple parent to child data?
For one level from parent to child, the skill points to [Parameter] and EventCallback in the author-component skill. Persisting state across prerendering is covered by the support-prerendering skill.
How do I add this skill to my agent?
Use the skills CLI: `npx skills add https://github.com/dotnet/skills --skill coordinate-components`. This pulls the skill from dotnet/skills on GitHub.
Has the skill been security audited?
Yes. Results shown on skills.sh: Gen Agent Trust Hub: Pass, Socket: Pass, Snyk: Pass.
What are the best coordinate-components alternatives?
Popular alternatives to coordinate-components include author-component, use-js-interop and support-prerendering. See all coordinate-components alternatives











