neo-dotnet-mvclisted
Install: claude install-skill Benknightdark/neo-skills
# .NET MVC Expert Skill
## Trigger On
- The user requests to create, debug, refactor, or review ASP.NET Core MVC applications.
- The project contains `Views` and `Controllers` directories and inherits from `Controller` (not `ControllerBase`).
- The target framework is .NET 6.0 (LTS) and above.
- There is a need to optimize Server-Side Rendering (SSR) performance or improve view organizational structure.
## Workflow
1. **Perceive (Architecture Awareness):**
- Check `.csproj` to identify `TargetFramework`.
- Analyze `Views/Shared` to confirm existing configurations for layouts and partial views.
- Identify whether Tag Helpers and static resource versioning are enabled.
2. **Reason (Planning Phase):**
- Evaluate whether complex Partial Views need to be migrated to View Components.
- Determine whether custom Tag Helpers are needed to simplify UI logic.
- Choose an appropriate ViewModel organization method based on project scale.
3. **Act (Execution Phase):**
- Write high-quality controllers and strongly-typed views.
- Implement data validation (Data Annotations) and integrate them into ViewModels.
- Configure and use Tag Helpers to ensure the semantic correctness of forms and links.
4. **Validate (Standard Validation):**
- Validate whether page rendering conforms to the expected HTML structure.
- Check whether model validation correctly operates on both the frontend and backend.
- Ensure Antiforgery tokens are correctly applied to all state-m