dotnet-backend-patterns
它能做什么
这个工具帮助你使用 C# 语言和 .NET 生态系统构建健壮的程序。它会讲解在生产环境中表现良好的系统的最佳实践,例如 API 和服务器。
适用场景
- ✓开始一个新的 .NET 后端项目时。
- ✓审查 C# 代码质量时。
- ✓设计某个服务的架构时。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/dotnet-backend-patterns/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我该如何在 .NET API 中实现依赖注入模式?”
每周 5 个新技能,1 分钟读完。
工作原理
这个工具借助带有示例和说明的指南,帮助你应用现代设计模式。它重点关注代码组织、依赖管理、数据访问优化,以及确保系统的健壮性。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
.NET Backend Development Patterns
Master C#/.NET patterns for building production-grade APIs, MCP servers, and enterprise backends with modern best practices (2024/2025).
Use this skill when
- Developing new .NET Web APIs or MCP servers
- Reviewing C# code for quality and performance
- Designing service architectures with dependency injection
- Implementing caching strategies with Redis
- Writing unit and integration tests
- Optimizing database access with EF Core or Dapper
- Configuring applications with IOptions pattern
- Handling errors and implementing resilience patterns
Do not use this skill when
- The project is not using .NET or C#
- You only need frontend or client guidance
- The task is unrelated to backend architecture
Instructions
- Define architecture boundaries, modules, and layering.
- Apply DI, async patterns, and resilience strategies.
- Validate data access performance and caching.
- Add tests and observability for critical flows.
- If detailed patterns are required, open
resources/implementation-playbook.md.
Resources
resources/implementation-playbook.mdfor detailed .NET patterns and examples.
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
常见问题
编程中的“模式”是什么?
模式是针对软件开发中常见问题的成熟解决方案。它们能帮助你编写结构更清晰、效率更高、更易维护的代码。
“后端”是什么?
后端是用户看不到的那部分系统,比如服务器、数据库,以及让一切正常运转的业务逻辑。
C#/.NET 是什么?
C# 是一种编程语言,.NET 是微软推出的一套生态系统(即工具和框架的集合),广泛用于开发各类应用,在企业环境中尤其常见。
详情
作者的原始描述
Master C#/.NET patterns for building production-grade APIs, MCP servers, and enterprise backends with modern best practices (2024/2025).
热度
- GitHub 星标
- 48k
- 排名
- #4491
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。