blazor-expert▌
markpitt/claude-skills · updated May 26, 2026
MDX-style export adds YAML metadata + attribution linking explainx.ai and this canonical listing URL.
Expert-level guidance for developing applications with Blazor, Microsoft's framework for building interactive web UIs using C# instead of JavaScript.
Blazor Expert - Orchestration Hub
Expert-level guidance for developing applications with Blazor, Microsoft's framework for building interactive web UIs using C# instead of JavaScript.
Quick Reference: When to Load Which Resource
| Task | Load Resource | Key Topics |
|---|---|---|
| Build components, handle lifecycle events | components-lifecycle.md | Component structure, lifecycle methods, parameters, cascading values, RenderFragment composition |
| Manage component state, handle events | state-management-events.md | Local state, EventCallback, data binding, cascading state, service-based state |
| Configure routes, navigate between pages | routing-navigation.md | Route parameters, constraints, navigation, NavLink, query strings, layouts |
| Build forms, validate user input | forms-validation.md | EditForm, input components, DataAnnotations validation, custom validators |
| Setup authentication & authorization | authentication-authorization.md | Auth setup, AuthorizeView, Authorize attribute, policies, claims |
| Optimize performance, use JavaScript interop | performance-advanced.md | Rendering optimization, virtualization, JS interop, lazy loading, WASM best practices |
Orchestration Protocol
Phase 1: Task Analysis
Identify your primary objective:
- UI Building → Load components-lifecycle.md
- State Handling → Load state-management-events.md
- Navigation → Load routing-navigation.md
- Data Input → Load forms-validation.md
- User Access → Load authentication-authorization.md
- Speed/Efficiency → Load performance-advanced.md
Phase 2: Resource Loading
Open the recommended resource file(s) and search for your specific need using Ctrl+F. Each resource is organized by topic with working code examples.
Phase 3: Implementation & Validation
- Follow code patterns from the resource
- Adapt to your specific requirements
- Test in appropriate hosting model (Server/WASM/Hybrid)
- Review troubleshooting section if issues arise
Blazor Hosting Models Overview
Blazor Server
- How: Runs on server via SignalR
- Best For: Line-of-business apps, need full .NET runtime, small download size
- Trade-offs: High latency, requires connection, server resource intensive
Blazor WebAssembly
- How: Runs in browser via WebAssembly
- Best For: PWAs, offline apps, no server dependency, client-heavy applications
- Trade-offs: Large initial download, limited .NET APIs, slower cold start
Blazor Hybrid
- How: Runs in MAUI/WPF/WinForms with Blazor UI
- Best For: Cross-platform desktop/mobile apps
- Trade-offs: Platform-specific considerations, additional dependencies
Decision: Choose based on deployment environment, offline requirements, and server constraints.
Common Implementation Workflows
Scenario 1: Build a Data-Entry Component
- Read components-lifecycle.md - Component structure section
- Read state-management-events.md - EventCallback pattern
- Read forms-validation.md - EditForm component
- Combine: Create component with parameters → capture user input → validate → notify parent
Scenario 2: Implement User Authentication & Protected Pages
- Read authentication-authorization.md - Setup section
- Read routing-navigation.md - Layouts section
- Read authentication-authorization.md - AuthorizeView section
- Combine: Configure auth → create login page → protect routes → check auth in components
Scenario 3: Build Interactive List with Search/Filter
- Read routing-navigation.md - Query strings section
- Read state-management-events.md - Data binding section
- Read performance-advanced.md - Virtualization section
- Combine: Capture search input → update URL query → fetch filtered data → virtualize if large
Scenario 4: Optimize Performance of Existing App
- Read performance-advanced.md - All sections
- Identify bottlenecks:
- Unnecessary renders? → ShouldRender override, @key directive
- Large lists? → Virtualization
- JS latency? → Module isolation pattern
- Apply targeted optimizations from resource
Key Blazor Concepts
Component Architecture
- Components: Self-contained UI units with optional logic
- Parameters: Inputs to components, enable reusability
- Cascading Values: Share state with descendants without explicit parameters
- Events: Child-to-parent communication via EventCallback
- Layouts: Parent wrapper for consistent page structure
State Management
- Local State: Component-specific fields and properties
- Cascading Values: Share state to descendants
- Services: Application-wide state via dependency injection
- Event Binding: React to user interactions
- Data Binding: Two-way synchronization with UI
Routing & Navigation
- @page Directive: Make component routable
- Route Parameters: Pass data via URL (
{id:int}) - Navigation: Programmatic navigation via NavigationManager
- NavLink: UI component that highlights active route
- Layouts: Wrap pages with common structure
Forms & Validation
- EditForm: Form component with validation support
- Input Components: Typed controls (InputText, InputNumber, etc.)
- Validators: DataAnnotations attributes or custom logic
- EventCallback: Notify parent of form changes
- Messages: Display validation errors to user
Authentication & Authorization
- Claims & Roles: Identify users and define access levels
- Policies: Fine-grained authorization rules
- Authorize Attribute: Protect pages from unauthorized access
- AuthorizeView: Conditional rendering based on permissions
- AuthenticationStateProvider: Get current user information
Performance Optimization
- ShouldRender(): Prevent unnecessary re-renders
- @key Directive: Help diffing algorithm match list items
- Virtualization: Render only visible items in large lists
- JS Interop: Call JavaScript from C# and vice versa
- AOT/Trimming: Reduce WASM download size (production)
Best Practices Highlights
Component Design
✅ Single Responsibility - Each component has one clear purpose
✅ Composition - Use RenderFragments for flexible layouts
✅ Parameter Clarity - Use descriptive names, mark required with [EditorRequired]
✅ Proper Disposal - Implement IDisposable to clean up resources
✅ Event-Based Communication - Use EventCallback for child-to-parent updates
State Management
✅ EventCallback Over Action - Proper async handling ✅ Immutable Updates - Create new objects/collections, don't mutate ✅ Service-Based State - Use scoped services for shared state ✅ Unsubscribe from Events - Prevent memory leaks in Dispose ✅ InvokeAsync for Background Threads - Thread-safe state updates
Routing & Navigation
✅ Route Constraints - Use :int, :guid, etc. to validate formats
✅ NavLink Component - Automatic active state highlighting
✅ forceLoad After Logout - Clear client-side state
✅ ReturnUrl Pattern - Redirect back after login
✅ Query Strings - Preserve filters/pagination across navigation
Forms & Validation
✅ EditForm + DataAnnotationsValidator - Built-in validation ✅ ValidationMessage - Show field-level errors ✅ Custom Validators - Extend for complex rules ✅ Async Validation - Check server availability before submit ✅ Loading State - Disable submit button while processing
Authentication & Authorization
✅ Server Validation - Never trust client-side checks alone ✅ Policies Over Roles - More flexible authorization rules ✅ Claims for Details - Store user attributes in claims ✅ Cascading AuthenticationState - Available in all components ✅ Error Boundaries - Graceful error handling
Performance
✅ @key on Lists - Optimize item matching ✅ ShouldRender Override - Prevent unnecessary renders ✅ Virtualization for Large Lists - Only render visible items ✅ JS Module Isolation - Load and cache JS modules efficiently ✅ AOT for WASM - Production deployments
Common Troubleshooting
Component Not Re-rendering
- Cause: Mutation instead of reassignment
- Fix: Create new object/collection:
items = items.Append(item).ToList() - Or: Call
StateHasChanged()manually
Parameter Not Updating
- Cause: Parent not re-rendering or same object reference
- Fix: Parent must re-render, ensure new reference for objects
- Debug: Check OnParametersSet is firing
JS Interop Errors
- Cause: Called before script loaded or wrong function name
- Fix: Use
firstRendercheck, verify JS file path - Pattern: Use module isolation:
await JS.InvokeAsync("import", "./script.js")
Authentication State Not Available
- Cause: Cascading parameter not provided or timing issue
- Fix: Ensure AuthenticationStateProvider configured
- Pattern: Always null-check and use
await AuthStateTask!in code block
Large List Performance Issues
- Cause: Rendering all items in DOM
- Fix: Use Virtualize component for 1000+ items
- Alternative: Paginate with buttons/infinite scroll
Blazor Server Connection Issues
- Cause: SignalR connection dropped or configuration issue
- Fix: Implement reconnection UI, increase timeout
- Config: Adjust
CircuitOptions.DisconnectedCircuitRetentionPeriod
Resource Files Summary
components-lifecycle.md
Complete guide to component structure, lifecycle methods, parameters, cascading values, and composition patterns. Essential for understanding Blazor component fundamentals.
state-management-events.md
Comprehensive coverage of local and service-based state, event handling with EventCallback, data binding patterns, and component communication. Core for interactive UI building.
routing-navigation.md
Complete routing reference including route parameters, constraints, programmatic navigation, query strings, and layout management. Essential for multi-page apps.
forms-validation.md
Full forms API with EditForm component, input controls, DataAnnotations validation, custom validators, and form patterns. Required for data entry scenarios.
authentication-authorization.md
Complete auth setup for Server and WASM, AuthorizeView, policies, claims-based access control, and login/logout patterns. Necessary for secured applications.
performance-advanced.md
Performance optimization techniques including ShouldRender, virtualization, JavaScript interop patterns, lazy loading, and WASM best practices. Vital for production apps.
Implementation Approach
When implementing Blazor features:
- Identify Your Task - Match against the decision table above
- Load Relevant Resource - Read the appropriate .md file
- Find Code Example - Search resource for similar implementation
- Adapt to Your Context - Modify for your specific requirements
- Test Thoroughly - Verify in your hosting model
- Reference Troubleshooting - Consult resource if issues arise
Next Steps
- New to Blazor? Start with components-lifecycle.md
- Building Data App? Move through: components → state → forms → validation
- Scaling Existing App? Focus on performance-advanced.md
- Adding Security? Follow authentication-authorization.md
Version: 2.0 - Modular Orchestration Pattern
Last Updated: December 4, 2025
Status: Production Ready ✅
How to use blazor-expert on Cursor
AI-first code editor with Composer
Prerequisites
Before installing skills in Cursor, ensure your development environment meets these requirements:
- ›Cursor installed and configured on your development machine
- ›Node.js version 16.0+ with npm package manager (verify with
node --version) - ›Active project directory or workspace where you want to add blazor-expert
Execute installation command
Execute the skills CLI command in your project's root directory to begin installation:
The skills CLI fetches blazor-expert from GitHub repository markpitt/claude-skills and configures it for Cursor.
Select Cursor when prompted
The CLI will show a list of available agents. Use arrow keys to navigate and space to select Cursor:
Verify installation
Confirm successful installation by checking the skill directory location:
Reload or restart Cursor to activate blazor-expert. Access the skill through slash commands (e.g., /blazor-expert) or your agent's skill management interface.
Security & Verification Notice
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your development environment. Always verify the publisher's identity, review recent commits, and test in isolated environments before production deployment.
List & Monetize Your Skill
Submit your Claude Code skill and start earning
Use Cases▌
User Story & Requirements Generation
Create detailed user stories, acceptance criteria, and feature specs
Example
Generate user stories for 'password reset feature' with acceptance criteria, edge cases, and test scenarios
Reduce spec writing time by 50%, ensure comprehensive coverage
Competitive Analysis
Research competitors, compare features, identify gaps
Example
Analyze 5 competitor products, create feature comparison matrix, suggest differentiation opportunities
Complete competitive research in 2 hours instead of 2 days
Roadmap Prioritization
Evaluate features using frameworks (RICE, ICE, Kano) and create prioritized backlogs
Example
Score 20 feature ideas using RICE framework, generate prioritized roadmap with rationale
Make data-driven prioritization decisions faster
Stakeholder Communication
Draft PRDs, status updates, and stakeholder presentations
Example
Create executive summary of Q3 roadmap, monthly progress report, feature launch announcement
Save 3-5 hours/week on communication overhead
Implementation Guide▌
Prerequisites
- ›Claude Desktop or compatible AI client
- ›Access to product documentation and roadmap tools (Jira, Notion, etc.)
- ›Understanding of product management frameworks (RICE, Jobs-to-be-Done, etc.)
- ›Stakeholder contact information and communication channels
Time Estimate
30-60 minutes to see productivity improvements
Installation Steps
- 1.Install product management skill
- 2.Start with user story generation for known feature
- 3.Progress to competitive analysis: research 2-3 competitors
- 4.Use for roadmap prioritization: apply RICE/ICE scoring
- 5.Draft stakeholder communications and refine based on feedback
- 6.Build template library for recurring PM tasks
- 7.Share effective prompts with product team
Common Pitfalls
- ⚠Not validating competitive research—verify facts before sharing
- ⚠Accepting user stories without involving engineering team
- ⚠Over-relying on frameworks without qualitative judgment
- ⚠Not customizing outputs to company culture and communication style
- ⚠Skipping stakeholder validation of generated requirements
Best Practices▌
✓ Do
- +Validate research and competitive analysis with real data
- +Collaborate with engineering when generating technical requirements
- +Customize frameworks and templates to your company context
- +Use skill for first drafts, refine with stakeholder input
- +Document successful prompt patterns for PM tasks
- +Combine AI efficiency with human judgment and intuition
✗ Don't
- −Don't publish competitive analysis without fact-checking
- −Don't finalize user stories without engineering review
- −Don't make prioritization decisions solely on AI scoring
- −Don't skip customer validation of generated requirements
- −Don't ignore company-specific context and culture
💡 Pro Tips
- ★Provide context: company goals, constraints, customer feedback
- ★Ask for alternatives: 'Show 3 ways to prioritize this roadmap'
- ★Request stakeholder-specific formatting: 'Executive summary vs. engineering spec'
- ★Use skill for 70% generation + 30% customization to company needs
When to Use This▌
✓ Use When
Use for user story writing, competitive research, roadmap prioritization, stakeholder communication, and PRD drafting. Best for reducing repetitive documentation and research work.
✗ Avoid When
Avoid for strategic product vision (requires deep customer empathy), pricing decisions (needs market and financial expertise), or when face-to-face customer discovery is more valuable than speed.
Learning Path▌
- 1Basic: user stories, feature specs, status updates
- 2Intermediate: competitive analysis, prioritization frameworks, PRDs
- 3Advanced: product strategy, go-to-market planning, OKR setting
- 4Expert: product vision, market positioning, business model innovation
Discussion
Product Hunt–style comments (not star reviews)- No comments yet — start the thread.
Ratings
4.7★★★★★26 reviews- ★★★★★Isabella Smith· Dec 4, 2024
Keeps context tight: blazor-expert is the kind of skill you can hand to a new teammate without a long onboarding doc.
- ★★★★★Isabella Khan· Nov 23, 2024
blazor-expert is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
- ★★★★★Aarav Ndlovu· Nov 19, 2024
blazor-expert fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
- ★★★★★Kiara Bansal· Nov 3, 2024
I recommend blazor-expert for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
- ★★★★★Li White· Oct 22, 2024
blazor-expert reduced setup friction for our internal harness; good balance of opinion and flexibility.
- ★★★★★Isabella Huang· Oct 14, 2024
blazor-expert fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
- ★★★★★Nia Li· Oct 10, 2024
blazor-expert is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
- ★★★★★James Martin· Sep 17, 2024
Solid pick for teams standardizing on skills: blazor-expert is focused, and the summary matches what you get after install.
- ★★★★★Rahul Santra· Sep 1, 2024
Useful defaults in blazor-expert — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
- ★★★★★Pratham Ware· Aug 20, 2024
blazor-expert has been reliable in day-to-day use. Documentation quality is above average for community skills.
showing 1-10 of 26