MCP HubMCP Hub
スキル一覧に戻る

csharp-developer

majiayu000
更新日 2 days ago
22 閲覧
58
9
58
GitHubで表示
メタapidesign

について

このスキルは、.NET 8およびC# 12開発の専門的なガイダンスを提供し、特にASP.NET Core APIとEntity Framework Coreに特化しています。エンタープライズアプリケーションの構築、データアクセスの実装、または最新のC#機能とパターンの適用時にご利用ください。これは、ベストプラクティスに関するアドバイスを必要とするC#プロジェクトに取り組む開発者のために設計されています。

クイックインストール

Claude Code

推奨
プラグインコマンド推奨
/plugin add https://github.com/majiayu000/claude-skill-registry
Git クローン代替
git clone https://github.com/majiayu000/claude-skill-registry.git ~/.claude/skills/csharp-developer

このコマンドをClaude Codeにコピー&ペーストしてスキルをインストールします

ドキュメント

C# Developer

Purpose

Provides expertise in modern C# and .NET development, including ASP.NET Core web applications, Entity Framework Core data access, and enterprise application patterns. Covers C# 12 features and .NET 8 best practices.

When to Use

  • Building C# applications with .NET 8
  • Developing ASP.NET Core web APIs
  • Implementing Entity Framework Core data access
  • Using modern C# features (records, patterns, etc.)
  • Building enterprise .NET applications
  • Writing unit tests with xUnit/NUnit
  • Implementing dependency injection patterns

Quick Start

Invoke this skill when:

  • Building C# applications with .NET 8
  • Developing ASP.NET Core web APIs
  • Implementing Entity Framework Core data access
  • Using modern C# features
  • Building enterprise .NET applications

Do NOT invoke when:

  • Building cross-platform .NET MAUI apps (use dotnet-core-expert)
  • Working with .NET Framework 4.8 (use dotnet-framework-4.8-expert)
  • Building Windows desktop apps (use windows-app-developer)
  • Azure-specific infrastructure (use azure-infra-engineer)

Decision Framework

Project Type:
├── Web API → ASP.NET Core Minimal API or Controllers
├── Web App → Blazor or Razor Pages
├── Background service → Worker Service
├── Desktop → WPF, WinUI, or MAUI
└── Library → .NET Standard or .NET 8

Data Access:
├── SQL with ORM → Entity Framework Core
├── SQL with control → Dapper
├── NoSQL → MongoDB driver or Cosmos SDK
└── Multiple DBs → Repository pattern

Core Workflows

1. ASP.NET Core API Development

  1. Create project with appropriate template
  2. Configure dependency injection
  3. Implement domain models
  4. Set up EF Core with migrations
  5. Create controllers or minimal API endpoints
  6. Add validation and error handling
  7. Implement authentication/authorization
  8. Add OpenAPI documentation

2. Entity Framework Core Setup

  1. Define entity models
  2. Configure DbContext
  3. Set up relationships and constraints
  4. Create initial migration
  5. Implement repository pattern if needed
  6. Add query optimization
  7. Configure connection resilience

3. Testing Strategy

  1. Set up xUnit or NUnit project
  2. Create unit tests with mocks
  3. Implement integration tests
  4. Use WebApplicationFactory for API tests
  5. Add test database fixtures
  6. Configure CI test pipeline

Best Practices

  • Use records for DTOs and immutable data
  • Leverage pattern matching for cleaner code
  • Use nullable reference types
  • Implement IAsyncDisposable for async cleanup
  • Use primary constructors in C# 12
  • Configure EF Core query splitting for includes

Anti-Patterns

Anti-PatternProblemCorrect Approach
Service locatorHidden dependenciesConstructor injection
Async voidUnhandled exceptionsasync Task everywhere
N+1 queriesPerformance issuesUse Include() or projection
Throwing from constructorsHard to handleUse factory methods
String-based configRuntime errorsStrongly-typed options

GitHub リポジトリ

majiayu000/claude-skill-registry
パス: skills/csharp-developer-skill

関連スキル

content-collections

メタ

This skill provides a production-tested setup for Content Collections, a TypeScript-first tool that transforms Markdown/MDX files into type-safe data collections with Zod validation. Use it when building blogs, documentation sites, or content-heavy Vite + React applications to ensure type safety and automatic content validation. It covers everything from Vite plugin configuration and MDX compilation to deployment optimization and schema validation.

スキルを見る

creating-opencode-plugins

メタ

This skill provides the structure and API specifications for creating OpenCode plugins that hook into 25+ event types like commands, files, and LSP operations. It offers implementation patterns for JavaScript/TypeScript modules that intercept and extend the AI assistant's lifecycle. Use it when you need to build event-driven plugins for monitoring, custom handling, or extending OpenCode's capabilities.

スキルを見る

evaluating-llms-harness

テスト

This Claude Skill runs the lm-evaluation-harness to benchmark LLMs across 60+ standardized academic tasks like MMLU and GSM8K. It's designed for developers to compare model quality, track training progress, or report academic results. The tool supports various backends including HuggingFace and vLLM models.

スキルを見る

polymarket

メタ

This skill enables developers to build applications with the Polymarket prediction markets platform, including API integration for trading and market data. It also provides real-time data streaming via WebSocket to monitor live trades and market activity. Use it for implementing trading strategies or creating tools that process live market updates.

スキルを見る