spring-batch

spring-batch is a skill for Claude Code from alexmond/alexmskills. It costs 87 tokens per session (5,014 once invoked), scanned A, original, MIT.

A development reference for Spring Batch, the Java framework for processing scheduled or large data jobs. It covers job history, restarts, workflow decisions, task transactions, parallel work, and tests.

In plain words
What is it for?
Use it when writing or debugging Spring Batch jobs, choosing restart behavior, designing flows or partitioning, and testing batch mechanisms.
Why use it?
Spring Batch jobs can appear to finish without doing work, restart differently than expected, or behave incorrectly because of configuration and transaction boundaries. This helps investigate those cases with runnable examples.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the spring-batch plugin — 1 skill shipped together

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/alexmond/alexmskills/spring-batch
Any agent
npx skills add alexmond/alexmskills --skill spring-batch
Clone the repo
git clone --depth 1 https://github.com/alexmond/alexmskills

Made for: Claude Code.

Or install spring-batch, the plugin that ships this one along with the rest of its 1 skill.

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-batch

README.md
[![agentmods](https://agentmods.dev/badge/skills/alexmond/alexmskills/spring-batch.svg)](https://agentmods.dev/skills/alexmond/alexmskills/spring-batch)
Your own site
<a href="https://agentmods.dev/skills/alexmond/alexmskills/spring-batch"><img src="https://agentmods.dev/badge/skills/alexmond/alexmskills/spring-batch.svg" alt="Measured on agentmods" height="20"></a>
Per session 87 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,014 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.1 $0.00087 $0.05014
Opus 5 $0.00044 $0.02507
Sonnet 5 $0.00017 $0.01003
Haiku 4.5 $0.00009 $0.00501

Measured today against content hash 9773a6293972, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

spring-batch 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.

plugins/spring-batch/skills/spring-batch/SKILL.md · 450 lines

How it starts

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

Spring Batch development

Every rule here was paid for. Where a claim has a measurement or a runnable sample behind it, the source is named — prefer checking it over trusting this file, and correct the file when it is wrong (see Growing this skill).

Ground new behaviour in the playground first. spring-boot-playground's spring-boot-batch-parent/ holds one module per mechanism, each asserting behaviour rather than describing it: spring-boot-batch-restart, -flow, -tasklet, -partition. When you are unsure what the framework does, write the case there and run it — that is what the modules are for (use a local checkout if one exists; otherwise clone the repo). 17 tests, H2, no external services.


1. The default JobRepository stores nothing, and that is deliberate

The single most expensive thing to not know.

spring-boot-starter-batch plus a working DataSource yields ResourcelessJobRepository. There is no BatchJdbcAutoConfiguration in Boot 4's batch module — all eleven classes of org.springframework.boot.batch.autoconfigure were checked.

It is a design decision, not an omission. whatsnew.html: it has been the default since 5.2, "no longer requires an in-memory database (H2, HSQLDB) for metadata storage", which "improves default performance and reduces memory footprint". Knowing that changes how you argue about it: the framework is not broken, it is optimised for the case where nobody restarts anything, and it does not tell you which case you are in.

What that looks like: the job runs, every step executes, it reports COMPLETED, and nothing is written down. Every execution comes back id 1, no BATCH_* table is created, and restart does not exist — not refused, absent. Nothing warns you.

scan=d-1 execId=1 jobInstanceId=1
scan=d-2 execId=1 jobInstanceId=1      <- two different runs, same ids
tables: []
repository impl: ResourcelessJobRepository

Read the full file on GitHub · 450 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 Changed · +74 lines · -25 tokens per session 9773a6293972
  2. yesterday First seen · 376 lines · 112 tokens per session scan A e381d08043ca

Subscribe to this mod's changes

spring-batch is a skill published in the GitHub repository alexmond/alexmskills (6 stars, last pushed today), licensed MIT. It adds 87 tokens to every session and 5,014 once invoked, about $0.0004 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-05.

Related

Other skills, from other repositories