/openapi-to-application-python-fastapi:openapi-to-application-codefrom openapi-to-application-python-fastapi
Generates production-ready application code from an OpenAPI spec, including project structure, models, controllers, services, tests, and documentation. Use when scaffolding an API server from an OpenAPI URL, file, or pasted content.
Ships in openapi-to-application-python-fastapi. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Turn an OpenAPI specification into a runnable application that follows the active framework's conventions, preserves the contract in routes and schemas, and includes tests, documentation, configuration, and clear follow-up questions for ambiguous parts.
Accept one OpenAPI source and enough project details to generate idiomatic code.
| Input | Acceptable forms | Required handling |
|---|---|---|
| OpenAPI specification | URL such as https://api.example.com/openapi.json, local file path, or pasted YAML/JSON content. | Validate syntax, version, paths, operations, schemas, responses, and security schemes. |
| Project name and description | User-supplied or inferred from info.title and info.description. | Normalize package, module, and README naming. |
| Target framework and version | User-supplied or inferred from repository conventions. | Follow existing structure rather than imposing a new stack. |
| Package or namespace conventions | Existing repo naming, group ID, module path, or package scope. | Keep generated code consistent. |
| Authentication method | Security schemes in OpenAPI or user clarification. | Implement JWT, OAuth2, API key, basic auth, or a documented stub when details are incomplete. |
| Analyze | Extract or flag |
|---|---|
| Completeness | OpenAPI version, info, servers, paths, components.schemas, operationId, tags, examples. |
| Endpoints | HTTP methods, route parameters, query parameters, headers, request bodies, responses, and status codes. |
| Security | Authentication requirements, authorization scopes, per-operation security overrides. |
| Models | Request/response schemas, enums, required fields, nullable fields, formats, relationships, constraints. |
| Ambiguities | Missing examples, unclear auth, schema cycles, unsupported formats, missing error responses, undefined pagination/filtering/sorting. |
| Layer | Generate |
|---|---|
| Build/package | Framework-specific files such as pom.xml, build.gradle, package.json, pyproject.toml, or equivalent. |
| Controllers/handlers | Route mappings grouped by resource, tag, or domain; validation of path/query/body inputs. |
| Services | Business logic seams with generated stubs where the specification lacks implementation detail. |
| Models/DTOs | Types from OpenAPI schemas, including enums, validation annotations, and serialization names. |
| Repositories/data access | Add only when persistence is requested or clearly implied; otherwise use in-memory/mock seams. |
| Config/startup | Application initialization, environment variables, auth middleware, logging, and error handling. |
| Tests | Unit tests for services and controllers; integration or example requests when useful. |
| Documentation | README setup, run instructions, generated API documentation files, and example requests. |
project-name/
├── README.md
├── [build-config]
├── src/
│ ├── main/
│ │ ├── [language]/
│ │ │ ├── controllers/
│ │ │ ├── services/
│ │ │ ├── models/
│ │ │ ├── repositories/
│ │ │ └── config/
│ │ └── resources/
│ └── test/
│ ├── [language]/
│ │ ├── controllers/
│ │ └── services/
│ └── resources/
├── .gitignore
├── .env.example
└── docker-compose.yml
docker-compose.yml is optional and should be generated only when database, queue, or containerized local dependencies are requested or implied.
Preserve OpenAPI vocabulary when reporting architecture: Package/namespace choices affect generated imports; build/package files are framework-specific; controller/handler, models/DTOs, repository/data access, authentication/authorization, and example requests/integration tests are separate deliverables.
## OpenAPI application generation result
**Status:** generated | planned | blocked
**Spec source:** `<URL, path, or pasted content>`
**Framework:** `<framework/version>`
| Artifact | Path | Source from OpenAPI |
| --- | --- | --- |
| Models | `<path>` | `<schemas>` |
| Controllers | `<path>` | `<paths/operations>` |
| Services | `<path>` | `<business seams>` |
| Tests | `<path>` | `<operations covered>` |
| Docs/config | `<path>` | `<README/env/examples>` |
**Assumptions and questions**
- <assumption or question>
**Validation**
- `<build/test command>`: <pass | fail | not run>
.gitignore, and .env.example were considered.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub gbb-acelerators/awesome-harness-primitives --plugin openapi-to-application-python-fastapiOther plugins' skills for the same job