dotnet-backend-patterns – skill Lập trình cho agent AI
Thành thạo các mẫu C#/.NET để xây dựng API, máy chủ MCP và backend doanh nghiệp đạt chuẩn production theo thực hành hiện đại (2024/2025).
Cài skill dotnet-backend-patterns bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/dotnet-backend-patterns-cafdb.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /dotnet-backend-patterns – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/dotnet-backend-patterns-cafdb.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $dotnet-backend-patterns – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/dotnet-backend-patterns-cafdb.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /dotnet-backend-patterns – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/dotnet-backend-patterns-cafdb.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /dotnet-backend-patterns – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
.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
Template boundaries
Examples target .NET 8-era APIs and SQL Server; package/provider versions must be
pinned and compiled in the destination application. Assets are partial sketches,
not a standalone project: supply interfaces, DTO namespaces, options and schema.
Use one shared domain Product type when combining them. Authorization/tenant
filters precede reads, writes and cache access; the single-tenant sample keys are
not suitable for multi-tenant data. No migration or production write is implied.
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.
Skill liên quan
- doubt-driven-development – Đưa mọi quyết định không tầm thường qua một lượt phản biện đối kháng với ngữ cảnh mới…
- temporal-python-testing – Kiểm thử workflow Temporal với pytest, time-skipping và các chiến lược mock. Bao gồm…
- timesfm-forecasting – Thực hiện dự báo chuỗi thời gian zero-shot với TimesFM của Google, gồm chuẩn bị CSV trên…
- dsl-vm-reverse – Đảo ngược các trình thông dịch/VM DSL tùy chỉnh và công cụ kiểm soát rủi ro dựa trên…
- dwarf-expert – Cung cấp chuyên môn để phân tích file debug DWARF và hiểu định dạng/chuẩn DWARF (v3-v5)…
- dx-optimizer – Chuyên gia Trải nghiệm Nhà phát triển (DX). Cải thiện công cụ, thiết lập và quy trình…
- e2e-testing – Quy trình kiểm thử end-to-end với Playwright để tự động hóa trình duyệt, visual…
- e2e-testing-patterns – Xây dựng bộ kiểm thử end-to-end đáng tin cậy, nhanh và dễ bảo trì, giúp tự tin phát hành…