junit5-analysis
Skill0 starsChanged 35 days agoMITView on GitHub
Use when the agent needs to derive JUnit 5 test scenarios from requirements, code, or existing test case definitions such as TDD, BDD, and plain-text specifications.
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 7 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 23
Keep explicit source traceability in the notes or output.
- Distinctive: line 24
Read references/source-artifact-types.md when the source format mixes prose, examples, and implementation detail.
- Distinctive: line 31
Use references/traceability-patterns.md when the user needs the result mapped back to story IDs, sections, or scenario names.
- Distinctive: line 38
Use parameterized tests for scenario tables or repeated examples.
- Distinctive: line 39
Read references/source-mapping.md when mapping narrative artifacts into code.
- Distinctive: line 40
Read references/narrative-formats.md when converting TDD, BDD, or plain-text cases into a JUnit 5 structure.
- Distinctive: line 47
When asked to implement directly, keep inferred additions separated from source-backed cases in comments, notes, or test naming.
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
JUnit 5 Analysis
1. Inspect the Source Artifact
- Identify whether the source is a requirement, code path, defect report, TDD case, BDD scenario, or plain-text test definition.
- Extract the concrete behavior, inputs, outputs, side effects, preconditions, and edge cases.
- Keep explicit source traceability in the notes or output.
- Read references/source-artifact-types.md when the source format mixes prose, examples, and implementation detail.
2. Normalize the Behavior
- Convert narrative language into executable behaviors.
- Separate confirmed behavior from inferred coverage.
- Label inferred scenarios explicitly instead of presenting them as sourced facts.
- Use references/traceability-patterns.md when the user needs the result mapped back to story IDs, sections, or scenario names.
3. Choose the JUnit Shape
- Map small deterministic behavior to component tests.
- Map framework-backed behavior to slice, repository, or integration tests.
- Map service behavior to service-isolated or service-end-to-end tests.
- Use parameterized tests for scenario tables or repeated examples.
- Read references/source-mapping.md when mapping narrative artifacts into code.
- Read references/narrative-formats.md when converting TDD, BDD, or plain-text cases into a JUnit 5 structure.
4. Produce Actionable Output
- Output a scenario list, test-class plan, or directly implement the tests when requested.
- Preserve the source wording only when it improves traceability.
- Flag missing acceptance criteria or ambiguity instead of inventing rules.
- When asked to implement directly, keep inferred additions separated from source-backed cases in comments, notes, or test naming.
5. Examples
- Input:
Turn these Gherkin scenarios into JUnit 5 tests.Output: A traceable list of parameterized and focused test cases aligned to the scenarios. - Input:
Derive tests from this service class.Output: A behavioral matrix covering happy path, edge cases, validation, and exception handling. - Input:
Convert this plain-text test checklist into executable scenarios.Output: A structured JUnit-oriented scenario plan with inferred gaps labeled separately. - Input:
Derive tests from this acceptance criteria section and preserve story traceability.Output: A scenario list or test plan that names the source item and marks any extra inferred coverage explicitly.
6. Troubleshooting
- Problem: The source artifact is ambiguous. Fix: Separate confirmed behavior from inferred coverage and call out the gap.
- Problem: The narrative cases are repetitive. Fix: Collapse them into parameterized inputs when the assertion logic is shared.
- Problem: The code path exposes too many internal branches. Fix: Group by externally visible behavior, not by every private implementation detail.
- Problem: The requirement and the code disagree. Fix: Report the disagreement explicitly and avoid silently treating one source as authoritative unless the task says to.
In this repository6 other files it gives its agents.
- junit5-architectureSkill
- junit5-ciSkill
- junit5-coreSkill
- junit5-extensionsSkill
- junit5-migrationSkill
- junit5-skillSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

