add-cucumber-tests
Generates Tzatziki-based Cucumber BDD tests (.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 using Tzatziki step definitions for HTTP, JPA, Kafka, MongoDB, OpenSearch, logging, or MCP. Also use when the user mentions writing integration tests, acceptance tests, or end-to-end tests in a project that already has Tzatziki/Cucumber dependencies, including TestNG-based setups.
What this skill does
# 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.
1. **Steps come from code, not imagination.** Tzatziki provides hundreds of pre-built `@Given` /
`@When` / `@Then` patterns in its `*Steps.java` files. Inventing step text that doesn't match
a real definition produces `UndefinedStepException` at runtime. Per-module reference files in
`references/steps-*.md` contain 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_WITH` that 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`/`@Then` annotation regex, the step will be
> undefined at runtime. When in doubt, re-read the Java source in `references/steps-*.md`
> rather than guessing.
2. **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.
3. **YAML by default for structured data.** Tzatziki scenarios are most readable when request
bodies, database fixtures, Kafka payloads, and expected results use `"""yml` doc strings.
Fall back to Gherkin tables for naturally tabular data, or raw JSON only when the contract
requires it.
4. **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.
5. **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.
6. **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 `traceId`
header to the message this flow already publishes"), the right approach is almost always to
**modify the `Then` assertion 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 `traceId` header 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 feature interacts with.
Each one is a potential source of edge-case scenarios (errors, timeouts, empty responses).
- **Performance or reliability hints** — if the spec mentions performance concerns, large data
volumes, or error handling, note them. These signal scenarios the user likely cares about
even if they didn't write explicit acceptance tests for them.
- **Implicit error paths** — if the spec says "call service X to get Y", the spec is describing
the happy path. The failure path (service X returns an error) is an edge case to suggest.
### 2. Discover the Project
Detect the build tool (prefer wrappers: `./mvnw` over `mvn`, `./gradlew` over `gradle`), then:
1. **Always read `references/steps-core.md`** — core step definitions (ObjectSteps) are used in
every Tzatziki project for variables, assertions, and data manipulation.
2. **Detect which `tzatziki-*` modules** the project depends on by inspecting `pom.xml` or
`build.gradle` for dependency declarations. A quick way to extract them:
```bash
grep -o 'tzatziki-[a-z-]*' pom.xml | sort -u
```
3. **Read the matching per-module reference(s)** based on detected dependencies:
- HTTP/REST testing → `references/steps-http.md`
- Spring context → `references/steps-spring.md`
- JPA/database → `references/steps-spring-jpa.md`
- Kafka messaging → `references/steps-spring-kafka.md`
- MongoDB → `references/steps-spring-mongodb.md`
- OpenSearch → `references/steps-opensearch.md`
- Logging assertions → `references/steps-logback.md`
- MCP/AI testing → `references/steps-mcp.md`
4. When in doubt between a step pattern inferred from a `.feature` example and one read from
the Java `*Steps.java` source, trust the Java source.
5. **Catalog error-handling patterns** from existing `.feature` files you encounter during
discovery. Note how the project tests HTTP error responses (e.g., mocking 404/500 from
external APIs), empty data, cache misses, or retry behavior. You'll use these patterns as
templates when suggesting edge cases in Step 5.
### 3. Check the Bootstrap
Search for the existing test infrastructure:
- **Runner**: `@Suite` + `@IncludeEngines("cucumber")` (JUnit 5) or `AbstractTestNGCucumberTests`
- **Feature location**: `@SelectClasspathResource(...)` or `@SelectDirectories(...)`
- **Spring context**: `@CucumberContextConfiguration` + `@SpringBootTest` (if Spring is used)
If any piece is missing, plan to create it. Read `references/bootstrap-templates.md` for the
JUnit 5 runner and Spring configuration templates.
### 4. Verify the Environment
Run the existing test suite in the target module to confirm it works:
```bash
# Maven
./mvnw -pl <module> -Dtest=<RunnerClass> test
# Gradle
./gradlew :<module>:test --tests <RunnerClass>
```
A passing or functionally-failing run is fine — what matters is that Cucumber discovers and
executes scenarios. `Tests run: 0` means the runner or feature discovery is broken and needs
fixing before you writRelated in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.