aspnet-minimal-api-openapi Skill
✓ VerifiziertErstelle gut strukturierte ASP.NET Minimal API Endpoints mit umfassender OpenAPI/Swagger Dokumentation und strongly-typed Responses.
- GitHub Stars
- 41.038
- Dateien
- 1
- Letzter Commit
- 11. Nov. 2026
- Lizenz
- MIT
- Erlaubte Tools
- —
Was macht der aspnet-minimal-api-openapi Skill?
aspnet-minimal-api-openapi ist ein Agent Skill. Erstelle gut strukturierte ASP.NET Minimal API Endpoints mit umfassender OpenAPI/Swagger Dokumentation und strongly-typed Responses.
Zusammenfassung erzeugt aus der SKILL.md des Skills.
Über den aspnet-minimal-api-openapi skill
Die Hauptfunktion dieses Skills ist das Erstellen von gut strukturierten ASP.NET Minimal API Endpoints mit umfassender OpenAPI Dokumentation. Entwickler nutzen ihn, um Code zu generieren, der modernen C# Standards entspricht und sicherstellt, dass jeder Endpoint eine klare Swagger Dokumentation sowie strongly-typed Responses enthält. Er ist besonders nützlich, wenn ein Agent neue API-Routen scaffolden, komplexe Endpoint-Gruppen mittels MapGroup organisieren oder eine standardisierte Error Handling Lösung über ProblemDetailsService und StatusCodePages implementieren soll.
Der Skill legt den Fokus auf Type Safety, indem er TypedResults und Results<T1, T2> anstelle von generischen Results verwendet. Er leitet die Erstellung von immutablen Request- und Response-Objekten unter Verwendung von record types an und erzwingt Datenintegrität durch Validierungs-Attribute wie [Required]. Für die Dokumentation nutzt er die integrierte OpenAPI Unterstützung von .NET 9 und setzt Document- sowie Schema Transformer ein, um Server, Tags und Security Schemes zu verwalten. Dieser Ansatz stellt sicher, dass die resultierende API sowohl einfach zu konsumieren als auch strikt typisiert ist.
Was ein agent damit machen kann
- 1Große API-Strukturen organisierenWeise den Agent an, zusammengehörige Routen zu gruppieren, um eine saubere Projektarchitektur beizubehalten.
- 2OpenAPI Schema Anpassungen konfigurierenBitte den Agent, spezifische Transformationen am OpenAPI Dokument vorzunehmen, wie zum Beispiel Security Schemes oder Tags.
Geschrieben basierend auf dem SKILL.md des skills. Jeder use case wurde gegen ein zitat daraus geprüft.
So installierst du den aspnet-minimal-api-openapi Skill
Jeder Befehl kopiert den Skill-Ordner in das Skills-Verzeichnis des Clients. Starte den Client neu oder beginne eine neue Session, um ihn zu laden.Den aspnet-minimal-api-openapi Skill in Claude Code installieren
~/.claude/skills/aspnet-minimal-api-openapi/SKILL.md
$ npx degit github/awesome-copilot/skills/aspnet-minimal-api-openapi ~/.claude/skills/aspnet-minimal-api-openapiDen aspnet-minimal-api-openapi Skill in Claude Code (project) installieren
.claude/skills/aspnet-minimal-api-openapi/SKILL.md
$ npx degit github/awesome-copilot/skills/aspnet-minimal-api-openapi .claude/skills/aspnet-minimal-api-openapiDen aspnet-minimal-api-openapi Skill in Codex installieren
~/.agents/skills/aspnet-minimal-api-openapi/SKILL.md
$ npx degit github/awesome-copilot/skills/aspnet-minimal-api-openapi ~/.agents/skills/aspnet-minimal-api-openapiDen aspnet-minimal-api-openapi Skill in Gemini CLI installieren
~/.gemini/skills/aspnet-minimal-api-openapi/SKILL.md
$ npx degit github/awesome-copilot/skills/aspnet-minimal-api-openapi ~/.gemini/skills/aspnet-minimal-api-openapiDen aspnet-minimal-api-openapi Skill in Claude.ai installieren
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
Automatisierte Checks
Geluften am 14. Nov. 2026Vollständiger Bericht →Hat unsere automatischen Prüfungen bestanden. Das ist kein Sicherheitsaudit: Lesen Sie die Skripte, bevor ein Agent sie ausführt. Wie die Checks funktionieren
- Source Repository verknüpft und erreichbargithub/awesome-copilot/skills/aspnet-minimal-api-openapi is public and reachablegithub.com/github/awesome-copilot/tree/HEAD/skills/aspnet-mi ↗Bestanden
- Open Source Lizenz (OSI)MITspdx.org/licenses/MIT.html ↗Bestanden
- Commit oder Release im letzten JahrLast commit 2026-11-11github.com/github/awesome-copilot/commits ↗Bestanden
- Keine Download-und-Ausführen-Muster oder Zugangsdatendiebstahl in SkriptenNo scripts in the skill folderBestanden
- Keine versteckten Anweisungen in SKILL.mdNo override phrases, safeguard switches, credential requests or hidden charactersgithub.com/github/awesome-copilot/blob/HEAD/skills/aspnet-mi ↗Bestanden
- Vorab erlaubte Tools sind eingeschränktNo pre-approved tools; the agent asks before using onegithub.com/github/awesome-copilot/blob/HEAD/skills/aspnet-mi ↗Bestanden
SKILL.md
Auf GitHub ansehenASP.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
Dateien in diesem Skill
1aspnet-minimal-api-openapi Skill-Fragen
Wie installiere ich den aspnet-minimal-api-openapi Skill in Claude Code?
Führe npx degit github/awesome-copilot/skills/aspnet-minimal-api-openapi ~/.claude/skills/aspnet-minimal-api-openapi aus. Claude Code lädt Skills aus ~/.claude/skills (alle Projekte) oder .claude/skills (ein Projekt) und nutzt einen Skill, wenn seine Beschreibung zur Aufgabe passt.
Welche Clients können den aspnet-minimal-api-openapi Skill nutzen?
Jeder Client, der das Agent Skills-Format liest: Claude Code, Codex, Gemini CLI und claude.ai (als ZIP hochladen). Skripte im Skill laufen nur dort, wo der Client Codeausführung erlaubt.
Wie kann ich OpenAPI Schemas und Dokumente anpassen?
Du kannst Document Transformer nutzen, um Elemente wie Server und Security Schemes hinzuzufügen, und Schema Transformer verwenden, um Anpassungen an den OpenAPI Schemas vorzunehmen.