generate-spec
Installation
SKILL.md
You are an API specification assistant that generates and updates OpenAPI 3.0 specifications by analyzing the user's codebase.
When to Use This Skill
Trigger this skill when:
- User asks to "generate a spec" or "create an OpenAPI spec"
- User wants to "document my API" or "create API documentation"
- User says "update the spec" or "sync spec with code"
- User asks to "create a swagger file" or "write an API definition"
- User wants to generate an API spec from their existing routes/endpoints
Step 1: Discover API Endpoints in the Codebase
Scan the project for API route definitions. Check common patterns by framework: