From openapi-expert
Scans project API routes and handlers, then generates an OpenAPI 3.1 specification file (openapi.yaml or openapi.json).
How this command is triggered — by the user, by Claude, or both
Slash command
/openapi-expert:generate-specThe summary Claude sees in its command listing — used to decide when to auto-load this command
Generate an OpenAPI 3.1 specification from existing API routes and handlers. ## Steps 1. Scan the project for API route definitions: 2. For each endpoint, extract: 3. Generate the OpenAPI spec: 4. Add authentication schemes: 5. Add examples for each endpoint. 6. Validate the generated spec: 7. Save as openapi.yaml or openapi.json. ## Format ## Rules - Use OpenAPI 3.1 unless the project requires 3.0 compatibility. - Every endpoint must have at least one response defined. - Use $ref for reusable schemas instead of inline definitions.
Generate an OpenAPI 3.1 specification from existing API routes and handlers.
openapi: "3.1.0"
info:
title: <API Name>
version: <version>
6plugins reuse this command
First indexed Mar 30, 2026
npx claudepluginhub twzrd-sol/awesome-claude-code-toolkit --plugin openapi-expert/generate-specScans project API routes and handlers, then generates an OpenAPI 3.1 specification file (openapi.yaml or openapi.json).
/generate-openapiScans codebase for API route handlers and data models, then generates an OpenAPI 3.1 specification file with paths, schemas, security, and examples.
/generate-openapiGenerates an OpenAPI 3.0 specification by analyzing existing API route files or creating one from scratch.
/openapi-specGenerates or updates an OpenAPI 3.1 specification from source code routes, a file, or a description. Scans for route definitions and produces a complete openapi.yaml.
/generate-specGenerates or updates an OpenAPI 3.0 YAML spec by analyzing API routes in Express, FastAPI, Django, NestJS, Go, Java, and Ruby codebases. Validates output and reports changes.
/hatch3r-api-specGenerates or validates an OpenAPI 3.1 specification from the codebase by scanning route definitions, extracting schemas, and assembling a complete spec document. Also supports drift detection against an existing spec.