Java changing with tests
Guide Java changes with minimal edits, verify using unit/integration tests as needed, and provide a PR-ready summary including plans, changes, test results,...
Latest: v1.0.0
Initial release of db-backfill-safe skill.
- Provides a step-by-step guide for making safe Java code changes with test coverage.
- Lists required inputs such as acceptance criteria, module name, and test conventions.
- Outlines the process: repo mapping, planning, minimal implementation, targeted testing, verification, and outputting a summary.
- Specifies verification and output standards for pull request readiness.
java-change-with-tests
When to use
- Any Java change that must be merged safely (feature/refactor/bugfix).
Inputs to request (if missing)
- Acceptance criteria (1-3 bullets).
- Module name (if multi-module repo).
- Build tool and test conventions.
- Whether integration tests are required for the change.
Steps
- Repo map (brief): identify the module, entrypoint, and test location.
- Plan: smallest diff that meets acceptance criteria.
- Implement: minimal edits.
- Tests:
- prefer fast unit tests first
- add integration tests only when required to validate behavior
- Verify:
- run targeted tests
- run
mvn -q test(or module-scoped equivalent)
- Output PR-ready summary with evidence.
Verification commands (project-specific)
- Use the repo's build tool and record the exact commands and results.
- Prefer targeted unit tests before full test suites.
Output contract
- Plan (3-6 steps)
- Files changed + intent
- Commands run + results
- Risks + follow-ups
