130-java-testing-strategies — скилл для Claude Code: тесты Java
Скилл разбирает Java-тесты по трём методикам: RIGHT-BICEP подбирает случаи, A-TRIP чинит нестабильные, CORRECT проверяет границы.
npx skills add jabrena/plinth --skill 130-java-testing-strategies -a claude-codeЧто делает 130-java-testing-strategies
Скилл включается, когда вы просите агента посмотреть Java-тесты: найти пропущенные сценарии, разобраться, почему тест падает через раз, или пройтись по граничным значениям. Под каждый запрос он читает свою справку из references/ — отдельный файл для RIGHT-BICEP, A-TRIP и CORRECT. Для широкого обзора берёт все три и раскладывает находки по методикам.
Работа идёт по шагам. Сначала компиляция: ./mvnw compile или mvn compile. Если сборка падает, скилл останавливается и ничего не трогает — это блокирующее условие, а не предупреждение. Дальше правки в тестах, в конце полная проверка через ./mvnw clean verify или mvn clean verify.
Результат — не готовый код, а разбор: матрица пробелов по RIGHT-BICEP, список проблем качества по A-TRIP, чек-лист границ по CORRECT. Если запрос непонятен, скилл задаёт уточняющий вопрос вместо того, чтобы лезть в файлы. Проект должен собираться на Maven — на Gradle шаги компиляции и верификации из описания не сработают, это повод проверить свои команды сборки заранее.
Какие задачи решает
- найти, каких сценариев не хватает в тестах Java-класса
- разобраться, почему тест падает только при определённом порядке запуска
- проверить граничные значения: диапазон, порядок, пустое множество
- привести нестабильные тесты к повторяемому виду
- пройтись по всему набору тестов и разложить замечания по методикам
Примеры запросов агенту
- Проверь тесты в
OrderServiceTestпо RIGHT-BICEP и покажи, чего не хватает - Эти тесты падают через раз — разбери по A-TRIP, что с ними не так
- Пройдись по граничным условиям в
PaymentValidatorчерез CORRECT
Как установить 130-java-testing-strategies
1Через Skills CLI (Vercel)
npx skills add jabrena/plinth --skill 130-java-testing-strategies -a claude-code2Вручную: положить файлы
~/.claude/skills/130-java-testing-strategies/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/130-java-testing-strategies/
1Через Skills CLI (Vercel)
npx skills add jabrena/plinth --skill 130-java-testing-strategies -a codex2Вручную: положить файлы
.agents/skills/130-java-testing-strategies/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add jabrena/plinth --skill 130-java-testing-strategies -a cursor2Вручную: положить файлы
.cursor/skills/130-java-testing-strategies/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install jabrena/plinth 130-java-testing-strategies2Вручную: положить файлы
.github/skills/130-java-testing-strategies/SKILL.md1Через Skills CLI (Vercel)
npx skills add jabrena/plinth --skill 130-java-testing-strategies -a gemini-cli2Командой платформы
gemini skills install https://github.com/jabrena/plinth --path skills/130-java-testing-strategiesВручную: положить файлы
.devin/skills/130-java-testing-strategies/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add jabrena/plinth --skill 130-java-testing-strategies -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Из того же набора40
Похожие
Рядом в теме «Тесты и QA»
Всё по теме «Тесты и QA» →Вопросы о 130-java-testing-strategies
Как установить 130-java-testing-strategies в Claude?
Одной командой: npx skills add jabrena/plinth --skill 130-java-testing-strategies -a claude-code. Файл скилла окажется по пути ~/.claude/skills/130-java-testing-strategies/SKILL.md.
Что делает 130-java-testing-strategies?
Прогоняет Java-тесты через три методики: RIGHT-BICEP подсказывает, какие случаи добавить, A-TRIP оценивает качество тестов, CORRECT проверяет граничные условия. На выходе — список находок, а не переписанный код.
Что нужно для работы скилла?
Проект на Maven: перед правками скилл запускает ./mvnw compile или mvn compile, после — ./mvnw clean verify или mvn clean verify. При падении компиляции он останавливается и ждёт, пока сборку починят.
Исходный текст
SKILL.md · Apache-2.0
--- name: 130-java-testing-strategies description: 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 license: Apache-2.0 metadata: author: Juan Antonio Breña Moral version: 0.19.0 --- # 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. 2. **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. 3. **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. 4. **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-right-bicep.md) - [references/130-java-testing-strategies-a-trip.md](references/130-java-testing-strategies-a-trip.md) - [references/130-java-testing-strategies-correct.md](references/130-java-testing-strategies-correct.md)
© Juan Antonio Breña Moral · Apache-2.0 · jabrena/plinth