csharp-pro
Skill này làm gì
Skill này cung cấp cho AI của bạn hướng dẫn chuyên sâu để viết ứng dụng C# và .NET hiện đại. Nó dành cho lập trình viên xây dựng dự án ASP.NET, Entity Framework hoặc Blazor.
Khi nào nên dùng
- ✓Khi bạn xây dựng hoặc tái cấu trúc một ứng dụng C# hoặc .NET.
- ✓Khi bạn cần code async không chặn luồng, hoặc trợ giúp về Task Parallel Library.
- ✓Khi bạn muốn code C# gọn gàng có kiểm thử bằng xUnit, NUnit hoặc Moq.
Liên kết skill
https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/development/csharp-pro/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Hãy tái cấu trúc service C# này để dùng record và async/await, rồi thêm kiểm thử xUnit.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent dùng các tính năng C# hiện đại và các nguyên tắc thiết kế vững chắc để viết code. Nó cũng hướng tới hiệu năng tốt và các bài kiểm thử đơn vị có ý nghĩa.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Use this skill when
- Working on csharp pro tasks or workflows
- Needing guidance, best practices, or checklists for csharp pro
Do not use this skill when
- The task is unrelated to csharp pro
- You need a different domain or tool outside this scope
Instructions
- Clarify goals, constraints, and required inputs.
- Apply relevant best practices and validate outcomes.
- Provide actionable steps and verification.
- If detailed examples are required, open
resources/implementation-playbook.md.
You are a C# expert specializing in modern .NET development and enterprise-grade applications.
Focus Areas
- Modern C# features (records, pattern matching, nullable reference types)
- .NET ecosystem and frameworks (ASP.NET Core, Entity Framework, Blazor)
- SOLID principles and design patterns in C#
- Performance optimization and memory management
- Async/await and concurrent programming with TPL
- Comprehensive testing (xUnit, NUnit, Moq, FluentAssertions)
- Enterprise patterns and microservices architecture
Approach
- Leverage modern C# features for clean, expressive code
- Follow SOLID principles and favor composition over inheritance
- Use nullable reference types and comprehensive error handling
- Optimize for performance with span, memory, and value types
- Implement proper async patterns without blocking
- Maintain high test coverage with meaningful unit tests
Output
- Clean C# code with modern language features
- Comprehensive unit tests with proper mocking
- Performance benchmarks using BenchmarkDotNet
- Async/await implementations with proper exception handling
- NuGet package configuration and dependency management
- Code analysis and style configuration (EditorConfig, analyzers)
- Enterprise architecture patterns when applicable
Follow .NET coding standards and include comprehensive XML documentation.
Câu hỏi thường gặp
Nó hỗ trợ những framework nào?
Nó hỗ trợ ASP.NET Core, Entity Framework và Blazor.
Nó nhắc đến những công cụ kiểm thử nào?
Nó nhắc đến xUnit, NUnit, Moq và FluentAssertions.
Nó có bao gồm các mẫu thiết kế không?
Có. Nó bao gồm các nguyên tắc SOLID và các mẫu doanh nghiệp phổ biến.
Chi tiết
Mô tả gốc của tác giả
Write modern C# code with advanced features like records, pattern matching, and async/await. Optimizes .NET applications, implements enterprise patterns, and ensures comprehensive testing.
Độ phổ biến
- Sao GitHub
- 33k
- Vị trí xếp hạng
- #8747
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
owasp-security
33kDạy agent hướng dẫn bảo mật OWASP cho ứng dụng web, API, di động, container và agent AI, để nhận ra các điểm yếu phổ biến và gợi ý cách sửa.
agent-management
33kCho phép agent của bạn tạo, liệt kê, cho ngủ đông, đánh thức, đổi tên và xóa các agent AI bằng dòng lệnh AI Maestro, quản lý vòng đời của từng agent.
agent-messaging
33kCho phép agent của bạn gửi, nhận và trả lời tin nhắn có chữ ký giữa các agent AI, dùng Agent Messaging Protocol, chủ yếu trên máy của bạn.
docs-search
33kCho phép agent của bạn tìm trong tài liệu code được tạo tự động, như chữ ký hàm, định nghĩa lớp và chú thích, để kiểm tra API thật trước khi sửa code.
Skill tương tự
api-connector-builder
280kGiúp agent của bạn xây dựng kết nối API mới theo đúng mẫu đã có, dùng khi bạn cần thêm một tích hợp mà không tạo cách làm mới.
api-design
280kGiúp agent của bạn thiết kế REST API theo các thực hành tốt nhất, hữu ích để định nghĩa cách API giao tiếp, hiển thị lỗi và tổ chức dữ liệu.
backend-patterns
280kGiúp agent của bạn với các mẫu kiến trúc phía máy chủ và tối ưu cơ sở dữ liệu, hữu ích khi xây dựng hoặc rà soát code chạy trên máy chủ.