with one click
precommit
Format, validate checkstyle/PMD, and run tests before committing
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Format, validate checkstyle/PMD, and run tests before committing
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Check and fix Checkstyle and PMD violations
Implement a GitHub issue with branch and pull request workflow
Post a status comment on a GitHub issue (starting work, plan update, completed)
Check JaCoCo code coverage
Create/update GitHub issue, branch, commit, PR, then continue implementing
Scan code for security vulnerabilities (OWASP patterns, path traversal, injection risks)
| name | precommit |
| description | Format, validate checkstyle/PMD, and run tests before committing |
| allowed-tools | Bash(./mvnw *) |
Run this before every commit to catch format and style issues early.
./mvnw spring-javaformat:apply
./mvnw validate 2>&1 | grep -E "^\[ERROR\]|violations|PMD Failure"
If violations remain after auto-format, fix them manually. Do not proceed to Step 3 until validate passes cleanly.
./mvnw test 2>&1 | tail -20
Report a summary:
| Step | Result |
|---|---|
| Format | Applied / Already clean |
| Validate | 0 violations / N violations (list them) |
| Tests | X passed, 0 failures / list failures |
If everything is green, the working tree is ready to commit. If anything fails, fix it before committing.