Skip to content
Skillpedia
Websites & UI (frontend)5.8k Β· #14567

plan-ui-change

What it does

This skill plans a large Blazor page or dashboard by splitting it into smaller components with clear jobs. It is for .NET developers building pages with several sections that work together.

When to use it

  • βœ“When a Blazor page has three or more distinct sections or sub-features.
  • βœ“When you want to plan how a dashboard or layout breaks into components.
  • βœ“When a single page component is growing too large and needs splitting.

Skill link

https://github.com/dotnet/skills/blob/main/plugins/dotnet-blazor/skills/plan-ui-change/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/dotnet/skills/blob/main/plugins/dotnet-blazor/skills/plan-ui-change/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

Example of what to ask your AI

β€œPlan the components for an inventory dashboard with filters, a summary bar and an editable table.”

5 new skills a week. 1 minute to read.

How it works

The agent maps each visual region to a component, classifies each one by its job, then builds the components in a sensible order.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Plan 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:

  1. Models/DTOs β€” define the data shapes
  2. Services β€” data access, business logic (interface + implementation)
  3. Leaf components β€” components with no children (InventoryRow, StockSummaryBar)
  4. Container components β€” components that compose leaves (InventoryTable, InventoryFilters)
  5. Page component β€” wires everything together, registers routes
  6. 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

FAQ

Does it write the code too?

Yes. It plans the decomposition and then implements it.

When should a region become its own component?

When it has its own data or behavior, repeats, or grows beyond a manageable size.

Can it handle a repeated list?

Yes. Repeated items, such as rows or cards, are extracted into their own item component.

Details

Original description by the author

Plan complex Blazor UI features by decomposing them into focused components. USE FOR: building a complex Blazor page with multiple sections, planning component decomposition, designing a multi-section dashboard or layout, breaking down a large UI feature into composable components, pages with sidebars and content panels, any page with 3+ distinct visual sections or multiple interacting sub-features, identifying parent-child relationships and data flow. DO NOT USE FOR: creating new Blazor projects or apps from scratch (use create-blazor-project), implementing a single individual component (use

repo: dotnet/skills

Popularity

GitHub stars
5.8k
Ranking position
#14567
License
MIT
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills