andresharpe/dotbot/blazor-component-design
Claude Code and agent skill by andresharpe/dotbot
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Install
npx vskill@latest install 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, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingcontent/stacks/dotnet-blazor/recipes/skills/blazor-component-design/SKILL.md
Popularity
- Repository stars
- 50
- Repository forks
- 24
- 7-day trend score
- 20
Stars and forks are for the whole GitHub repository, not this skill alone. 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/andresharpe/dotbot/blazor-component-design)