From api-architect
Scans codebase for API route handlers and data models, then generates an OpenAPI 3.1 specification file with paths, schemas, security, and examples.
How this command is triggered — by the user, by Claude, or both
Slash command
/api-architect:generate-openapiFiles this command reads when invoked
The summary Claude sees in its command listing — used to decide when to auto-load this command
# /api-architect:generate-openapi Generate an OpenAPI 3.1 specification from the existing codebase or API design. ## Process 1. Discover existing API routes and handlers: - For Express/Fastify: search for `app.get`, `app.post`, `router.use` patterns - For FastAPI/Flask: search for `@app.route`, `@router.get` decorators - For Go: search for `http.HandleFunc`, `r.GET`, `mux.Handle` patterns - For Spring: search for `@GetMapping`, `@PostMapping`, `@RestController` annotations - Read each handler to understand request parameters, body, and response shape 2. Extract schema inf...
Generate an OpenAPI 3.1 specification from the existing codebase or API design.
Discover existing API routes and handlers:
app.get, app.post, router.use patterns@app.route, @router.get decoratorshttp.HandleFunc, r.GET, mux.Handle patterns@GetMapping, @PostMapping, @RestController annotationsExtract schema information:
Build the OpenAPI specification:
$ref extensively to avoid duplicationValidate the specification:
$ref references resolve correctlyGenerate example values for each schema to make the spec immediately testable.
Write the specification to openapi.yaml (or openapi.json if the project prefers JSON).
If an existing spec file is found, present a diff and ask before overwriting.
listUsers, getUserById, createOrderx-codegen extensions if the project uses code generation tools6plugins reuse this command
First indexed Mar 30, 2026
npx claudepluginhub ais1m0n3/awesome-claude-code-toolkit --plugin api-architect/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.
/generate-specScans project API routes and handlers, then generates an OpenAPI 3.1 specification file (openapi.yaml or openapi.json).
/openapi-specGenerates or updates an OpenAPI 3.1 specification from route definitions, a file path, or a textual description. Scans the codebase when no source is given.
/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.