Skip to content

Guide · Agent skill

How to use the Spring Boot Verification Loop agent skill

Updated · written with AI from the project's own documentation and checked against our catalogue data

The springboot-verification skill is a reusable checklist that an AI agent follows to check a Spring Boot (Java) project before you open a pull request or deploy. This guide explains what the skill does, how to install it, how to ask for it in plain language, and what to check before you rely on its results. You do not need prior experience with agent skills to follow it.

Spring Boot Verification Loopaffaan-m/ECC · MIT

Quick start

  1. 1Confirm the tools. Check that Java, Maven or Gradle, Git and (optionally) Docker are installed and that your Spring Boot project has the SpotBugs, PMD, Checkstyle, JaCoCo and OWASP plugins configured.
  2. 2Download and unzip the skill. Download the springboot-verification ZIP from this page and unzip it so SKILL.md sits in a springboot-verification folder.
  3. 3Place the skill folder. Put the folder in ~/.claude/skills/ for all projects, or in .claude/skills/ inside one project. Alternatively, upload it under Settings → Capabilities → Skills in the Claude apps.
  4. 4Ask for the check. In your agent session, describe the goal in plain language, such as running the verification loop before a pull request.
  5. 5Review the report. Read the PASS/FAIL report and the list of problems. Fix the items, then ask the agent to run the loop again until the General line shows LISTO.

What the skill makes the agent do

The skill turns a pre-release check into a fixed sequence of phases. The agent runs the build, the static analysis tools, the test suite with coverage reporting, dependency and secret scans, and a review of your code changes. At the end it writes a short pass/fail report with a list of problems to fix.

The source also includes example test code (unit tests with mocked dependencies, Testcontainers integration tests and MockMvc controller tests) that the agent can follow when it writes tests.

  • Build: a Maven or Gradle build that stops on failure
  • Static analysis: SpotBugs, PMD and Checkstyle where configured
  • Tests and coverage: test run plus JaCoCo report, with a target of 80% or more
  • Security: OWASP dependency-check for known CVEs, plus grep-based secret and risky-pattern checks
  • Diff review: git diff --stat and git diff against a short checklist
  • Report: a PASS/FAIL summary with a numbered list of issues to fix

Check the requirements before you install

The skill runs commands in your project, so the tools they call must already be on your machine and configured in the project. The skill does not install Java, Maven, Gradle or Docker for you.

  • Java and Maven or Gradle installed
  • A Spring Boot project with the relevant plugins configured: spotbugs, pmd, checkstyle, jacoco and OWASP dependency-check, and optionally spotless and git-secrets
  • Docker, only if you want to run the Testcontainers integration test example
  • Git, for the diff review step
  • Some steps are optional or depend on configured plugins; the agent should report a step as skipped rather than passed if its tool is missing

Install the skill from the ZIP

Download the ZIP for springboot-verification from this page. The skill is a single file named SKILL.md. Unzip the download so that the folder containing SKILL.md sits inside a skills directory.

You have two placement options. A user-wide install makes the skill available in all your projects. A project install keeps it with one repository and can be shared through version control.

You can also upload the skill in the Claude apps through Settings → Capabilities → Skills, if that option is available to your account.

  • User-wide: unzip into ~/.claude/skills/
  • Single project: unzip into .claude/skills/ inside the project root
  • Claude apps: upload the skill under Settings → Capabilities → Skills

Ask for the check with a natural request

You do not need a special command. Describe what you want in plain language. The skill's activation conditions cover requests such as running the check before a pull request, after a large refactor or dependency upgrade, and before a deployment to staging or production.

Phrasings that should match the skill include the examples below. Mention the project and what you want back so the agent knows the scope.

  • Run the Spring Boot verification loop on this service before I open a PR.
  • Check this Spring Boot project before we deploy to staging and tell me if it is ready.
  • I upgraded dependencies. Run the full build, lint, test and security checks.
  • Make sure test coverage meets the 80% threshold and list anything that fails.

What the agent runs in each phase

The phases run in order. The source says that if the build fails, the agent should stop and fix it before continuing. Commands below are copied from the skill. The agent uses the Maven or Gradle variant that matches your project.

  • Phase 1 Build: Maven or Gradle clean build with tests skipped
  • Phase 2 Static analysis: SpotBugs, PMD and Checkstyle checks
  • Phase 3 Tests and coverage: test run, then the JaCoCo report
  • Phase 4 Security: OWASP dependency-check, secret searches and git-secrets if configured
  • Phase 5 Lint/format: Spotless apply, only if the Spotless plugin is used
  • Phase 6 Diff review: git diff --stat and git diff
