
27项AI准备技能,用于生成生产级.NET代码——Clean Architecture、CQRS、DDD。可使用Claude Code、GitHub Copilot和Cursor。
概览
它教你的编码助理如何生成生产级.NET代码——Clean Architecture、CQRS、DDD——而无需每次都解释模式。 Claude 代码 |Codex |GitHub 副驾驶 |光标 “创建一个带有名称、价格和类别的产品实体” 你的助手生成一个基础班,有公开二传者,没有验证,没有事件,模式不一致。 “使用 skill 04-dotnet-domain-entity-generator,创建一个产品聚合根,包含名称(需要,最多 200)、价格(正小数)和 CategoryId 外键” 你的助手生成一个合适的 DDD 实体,包含私有设置器、Create() 工厂方法、域事件、类型错误和仓库接口——与你代码库中已有的模式匹配。 交互式安装器:选择你的代理(Claude Code、Codex、Cursor、GitHub Copilot),挑选你想要的技能,完成。不需要克隆。完整的CLI文档请参见npm上的dotnet-clean-arch。 更喜欢直接克隆还是同步链接?
概述(AI 翻译)
29项AI准备技能,教你的编码助理如何生成生产级.NET代码——Clean Architecture、CQRS、DDD——而无需每次都解释模式。
可使用: Claude代码 |Codex |GitHub 副驾驶 |光标
之前(简单提示)
“创建带有名称、价格和类别的产品实体”
你的助手生成一个基础班,有公开二传者,没有验证,没有事件,模式不一致。
之后(已安装技能)
“使用技能
04-dotnet-domain-entity-generator,创建一个产品聚合根,包含名称(必填,最多200)、价格(正小数点)和CategoryId外键”
你的助手生成一个合适的 DDD 实体,包含私有设置器、Create() 工厂方法、域事件、类型错误和存储库接口——与你代码库中已有的模式匹配。
30秒后开始
交互安装器:选择你的代理(Claude Code、Codex、Cursor、GitHub Copilot),挑选你想要的技能,完成。不需要克隆。详见npm上的dotnet-clean-arch获取完整的CLI文档。
更喜欢直接克隆还是同步链接?请参见下方安装部分获取替代方案。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
.NET Clean Architecture Skills
29 AI-ready skills that teach your coding assistant how to generate production-grade .NET code — Clean Architecture, CQRS, DDD — without explaining the patterns every time.
Works with: Claude Code | Codex | GitHub Copilot | Cursor
Before (plain prompt)
“Create a Product entity with name, price, and category”
Your assistant generates a basic class with public setters, no validation, no events, inconsistent patterns.
After (with skills installed)
“Using skill
04-dotnet-domain-entity-generator, create a Product aggregate root with Name (required, max 200), Price (positive decimal), and a CategoryId foreign key”
Your assistant generates a proper DDD entity with private setters, a Create() factory method, domain events, typed errors, and a repository interface — matching the patterns already in your codebase.
Get started in 30 seconds
npx dotnet-clean-arch
Interactive installer: pick your agent (Claude Code, Codex, Cursor, GitHub Copilot), cherry-pick the skills you want, done. No clone required. See dotnet-clean-arch on npm for full CLI docs.
Prefer to clone or symlink directly? See Installation below for alternatives.
Then follow Recipe 0: Scaffold a New Project or jump to Recipe 1: Add a CRUD Feature if you already have a solution.
Skills Index
Why the
dotnet-prefix? Every skill in this collection is namespaced withdotnet-so the pack is identifiable in mixed-pack environments and addressable in conversation. Instead of remembering an exact skill name, you can say “use thedotnet-skill for CQRS commands” and the agent will narrow down the candidates. The prefix also prevents collisions with other skill packs that might use generic names likerepository-patternorunit-testing. Skill folders follow the pattern-dotnet-/, where the numeric prefix establishes a stable learning order and thedotnet-portion matches thenamefield in each skill’s frontmatter.
Core Architecture Skills
| # | Skill | Description | Key Templates |
|---|---|---|---|
| 1 | dotnet-clean-architecture | Project scaffolding | Solution structure, layer setup, DI configuration |
| 2 | dotnet-cqrs-command-generator | Write operations | Commands, Handlers, Validators |
| 3 | dotnet-cqrs-query-generator | Read operations | Queries, Dapper SQL, Response DTOs |
| 4 | dotnet-domain-entity-generator | Domain modeling | Entities, Value Objects, Factory methods |
| 5 | dotnet-repository-pattern | Data access abstraction | Repository interfaces, EF Core implementations |
| 6 | dotnet-ef-core-configuration | Database mapping | Fluent API, Relationships, Indexes |
推荐工具
换一个关键词,或者移除筛选条件。
安装
npx skillfish add ronnythedev/dotnet-clean-architecture-skills