
Plan UI Change
FreeDecompose complex Blazor UIs into manageable components.
Free · Opens the source repo
What Plan UI Change does
The Plan UI Change skill is designed to assist developers in structuring complex Blazor user interfaces by breaking them down into focused, reusable components. This approach is essential for creating maintainable and scalable applications, particularly when dealing with pages that have multiple distinct visual sections or interactive features. By following a systematic planning workflow, users can identify visual regions, classify components, and design data flow effectively, ensuring that each component has its own responsibility and can be developed independently.
The skill guides users through a structured process that starts with mapping the visual regions of the UI. Each distinct area that manages its own data or behavior is identified as a candidate for a separate component. This is followed by classifying each component based on its responsibilities, which helps in understanding how they will interact within the overall application. The skill emphasizes the importance of data flow, ensuring that data is passed down through parameters while events are communicated upwards via EventCallbacks, maintaining a clear separation of concerns.
Additionally, the skill provides guidelines for identifying opportunities for reuse, encouraging developers to leverage existing components rather than creating new ones from scratch. This not only speeds up the development process but also promotes consistency across the application. Finally, it outlines an implementation order that prioritizes building components from the ground up, ensuring that each piece is independently compilable and ready for integration.
Overall, the Plan UI Change skill is an invaluable resource for developers looking to enhance their Blazor applications by adopting best practices in component-based architecture, ultimately leading to cleaner code and a more efficient development workflow.
When to use it
Use this skill when developing complex Blazor pages with multiple sections that require careful planning and decomposition into components.
When not to use it
This skill is not suitable for creating new Blazor projects from scratch or for implementing single, simple components.
What you can build with it
Designing a Multi-Section Dashboard
When tasked with creating a dashboard that displays various metrics, use this skill to plan and decompose the dashboard into distinct components like charts, filters, and summary stats.
Building a Complex Inventory Management Page
For an inventory management application, utilize this skill to break down the UI into components such as inventory tables, forms for adding products, and filters for searching.
Refactoring a Monolithic Blazor Page
If you have a large Blazor page that has grown unwieldy, apply this skill to identify and extract reusable components, improving code maintainability.
How to install Plan UI Change
View source1. Install with the skills CLI
npx skills add dotnet/skills/plan-ui-change --agent claude-code2. Or install it manually
Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.
Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs
Inside SKILL.md
Written by dotnetPlan a Blazor UI Change
When asked to build a complex UI feature, plan the component decomposition first, then immediately implement it. A single monolithic page component is almost never the right answer — break the UI into focused, composable components.
Planning Workflow
Step 1 — Map the Visual Regions
Read the request and identify every distinct visual region. Each region that has its own data, behavior, or layout responsibility is a candidate component.
Draw the component tree:
InventoryDashboard (page — owns data, orchestrates layout)
├── StockSummaryBar (read-only stats: total items, low-stock count, value)
├── InventoryFilters (search box, category dropdown, stock-level toggle)
├── InventoryTable (sortable table of products)
│ └── InventoryRow (single product row with inline edit/delete)
└── AddProductForm (slide-out form for new products)
Rules for identifying components:
- Distinct responsibility — a region owns its own state or behavior → separate component
- Repeated structure — items in a list, cards in a grid → extract the item template
- Independent interactivity — a section that handles user input separately from its siblings → separate component
- Size — any section that would exceed ~150 lines of markup on its own → split it
Step 2 — Classify Each Component
For every component in the tree, determine:
| Component | Action | Render Mode | State Owned | Lines (est.) |
|---|---|---|---|---|
| InventoryDashboard | Create | InteractiveServer | product list, filter state | ~80 |
| StockSummaryBar | Create | (inherits) | none — receives data | ~30 |
| InventoryFilters | Create | (inherits) | search text, selected category | ~60 |
| InventoryTable | Create | (inherits) | sort column, sort direction | ~50 |
| InventoryRow | Create | (inherits) | inline-edit mode flag | ~60 |
| AddProductForm | Create | (inherits) | form model | ~80 |
A page component that exceeds ~200 lines of combined markup + code is too large. If your estimate puts a single component above that, split further.
Step 3 — Design Data Flow
Identify the state owner for each piece of data, then map how it flows:
InventoryDashboard (owns: products[], filters)
│
├─ [Parameter] products ──→ StockSummaryBar (reads aggregate stats)
│
├─ [Parameter] filters ──→ InventoryFilters
│ └─ EventCallback<Filters> OnFiltersChanged ──→ InventoryDashboard
│
├─ [Parameter] filteredProducts ──→ InventoryTable
│ └─ [Parameter] product ──→ InventoryRow
│ ├─ EventCallback<Product> OnSave ──→ InventoryTable ──→ InventoryDashboard
│ └─ EventCallback<Product> OnDelete ──→ InventoryTable ──→ InventoryDashboard
│
└─ EventCallback<Product> OnProductAdded ←── AddProductForm
Rules:
- Data always flows down through
[Parameter] - Events always flow up through
EventCallback<T> - The page/parent owns the data and passes filtered/transformed views to children
- Children never mutate parameters — they notify the parent via callbacks
- If data must cross more than 2 levels without intermediate components needing it, use a cascading value or a scoped service
Step 4 — Identify Reuse Opportunities
Before creating a new component, check if an existing component in the project can serve the purpose. Look for:
- Existing list-item components that match the structure
- Shared filter/search components already in the project
- Generic components (e.g.,
DataTable<T>,Pagination) that accept templates
If a component will be used in more than one page, place it in a Shared/ or Components/ folder.
Step 5 — Order the Implementation
Build bottom-up — leaf components first, then parents that compose them:
- Models/DTOs — define the data shapes
- Services — data access, business logic (interface + implementation)
- Leaf components — components with no children (InventoryRow, StockSummaryBar)
- Container components — components that compose leaves (InventoryTable, InventoryFilters)
- Page component — wires everything together, registers routes
- Configuration — DI registration, render mode setup
Each component should be independently compilable. Never reference a component that doesn't exist yet.
Output Format
Present the plan briefly, then immediately proceed to implement — never stop at just the plan or ask for confirmation before writing code. The plan is a thinking tool, not a deliverable.
## Component Plan: [Feature Name]
### Component Tree
[ASCII tree showing parent-child relationships]
### Component Table
| Component | Action | Render Mode | Purpose | Est. Lines |
|-----------|--------|-------------|---------|------------|
| ... | ... | ... | ... | ... |
### Data Flow
[State owner] → [Parameters down] → [EventCallbacks up]
### Implementation Order
1. [First file to create — why]
2. [Second file — why]
...
After outputting the plan, immediately begin implementing the components in the order listed. Do not wait for approval or ask "shall I proceed?" — the plan is a guide for you to follow, not a proposal for the user to approve.
Anti-Patterns to Avoid
| Anti-Pattern | Why It's Wrong | Correct Approach |
|---|---|---|
| One page component with 500+ lines | Impossible to test, reuse, or maintain | Decompose into focused components |
| Passing 10+ parameters through intermediate components | Parameter drilling obscures intent | Use cascading values or a scoped state service |
| Child component fetching its own data from an API | Multiple components making redundant calls | Parent owns data, passes via parameters |
| Inline rendering of list items with complex markup | Duplicated logic, no reuse, hard to test | Extract item template into its own component |
| Building everything in one file then "refactoring later" | Refactoring rarely happens; the monolith ships | Plan the decomposition upfront |
| Generic components for one-off usage | Over-engineering adds complexity | Only extract generics when reuse is proven |
Guidelines
- Plan briefly, then implement. Write a concise component table and data flow map, then immediately create the
.razorfiles — never stop at just the plan. - Prefer many small components over one large one. A component with a single clear purpose is easier to understand, test, and reuse.
- State ownership is the first decision. Before writing fetch logic, decide which component owns the data.
- Build bottom-up. Create leaf components first so parent components can reference them immediately.
- Name components after what they render, not what they do internally:
ProductCardnotProductRenderer,OrderFiltersnotFilterHandler.
Frequently asked questions about Plan UI Change
Similar skills
Playwright Component Testing
Test React and Vue components in isolation with Playwright.
Fluent UI Blazor
Integrate Fluent UI components in Blazor applications effortlessly.
Build MCP App
Create interactive UI widgets for MCP servers.
Web Design Reviewer
Identify and fix design issues in websites efficiently.
Markstream Install
Seamlessly integrate Markstream for Markdown rendering.
GSAP & Framer Scroll Animation
Create advanced scroll animations effortlessly.
