← スキル一覧に戻る

net-web-api
by mitkox
net-web-apiは、other分野における実用的なスキルです。複雑な課題への対応力を強化し、業務効率と成果の質を改善します。
⭐ 121🍴 50📅 2026年1月23日
SKILL.md
name: net-web-api description: Scaffold and configure ASP.NET Core Web API with best practices license: MIT compatibility: opencode metadata: audience: .net-developers framework: aspnetcore version: "8.0"
What I Do
I help you create production-ready ASP.NET Core Web API projects with:
- Clean architecture structure
- Proper dependency injection
- Swagger/OpenAPI documentation
- Global exception handling
- Request/response logging
- API versioning
- Health checks
- CORS configuration
When to Use Me
Use this skill when:
- Creating a new Web API project
- Setting up API infrastructure
- Adding middleware and filters
- Configuring API best practices
What I Create
Project Structure:
src/{ProjectName}.Api/
├── Controllers/
├── Filters/
│ ├── GlobalExceptionFilter.cs
│ ├── ValidationFilter.cs
│ └── ApiKeyFilter.cs
├── Middleware/
│ ├── RequestLoggingMiddleware.cs
│ └── ErrorHandlingMiddleware.cs
├── Extensions/
│ ├── ServiceCollectionExtensions.cs
│ └── ApplicationBuilderExtensions.cs
├── Models/
│ └── ErrorResponse.cs
├── Program.cs
└── appsettings.json
Key Features:
-
Program.csconfigured with:- Controllers and minimal APIs
- Swagger/OpenAPI
- Health checks
- CORS
- Global exception handling
- Request validation
- API versioning
-
GlobalExceptionFilter.cshandles exceptions -
ValidationFilter.csvalidates requests -
RequestLoggingMiddleware.cslogs requests/responses
Best Practices I Follow
- Use minimal APIs for simple endpoints
- Implement proper HTTP status codes
- Validate all inputs
- Use DTOs for API models
- Implement proper error responses
- Add XML comments for Swagger
- Configure health checks
- Use API versioning from start
Example Usage
Create a new ASP.NET Core Web API project with:
- Swagger/OpenAPI documentation
- Health checks endpoint
- Global exception handling
- Request validation
- API versioning
- CORS configuration
I will generate all necessary files following .NET 8 best practices.
スコア
総合スコア
70/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
✓人気
GitHub Stars 100以上
+5
○最近の活動
3ヶ月以内に更新がある
0/10
✓フォーク
10回以上フォークされている
+5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です