/claude-crown:java-pioneerfrom Claude Crown
Expert playbook for writing production-grade Java (21/25 LTS) backends with Spring Boot 4 and connecting them to web frontends (React, Angular, Vue, plain TypeScript) with maximum safety and performance. Use this skill whenever the user writes, reviews, refactors, debugs, or designs Java code — Spring Boot services, REST APIs, JPA/Hibernate persistence, Spring Security, login/sessions/OAuth2/JWT, CORS or CSRF errors, OpenAPI contracts, TypeScript clients for a Java API, JVM or database performance, Maven/Gradle builds, or Java tests with JUnit/Mockito/Testcontainers — even if the user never says "best practices". Also use it for migrations from older Java versions or Spring Boot 2/3.
Ships in Claude Crown. 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; scripts run unread.
This skill makes you a senior Java engineer who ships backends that are correct, secure by default, fast, and pleasant for a frontend to consume. The SKILL.md gives you the workflow and the rules that matter most. The references/ folder holds the deep knowledge — load only the files the current task needs.
Always read the project's real build file (pom.xml, build.gradle(.kts)) first and follow what is there. Never upgrade Java, Spring, or libraries silently — propose it and explain why.
| Area | Default for new code (as of Sept 2026) | Notes |
|---|---|---|
| Java | 25 (LTS), minimum 21 (LTS) | Use modern features only if the project's release level allows them |
| Framework | Spring Boot 4.1.x → Spring Framework 7, Spring Security 7, Hibernate 7, Jackson 3 | Boot 3.5 left open-source support on 2026-06-30 — recommend migrating |
| Build | Whatever the project uses; Gradle Kotlin DSL or Maven for new projects | Always use the wrapper (./mvnw, ./gradlew) |
| Database | PostgreSQL + Flyway migrations | ddl-auto=validate, never update in production |
| Frontend | TypeScript client generated from the OpenAPI spec | Framework-agnostic rules; see references/frontend-integration.md |
| Tests | JUnit Jupiter + AssertJ + Mockito + Testcontainers | See references/testing.md |
Version facts change fast. If a detail matters (an API signature, a property name, a CVE), verify it against the official docs or with web search instead of trusting memory.
Verified 2026-09-15: Spring Boot 4.1 released 2026-06-30 (current patch 4.1.1), 4.0 OSS support ends 2026-12-31, 3.5 OSS support ended 2026-06-30; Boot 4.0 release notes confirm Jackson 3, Testcontainers 2, Spring Framework 7, Spring Security 7, Hibernate 7.1. Re-check endoflife.date/spring-boot when the line matters.
Follow these steps for any non-trivial task. For a quick one-line question, answer directly.
python scripts/java_scan.py <project-root> first — it reports the Spring Boot support state, config traps (open-in-view, ddl-auto, actuator exposure, literal secrets) and the non-negotiables below as leads with file and line; verify each lead at the element. If important facts are missing, ask before writing lots of code. The most useful questions are:
references/frontend-integration.mdreferences/backend-architecture.mdreferences/security.mdreferences/performance.mdreferences/testing.mdreferences/review-checklist.md before presenting the result — and re-run scripts/java_scan.py --fail-on HIGH on the changed project when the change touched security, config or persistence. Report problems you found instead of hiding them.record DTOs. Entities leak internal fields (password hashes, internal flags), cause lazy-loading exceptions during serialization, and couple the frontend to your database schema.final fields, List.copyOf(...). Immutable objects are thread-safe and cannot be changed behind your back — this matters a lot once virtual threads multiply concurrency.@Autowired. Constructor injection makes dependencies visible, enables final, and makes unit tests trivial.@Valid), check invariants in the domain, and return RFC 9457 ProblemDetail errors. A frontend can only handle errors it can parse.Package by feature, not by layer. Each feature owns its controller, service, repository, DTOs, and entity. Cross-feature access goes through services, never through another feature's repository.
com.example.shop
├── ShopApplication.java
├── config/ # SecurityConfig, WebConfig, JacksonConfig, properties records
├── common/ # ApiExceptionHandler, NotFoundException, CurrentUser, shared types
├── order/
│ ├── OrderController.java
│ ├── OrderService.java
│ ├── OrderRepository.java
│ ├── Order.java # entity (package-private where possible)
│ └── dto/ CreateOrderRequest.java, OrderResponse.java
└── customer/ ...
Pick the connection model deliberately, because it decides the whole security setup:
| Situation | Recommended model | CSRF | Token storage |
|---|---|---|---|
| Browser SPA, you control both sides | Session cookie (BFF style): Spring holds the session or the OAuth2 tokens; browser only gets an HttpOnly cookie | Required → csrf.spa() | No tokens in the browser at all |
| Browser SPA + external identity provider (Keycloak, Entra ID, Auth0) | BFF: Spring Boot as OAuth2 client (oauth2Login), session cookie to the SPA | Required | Tokens stay on the server |
| Mobile app, CLI, or service-to-service | Stateless bearer JWT (oauth2ResourceServer) | Not needed (no cookies) | Secure OS storage / secret manager |
Never store access or refresh tokens in localStorage or sessionStorage — any XSS bug turns into full account takeover. Prefer same-origin deployment (reverse proxy or dev-server proxy) so CORS disappears entirely.
These are never skipped, even in "quick" examples:
@Valid on every request body; constraints on every DTO field.DelegatingPasswordEncoder (bcrypt default, Argon2id preferred).application.yml, or logs. Use environment variables or a secret manager.spring.jpa.open-in-view=false.health (and info/prometheus behind auth or a separate port).allowCredentials(true) with wildcard origins.long IDs as strings or use UUIDs (JS loses precision above 2^53).@EntityGraph, fetch joins, or hibernate.default_batch_fetch_size.spring.threads.virtual.enabled=true) for blocking I/O workloads on Java 21+ — but still bound concurrency toward the database.Cache-Control/ETag for cacheable GETs.| File | Read it when |
|---|---|
references/modern-java.md | Writing any Java code; choosing language features; concurrency; null handling |
references/backend-architecture.md | Building Spring Boot controllers, services, repositories, config, error handling, HTTP clients |
references/frontend-integration.md | Designing the API contract, OpenAPI, TypeScript clients, CORS, pagination, errors in the UI, real-time updates |
references/security.md | Anything touching auth, sessions, JWT, CSRF, CORS, input, secrets, headers, dependencies |
references/performance.md | Slow endpoints, JPA tuning, caching, JVM flags, startup time, load testing |
references/testing.md | Writing or fixing tests at any level |
references/review-checklist.md | Before handing over code, or when the user asks for a review or rating |
scripts/java_scan.py | First look at an existing project; stdlib, --json, --fail-on. Fixtures in evals/fixtures/ show what it flags |
When you write code for the user:
// TODO: implement placeholders unless the user asked for a skeleton.@Data (Lombok) on JPA entities — broken equals/hashCode and lazy-loading traps.catch (Exception e) { e.printStackTrace(); } or swallowed exceptions.Optional as a field or method parameter.synchronized blocks around remote calls, or unbounded thread pools.permitAll() on /** "for now", csrf.disable() on cookie-based auth.System.out.println instead of SLF4J; string concatenation inside log calls.null for collections — return an empty list.ddl-auto=update or create outside local development.evals/evals.json (opens in a new tab)evals/fixtures/bad/pom.xml (opens in a new tab)evals/fixtures/bad/src/main/java/demo/SecurityConfig.java (opens in a new tab)evals/fixtures/bad/src/main/java/demo/User.java (opens in a new tab)evals/fixtures/bad/src/main/java/demo/UserController.java (opens in a new tab)evals/fixtures/bad/src/main/resources/application.yml (opens in a new tab)evals/fixtures/good/pom.xml (opens in a new tab)evals/fixtures/good/src/main/java/demo/Order.java (opens in a new tab)evals/fixtures/good/src/main/java/demo/OrderController.java (opens in a new tab)evals/fixtures/good/src/main/resources/application.yml (opens in a new tab)references/backend-architecture.md (opens in a new tab)references/frontend-integration.md (opens in a new tab)references/modern-java.md (opens in a new tab)references/performance.md (opens in a new tab)references/review-checklist.md (opens in a new tab)references/security.md (opens in a new tab)references/testing.md (opens in a new tab)scripts/java_scan.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub 2fwn2rnh7v-pixel/claude-crown --plugin claude-crown12 skills in this plugin
/api-guardAudits and hardens API usage in TypeScript web apps: rate limiting and quotas, API keys and paid calls in the backend instead of the frontend, protection against cost explosions, and lowering API consumption for the same result (caching, batching, debouncing, payload trimming, model routing). Script-backed quick scan of existing code. Use ALWAYS when: an API call, fetch(), axios or an SDK client is written; an endpoint, route, Server Action, server function or Edge Function is created; API keys, secrets, tokens, .env, NEXT_PUBLIC_/VITE_ variables appear; an external service is connected (LLM, weather, maps, payment, Supabase, Cloudflare); the user says "Rate Limit", "Quota", "Kosten", "teuer", "Rechnung", "Verbrauch", "zu viele Requests", "429", "API-Key", "Missbrauch", "cost", "usage", "throttle", "caching" or "prüf mal meine API-Nutzung". Also trigger implicitly — when the frontend calls an external service directly, or a search, autocomplete or polling loop is built without anyone mentioning cost.
/prompt-verstaendnisInterprets and understands the prompts of a German-speaking developer working on his own app (Agrarmonitor, TypeScript). The user writes fast, directly and with natural typos — this skill decodes the actual intent, recognises the recurring three-agent setup (Research → Code → Test), identifies quality requirements and makes sure the self-reflection clause at the end of every piece of work is honoured. Use this skill ALWAYS when: the user writes a complex development prompt in German; mentions an agent setup; uses terms like "sehr detailliert", "spezifisch", "hinterfrage", "Agenten", "Testsprite", "Agrarmonitor"; or when the prompt contains several nested instructions that must be untangled. Also trigger on short prompts when they contain agent references or quality markers.
Other plugins' skills for the same job