jpskill.com
🛠️ 開発・MCP コミュニティ

csharp-developer

最新の.NET 8とC# 12を駆使し、ASP.NET CoreやEF Coreを用いた現代的な企業向けC#アプリケーションを開発するSkill。

📜 元の英語説明(参考)

.NET 8 and C# 12 specialist with expertise in ASP.NET Core, EF Core, and modern enterprise development. Use when building C# applications, working with .NET, implementing ASP.NET Core APIs, or using Entity Framework.

🇯🇵 日本人クリエイター向け解説

一言でいうと

最新の.NET 8とC# 12を駆使し、ASP.NET CoreやEF Coreを用いた現代的な企業向けC#アプリケーションを開発するSkill。

※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o csharp-developer.zip https://jpskill.com/download/6635.zip && unzip -o csharp-developer.zip && rm csharp-developer.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/6635.zip -OutFile "$d\csharp-developer.zip"; Expand-Archive "$d\csharp-developer.zip" -DestinationPath $d -Force; ri "$d\csharp-developer.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して csharp-developer.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → csharp-developer フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-17
取得日時
2026-05-17
同梱ファイル
1

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

C# 開発者

目的

ASP.NET Core Webアプリケーション、Entity Framework Coreデータアクセス、エンタープライズアプリケーションパターンを含む、最新のC#および.NET開発に関する専門知識を提供します。C# 12の機能と.NET 8のベストプラクティスをカバーします。

使用場面

  • .NET 8でC#アプリケーションを構築する場合
  • ASP.NET Core Web APIを開発する場合
  • Entity Framework Coreデータアクセスを実装する場合
  • 最新のC#機能(レコード、パターンなど)を使用する場合
  • エンタープライズ.NETアプリケーションを構築する場合
  • xUnit/NUnitで単体テストを記述する場合
  • 依存性注入パターンを実装する場合

クイックスタート

このスキルを呼び出す場合:

  • .NET 8でC#アプリケーションを構築する場合
  • ASP.NET Core Web APIを開発する場合
  • Entity Framework Coreデータアクセスを実装する場合
  • 最新のC#機能を使用する場合
  • エンタープライズ.NETアプリケーションを構築する場合

呼び出さない場合:

  • クロスプラットフォームの.NET MAUIアプリを構築する場合(dotnet-core-expertを使用)
  • .NET Framework 4.8を扱う場合(dotnet-framework-4.8-expertを使用)
  • Windowsデスクトップアプリを構築する場合(windows-app-developerを使用)
  • Azure固有のインフラストラクチャの場合(azure-infra-engineerを使用)

意思決定フレームワーク

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

主要なワークフロー

1. ASP.NET Core API 開発

  1. 適切なテンプレートでプロジェクトを作成します
  2. 依存性注入を設定します
  3. ドメインモデルを実装します
  4. マイグレーションでEF Coreを設定します
  5. コントローラーまたは最小限のAPIエンドポイントを作成します
  6. バリデーションとエラーハンドリングを追加します
  7. 認証/認可を実装します
  8. OpenAPIドキュメントを追加します

2. Entity Framework Core のセットアップ

  1. エンティティモデルを定義します
  2. DbContextを設定します
  3. リレーションシップと制約を設定します
  4. 初期マイグレーションを作成します
  5. 必要に応じてリポジトリパターンを実装します
  6. クエリ最適化を追加します
  7. 接続の回復力を設定します

3. テスト戦略

  1. xUnitまたはNUnitプロジェクトを設定します
  2. モックを使用して単体テストを作成します
  3. 統合テストを実装します
  4. APIテストにWebApplicationFactoryを使用します
  5. テストデータベースフィクスチャを追加します
  6. CIテストパイプラインを設定します

ベストプラクティス

  • DTOと不変データにはレコードを使用します
  • よりクリーンなコードのためにパターンマッチングを活用します
  • Nullable参照型を使用します
  • 非同期クリーンアップのためにIAsyncDisposableを実装します
  • C# 12でプライマリコンストラクターを使用します
  • IncludeのためにEF Coreクエリスプリットを設定します

アンチパターン

アンチパターン 問題点 正しいアプローチ
サービスロケーター 隠れた依存関係 コンストラクターインジェクション
Async void 未処理の例外 async Task を常に使用
N+1 クエリ パフォーマンスの問題 Include() またはプロジェクションを使用
コンストラクターからのスロー 処理が困難 ファクトリメソッドを使用
文字列ベースの構成 ランタイムエラー 強力な型付けされたオプション
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

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-Pattern Problem Correct Approach
Service locator Hidden dependencies Constructor injection
Async void Unhandled exceptions async Task everywhere
N+1 queries Performance issues Use Include() or projection
Throwing from constructors Hard to handle Use factory methods
String-based config Runtime errors Strongly-typed options