agentleFS
jabrenajabrena/cursor-rules-java/skills/130-java-testing-strategies/SKILL.md

130-java-testing-strategies

Skill452 starsChanged 3 months agoApache-2.0View on GitHub

Use when you need to apply testing strategies for Java code — RIGHT-BICEP to guide test creation, A-TRIP for test quality characteristics, or CORRECT for verifying boundary conditions. This should trigger for requests such as Review Java code for testing strategies; Apply RIGHT-BICEP testing strategies in Java code; Apply A-TRIP testing strategies in Java code; Apply CORRECT boundary condition verification in Java code. Part of Plinth Toolkit

We split this skill into the rules it gives an agent

14 rules. About 0 are common, 7 are distinctive, and 7 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.

  • 7

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before applying any test strategy changes, ensure the project compiles.

    line 22
  2. Very specific:

    MANDATORY: Run ./mvnw compile or mvn compile before applying any change

    line 24
  3. Distinctive:

    SAFETY: If compilation fails, stop immediately and do not proceed — compilation failure is a blocking condition

    line 25
  4. Very specific:

    VERIFY: Run ./mvnw clean verify or mvn clean verify after applying improvements

    line 26
  5. Distinctive:

    BEFORE APPLYING: Read only the testing-strategy references selected by the user's concern before changing tests

    line 27
  6. Distinctive:

    EDGE CASE: If the user goal is ambiguous, stop and ask a clarifying question before editing files or running project-wide commands

    line 32
  7. Distinctive:

    EDGE CASE: If required context, files, credentials, or tools are missing, report the blocker explicitly and ask whether to proceed with …

    line 33
  8. Distinctive:

    EDGE CASE: If requested changes conflict with project constraints or safety boundaries, explain the conflict and ask for user confirmation …

    line 34
  9. Very specific:

    Run ./mvnw compile or mvn compile and stop immediately if compilation fails.

    line 50
  10. Very specific:

    Read references/130-java-testing-strategies-right-bicep.md when the request asks what to test, which behavior is missing, whether …

    line 57
  11. Very specific:

    Read references/130-java-testing-strategies-a-trip.md when the request asks why tests are flaky, brittle, manual, slow to run locally, …

    line 58
  12. Very specific:

    Read references/130-java-testing-strategies-correct.md when the request asks for boundary-condition review, CORRECT analysis, invalid input …

    line 59
  13. Distinctive:

    Do not require unrelated references for a narrow request unless the user's concern crosses technique boundaries.

    line 62
  14. Very specific:

    Run ./mvnw clean verify or mvn clean verify after applying improvements.

    line 71

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Java testing strategies

Apply proven testing strategies (RIGHT-BICEP, A-TRIP, CORRECT) to design and verify Java unit tests.

What is covered in this Skill?

  • RIGHT-BICEP: Key questions to guide test creation — Right results, Boundary conditions, Inverse relationships, Cross-checks, Error conditions, Performance
  • A-TRIP: Characteristics of good tests — Automatic, Thorough, Repeatable, Independent, Professional
  • CORRECT: Boundary condition verification — Conformance, Ordering, Range, Reference, Existence, Cardinality, Time

Constraints

Before applying any test strategy changes, ensure the project compiles. If compilation fails, stop immediately — do not proceed until resolved. After applying improvements, run full verification.

  • MANDATORY: Run ./mvnw compile or mvn compile before applying any change
  • SAFETY: If compilation fails, stop immediately and do not proceed — compilation failure is a blocking condition
  • VERIFY: Run ./mvnw clean verify or mvn clean verify after applying improvements
  • BEFORE APPLYING: Read only the testing-strategy references selected by the user's concern before changing tests
  • FOCUSED ROUTING: For missing behavior coverage or RIGHT-BICEP requests, read references/130-java-testing-strategies-right-bicep.md by default
  • FOCUSED ROUTING: For flaky, brittle, manual, order-dependent, shared-state, or maintainability requests, read references/130-java-testing-strategies-a-trip.md by default
  • FOCUSED ROUTING: For boundary-condition or CORRECT requests, read references/130-java-testing-strategies-correct.md by default
  • BROAD REVIEW: For broad test-strategy reviews, combine RIGHT-BICEP, A-TRIP, and CORRECT references and categorize findings by technique
  • EDGE CASE: If the user goal is ambiguous, stop and ask a clarifying question before editing files or running project-wide commands
  • EDGE CASE: If required context, files, credentials, or tools are missing, report the blocker explicitly and ask whether to proceed with setup or fallback guidance
  • EDGE CASE: If requested changes conflict with project constraints or safety boundaries, explain the conflict and ask for user confirmation on the preferred trade-off

When to use this skill

  • Review Java code for testing strategies
  • Find missing Java test cases or behavior coverage gaps
  • Apply RIGHT-BICEP testing strategies in Java code
  • Review flaky, brittle, order-dependent, or hard-to-maintain Java tests
  • Apply A-TRIP testing strategies in Java code
  • Review Java boundary condition tests
  • Apply CORRECT boundary condition verification in Java code

Workflow

  1. Compile project before test-strategy changes

Run ./mvnw compile or mvn compile and stop immediately if compilation fails.

  1. Select focused testing-strategy references

Route the request before reading references:

  • Read references/130-java-testing-strategies-right-bicep.md when the request asks what to test, which behavior is missing, whether assertions prove the right result, how to force errors, how to cross-check, or how to add performance guardrails.
  • Read references/130-java-testing-strategies-a-trip.md when the request asks why tests are flaky, brittle, manual, slow to run locally, order-dependent, shared-state dependent, unclear, or hard to maintain.
  • Read references/130-java-testing-strategies-correct.md when the request asks for boundary-condition review, CORRECT analysis, invalid input handling, conformance, ordering, range, external reference, existence, cardinality, or time cases.
  • For broad test-strategy reviews, read all three focused references and organize findings by RIGHT-BICEP, A-TRIP, and CORRECT.

Do not require unrelated references for a narrow request unless the user's concern crosses technique boundaries.

  1. Apply strategy-driven test improvements

Improve or add tests using the selected technique: produce a RIGHT-BICEP gap matrix for missing behavior coverage, an A-TRIP quality finding list for test reliability and maintainability issues, a CORRECT boundary checklist for boundary reviews, or all three sections for broad reviews.

  1. Verify with full build

Run ./mvnw clean verify or mvn clean verify after applying improvements.

Reference

For detailed guidance, examples, and constraints, see:

  • references/130-java-testing-strategies-right-bicep.md
  • references/130-java-testing-strategies-a-trip.md
  • references/130-java-testing-strategies-correct.md

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

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.