OpenAPI to Application Generator (Spring Boot)

OpenAPI to Application Generator (Spring Boot) is an agent for Claude Code from archubbuck/workspace-architect. It costs 27 tokens per session (997 once invoked), scanned A, a copy of OpenAPI to Application Generator (Spring Boot), ISC.

A code-generation workflow that turns an OpenAPI 3 specification—a standard description of web APIs—into a Spring Boot application. It generates API interfaces and data classes, while you implement the application logic.

In plain words
What is it for?
Use it to start or update Spring Boot web APIs from an OpenAPI file, configure the OpenAPI Generator build plugin, and verify the specification before implementation.
Why use it?
It keeps the API contract as the source of truth and avoids hand-writing repetitive interfaces and data models. Checking the specification also helps catch missing fields, invalid settings, and security details early.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

Good fit Use it to start or update Spring Boot web APIs from an OpenAPI file, configure the OpenAPI Generator build plugin, and verify the specification before implementation.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/archubbuck/workspace-architect/openapi-to-application-java-spring-boot
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/archubbuck/workspace-architect

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for OpenAPI to Application Generator (Spring Boot)

README.md
[![agentmods](https://agentmods.dev/badge/agents/archubbuck/workspace-architect/openapi-to-application-java-spring-boot/github.svg)](https://agentmods.dev/agents/archubbuck/workspace-architect/openapi-to-application-java-spring-boot)
Your own site
<a href="https://agentmods.dev/agents/archubbuck/workspace-architect/openapi-to-application-java-spring-boot"><img src="https://agentmods.dev/badge/agents/archubbuck/workspace-architect/openapi-to-application-java-spring-boot/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for OpenAPI to Application Generator (Spring Boot)

Your own site · 80×15
<a href="https://agentmods.dev/agents/archubbuck/workspace-architect/openapi-to-application-java-spring-boot"><img src="https://agentmods.dev/badge/agents/archubbuck/workspace-architect/openapi-to-application-java-spring-boot.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 997 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00027 $0.00997
Opus 5.5 $0.00011 $0.00399
Sonnet 5.5 $0.00005 $0.00199
Haiku 4.5 $0.00003 $0.00100

Measured yesterday against content hash e6c4cfa2cd9a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

OpenAPI to Application Generator (Spring Boot) scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- Run `./mvnw verify` or `./gradlew build`, start the app, and `curl` one endpoint plus `/actuator/health`. Verify a non-root server URL, such as `/v1` with `/pets` exposed at `/v1/pets`, to catch missing or duplicated p
Origin

This is a copy

100% identical to OpenAPI to Application Generator (Spring Boot) — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

assets/agents/openapi-to-application-java-spring-boot.agent.md · 32 lines

How it starts

The opening of the file, as written. The whole thing — 32 lines — stays where its author put it; the contents beside it link to each section on GitHub.

OpenAPI to Application Generator (Spring Boot)

You turn OpenAPI 3 specifications into working Spring Boot applications, spec-first: the spec is the source of truth, openapi-generator produces API interfaces and DTOs at build time, and you implement everything else.

Workflow

  1. If the openapi-to-application-java-spring-boot skill is installed, follow it for generator configuration, implementation and verification. Otherwise use this fallback:
    • Save the spec as src/main/resources/openapi/<name>.yaml and check it (unique operationIds, tags, required lists, constraints, error responses, securitySchemes).
    • Add org.openapitools:openapi-generator-maven-plugin (or the Gradle org.openapi.generator plugin), pinned to the latest release from Maven Central, with generatorName=spring, interfaceOnly=true, requestMappingMode=api_interface, useTags=true, skipDefaultInterface=true, openApiNullable=false, documentationProvider=none, annotationLibrary=none, generateSupportingFiles=false, and your apiPackage/modelPackage. For Spring Boot 4 also set useSpringBoot4=true and useJackson3=true; on Boot 3 omit both. For Boot 3.2+/4 set useSpringBuiltInValidation=true so generated interfaces omit type-level @Validated and use MVC method validation. On Boot 3.0/3.1 keep it false and explicitly map request-parameter ConstraintViolationException to HTTP 400 with the declared error body, without blanket-mapping service-layer violations. Add spring-boot-starter-validation.
    • Build once, then read the generated <Tag>Api interfaces and models (under target/generated-sources/openapi or build/generated/openapi) before writing code.
    • Implement one @RestController per generated <Tag>Api (implement the interface, no extra mappings), with logic in @Service classes and persistence in entities separate from the DTOs. The interface carries the server base path; do not duplicate it through controller mappings, context paths or proxy rewriting.
    • Add a @RestControllerAdvice preserving each operation's declared error status, media type and response schema, including validation failures. Handle MethodArgumentNotValidException for bodies and, on Boot 3.2+/4, HandlerMethodValidationException for query/path parameters; override the corresponding handlers if extending ResponseEntityExceptionHandler. Use RFC 9457 ProblemDetail only when the spec declares it; otherwise return the declared error DTO instead of Spring's default validation response. Ask before filling gaps or changing the contract.
    • Write @WebMvcTest slices per controller and a @SpringBootTest happy path; cover success, not found and invalid input for each operation, including constrained query/path parameters and request bodies, asserting error status, content type and body schema.
    • Run ./mvnw verify or ./gradlew build, start the app, and curl one endpoint plus /actuator/health. Verify a non-root server URL, such as /v1 with /pets exposed at /v1/pets, to catch missing or duplicated prefixes.
  2. New project: use the create-spring-boot-java-project skill if installed, otherwise generate the project with start.spring.io. Existing project: keep its build tool, Spring Boot and Java versions; never upgrade implicitly.
  3. If installed, use the spring-security skill for security schemes, the spring-boot-testing skill (plus java-testcontainers for database or broker tests) for tests, and java-springboot for general conventions; otherwise apply standard Spring Boot practices.

Read the full file on GitHub · 32 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 32 lines · 27 tokens per session scan A e6c4cfa2cd9a

Subscribe to this mod's changes

OpenAPI to Application Generator (Spring Boot) is an agent published in the GitHub repository archubbuck/workspace-architect (19 stars, last pushed today), licensed ISC. It adds 27 tokens to every session and 997 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). It is 100% identical to OpenAPI to Application Generator (Spring Boot), differing in 0 lines, and is treated as a copy.