scaffold-spring-api

scaffold-spring-api is a command for Claude Code from kumaran-is/claude-code-onboarding. It costs 26 tokens per session (442 once invoked), scanned A, original, MIT.

A starter project for a Spring Boot 3.5 WebFlux REST API, a Java service that exposes data and actions over HTTP. It sets up the project structure, database configuration, sample endpoint, error responses, migration, and local containers.

In plain words
What is it for?
Use it to create a new Spring-based backend with controllers, services, repositories, entities, DTOs, Flyway migrations, Docker support, and a health endpoint.
Why use it?
It removes the repeated setup work involved in starting a Java API with PostgreSQL and reactive database access. It gives common layers and configuration a consistent starting point.

Command for Claude Code

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.

agentmods
npx agentmods add commands/kumaran-is/claude-code-onboarding/scaffold-spring-api
Clone the repo
git clone --depth 1 https://github.com/kumaran-is/claude-code-onboarding

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 scaffold-spring-api

README.md
[![agentmods](https://agentmods.dev/badge/commands/kumaran-is/claude-code-onboarding/scaffold-spring-api.svg)](https://agentmods.dev/commands/kumaran-is/claude-code-onboarding/scaffold-spring-api)
Your own site
<a href="https://agentmods.dev/commands/kumaran-is/claude-code-onboarding/scaffold-spring-api"><img src="https://agentmods.dev/badge/commands/kumaran-is/claude-code-onboarding/scaffold-spring-api.svg" alt="Measured on agentmods" height="20"></a>
Per session 26 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 442 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found 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 $0.00026 $0.00442
Opus 5 $0.00013 $0.00221
Sonnet 5 $0.00005 $0.00088
Haiku 4.5 $0.00003 $0.00044

Measured yesterday against content hash 997bc4bdf696, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

scaffold-spring-api scanned grade A with 0 findings 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/scaffold-spring-api.md · 27 lines

What it actually says

Scaffold Spring Boot WebFlux API

Project name: $ARGUMENTS (default to "my-api" if not provided)

Delegate to the java-spring-api skill for all patterns, templates, and reference files. Use the java-coding-standard skill for naming, immutability, and style rules.

Steps

  1. Create .gitignore first — before any other file. Include: target/, .env, *.pem, *.key, .idea/, *.iml, .DS_Store, *.log
  2. Read the java-spring-api skill and its reference files for exact code templates
  3. Create Maven project via Spring Initializr or manual pom.xml per skill config reference
  4. Set up package com.company.<projectname> with directory structure: controller/, service/, repository/, model/entity/, model/dto/, config/, exception/
  5. Add application.yml with R2DBC + Flyway config (PostgreSQL, Flyway disabled by default via enabled: ${FLYWAY_ENABLED:false})
  6. Create HealthController at GET /api/v1/health, a sample entity, DTO (record), repository, service, and controller
  7. Add GlobalExceptionHandler with @ControllerAdvice returning ProblemDetail (RFC 9457)
  8. Add V1__initial_schema.sql Flyway migration, Dockerfile, and docker-compose.yml with PostgreSQL
  9. Add a basic integration test using WebTestClient
  10. Add OWASP dependency-check plugin to pom.xml and run mvn dependency-check:check — fix or document any critical/high CVEs
  11. Verify — mvn compile
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 · 27 lines · 26 tokens per session scan A 997bc4bdf696

Subscribe to this mod's changes

scaffold-spring-api is a command published in the GitHub repository kumaran-is/claude-code-onboarding (35 stars, last pushed 2mo ago), licensed MIT. It adds 26 tokens to every session and 442 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.