aspnet-framework-frontend
1
总安装量
1
周安装量
#52290
全站排名
安装命令
npx skills add https://github.com/rscoopcur/aspnet-framework-skills --skill aspnet-framework-frontend
Agent 安装分布
opencode
1
codex
1
Skill 文档
ASP.NET Framework Frontend
Overview
Use this skill for ASP.NET Framework frontend architecture and implementation. Keep framework-specific code guidance in sync with official Microsoft Learn documentation before giving final recommendations.
Core Workflow
- Identify stack and runtime.
- Confirm ASP.NET Framework (MVC 5, Web API 2, Web Forms, System.Web) versus ASP.NET Core.
- Detect target runtime from
.csproj,packages.config, orweb.config. - State assumptions when the runtime is unknown.
- Choose frontend strategy.
- Choose Vue 2 for legacy maintenance and Options API continuity.
- Choose Vue 3 for new/expanded client-side features and composables.
- Choose Alpine.js for lightweight progressive enhancement in server-rendered pages.
- Use Vue + Alpine only with strict root-element isolation.
- Implement ASP.NET integration path.
- Define bundles in
BundleConfig.csand toggle optimization by environment. - Pass server data to client using strongly typed models or serialized payloads.
- Use Web API endpoints with anti-forgery validation on state-changing requests.
- Centralize fetch helpers and error handling in shared JavaScript utilities.
- Validate against official documentation.
- Load
references/microsoft-learn-dotnet-framework.mdfor install/version/support questions. - Confirm lifecycle and support answers against policy pages before finalizing.
- Use absolute dates when reporting end-of-support milestones.
- Deliver response.
- Provide minimal safe implementation steps first.
- Separate maintenance guidance from optional migration guidance.
- Add direct documentation links used for the recommendation.
Guardrails
- Do not mix ASP.NET Core implementation details into ASP.NET Framework instructions.
- Do not use
v-htmlorx-htmlfor untrusted input. - Do not omit anti-forgery token handling for
POST,PUT, orDELETE. - Do not recommend Vue 2 for new greenfield work unless constraints require it.
Reference Loading Order
references/aspnet-integration.md
- Use for ASP.NET MVC/Web API + frontend integration structure.
- Framework-specific reference
references/vue2-best-practices.mdreferences/vue3-best-practices.mdreferences/alpinejs-best-practices.md
- Official documentation map
references/microsoft-learn-dotnet-framework.md- Use for runtime versions, installation, API browser, and lifecycle policy routing.
Quick Checklist
- Confirm runtime target (.NET Framework 4.x variant).
- Select Vue 2, Vue 3, or Alpine with explicit rationale.
- Implement bundle strategy and server-to-client data transfer.
- Include anti-forgery flow in API calls.
- Verify support/lifecycle answers with official policy links.