neo-dotnet-mvc
Skill7 starsChanged 6 months agoMITView on GitHub
Use this skill when building, debugging, refactoring, or reviewing ASP.NET Core MVC apps with Razor views, controllers, ViewModels, validation, Tag Helpers, View Components, layouts, or server-rendered workflows.
In this repository28 other files it gives its agents.
- AGENTS.mdAGENTS.md
- generate-skillSkill
- neo-azure-pipelinesSkill
- neo-clarificationSkill
- neo-clean-architectureSkill
- neo-code-reviewSkill
- neo-csharp-interface-generatorSkill
- neo-csharpSkill
- neo-dotnet-ef-coreSkill
- neo-dotnet-minimal-apisSkill
- neo-dotnetSkill
- neo-dotnet-tag-helperSkill
- neo-dotnet-webapiSkill
- neo-harness-projectSkill
- neo-harnessSkill
- neo-javascriptSkill
- neo-opentelemetrySkill
- neo-prSkill
- neo-python-managerSkill
- neo-pythonSkill
- neo-rabbitmqSkill
- neo-rustSkill
- neo-stop-slopSkill
- neo-sub-agentSkill
- neo-swiftSkill
- neo-swift-uiSkill
- neo-typescriptSkill
- neo-vueSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 5 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 23
Check .csproj to identify TargetFramework.
- Distinctive: line 31
Write high-quality controllers and strongly-typed views.
- Distinctive: line 36
Check whether model validation correctly operates on both the frontend and backend.
- Distinctive: line 37
Ensure Antiforgery tokens are correctly applied to all state-modifying requests.
- Very specific: line 64
Strongly Typed Views: All views must have an explicit @model.
- Distinctive: line 67
Formatting: Follow the Allman style and use Tag Helpers instead of HTML Helpers.
- Distinctive: line 75
Ensure the code complies with C# 10+ syntax standards.
≈ “Common” is an estimate: at least 1 in 5 of the 372,429 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
.NET MVC Expert Skill
Trigger On
- The user requests to create, debug, refactor, or review ASP.NET Core MVC applications.
- The project contains
ViewsandControllersdirectories and inherits fromController(notControllerBase). - 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
- Perceive (Architecture Awareness):
- Check
.csprojto identifyTargetFramework. - Analyze
Views/Sharedto confirm existing configurations for layouts and partial views. - Identify whether Tag Helpers and static resource versioning are enabled.
- Check
- 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.
- 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.
- 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-modifying requests.
Feature Roadmap (.NET 6 - 11)
.NET 6 & 7 (Foundation)
- Tag Helpers: Declarative HTML attribute extensions.
- View Components: Logic-driven UI block modularization.
- Cache Tag Helper: Server-side view fragment caching.
- Nullable Views: Better Razor null safety support.
.NET 8 & 9 (Productivity)
- Blazor Integration: Hybrid development support for MVC and Blazor components.
- Antiforgery Improvements: Global anti-forgery automatic validation optimization.
- Keyed Services in Controllers: Finer-grained dependency injection support.
- Native AOT for MVC: Metadata compilation optimization tailored for AOT.
.NET 10 (Extensions & Serialization)
- Extension Members for IHtmlHelper: Extending view helper functions.
- Advanced Serialization in Views: Performance optimization for large view models.
.NET 11+ (Version-Specific Features)
- Zstandard (zstd) Compression for SSR: High-efficiency compression for server-rendered HTML payloads and static assets.
- Asynchronous Form Validation: Extended async validation coordination for complex input pipelines.
- Agentic UI & Blazor Component Integration: Native AG-UI / Blazor AI components in hybrid MVC apps, with
TempDatasupport in static SSR. - Runtime Async Performance: Reduced async allocation and cleaner execution traces in Razor view generation.
Coding Standards
- Strongly Typed Views: All views must have an explicit
@model. - ViewModel Separation: Strictly prohibit exposing database entities directly to views.
- Naming: View models must end with
ViewModel, action methods prioritize asynchronous patterns. - Formatting: Follow the Allman style and use Tag Helpers instead of HTML Helpers.
Deliver
- Version-Optimized MVC Code: Provide modernized controllers, models, and views suitable for the target version.
- UI Architecture Suggestions: Provide design suggestions for view components and Tag Helpers.
- Validation Logic: Provide a complete model validation and error prompting implementation plan.
Validate
- Ensure the code complies with C# 10+ syntax standards.
- Validate endpoints correctly handle model validation failures and return form states.
- Confirm static resources and scripts are correctly cached via
asp-append-version.
Documentation
Official References
- What's new in ASP.NET Core in .NET 11
- Overview of ASP.NET Core MVC
- Tag Helpers in ASP.NET Core
- View components in ASP.NET Core
Internal References
- MVC Coding Style and Naming Conventions
- MVC Anti-Patterns and Best Practices
- MVC Modern Patterns Guide
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

