ลองมาใช้ Skill กับ Code dotnet เรากัน

พอดีไปเจอตัว dotnet-skills ของคุณ Aaronontheweb เลยเอามาลองครับ โดยสำหรับใน Blog ผมจะลองกับเจ้า GitHub Copilots ครับ

dotnet-skills

สำหรับตอนนี้ As Of MAR2026 มี Skill 2 กลุ่ม

📌 Skills Library

Skill LibrarySkill
C# Language / ASP.NETพวก coding-standards / concurrency-patterns / api-design / type-design-performance
Data AccessEF Core Patterns / performance (เช่น พวกป้องกัน n+1)
TestingTestcontainers, Playwright (Blazor), Snapshot Testing, crap-analysis
Cloud Native.NET Aspire (Integration testing, Service defaults)
Microsoft.Extensionsconfiguration / dependency-injection
.NET Ecosystemproject-structure / package-management serialization (พวก JSON / Protobuf / MessagePack / Code Gen) / cli tools /
slopwatchDetect LLM-generated anti-patterns in your codebase
Akka.NETbest-practices / testing-patterns / hosting-actor-patterns aspire-configuration / management

📌 Specialized Agents

AgentExpertise
akka-net-specialistActor systems, clustering, persistence, Akka.Streams, message patterns
dotnet-concurrency-specialistThreading, async/await, race conditions, deadlock analysis
dotnet-benchmark-designerBenchmarkDotNet setup, custom benchmarks, measurement strategies
dotnet-performance-analystProfiler analysis, benchmark interpretation, regression detection
docfx-specialistDocFX builds, API documentation, markdown linting

GitHub agent skills

Agent Skills - เป็นมาตรฐานที่ทาง Anthropic (Claude) ออก Open Standard ออกมา เพื่อให้ AI ทำงานดีขึ้น โดยที่เราเตรียมมาให้ instructions, scripts, resources / sample เพื่อให้ AI หยิบของไปใช้ได้เลย

สำหรับใน GitHub Copilots วางได้ 2 Level

  • Project skills, วางไว้ใน .github/skills / .claude/skills
  • Personal skills, วางไว้ใน home directory เพื่อ Share กับทุก Repo เรา
    - Path ~/.copilot/skills  หรือ ~/.claude/skills
    - Windows C:\Users\[YOUR_USERAME] เช่น C:\Users\Chatr\.copilot\skills
    - ให้ตัว Copilot coding agent และ GitHub Copilot CLI มาใช้

ลองเทส

สำหรับผมเอาแบบ Project Level โดย Clone หรือ Download ก็ได้ แล้วมาวาง วางไว้ใน .github/skills

# Clone to .github/skills/ in your project
cd path/to/yourProject
git clone https://github.com/Aaronontheweb/dotnet-skills.git /tmp/dotnet-skills
cp -r /tmp/dotnet-skills/skills/* .github/skills/

# Windows - Start from you project path
cd path/to/yourProject
git clone https://github.com/Aaronontheweb/dotnet-skills.git $env:TEMP\dotnet-skills
# Copy the contents (Recurse = -r)
Copy-Item -Path "$env:TEMP\dotnet-skills\skills\*" -Destination .github\skills\ -Recurse -Force

ถ้าเอาง่ายๆใน repo ที่ download มา copy ของใน folder skills มาใส่ใน .github/skills/ ของ projects

ตอนใช้งานสามารถ ใช้ Slash Command แล้วมันจะขึ้น Skill ที่เราเพิ่งเพิ่มเข้าไปใช้เลือกใช้ครับ

ซึ่งเราสามารถระบุ แล้วถามไปตรงๆได้เลย

หรือ อีกแบบตอนที่เรา Prompt ถามนี้แหละ ถ้าตัว LLM มันมันมองว่า Skill เราตรงกับคำถามที่เราถามไปมันจะดึงมาใช้งานเลย ดังรูป

อ๋อ Repo นี้ใช้กับพวก Claude Code / OpenCode ได้ด้วยนะลองดู Readme ได้เลย

และก็มีคนทำ Skill ของ dotnet หลายค่ายนะ อาทิ เช่น

เลือกใช้ให้พอดี การยัด Skill เยอะ เพิ่ม Context ให้ตัว LLM

Reference


Discover more from naiwaen@DebuggingSoft

Subscribe to get the latest posts sent to your email.