fernandoteixxeira/stark-bank-challenge/openapi-generator

Claude Code and agent skill by fernandoteixxeira/stark-bank-challenge

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Use whenever a component exposes or consumes an HTTP contract — generate from a spec rather than hand-rolling the controller, request model or status mapping. Covers generating Java or Spring code from OpenAPI specs, generator Maven configuration, separating generated from handwritten code, and maintaining contracts.

Install

npx vskill@latest install fernandoteixxeira/stark-bank-challenge/openapi-generator

SKILL.md

The same SKILL.md was published earlier as fernandoteixxeira/stark-bank-challenge/openapi-generator.

OpenAPI Generator

Treat OpenAPI as a contract. Generate boundary code or models only where it reduces boilerplate and does not leak generated types into the domain.

Generate first

When a component exposes or consumes an HTTP contract, write the contract and generate from it before writing the handler. Do not hand-roll a controller signature, a request model, or a status mapping that a specification could pin.

This holds even for endpoints that look too small to bother with — a single route with one status code — and even when the contract belongs to someone else. A provider's callback shape or a platform's delivery envelope is still a contract; writing it down and generating from it turns a guess into a checked artifact.

What it buys, beyond the obvious:

  • The contract becomes reviewable. Route, request shape and status codes sit in one file

instead of being spread across annotations, so they can be read without reading behaviour.

  • The compiler enforces the shape. Change the contract and every incompatible call site fails

to build. A hand-written handler drifts from its documentation silently — an accurate-looking spec next to code that no longer matches it is worse than no spec.

  • Encoding decisions move into the contract. Declaring a field as format: byte means the

binding decodes it; the handler receives bytes and must not decode again. Making that explicit is how the double-decode gets caught at compile time rather than at runtime.

Generate the interface only, and implement it by hand. Generated controllers bury behaviour in regenerated files; a generated interface pins the contract while leaving the logic readable and diffable.

Rules

  • Keep OpenAPI specs in a stable source path, typically src/main/resources/openapi or .specs when still designing.
  • Generate code into target/generated-sources/openapi.
  • Do not manually edit generated files.
  • Prefer wrapping generated DTOs with mappers before calling domain/application code.
  • Pin generator configuration in Maven so generation is reproducible.
  • Use explicit package names for api, model, and invoker/client output.

Spring Server Guidance

  • Prefer interface-only generation when handwritten controllers should implement generated contracts.
  • Keep validation annotations enabled when they match the contract.
  • Avoid exposing generated models beyond adapters.

Client Guidance

  • Wrap generated clients behind an outbound port.
  • Keep timeouts, base URLs, retries, and credentials in Spring configuration.
  • Convert generated exceptions into application-specific failures at the adapter boundary.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/fernandoteixxeira/stark-bank-challenge/openapi-generator/badge)](https://verified-skill.com/skills/fernandoteixxeira/stark-bank-challenge/openapi-generator)

Something wrong with this skill or its page? Tell us.