com um clique
precommit
Format, validate checkstyle/PMD, and run tests before committing
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Menu
Format, validate checkstyle/PMD, and run tests before committing
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Baseado na classificação ocupacional SOC
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.