بنقرة واحدة
precommit
Format, validate checkstyle/PMD, and run tests before committing
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Format, validate checkstyle/PMD, and run tests before committing
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف 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.