From java-core
Generates Conventional Commits messages for staged Java/Spring Boot changes. Analyzes git diff to determine feat/fix/refactor type, Java-specific scope like service/controller/repository, and summary.
How this skill is triggered — by the user, by Claude, or both
Slash command
/java-core:java-commitThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Generate a git commit message for the current Java changes. Use the Conventional Commits format tailored to Java/Spring projects.
Generate a git commit message for the current Java changes. Use the Conventional Commits format tailored to Java/Spring projects.
Run (or ask Claude to run): git diff --staged --stat to see which files changed.
If nothing is staged, check git diff --stat for unstaged changes.
Based on the changed files, determine:
service, controller, repository, security)Use this format:
<type>(<scope>): <imperative summary under 72 chars>
[optional body — what changed and why, not how]
[optional footer — breaking changes, issue references]
feat: new class, method, endpoint, or featurefix: bug fix in logic, null check, exception handlingrefactor: extract method, rename, restructure — no behaviour changeperf: N+1 fix, index added, caching, virtual threadstest: new or updated JUnit/Mockito/Testcontainers testssecurity: OWASP fix, auth change, secret handling improvementchore: dependency update, build config, version bumpuser-service, order-controller, payment-repositoryauth, security, jpa, api, dtopom, gradle, cifeat(user-service): add findByEmail with case-insensitive search
Adds UserService.findByEmail() using Spring Data derived query.
Returns Optional<User> to handle missing users without null checks.
fix(order-controller): return 404 when order not found instead of 500
Previously threw NullPointerException when order ID did not exist.
Now throws ResourceNotFoundException mapped to 404 by GlobalExceptionHandler.
perf(product-repository): fix N+1 query with @EntityGraph on findAll
Each product was triggering a separate query for its category.
Added @EntityGraph(attributePaths = "category") to load in one JOIN.
refactor(auth-service): replace field injection with constructor injection
Removes @Autowired field injection on JwtTokenProvider and UserDetailsService.
Constructor injection makes dependencies explicit and improves testability.
Provide:
git commit -m "$(cat <<'EOF'\n[message]\nEOF\n)"If multiple logical changes are staged together, suggest splitting into separate commits.
npx claudepluginhub ducpm2303/claude-java-plugins --plugin java-coreGenerates conventional git commit messages by analyzing staged changes, categorizing types like feat/fix, adding scopes, and matching project history style.
Generates clear, conventional commit messages from git diffs. Useful when writing commit messages, reviewing staged changes, or preparing commits.
Generates Conventional Commits from staged git changes: classifies feat/fix/docs types, detects scopes/breaking changes, matches project style from history.