Neo dotnet mvc
Neo Skills 是專為現代 AI Agent 設計的全方位能力擴充套件。本專案透過標準化的通訊架構,為 AI 代理安裝可插拔的「技能模組 (Skills)」,使其不僅僅是一個聊天機器人,而是能轉化為具備「感知-推理-行動」能力的多領域專家。
npx -y skills add Benknightdark/neo-skills --skill neo-dotnet-mvcAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 7 stars7 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
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.
SKILL.md
4.2 KB, as published. Nobody here has run it
.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 - 10)
.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+ (Version-Specific Features)
- Extension Members for IHtmlHelper: Extending view helper functions.
- Advanced Serialization in Views: Performance optimization for large view models.
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.