What problem does it solve?
This Skill automatically checks Blazor components for adherence to best practices in structure, dependency injection, security, and naming conventions, preventing common errors and improving code maintainability.
Core Features & Use Cases
- Component Structure Validation: Verifies correct placement of
@code blocks and lifecycle method order.
- DI Pattern Enforcement: Ensures dependencies are injected via interfaces.
- Security Checks: Detects insecure token storage in
localStorage or sessionStorage.
- Naming Convention Checks: Confirms
.razor files follow PascalCase.
- Render Mode Verification: Checks for explicit
@rendermode declarations.
- Use Case: Before merging a pull request that introduces new Blazor components, run this Skill to catch potential issues related to code organization, security, and adherence to project standards.
Quick Start
Run the verify-blazor skill to check all .razor files in the current directory for adherence to coding standards.