Install
$ agentstack add skill-jaipilot-jaipilot-jaipilot-generate-tests ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
Raise meaningful Java coverage per class
Target at least 80% fresh JaCoCo line coverage for every eligible in-scope production class. Treat 80% as an objective, not permission to add hollow tests or claim unmeasured coverage.
Establish the campaign
- Confirm that the selected root contains a Java Maven or Gradle project. Otherwise report that
this skill is not applicable and stop.
- Read repository instructions, build files, existing tests, fixtures, and the production
contracts. Record Git status and preserve unrelated work.
- Define the production classes in scope. Use the user's explicit scope; otherwise prefer changed
classes, then their module. Do not silently turn a bounded request into a repository-wide job.
- Run the repository's existing baseline tests and configured JaCoCo report. Calculate each
eligible class's line coverage as covered lines divided by covered plus missed lines.
- Include classes with executable production lines. Honor only existing generated-code or coverage
exclusions, and list excluded or zero-executable-line classes separately.
- If fresh class-level JaCoCo data is unavailable, ask before adding or changing tooling. Continue
with behavior-focused tests when useful, but do not claim an 80% result.
Coordinate one class per worker
- Build a deterministic queue ordered by missed lines, risk, and class name. Assign exactly one
production class to each worker and normally one corresponding test class.
- When the host supports subagents, run a bounded parallel batch sized for available agent slots,
CPU, memory, and repository services. Keep the remaining classes queued for later waves.
- Give editing or build workers separate temporary Git worktrees or equivalent isolated build
outputs. Never run concurrent Maven or Gradle processes against the same checkout or output tree.
- When relevant uncommitted work cannot be reproduced safely, do not stash, reset, or omit it.
Parallelize read-only analysis and serialize edits/builds, or obtain approval for isolated copies.
- Do not assume tests are runtime-independent merely because authoring is split by class. Do not
enable parallel test execution unless the repository already supports it safely.
- If the host cannot run subagents, process the same per-class queue sequentially and report that
parallel authoring was unavailable.
Worker contract
For the assigned production class:
- Read its public contract, collaborators, existing tests, and relevant call sites.
- Cover observable normal, boundary, invalid-input, state-transition, and failure behavior. Add a
regression test that fails before any permitted defect fix.
- Follow the repository's existing framework, assertion, mocking, fixture, and naming conventions.
Prefer real values and stable collaboration boundaries over private-method assertions.
- Avoid sleeps, real network calls, order dependence, shared mutable state, unfixed randomness,
excessive mocking, reflection into internals, and assertions that repeat the implementation.
- Run the narrowest repository-native command that executes the assigned test class. Confirm from
output or reports that its intended methods ran.
- Refresh the configured JaCoCo evidence in the isolated checkout and iterate while useful
behavior remains uncovered. Aim for at least 80% line coverage for the assigned class.
- Use configured PIT for the assigned class when practical. Strengthen meaningful survivors; do
not assert implementation trivia merely to kill mutations.
- Change production code only with user approval for a necessary testability or defect fix. Never
add dependencies, plugins, exclusions, suppressions, or weaker gates merely to reach the target.
- Return the test patch, exact commands, executed tests, fresh class coverage, mutation evidence,
and any blocker. Do not commit or modify files outside the assignment unless asked.
Integrate and prove
- Review and integrate worker patches one at a time. Resolve overlapping fixtures centrally and
remove duplicated or contradictory tests.
- Run the focused test classes together using the repository's normal runner. Then refresh one
aggregate JaCoCo report from the integrated tree.
- Compare every eligible class with the 80% target. Schedule another targeted wave for classes
below it when meaningful uncovered behavior remains.
- For a class that remains below 80%, record the exact measured value and reason: unreachable or
generated paths, environment dependency, unsafe behavior, missing tooling, or diminishing-value implementation detail. Never label a best effort as passing.
- Run related tests and the repository's normal final verification command. Re-read the complete
diff and remove hollow tests, duplication, unused fixtures, debug output, and unrelated changes.
Report
Return:
- scope, baseline command, worker count, isolation method, and parallel waves;
- tests and any approved production changes;
- exact focused, aggregate, coverage, mutation, and final commands with outcomes;
- a table of every eligible class with baseline coverage, final coverage, target status, and blocker;
- excluded classes and the repository rule that excluded them;
- important behavior intentionally not covered and why; and
- unavailable evidence and remaining limitations.
Never describe unconfigured, stale, or missing coverage or mutation evidence as a pass.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: JAIPilot
- Source: JAIPilot/jaipilot
- License: MIT
- Homepage: https://github.com/JAIPilot/jaipilot#readme
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.