mvn -T 4 clean verify -DskipTests mvn -T 4 spotbugs:check pmd:check checkstyle:check mvn -T 4 test mvn jacoco:report mvn org.owasp:dependency-check-maven:check git diff --stat git diff

Use the example tests as templates

The skill includes three example test styles. Ask the agent to follow one when you add a feature. Each example is written against Spring Boot test annotations and shows the assertion style the skill expects.

Unit tests isolate service logic with mocked dependencies using MockitoExtension. Integration tests use @SpringBootTest with @Testcontainers and a real PostgreSQL container instead of H2. API tests use @WebMvcTest with MockMvc to check status codes and JSON responses.

  • Unit: @ExtendWith(MockitoExtension.class) with @Mock and @InjectMocks
  • Integration: @SpringBootTest and @Testcontainers, requires Docker
  • API: @WebMvcTest(UserController.class) with MockMvc, checking for 201 and 400 responses

Read the verification report

The skill ends with a fixed report template. Each line gives a PASS or FAIL status. The static, test and security lines name the tool or count that produced the result, so you can check the detail yourself.

The overall line is LISTO (ready) or NO LISTO (not ready). Treat the numbered list under Problemas a Corregir as the work to do before you open the pull request.

  • Build, Estático, Pruebas, Seguridad, Diff and General lines
  • Pruebas shows passed/total tests and the coverage percentage
  • Seguridad shows the number of CVE findings
  • General is LISTO or NO LISTO
REPORTE DE VERIFICACIÓN ======================= Build: [PASS/FAIL] Estático: [PASS/FAIL] (spotbugs/pmd/checkstyle) Pruebas: [PASS/FAIL] (X/Y pasadas, Z% cobertura) Seguridad: [PASS/FAIL] (hallazgos CVE: N) Diff: [X archivos modificados] General: [LISTO / NO LISTO] Problemas a Corregir: 1. ... 2. ...

Safety notes before you run it

The skill runs scripts and uses the network. The build commands execute your project code and plugins. The OWASP dependency-check step can download vulnerability data, and git-secrets scans git history. Run it on a development or feature branch, not against production systems.

Do not keep real credentials in the agent's context. The secret checks are simple grep patterns and will miss secrets written in other ways, so they are not a substitute for a human security review.

  • Run on a local or feature branch, not on production infrastructure
  • Keep real passwords, API keys and tokens out of the conversation and out of files the agent can read
  • Expect the dependency scanner to need network access to fetch vulnerability data
  • Review every flagged item yourself; the skill only catches known CVEs and simple patterns

What people use it for

  • Run a consistent pre-PR check on a Spring Boot service before every pull request
  • Confirm a dependency upgrade did not introduce known CVEs or static analysis failures
  • Check coverage against an 80% target before a release to staging
  • Get a template for writing unit, Testcontainers and MockMvc tests for a new endpoint

Frequently asked questions

How do I install the springboot-verification agent skill?

Download the ZIP from this page and unzip it into ~/.claude/skills/ to use it in all projects, or into .claude/skills/ inside one project. You can also upload it in the Claude apps under Settings → Capabilities → Skills.

What do I need to use this skill?

You need Java with Maven or Gradle, a Spring Boot project with the relevant plugins configured, and Git for the diff review. Docker is needed only for the Testcontainers integration test example.

Is the springboot-verification skill free?

The source is released under the MIT licence. Check the licence text in the repository for the full terms before you reuse or modify it.

Does this skill work with Gradle as well as Maven?

Yes. The skill lists Gradle equivalents for each phase, such as ./gradlew clean assemble -x test for the build and ./gradlew test jacocoTestReport for tests and coverage. Some Gradle checks are listed as applicable only if configured.

Does the skill replace a security review?

No. The dependency scan only catches known CVEs, and the secret checks are simple grep patterns. A human security review is still needed for production systems.

Why does the skill fail when a plugin is missing?

Each static analysis, coverage and security step calls a plugin such as SpotBugs, PMD, Checkstyle, JaCoCo or OWASP dependency-check. If the plugin is not configured in the project, its command will not run, so add the plugin or accept that the step is skipped.

New agent skills, repos and AI tools — every week

The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.

Our verdict

Use this skill if you maintain a Spring Boot service with Maven or Gradle and want an agent to run the same quality gates before every pull request or release. Pick something else if your project does not use Java or Spring Boot, or if you need a full security assessment, since the scans only cover known CVEs and simple secret patterns.

Download the skill