spring-service

spring-service is a skill for Claude Code from kousen/claude-code-training. It costs 34 tokens per session (315 once invoked), scanned A, original, MIT.

A command that generates a Spring Boot service class for a named entity, along with its tests. Spring Boot is a Java framework for building web applications and services.

In plain words
What is it for?
It helps create services with repository access, create/read/update/delete operations, logging, exception handling, request mapping, and JUnit 5 with Mockito tests.
Why use it?
It removes repetitive setup for common data operations while following the existing project's structure. It also provides tests for normal cases, missing records, and write-operation edge cases.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Good fit It helps create services with repository access, create/read/update/delete operations, logging, exception handling, request mapping, and JUnit 5 with Mockito tests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kousen/claude-code-training/spring-service
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.

Any agent
npx skills add kousen/claude-code-training --skill spring-service
Clone the repo
git clone --depth 1 https://github.com/kousen/claude-code-training

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 spring-service

README.md
[![agentmods](https://agentmods.dev/badge/skills/kousen/claude-code-training/spring-service/github.svg)](https://agentmods.dev/skills/kousen/claude-code-training/spring-service)
Your own site
<a href="https://agentmods.dev/skills/kousen/claude-code-training/spring-service"><img src="https://agentmods.dev/badge/skills/kousen/claude-code-training/spring-service/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for spring-service

Your own site · 80×15
<a href="https://agentmods.dev/skills/kousen/claude-code-training/spring-service"><img src="https://agentmods.dev/badge/skills/kousen/claude-code-training/spring-service.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 315 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.1 $0.00034 $0.00315
Opus 5.5 $0.00014 $0.00126
Sonnet 5.5 $0.00007 $0.00063
Haiku 4.5 $0.00003 $0.00032

Measured 1mo ago against content hash 7fcb4dac738d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

spring-service 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 1mo ago.

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.

skills/spring-service/SKILL.md · 29 lines

What it actually says

Spring Service Scaffold

Generate a $ARGUMENTSService with:

  • @Service annotation
  • Constructor injection of $ARGUMENTSRepository (no field @Autowired)
  • CRUD methods: findAll(), findById(id), create(request), update(id, request), delete(id)
  • Domain exceptions (e.g., EntityNotFoundException) thrown for missing-by-id; let @ControllerAdvice translate to HTTP if present
  • SLF4J logging at meaningful boundaries — entry on writes, warn on validation rejection, debug on reads
  • Unit tests using JUnit 5 + Mockito, with @MockitoBean and @MockitoSpyBean where appropriate
  • Use modern Java idioms (records for DTOs, pattern matching, var where readable)

Constraints

  • Match the existing project package layout
  • Don't introduce Lombok if the project doesn't already use it
  • If the project uses MapStruct, generate a mapper interface; otherwise, write the mapping inline
  • Tests should cover happy path, not-found, and at least one validation/edge case per write method

Usage: /spring-service User → UserService, UserServiceTest

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. 1mo ago First seen · 29 lines · 34 tokens per session scan A 7fcb4dac738d

Subscribe to this mod's changes

spring-service is a skill published in the GitHub repository kousen/claude-code-training (339 stars, last pushed 7d ago), licensed MIT. It adds 34 tokens to every session and 315 once invoked, about $0.0001 per session on Opus 5.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-08-30.

Related

Other skills, from other repositories

wxjava-api-contributor

A contributor guide for adding or maintaining official WeChat API support in WxJava, a Java software development kit. It covers services, request and response data objects, data conversion, HTTP handling, starter configuration, and regression tests.

binarywang/WxJava · 68 tokens

azure-communication-callautomation-java

Build call automation workflows with Azure Communication Services Call Automation Java SDK. Use when implementing IVR systems, call routing, call recording, DTMF recognition, text-to-speech, or AI-powered call flows.

microsoft/skills · 49 tokens

azure-communication-chat-java

Build real-time chat applications with Azure Communication Services Chat Java SDK. Use when implementing chat threads, messaging, participants, read receipts, typing notifications, or real-time chat features.

microsoft/skills · 41 tokens

azure-communication-common-java

Azure Communication Services common utilities for Java. Use when working with CommunicationTokenCredential, user identifiers, token refresh, or shared authentication across ACS services.

microsoft/skills · 35 tokens

azure-communication-sms-java

Send SMS messages with Azure Communication Services SMS Java SDK. Use when implementing SMS notifications, alerts, OTP delivery, bulk messaging, or delivery reports.

microsoft/skills · 36 tokens

java-coding-standards

Java coding standards for Spring Boot services: naming, immutability, Optional usage, streams, exceptions, generics, and project layout.

hashgraph-online/awesome-codex-plugins · 35 tokens