Chuyển đến nội dung
Skillpedia
Lập trình chung5.8k · #14651

csharp-expert

Skill này làm gì

Skill này đóng vai trò cửa vào cho công việc C# và .NET. Nó xác định skill chuyên biệt nào phù hợp với yêu cầu và đưa hướng dẫn cài đặt cho các skill còn thiếu. Dành cho lập trình viên chưa chắc nên dùng công cụ hoặc hướng dẫn .NET nào.

Khi nào nên dùng

  • ✓Khi bạn chưa chắc chuyên gia .NET nào nên xử lý một tác vụ C# hoặc .NET.
  • ✓Khi bạn cần biết cách thêm plugin dotnet skills bao quát tác vụ của mình.
  • ✓Khi một yêu cầu .NET trải qua nhiều lĩnh vực, như một API, tầng dữ liệu và các test của nó.

Liên kết skill

https://github.com/dotnet/skills/blob/main/plugins/dotnet/skills/csharp-expert/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/dotnet/skills/blob/main/plugins/dotnet/skills/csharp-expert/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

“Tôi cần thêm một form Blazor rồi sửa các truy vấn EF Core chậm trong ứng dụng .NET. Nên dùng những skill nào?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent xem repository của bạn, ghép kết quả bạn muốn với chuyên gia phù hợp nhất hiện có, rồi giao công việc cho skill đó khi bạn yêu cầu thực hiện.

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.

C# Expert

Purpose

Act as the front door for C# and .NET work. Determine what the user wants, identify the kind of solution that owns the work, invoke the narrowest installed specialist, and give exact dotnet/skills marketplace installation steps when that specialist is missing. Keep direct C# language guidance as the fallback, not the default.

Routing Contract

  1. Classify the requested outcome from the prompt.
  2. Inspect the smallest set of repository files needed to identify the solution type.
  3. Compare both signals with the descriptions of the skills currently available to the runtime.
  4. If the best skill is available and the user asked to perform the downstream work, invoke it with the skill tool as the first external action; do not emit a routing explanation before the invocation and do not merely recommend the skill. For selection or preparation-only requests, name the installed specialist and stop without invoking it.
  5. If the best skill is missing, identify its plugin in references/dotnet-skills-marketplace.md, then decide whether the current task can still be completed safely with repository tools and general .NET knowledge.
  6. Use multiple skills only when the request has distinct phases with different owners.
  7. If no narrower marketplace skill owns the request, continue with the C# fallback workflow.

Routing is not task completion. A missing specialist changes the confidence and preferred workflow; it does not automatically justify stopping. Continue in the same turn when the task can be completed and validated without the specialist. Stop for installation only when the missing capability is actually required to proceed safely or the user asked specifically to install or load it.

Use these fast paths before general repository exploration:

  • Marketplace selection only: when the prompt already states the framework, lifecycle, host, and required behavior, read only the bundled marketplace reference. Do not inspect the fixture, repository, GitHub, or plugin source. Name the exact skill and plugin, explain the decisive mapping, give host-correct acquisition steps, and stop.
  • Only surviving diagnostic artifact: inspect that artifact first with the narrowest available query. For a supplied .binlog, do not glob, list, or search unrelated workspace files before extracting its recorded error, property, target, and path evidence.

Choose the operating mode from the user's requested outcome:

User asks for Required behavior
Implement, fix, diagnose, migrate, or create Invoke the installed specialist, or complete a safe local fallback. If a narrower specialist exists but is unavailable, report its optional plugin afterward unless the user prohibited installation advice.
Identify, choose, install, prepare, or load the right marketplace capability Inspect enough solution evidence to choose the owner, name it whether installed or missing, give acquisition steps only when needed, and stop without invoking the specialist, editing files, or generating the requested application artifact.
Recover a plugin already installed but absent from /skills Refresh discovery first; do not reinstall or update on the first response.

Choose one owner per phase. Do not expose internal routing ceremony or turn the answer into a menu.

Step 1: Classify the Prompt

Identify the primary action before inspecting implementation details.

Prompt intent Prefer skills whose description owns
Create or scaffold Project/template creation for the detected solution type
Add application behavior The framework or component where the behavior lives
Fix a compiler/runtime defect The narrow language, framework, data, or interop owner
Build or restore failure MSBuild, SDK, workload, project-reference, or NuGet diagnosis
Write, run, review, or migrate tests The exact testing lifecycle or migration requested
Upgrade or migrate The source version, target version, and artifact being migrated
Diagnose slowness, crash, hang, or memory growth Runtime diagnostics unless evidence points to build performance or a local code hot path
Refactor without changing behavior Refactoring rather than feature or bug-fix guidance
Package, publish, or trust a feed NuGet/package-publishing workflow
Ask about C# syntax, types, nullability, async, or APIs A language specialist unless solution-specific behavior is lo
Câu hỏi thường gặp

Nó có tự làm công việc không?

Nếu bạn yêu cầu làm, nó chuyển việc cho chuyên gia phù hợp. Khi chỉ lập kế hoạch hoặc chọn skill, nó nêu tên chuyên gia và dừng lại.

Nó có quay về lời khuyên C# chung không?

Có. Nếu không có skill hẹp hơn phù hợp, nó tiếp tục với hướng dẫn C# chung.

Hướng dẫn cài đặt lấy từ đâu?

Từ danh sách tham chiếu các plugin trong marketplace dotnet/skills.

Chi tiết

Mô tả gốc của tác giả

Route C# and .NET requests to the exact installed specialist or smallest dotnet/skills marketplace plugin. USE FOR: "which specialist should own this" or "how do I add the skill" requests involving ASP.NET Core endpoints, Blazor, MAUI binding, Windows Forms specialist selection or installation, EF Core queries, test or framework migration, runtime CPU/allocation evidence, file-based C#, editor/compiler defects, a surviving MSBuild `.binlog`, or a plugin missing from `/skills`; also use for C# semantics when no narrower specialist exists. DO NOT USE FOR: requests that already name the exact ins

repo: dotnet/skills

Độ phổ biến

Sao GitHub
5.8k
Vị trí xếp hạng
#14651
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ự