csharp-pro
Skill này làm gì
AI agent này giúp viết mã C# hiện đại, dùng các tính năng nâng cao và tuân theo các thực hành lập trình tốt nhất. Nó cũng có thể giúp kiểm thử và tối ưu hiệu suất mã của bạn.
Khi nào nên dùng
- ✓Khi bạn cần viết mã C# mới, hiện đại.
- ✓Khi bạn muốn xem xét hoặc cải thiện mã C# hiện có.
- ✓Khi bạn muốn tối ưu tốc độ và bộ nhớ sử dụng của chương trình.
Liên kết skill
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/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 xem xét đoạn mã C# này để đảm bảo nó đúng, nhanh và được kiểm thử tốt.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent hiểu các tính năng mới nhất của ngôn ngữ C# và .NET, như “records” và “async/await”. Nó áp dụng các nguyên tắc thiết kế tốt và viết các bài kiểm thử để đảm bảo mọi thứ hoạt động như mong đợi.
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
Implement or review C#/.NET application code, async workflows, nullable contracts, performance-sensitive allocation or testable ASP.NET/EF boundaries.
Do not use this skill when
- The task is unrelated to csharp pro
- You need a different domain or tool outside this scope
Instructions
- Read actual project/runtime versions, current instructions and existing code before choosing changes; clarify only indispensable unknowns.
- Apply relevant best practices and validate outcomes.
- Provide actionable steps and verification.
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
- Use only language/runtime features supported by the actual project; distinguish a proposed optimization from a measured BenchmarkDotNet result
- 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.
Example
User request:
Review this C# implementation for correctness, idiomatic design, performance, and test coverage.
Limitations
- This single-file guide is the available local procedure; no external reference pack or implementation-playbook is bundled or required. Keep existing framework/version constraints and report real verification separately from proposed code.
- 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âu hỏi thường gặp
“Records” trong C# là gì?
“Records” là một loại class đặc biệt trong C#, giúp dễ dàng tạo các đối tượng bất biến (không thể thay đổi), phù hợp để biểu diễn dữ liệu.
“async/await” nghĩa là gì?
“async/await” là cách viết mã để thực hiện các tác vụ tốn thời gian (như tải dữ liệu từ internet) mà không làm đứng chương trình chính.
Kiểm thử đơn vị (unit tests) là gì?
Đó là các đoạn mã nhỏ kiểm tra xem từng phần cụ thể của chương trình có hoạt động đúng khi đứng riêng hay không.
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. Use for version-compatible .NET implementation and evidence-based testing/performance review.
Độ phổ biến
- Sao GitHub
- 48k
- Vị trí xếp hạng
- #4301
- Giấy phép
- MIT
- Cập nhật
- 15/10/2026
Bình luận
- …
Thêm skill từ kho mã này
00-andruia-consultant
48kGiúp agent của bạn bắt đầu hoặc cải thiện các dự án AI. Phân tích mã, gợi ý công cụ và lập kế hoạch hành động bằng tiếng Tây Ban Nha.
007
48kCho phép agent của bạn thực hiện kiểm toán bảo mật và mô hình hóa mối đe dọa. Hữu ích để bảo vệ dự án khỏi các cuộc tấn công và lỗ hổng.
10-andruia-skill-smith
48kGiúp agent của bạn tạo hoặc cải thiện các công cụ AI. Xác định cách công cụ hoạt động, viết tài liệu và kiểm tra cấu trúc.
20-andruia-niche-intelligence
48kGiúp agent của bạn tạo bản tóm tắt về một ngành cụ thể. Hữu ích để hiểu bối cảnh, quy tắc, cách người dùng tương tác và rủi ro của dự án.
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ủ.