/garage:api-firstfrom garage
Scaffolds or implements REST endpoints in Spring Boot from OpenAPI specs, including controller, logic, persistence, error mapping, and tests.
Ships in garage. 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.
Read when SKILL.md points to them.
Implements a REST resource in an existing Spring Boot service from an OpenAPI fragment or a short
resource spec: controller, application logic, persistence, error mapping, spec update, and the tests
the change needs. Designing or reviewing a contract without code is api-design.
grep -nE "sourceCompatibility|languageVersion|<java.version>|spring-boot|mapstruct|jooq|springdoc" build.gradle* pom.xml gradle/*.toml 2>/dev/null
grep -rlE "@(Rest)?ControllerAdvice|ProblemDetail" src/main/java 2>/dev/null | head
Resource: PaymentLink at /api/v1/payment-links (follow the service's versioning)
Operations: POST, GET /{id}, GET (cursor list), PATCH /{id}, DELETE /{id}
Fields: id (UUIDv7 public), amount (decimal string + currency), expiresAt (Instant), status
Idempotency: POST requires Idempotency-Key when it creates money-moving state
Errors: RFC 9457 Problem Details (or the service's established error contract)
references/api-conventions.md for envelope, errors, money, IDs, pagination, and HTTP
client rules. Read references/endpoint-scaffold.md when generating a new resource stack from
scratch; for a change to an existing resource, follow the neighbouring code instead../gradlew test or ./mvnw test, plus
the repo's integration-test task when one exists) and show the output.public_id column). The TSID primary key stays internal: it never
appears in a path, response body, Location header, or readable cursor.BigDecimal in Java, NUMERIC in SQL; scale
from the currency or asset contract. Never double or float.Instant or OffsetDateTime, ISO 8601 UTC on the wire. Never java.util.Date.@RestControllerAdvice; add a
handler there, never catch-and-map inside controllers. No stack traces, SQL, or provider payloads.422 or 409 as the service already defines; a request still
in progress under that key is 409.IdempotencyStore. Add MapStruct only if the repo already uses it or mapping volume justifies it.RestClient only on Spring Framework 6.1+ synchronous code and only when
the repo has no established client; String.formatted and records only when the source level
supports them; @MockitoBean on Spring Framework 6.2+, @MockBean on older Boot.produces:
- type: "code"
format: "java"
paths: [<list above>]
- type: "migration"
format: "sql"
paths: ["src/main/resources/db/changelog/changes/sql/<resource>-001-schema.sql"]
- type: "openapi"
format: "yaml"
paths: ["src/main/resources/openapi/<resource>.yaml"]
- type: "test"
format: "java"
paths: [<list above>]
handoff: "Write claudedocs/handoff-api-first-<timestamp>.yaml - suggest: verify-impl, db-migration (if schema changes)"
Code paths follow the repo's layout (see the scaffold reference for the house default). The
migration follows db-migration and uses the repo's tool and folder.
api-design designs or reviews the contract (no code); this skill implements it in Spring Boot.db-migration writes the schema changeset; fintech-ledger owns any money-moving operation.200 OK with an error body, or error mapping inside controllers.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub omexit/claude-skills-pack --plugin garage48 skills in this plugin
/adrUse when the user wants to record an architecture decision, write an ADR or decision record, or explain why a technology, data model, boundary, or pattern was chosen over alternatives./api-designUse when the user is designing, reviewing, or changing an API contract (REST, GraphQL, or RPC): endpoint shape, naming, errors, versioning, pagination, or developer experience, before or apart from implementing it./arch-reviewUse when the user asks for an architecture review of existing Java or Spring Boot code: clean or hexagonal architecture boundaries, module boundaries, dependency direction, domain leakage, transaction boundaries, or business logic in controllers./code-auditUse when existing implementation code needs a rigorous review: code audit, code review, code quality, code smells, SOLID or duplication concerns, security or performance of a module, production readiness, or a second opinion on code that already exists./competitive-analysisUse when the user asks for a competitive analysis, competitor review, market landscape, feature comparison against rivals, or who else solves this problem./data-designUse when the user is designing a data layer or schema across PostgreSQL, MongoDB, Elasticsearch, or Typesense: data model, indexing, query patterns, consistency, or keeping several stores in sync.Other plugins' skills for the same job