aspnet-minimal-api-openapi skill
✓ 検証済み包括的なOpenAPI/Swaggerドキュメントと型安全なレスポンスを備えた、構造化されたASP.NET Minimal APIエンドポイントを作成します。
- GitHubスター
- 41,038
- ファイル
- 1
- 最終コミット
- 2026年11月11日
- ライセンス
- MIT
- 許可されたツール
- —
aspnet-minimal-api-openapi skillは何をしますか
aspnet-minimal-api-openapiはAgent Skillsです。 包括的なOpenAPI/Swaggerドキュメントと型安全なレスポンスを備えた、構造化されたASP.NET Minimal APIエンドポイントを作成します。.
skillのSKILL.mdから生成された要約。
aspnet-minimal-api-openapi skill について
包括的なOpenAPIドキュメントを備えた、構造化されたASP.NET Minimal APIエンドポイントを構築することがこのSKILLの主な機能です。開発者はこれを利用して、最新のC#標準に従ったコードを生成し、すべてのエンドポイントに明確なSwaggerドキュメントと型安全なレスポンスが含まれるようにします。エージェントが新しいAPIルートのスケフォールディングを行ったり、MapGroupを使用して複雑なエンドポイントグループを整理したり、ProblemDetailsServiceやStatusCodePagesを通じて標準化されたエラーハンドリングを実装したりする場合に非常に有用です。
このSKILLは、汎用的な結果の代わりにTypedResultsやResults<T1, T2>を活用することで、型安全性に重点を置いています。record型を使用したイミュータブルなリクエストおよびレスポンスオブジェクトの作成をガイドし、[Required]などのバリデーション属性を通じてデータの整合性を強制します。ドキュメント作成においては、.NET 9に組み込まれているOpenAPIサポートを利用し、ドキュメントトランスフォーマーとスキーマトランスフォーマーを適用して、サーバー、タグ、セキュリティスキームを管理します。このアプローチにより、生成されるAPIは利用しやすく、かつ厳密に型定義されたものになります。
エージェントができること
- 1大規模なAPI構造の整理エージェントに、クリーンなプロジェクトアーキテクチャを維持するために、関連するルートをグループ化するよう指示します。
- 2OpenAPIスキーマのカスタマイズ設定セキュリティスキームやタグなど、OpenAPIドキュメントに特定の変換を適用するようエージェントに依頼します。
skill の SKILL.md から作成されています。すべてのユースケースは、その引用と照合されています。
aspnet-minimal-api-openapi skillのインストール方法
各コマンドはskillフォルダをクライアントのskillsディレクトリにコピーします。読み込むには、クライアントを再起動するか新しいセッションを開始してください。Claude Codeにaspnet-minimal-api-openapi skillをインストールする
~/.claude/skills/aspnet-minimal-api-openapi/SKILL.md
$ npx degit github/awesome-copilot/skills/aspnet-minimal-api-openapi ~/.claude/skills/aspnet-minimal-api-openapiClaude Code (project)にaspnet-minimal-api-openapi skillをインストールする
.claude/skills/aspnet-minimal-api-openapi/SKILL.md
$ npx degit github/awesome-copilot/skills/aspnet-minimal-api-openapi .claude/skills/aspnet-minimal-api-openapiCodexにaspnet-minimal-api-openapi skillをインストールする
~/.agents/skills/aspnet-minimal-api-openapi/SKILL.md
$ npx degit github/awesome-copilot/skills/aspnet-minimal-api-openapi ~/.agents/skills/aspnet-minimal-api-openapiGemini CLIにaspnet-minimal-api-openapi skillをインストールする
~/.gemini/skills/aspnet-minimal-api-openapi/SKILL.md
$ npx degit github/awesome-copilot/skills/aspnet-minimal-api-openapi ~/.gemini/skills/aspnet-minimal-api-openapiClaude.aiにaspnet-minimal-api-openapi skillをインストールする
npx degit github/awesome-copilot/skills/aspnet-minimal-api-openapi aspnet-minimal-api-openapi && zip -r aspnet-minimal-api-openapi.zip aspnet-minimal-api-openapi # claude.ai → Customize → Skills → + → Create skill → Upload a skill → aspnet-minimal-api-openapi.zip
自動チェック
実行日 2026年11月14日詳細レポート →自動チェックに合格しました。これはセキュリティ監査ではありません。エージェントに実行させる前にスクリプトを読んでください。 チェックの仕組み
- ソースリポジトリがリンクされており、アクセス可能github/awesome-copilot/skills/aspnet-minimal-api-openapi is public and reachablegithub.com/github/awesome-copilot/tree/HEAD/skills/aspnet-mi ↗合格
- オープンソースライセンス (OSI)MITspdx.org/licenses/MIT.html ↗合格
- 過去1年以内にコミットまたはリリースありLast commit 2026-11-11github.com/github/awesome-copilot/commits ↗合格
- スクリプトにダウンロード実行や認証情報の窃取がないNo scripts in the skill folder合格
- SKILL.md に隠れた指示がないNo override phrases, safeguard switches, credential requests or hidden charactersgithub.com/github/awesome-copilot/blob/HEAD/skills/aspnet-mi ↗合格
- 事前許可ツールが限定されているNo pre-approved tools; the agent asks before using onegithub.com/github/awesome-copilot/blob/HEAD/skills/aspnet-mi ↗合格
SKILL.md
GitHubで表示ASP.NET Minimal API with OpenAPI
Your goal is to help me create well-structured ASP.NET Minimal API endpoints with correct types and comprehensive OpenAPI/Swagger documentation.
API Organization
- Group related endpoints using
MapGroup()extension - Use endpoint filters for cross-cutting concerns
- Structure larger APIs with separate endpoint classes
- Consider using a feature-based folder structure for complex APIs
Request and Response Types
- Define explicit request and response DTOs/models
- Create clear model classes with proper validation attributes
- Use record types for immutable request/response objects
- Use meaningful property names that align with API design standards
- Apply
[Required]and other validation attributes to enforce constraints - Use the ProblemDetailsService and StatusCodePages to get standard error responses
Type Handling
- Use strongly-typed route parameters with explicit type binding
- Use
Results<T1, T2>to represent multiple response types - Return
TypedResultsinstead ofResultsfor strongly-typed responses - Leverage C# 10+ features like nullable annotations and init-only properties
OpenAPI Documentation
- Use the built-in OpenAPI document support added in .NET 9
- Define operation summary and description
- Add operationIds using the
WithNameextension method - Add descriptions to properties and parameters with
[Description()] - Set proper content types for requests and responses
- Use document transformers to add elements like servers, tags, and security schemes
- Use schema transformers to apply customizations to OpenAPI schemas
このスキルのファイル
1aspnet-minimal-api-openapi skillに関する質問
Claude Codeにaspnet-minimal-api-openapi skillをインストールするには
npx degit github/awesome-copilot/skills/aspnet-minimal-api-openapi ~/.claude/skills/aspnet-minimal-api-openapiを実行してください。Claude Codeは~/.claude/skills(すべてのプロジェクト)または.claude/skills(単一プロジェクト)からskillsを読み込み、説明がタスクに一致する場合にskillを使用します。
aspnet-minimal-api-openapi skillはどのクライアントで使用できますか
Agent Skills形式を読み込むすべてのクライアントで使用できます: Claude Code、Codex、Gemini CLI、claude.ai(ZIPとしてアップロード)。skill内のスクリプトは、クライアントがコード実行を許可した場合にのみ実行されます。
OpenAPIのスキーマやドキュメントをカスタマイズするにはどうすればよいですか?
ドキュメントトランスフォーマーを使用してサーバーやセキュリティスキームなどの要素を追加したり、スキーマトランスフォーマーを使用してOpenAPIスキーマにカスタマイズを適用したりできます。