java-tests-tzatziki
БесплатноБез исполняемых скриптовНе проверенGenerates Tzatziki-based Cucumber tests (Gherkin .feature files) from a functional specification. Use this skill whenever a user wants to write Cucumber…
от Decathlon★ 88 звёзд на GitHubОб этом скилле
BDD Test Generation with Tzatziki
Generate valid Cucumber .feature files from a user's functional specification, using Tzatziki's
step definition library as the source of truth for legal step patterns.
Principles
These explain the reasoning behind the workflow — understanding them helps you handle edge cases the workflow doesn't explicitly cover.
Steps come from code, not imagination. Tzatziki provides hundreds of pre-built
@Given/@When/@Thenpatterns in its*Steps.javafiles. Inventing step text that doesn't match a real definition producesUndefinedStepExceptionat runtime. Per-module reference files inreferences/steps-*.mdcontain every legal step pattern — read the relevant ones before writing any scenario.⚠️ Never paraphrase or improvise step keywords. Many step patterns use regex constants like
COMPARING_WITHthat expand to a small fixed set of keywords (e.g.,""empty," exactly"," at least"," only"). Do not substitute natural-language synonyms such as"containing","including","matching", or any other word that "sounds right" — if the word does not appear in the@Given/@When/@Thenannotation regex, the step will be undefined at runtime. When in doubt, re-read the Java source inreferences/steps-*.mdrather than guessing.Verify the environment before writing tests. Run at least one existing Cucumber test in the target module before creating new feature files. This catches missing dependencies, broken bootstrap, or misconfigured runners early — before you've invested effort in writing scenarios that can't execute. If no test exists yet, create the minimal bootstrap first and confirm it discovers at least one scenario.
YAML by default for structured data. Tzatziki scenarios are most readable when request bodies, database fixtures, Kafka payloads, and expected results use
"""ymldoc strings. Fall back to Gherkin tables for naturally tabular data, or raw JSON only when the contract requires it.Cover exactly what the user asked for — then help them think about what they missed. Generate scenarios for every functional behavior in the user's specification — not just the happy path. But don't silently add extra scenarios either. Instead, after covering the requested scope, actively identify edge cases and present them to the user as optional additions. To identify edge cases effectively, look at three things: (a) every external service call in the scenario — what happens if it returns an error (4xx, 5xx) or times out? (b) every data collection — what happens if it's empty or contains unexpected values? (c) existing test files in the project that test similar features — they often contain error-handling patterns you can adapt for the new scenario. The user decides which edge cases to include, but your job is to surface them so nothing important is missed.
Reuse what exists. If the project already has a runner, bootstrap class, feature location convention, or glue configuration — reuse them. Creating duplicates causes classpath conflicts and confuses test discovery.
Prefer updating existing scenarios over creating new ones. When a specification adds a new field, header, or assertion to an already-tested behavior (e.g., "add a
traceIdheader to the message this flow already publishes"), the right approach is almost always to modify theThenassertion of an existing scenario that already exercises that behavior, rather than creating a brand-new scenario that duplicates all the same Given/When setup just to check one additional field. Creating a new scenario is only justified when the behavior itself is genuinely new — a different trigger, a different code path, or a different precondition combination that no existing scenario covers. This matters because test suites grow quickly, and every duplicated scenario is a maintenance burden: when the shared setup changes, every copy must be updated in lockstep or the suite becomes inconsistent.
Workflow
1. Understand the Specification
Analyze the user's input and break it into a checklist of distinct functional behaviors. Each behavior will become one or more scenarios. If anything is ambiguous, ask before proceeding.
While analyzing, classify each behavior as one of:
- New behavior — a genuinely new trigger, code path, or precondition combination that no existing scenario covers. This requires a new scenario.
- Additive change — a new field, header, assertion, or output added to an already-tested
behavior (e.g., "add a
traceIdheader to the message this scenario already publishes"). This should be handled by modifying the existing scenario's assertions, not by creating a new scenario. See Principle 6.
Also extract:
- External dependencies — every API, service, or data source the fea
Установить java-tests-tzatziki в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл java-tests-tzatziki?
Generates Tzatziki-based Cucumber tests (Gherkin .feature files) from a functional specification. Use this skill whenever a user wants to write Cucumber tests, add BDD scenarios, create feature files, generate tests, or test application behaviors with Gherkin — especially in Java/Spring projects. Use this skill for tests involving HTTP, relational database (SQL), JPA, Kafka, MongoDB, OpenSearch, logging, or MCP. Also use when the user mentions writing integration tests, acceptance tests, or end-to-end tests.
Как установить скилл java-tests-tzatziki?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл java-tests-tzatziki запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic