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

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.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/davila7/claude-code-templates/blob/main/cli-tool/components/skills/development/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 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

  1. Leverage modern C# features for clean, expressive code
  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.

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.

repo: davila7/claude-code-templates

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

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ự