Skip to content
Development
Command

/check

Run static analysis on the Java project — detects configured tools (Checkstyle, SpotBugs, PMD) and reports findings

From plugin
claude-java-plugins
175 skills6 agents5 commands
> /plugin marketplace add ducpm2303/claude-java-plugins

Command definition

check.md
description: Run static analysis on the Java project — detects configured tools (Checkstyle, SpotBugs, PMD) and reports findings

/java-core:check

Run static analysis and code quality checks on the project.

Instructions

1. **Detect configured tools** by scanning `pom.xml` or `build.gradle` for:

  • Checkstyle (`maven-checkstyle-plugin` / `checkstyle` plugin)
  • SpotBugs (`spotbugs-maven-plugin` / `com.github.spotbugs`)
  • PMD (`maven-pmd-plugin` / `pmd` plugin)
  • SonarQube (`sonar-maven-plugin` / `sonarqube` plugin)

2. **Run available tools**:

  • Maven: `mvn checkstyle:check`, `mvn spotbugs:check`, `mvn pmd:check`
  • Gradle: `./gradlew checkstyleMain`, `./gradlew spotbugsMain`, `./gradlew pmdMain`

3. If **no tools configured**:

  • Run a manual review of the current file or recent changes using `/java-core:java-review`
  • Suggest adding Checkstyle to `pom.xml` or `build.gradle`

4. **Report findings** grouped by severity:

  • CRITICAL / HIGH: Show file:line, rule name, and description
  • MEDIUM / LOW: Summarize counts by category

5. If findings exceed 10 items, show the top 10 by severity and summarize the rest.

@ducpm2303
Ships withclaude-java-plugins

A Claude Code plugin marketplace with 3 focused plugins for Java developers. All plugins support Java 8 through Java 21 and tailor advice to your target Java version.

1726 skills6 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
17
Star history of ducpm2303/claude-java-plugins on GitHub, a chart by star-history.com

Other commands on claude-java-plugins.

audit

audit

Command

Full quality audit — runs security scan, performance check, and test coverage analysis in sequence and produces a combined report

run

run

Command

Start the Spring Boot application locally — checks prerequisites, then runs the app and reports startup status

More commands from other plugins.

build
Auto-invoked

build

Command

Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

@addyosmani@addyosmaniInstall Command