Extend Commands API
redis/lettuce
Add or extend Redis commands in the Lettuce client API end-to-end — a new core command, a family of new commands, an extension to an existing command's options, or a module/area command…
Testing patterns for Vert.x Redis Client: test frameworks, async testing, test locations, container setup, and how to run tests.
$ npx skills add vert-x3/vertx-redis-client --skill writing-tests -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install vert-x3/vertx-redis-client writing-tests --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/vert-x3/vertx-redis-client.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/writing-tests .claude/skills/writing-tests && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "writing-tests" agent skill from https://github.com/vert-x3/vertx-redis-client/tree/master/.agents/skills/writing-tests into .claude/skills/writing-tests/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "writing-tests", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/vert-x3/vertx-redis-client/tree/master/.agents/skills/writing-testsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add vert-x3/vertx-redis-client --skill writing-tests -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install vert-x3/vertx-redis-client writing-tests --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/vert-x3/vertx-redis-client.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/writing-tests .agents/skills/writing-tests && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "writing-tests" agent skill from https://github.com/vert-x3/vertx-redis-client/tree/master/.agents/skills/writing-tests into .agents/skills/writing-tests/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "writing-tests", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add vert-x3/vertx-redis-client --skill writing-tests -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install vert-x3/vertx-redis-client writing-tests --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/vert-x3/vertx-redis-client.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/writing-tests .cursor/skills/writing-tests && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "writing-tests" agent skill from https://github.com/vert-x3/vertx-redis-client/tree/master/.agents/skills/writing-tests into .cursor/skills/writing-tests/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "writing-tests", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/vert-x3/vertx-redis-client.git --path .agents/skills/writing-tests--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add vert-x3/vertx-redis-client --skill writing-tests -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install vert-x3/vertx-redis-client writing-tests --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/vert-x3/vertx-redis-client.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/writing-tests .gemini/skills/writing-tests && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "writing-tests" agent skill from https://github.com/vert-x3/vertx-redis-client/tree/master/.agents/skills/writing-tests into .gemini/skills/writing-tests/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "writing-tests", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install vert-x3/vertx-redis-client writing-testsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add vert-x3/vertx-redis-client --skill writing-tests -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/vert-x3/vertx-redis-client.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/writing-tests .github/skills/writing-tests && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "writing-tests" agent skill from https://github.com/vert-x3/vertx-redis-client/tree/master/.agents/skills/writing-tests into .github/skills/writing-tests/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "writing-tests", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add vert-x3/vertx-redis-client --skill writing-tests -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install vert-x3/vertx-redis-client writing-tests --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/vert-x3/vertx-redis-client.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/writing-tests .opencode/skills/writing-tests && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "writing-tests" agent skill from https://github.com/vert-x3/vertx-redis-client/tree/master/.agents/skills/writing-tests into .opencode/skills/writing-tests/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "writing-tests", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
writing-testsTesting patterns for Vert.x Redis Client: test frameworks, async testing, test locations, container setup, and how to run tests.
Writing Tests is an agent skill from vert-x3/vertx-redis-client. Testing patterns for Vert.x Redis Client: test frameworks, async testing, test locations, container setup, and how to run tests.
Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Databases, covering Test strategy, Integration testing and Async programming. It works with Redis, Java and JUnit. The repository describes itself as: Redis client for Vert.x. The licence is Apache-2.0.
4 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 39ef2b9. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are java).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Writing Tests loads about 1.6k tokens when it runs. Until then it costs about 36 tokens; SKILL.md has 400 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from vert-x3/vertx-redis-client at commit 39ef2b9, republished under its Apache-2.0 licence (© vert-x3). 400 words, ~1,587 tokens.
.claude/skills/writing-tests/SKILL.md (or your agent's skills folder).Vert.x Redis Client uses JUnit 5 with Vert.x-specific test utilities and Testcontainers for Redis infrastructure. Tests are mandatory for contributions.
@ExtendWith(VertxExtension.class)
@Testcontainers
public class MyTest {
@Container
public static final RedisStandalone redis = new RedisStandalone();
@RegisterExtension
public final RunTestOnContext context = new RunTestOnContext();
private Redis client;
private RedisAPI api;
@BeforeEach
public void before(VertxTestContext test) {
client = Redis.createClient(context.vertx(), new RedisOptions().setConnectionString(redis.getRedisUri()));
client.connect().onComplete(test.succeeding(conn -> {
api = RedisAPI.api(conn);
test.completeNow();
}));
}
@AfterEach
public void after() {
client.close();
}
}test.succeeding() with test.completeNow()The most common pattern. Use test.succeeding() to assert the operation succeeded, then complete the test.
@Test
public void testSet(VertxTestContext test) {
final String key = TestUtils.randomKey();
api.set(List.of(key, "Hello"))
.onComplete(test.succeeding(reply -> {
assertEquals("OK", reply.toString());
test.completeNow();
}));
}test.succeedingThenComplete()Shorthand when you only need to verify the operation succeeds without inspecting the result.
@Test
public void testDel(VertxTestContext test) {
final String key = TestUtils.randomKey();
api.set(List.of(key, "Hello"))
.compose(ignored -> api.del(List.of(key)))
.onComplete(test.succeedingThenComplete());
}compose()Chain multiple async operations using Future.compose().
@Test
public void testAppend(VertxTestContext test) {
final String key = TestUtils.randomKey();
api.del(List.of(key))
.compose(ignored -> api.append(key, "Hello"))
.compose(reply -> {
assertEquals(5, reply.toLong());
return api.append(key, " World");
})
.onComplete(test.succeeding(reply -> {
assertEquals(11, reply.toLong());
test.completeNow();
}));
}test.failingThenComplete()When the operation is expected to fail.
@Test
public void testFailure(VertxTestContext test) {
client.send(Request.cmd(Command.create("INVALID_COMMAND")))
.onComplete(test.failingThenComplete());
}All containers are in io.vertx.tests.redis.containers:
| Container | Description | Usage |
|---|---|---|
RedisStandalone | Single Redis instance | new RedisStandalone() or use RedisStandalone.builder() for options (version, password, TLS, mutual TLS, Unix domain sockets) |
RedisCluster | Redis Cluster setup | Clustered Redis with multiple nodes |
RedisSentinel | Redis Sentinel setup | Sentinel-managed Redis |
RedisReplication | Redis Replication setup | Primary/replica Redis |
PikaContainer | Pika (Redis-compatible) | Alternative Redis-compatible store |
ValkeyContainer | Valkey container | Valkey (Redis fork) |
@Container
public static final RedisStandalone redis = RedisStandalone.builder()
.setVersion("7.2")
.setPassword("secret")
.build();src/test/java/io/vertx/tests/redis/internal/ArrayQueue, ZModem, MultiType, …)src/test/java/io/vertx/tests/redis/client/src/test/java/io/vertx/tests/redis/containers/TestUtils.randomKey()Always use TestUtils.randomKey() instead of hardcoded key names. This avoids collisions between test runs and parallel tests.
import static io.vertx.tests.redis.client.TestUtils.randomKey;
final String key = randomKey();TestUtils.retryUntilSuccess()Retry an async operation until it succeeds or reaches the maximum number of retries. Useful for waiting for cluster state to converge.
TestUtils.retryUntilSuccess(vertx, () -> api.clusterInfo(), 10)
.onComplete(test.succeedingThenComplete());TestUtils.executeWhenConditionSatisfied()Wait until a boolean condition is true, then execute an action. Uses Vert.x timers (non-blocking).
TestUtils.executeWhenConditionSatisfied(vertx, () -> ready, () -> {
// proceed with test
test.completeNow();
});Use JUnit 5 assertions:
import static org.junit.jupiter.api.Assertions.*;
assertEquals(expected, actual);
assertTrue(condition);
assertFalse(condition);
assertNull(value);
assertNotNull(value);@AfterEachTestUtils.randomKey() to avoid collisionstest.completeNow() or use test.succeedingThenComplete() / test.failingThenComplete()TestUtils.randomKey() to prevent test interferenceRedis client in @AfterEach to avoid resource leaksRedisAPI.api(client) vs RedisAPI.api(conn) — api(client) uses pooled connections, api(conn) uses a specific connection; choose based on what you're testing© vert-x3, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .agents/skills/writing-tests of vert-x3/vertx-redis-client.
Open the folder on GitHubat commit 39ef2b9
Writing Tests next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Writing Tests this skillvert-x3/vertx-redis-client | 142 | — | ~1.6k | Automated safety check: Pass | Apache-2.0 | |
| Extend Commands APIredis/lettuce | 5.8k | — | ~7.7k | Automated safety check: Notes | MIT | |
| Extend Commands APIredis/jedis | 12k | — | ~7.2k | Automated safety check: Warn | MIT | |
| Junit 5 Skillsickn33/agentic-awesome-skills | 47k | 1 repos | ~1.8k | Automated safety check: Pass | MIT | |
| Spring Boot Test Patternsgiuseppe-trisciuoglio/developer-kit | 355 | — | ~2.3k | Automated safety check: Notes | MIT | |
| Unit Test Boundary Conditionsgiuseppe-trisciuoglio/developer-kit | 355 | — | ~2.3k | Automated safety check: Notes | MIT |
redis/lettuce
Add or extend Redis commands in the Lettuce client API end-to-end — a new core command, a family of new commands, an extension to an existing command's options, or a module/area command…
redis/jedis
Add or extend Redis commands in the Jedis client API — a new core command, a family of new commands, an extension to an existing command's options, or a module command (Search/TimeSeries/JSON/Bloom).
sickn33/agentic-awesome-skills
Generates production-grade JUnit 5 unit and integration tests in Java.
giuseppe-trisciuoglio/developer-kit
Provides comprehensive testing patterns for Spring Boot applications covering unit, integration, slice, and container-based testing with JUnit 5, Mockito, Testcontainers, and performance optimization.
giuseppe-trisciuoglio/developer-kit
Provides edge case, corner case, boundary condition, and limit testing patterns for Java unit tests.
makifbaysal/tasktrooper
A skill your agent uses when writing tests for Java (Quarkus or Spring) code - JUnit Jupiter structure, Mockito for collaborators, test slices, Testcontainers, and framework-native integration…
Categories
Testing patterns for Vert.x Redis Client: test frameworks, async testing, test locations, container setup, and how to run tests. Writing Tests is an agent skill from vert-x3/vertx-redis-client.x Redis Client: test frameworks, async testing, test locations, container setup, and how to run tests.
Writing Tests fits situations like: tasks that involve Test strategy; tasks that involve Integration testing; tasks that involve Async programming.
Run `npx skills add vert-x3/vertx-redis-client --skill writing-tests -a claude-code`. Or copy the skill folder (.agents/skills/writing-tests in vert-x3/vertx-redis-client) into .claude/skills/writing-tests in your project. Claude Code loads it when a task matches its description.
Run `npx skills add vert-x3/vertx-redis-client --skill writing-tests -a codex`. Or copy the skill folder (.agents/skills/writing-tests in vert-x3/vertx-redis-client) into .agents/skills/writing-tests in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add vert-x3/vertx-redis-client --skill writing-tests -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/writing-tests, .gemini/skills/writing-tests, .github/skills/writing-tests and .opencode/skills/writing-tests in your project.
SKILL.md names no scripts, command-line tools or credentials: Writing Tests is instructions for the agent only. Our summary lists: Docker.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Writing Tests is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.6k tokens (SKILL.md is roughly 6.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Writing Tests: Extend Commands API (redis/lettuce, 5.8k stars), Extend Commands API (redis/jedis, 12k stars), Junit 5 Skill (sickn33/agentic-awesome-skills, 47k stars) and Spring Boot Test Patterns (giuseppe-trisciuoglio/developer-kit, 355 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
vert-x3 (a GitHub organization) maintains it in vert-x3/vertx-redis-client, which has 142 GitHub stars. The repository was last updated on October 7, 2026.
Source: vert-x3/vertx-redis-client on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.