Chuyển đến nội dung
Skillpedia
API và máy chủ (backend)48k · #4301

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.md

Sao 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

Hãy dùng skill này để giúp tôi: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/csharp-pro/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

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

  1. Use only language/runtime features supported by the actual project; distinguish a proposed optimization from a measured BenchmarkDotNet result
  2. Follow SOLID principles and favor composition over inheritance
  3. Use nullable reference types and comprehensive error handling
  4. Optimize for performance with span, memory, and value types
  5. Implement proper async patterns without blocking
  6. 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.

repo: sickn33/agentic-awesome-skills

Độ 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

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự