review-bench/andresharpe_dotbot/blazor-component-design
Claude Code and agent skill by review-bench/andresharpe_dotbot
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Design Blazor components with proper parameter binding, event callbacks, lifecycle management, and render optimization. Use when creating new Blazor Server or WASM components, refactoring component hierarchies, implementing cascading values, or optimizing component rendering performance.
Install
npx vskill@latest install review-bench/andresharpe_dotbot/blazor-component-designSKILL.md
Blazor Component Design
Design and implement Blazor components following project conventions.
Workflow
- Define component parameters — identify inputs, event callbacks, and cascading values
- Implement render logic — keep
.razorlean, extract complex logic to code-behind - Wire parent-child communication — use
EventCallback<T>for upward data flow - Handle lifecycle — implement
OnInitializedAsync,OnParametersSetAsyncas needed - Optimize rendering — add
@keyfor lists,ShouldRender()for expensive components
Component Structure
Code-Behind Pattern
Best Practices
- Parameters over cascading values — explicit data flow is easier to trace and debug
- `EventCallback<T>` for parent-child communication — never mutate parent state directly
- Code-behind for components with logic — keeps
.razorfocused on markup - `@key` directive on list items — prevents DOM thrashing on re-renders
- `IDisposable` when subscribing to events, timers, or injected services with subscriptions
- `[EditorRequired]` on mandatory parameters — catches missing bindings at compile time
Checklist
- [ ] Component parameters use
[Parameter]with[EditorRequired]where appropriate - [ ] Parent-child communication uses
EventCallback<T>, not direct state mutation - [ ] Complex logic extracted to code-behind (
.razor.cs) or services - [ ]
@keyadded to list-rendered items - [ ]
IDisposableimplemented when subscribing to events or services - [ ] Render logic is minimal — no heavy computation in
.razormarkup
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingstacks/dotnet-blazor/recipes/skills/blazor-component-design/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/review-bench/andresharpe_dotbot/blazor-component-design)