con un clic
precommit
Format, validate checkstyle/PMD, and run tests before committing
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
Format, validate checkstyle/PMD, and run tests before committing
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación 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.