affaan-m avatar

Springboot Verification

This is a pre-commit gate for Spring Boot projects that runs the full verification stack: Maven or Gradle build, static analysis with SpotBugs and friends, JaCoCo coverage reports aiming for 80%+, OWASP dependency checks, and a final diff review before you push. It includes real examples for unit tests with Mockito, integration tests with Testcontainers, and MockMvc API tests. The continuous mode suggestion is smart: re-run every 30 to 60 minutes during long sessions so you catch issues while context is still fresh. It treats warnings as defects, which is the right default for production systems even if it feels strict at first.

skills.sh installs
5.4K
GitHub stars
229.1K
last updated
Jul 14, 2026

Install

$ npx -y skills add affaan-m/everything-claude-code --skill springboot-verification --agent claude-code

Installs into .claude/skills of the current project.

Files

Spring Boot Verification Loop

Run before PRs, after major changes, and pre-deploy.

When to Activate

  • Before opening a pull request for a Spring Boot service
  • After major refactoring or dependency upgrades
  • Pre-deployment verification for staging or production
  • Running full build → lint → test → security scan pipeline
  • Validating test coverage meets thresholds

Phase 1: Build

mvn -T 4 clean verify -DskipTests
# or
./gradlew clean assemble -x test

If build fails, stop and fix.

Phase 2: Static Analysis

Maven (common plugins):

mvn -T 4 spotbugs:check pmd:check checkstyle:check

Gradle (if configured):

./gradlew checkstyleMain pmdMain spotbugsMain

Phase 3: Tests + Coverage

mvn -T 4 test
mvn jacoco:report   # verify 80%+ coverage
# or
./gradlew test jacocoTestReport

Report:

  • Total tests, passed/failed
  • Coverage % (lines/branches)

Unit Tests

Test service logic in isolation with mocked dependencies:

@ExtendWith(MockitoExtension.class)
class UserServiceTest {

  @Mock private UserRepository userRepository;
  @InjectMocks private UserService userService;

Sponsors

Details

Repository
github.com/affaan-m/everything-claude-code
Category
Java & JVM

More from affaan-m/everything-claude-code

All 256

Recommended

More Java & JVM
1affaan-m avatarquarkus-verificationaffaan-m/everything-claude-codequarkus verification1.6Kskills.sh installs
2mindrally avatarquarkusmindrally/skillsExpert guidance for Quarkus framework development with Jakarta EE, MicroProfile, GraalVM native builds, and reactive programming patterns1.1Kskills.sh installs
3alinaqi avatarandroid-javaalinaqi/claude-bootstrapandroid java583skills.sh installs
4sickn33 avatarjava-prosickn33/antigravity-awesome-skillsjava pro405skills.sh installs
5auth0 avatarauth0-java-mvc-commonauth0/agent-skillsUse when adding Auth0 login, logout, or callback handling to a Java Servlet web application. Integrates com.auth0:mvc-auth-commons for server-side Java apps — u388skills.sh installs
6gentleman-programming avatarhexagonal-architecture-layers-javagentleman-programming/gentleman-skillsHexagonal architecture layering for Java services with strict boundaries. Trigger: When structuring Java apps by Domain/Application/Infrastructure, or refactori249skills.sh installs