plan-ui-change
Fungsinya
Skill ini merencanakan halaman Blazor atau dasbor yang besar dengan memecahnya menjadi komponen yang lebih kecil dengan tugas yang jelas. Skill ini untuk pengembang .NET yang membangun halaman dengan beberapa bagian yang saling bekerja sama.
Kapan dipakai
- βSaat halaman Blazor memiliki tiga bagian atau fitur turunan yang berbeda atau lebih.
- βSaat Anda ingin merencanakan bagaimana dasbor atau tata letak terbagi menjadi komponen.
- βSaat komponen halaman tunggal terus membesar dan perlu dipecah.
Link skill
https://github.com/dotnet/skills/blob/main/plugins/dotnet-blazor/skills/plan-ui-change/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βRencanakan komponen untuk dasbor inventaris dengan filter, bilah ringkasan, dan tabel yang bisa diedit.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent memetakan setiap wilayah visual ke sebuah komponen, mengklasifikasikan masing-masing berdasarkan tugasnya, lalu membangun komponen dalam urutan yang masuk akal.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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:
- 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
Pertanyaan umum
Apakah juga menulis kodenya?
Ya. Skill merencanakan dekomposisi lalu menerapkannya.
Kapan sebuah wilayah menjadi komponen sendiri?
Saat memiliki data atau perilaku sendiri, berulang, atau tumbuh melampaui ukuran yang mudah dikelola.
Bisakah menangani daftar yang berulang?
Bisa. Item yang berulang, seperti baris atau kartu, diekstrak menjadi komponen item tersendiri.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 5.8k
- Peringkat
- #14567
- Lisensi
- MIT
- Diperbarui
- 2/11/2026
Komentar
- β¦
Skill lain dari repositori ini
create-custom-agent
5.8kMembantu agent Anda membuat file agen kustom VS Code dengan alatnya sendiri, instruksi, dan serah terima ke agent lain.
create-skill
5.8kMembantu agent Anda membuat skill agent baru dengan nama yang valid, deskripsi pemicu yang jelas, dan file SKILL.md yang mengikuti standar.
csharp-scripts
5.8kMembantu agent Anda menjalankan program C# kecil sebagai satu file dengan alat baris perintah .NET, tanpa membuat proyek lengkap.
dotnet-pinvoke
5.8kMembantu agent Anda memanggil pustaka native C atau C++ dari .NET dengan benar, mencakup tanda tangan, penanganan string, memori, dan safe handle.
Skill serupa
angular-developer
280kMembantu agent Anda membuat kode Angular dan memberi saran struktur proyek. Berguna saat memulai proyek baru, membuat komponen, atau meningkatkan performa.
frontend-a11y
280kMembantu agent Anda membuat antarmuka web dapat diakses semua orang. Memastikan website dan aplikasi berfungsi baik dengan screen reader dan navigasi keyboard.
frontend-patterns
280kMembuat agent Anda menerapkan pola modern dalam frontend. Mengoptimalkan performa, mengelola state, dan mengikuti praktik terbaik React dan Next.js.