java-spring-boot

java-spring-boot is a skill for Claude Code, Codex from hoangatg/ai-agent-toolkit. It costs 48 tokens per session (571 once invoked), scanned A, original, MIT.

Java and Spring Boot development patterns. Spring Boot 3.x, Spring Security, JPA/Hibernate, reactive programming, and production patterns. Use when building Java backend services, REST APIs, or enterprise applications.

Skill for Claude CodeCodex

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 skills/hoangatg/ai-agent-toolkit/java-spring-boot
Any agent
npx skills add hoangatg/ai-agent-toolkit --skill java-spring-boot
Clone the repo
git clone --depth 1 https://github.com/hoangatg/ai-agent-toolkit

Made for: Claude Code, Codex.

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 java-spring-boot

README.md
[![agentmods](https://agentmods.dev/badge/skills/hoangatg/ai-agent-toolkit/java-spring-boot.svg)](https://agentmods.dev/skills/hoangatg/ai-agent-toolkit/java-spring-boot)
Your own site
<a href="https://agentmods.dev/skills/hoangatg/ai-agent-toolkit/java-spring-boot"><img src="https://agentmods.dev/badge/skills/hoangatg/ai-agent-toolkit/java-spring-boot.svg" alt="Measured on agentmods" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 571 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown 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.00048 $0.00571
Opus 5 $0.00024 $0.00285
Sonnet 5 $0.00010 $0.00114
Haiku 4.5 $0.00005 $0.00057

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

Security

Grade A, and why

java-spring-boot 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 today.

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.

.agent/skills/java-spring-boot/SKILL.md · 74 lines

How it starts

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

Java & Spring Boot

Enterprise-grade Java development with Spring Boot 3.x, Spring Security, and modern patterns.

Core Principles

  • Convention over Configuration: Spring Boot auto-configuration
  • Production-Ready: Actuator, health checks, metrics out of the box
  • Type Safety: Leverage Java's strong type system
  • Dependency Injection: Constructor injection preferred

Stack Decisions

Concern Recommended
Build Gradle (Kotlin DSL) or Maven
Java Version 21+ (virtual threads, records, sealed classes)
Framework Spring Boot 3.x
ORM Spring Data JPA + Hibernate
Validation Jakarta Validation (Bean Validation 3.0)
Security Spring Security 6.x
Testing JUnit 5 + Mockito + Testcontainers
API Docs SpringDoc OpenAPI

Project Structure

src/
├── main/
│   ├── java/com/example/app/
│   │   ├── config/           # Configuration classes
│   │   ├── controller/       # REST controllers
│   │   ├── service/          # Business logic
│   │   ├── repository/       # Data access
│   │   ├── model/            # JPA entities
│   │   ├── dto/              # Data transfer objects
│   │   ├── exception/        # Custom exceptions
│   │   └── Application.java  # Entry point
│   └── resources/
│       ├── application.yml
│       └── db/migration/     # Flyway migrations
└── test/

Key Patterns

  • DTO Pattern: Separate API shape from entity shape
  • Service Layer: Business logic in @Service classes
  • Repository Pattern: Spring Data JPA repositories
  • Global Exception Handling: @ControllerAdvice
  • Virtual Threads: spring.threads.virtual.enabled=true

Anti-Patterns

❌ Don't ✅ Do
Business logic in controllers Use service layer
Field injection (@Autowired) Constructor injection
Expose entities in API Use DTOs
Ignore N+1 queries Use @EntityGraph or JOIN FETCH

Read the full file on GitHub · 74 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. today First seen · 74 lines · 48 tokens per session scan A 151f60dd24d1

Subscribe to this mod's changes

java-spring-boot is a skill published in the GitHub repository hoangatg/ai-agent-toolkit (1 stars, last pushed 5mo ago), licensed MIT. It adds 48 tokens to every session and 571 once invoked, about $0.0002 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.