WD

wshaddix/dotnet-skills

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

86 stars 质量 42 趋势 14

.NET 开发者用的 Claude Code 技能与子代理

概览

一个全面的 Claude Code 插件,适用于专业 .NET 开发。结合了生产系统经过实战验证的模式,以及涵盖整个 .NET 生态系统的全面内容,包括 C#、ASP.NET Core、Blazor、MAUI、EF Core、原生 AOT、测试、安全、性能优化、CI/CD 以及云原生应用。 这个插件可以配合多个支持技能/代理的AI编码助手。 在 Claude Code CLI(终端应用,不是 VSCode 扩展)中执行以下命令: 克隆或复制技能到你的项目或全局配置中: 将以下摘要复制到您的项目 AGENTS.md 文件中,以实现智能技能路由: 代理是具有深厚领域专业知识的人工智能角色。当Claude Code检测到相关任务时,自动调用。 现代C#模式,带来干净且性能优美的代码。 企业架构模式与实践。

概述(AI 翻译)

一个全面的 Claude Code 插件,拥有 167 项技能 和16 个专业代理,适合专业 .NET 开发。结合了生产系统经过实战验证的模式,以及涵盖整个 .NET 生态系统的全面内容,包括 C#、ASP.NET Core、Blazor、MAUI、EF Core、原生 AOT、测试、安全、性能优化、CI/CD 以及云原生应用。

安装

这个插件可以配合多个支持技能/代理的AI编码助手。

克劳德代码(CLI)

官方文献

在 Claude Code CLI(终端应用,不是 VSCode 扩展)中执行以下命令:

更新一下:

GitHub 副驾驶

官方文献

克隆或复制技能到你的项目或全局配置中:

项目级别(推荐):

全球(所有项目):

开放代码

官方文献


加到 AGENTS.md

将以下摘要复制到你的项目 AGENTS.md 文件中,以实现智能技能路由:


特工

代理是具有深厚领域专业知识的人工智能角色。当Claude Code检测到相关任务时,自动调用。

特工 专长

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

.NET Skills for Claude Code

A comprehensive Claude Code plugin with 167 skills and 16 specialized agents for professional .NET development. Combines battle-tested patterns from production systems with comprehensive coverage of the entire .NET ecosystem including C#, ASP.NET Core, Blazor, MAUI, EF Core, Native AOT, testing, security, performance optimization, CI/CD, and cloud-native applications.

Installation

This plugin works with multiple AI coding assistants that support skills/agents.

Claude Code (CLI)

Official Docs

Run these commands inside the Claude Code CLI (the terminal app, not the VSCode extension):

/plugin marketplace add Aaronontheweb/dotnet-skills
/plugin install dotnet-skills

To update:

/plugin marketplace update

GitHub Copilot

Official Docs

Clone or copy skills to your project or global config:

Project-level (recommended):

git clone https://github.com/Aaronontheweb/dotnet-skills.git /tmp/dotnet-skills
cp -r /tmp/dotnet-skills/skills/* .github/skills/

Global (all projects):

mkdir -p ~/.copilot/skills
cp -r /tmp/dotnet-skills/skills/* ~/.copilot/skills/

OpenCode

Official Docs

git clone https://github.com/Aaronontheweb/dotnet-skills.git /tmp/dotnet-skills

mkdir -p ~/.config/opencode/skills ~/.config/opencode/agents
for skill_file in /tmp/dotnet-skills/skills/*/SKILL.md; do
  skill_name=$(grep -m1 "^name:" "$skill_file" | sed 's/name: *//')
  mkdir -p ~/.config/opencode/skills/$skill_name
  cp "$skill_file" ~/.config/opencode/skills/$skill_name/SKILL.md
done
cp /tmp/dotnet-skills/agents/*.md ~/.config/opencode/agents/

Add to AGENTS.md

Copy the following snippet into your project’s AGENTS.md file to enable intelligent skill routing:

## .NET Skill Library

You have access to a comprehensive .NET skill library. Use these skills for any C#/.NET development work. Always prefer skill-guided patterns over pre-training knowledge.

### Skill Routing by Task Type

**Writing C# Code:**
- `modern-csharp-coding-standards` - Records, pattern matching, immutability, value objects, async patterns
- `csharp-concurrency-patterns` - Choosing between async/await, Channels, locks, synchronization primitives
- `csharp-api-design` - API surface design, versioning, backward compatibility
- `csharp-type-design-performance` - Sealed classes, readonly structs, Span, Memory

**Entity Framework Core:**
- `efcore-patterns` - DbContext lifecycle, NoTracking, query splitting, migrations, interceptors
- `database-performance` - N+1 prevention, read/write separation, query optimization

**ASP.NET Core Web:**
- `middleware-patterns` - Pipeline ordering, custom middleware, exception handling
- `razor-pages-patterns` - Page models, validation, anti-forgery, routing
在 GitHub 查看完整 README

推荐工具

换一个关键词,或者移除筛选条件。

安装

npx skillfish add wshaddix/dotnet-skills
新手?先看 mcpskill.org 教程 →