Skip to main content
skill CX Codex

run-rust-tests — Claude Code skill: what it does, how to install

run-rust-tests runs Rust tests for the RediSearch crates your edit touched, then repairs whatever fails.

no license ★ 6,244 updated 2026-10-29

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add RediSearch/RediSearch --skill run-rust-tests -a claude-code
Open on GitHub

What run-rust-tests does

Edit Rust code in RediSearch and this skill works out which crates the change reaches, then tests those. With no arguments it reads git status and git diff --name-only, looks inside src/redisearch_rs/, and takes the top-level folder name as the crate. cargo nextest runs for those packages only. When nothing under that folder changed, or the mapping stays unclear, the full suite runs.

Pass all for every test, a crate name for one package, or a crate name plus a test name for a single function. On a red run the skill reads the error output, fixes the code or the test itself, and repeats the suite.

It shells out to cargo nextest, so nextest has to be on your machine already. The extra line for spotting undefined behavior is cargo +nightly miri test, and that one needs a nightly toolchain.

What it helps with

  • run tests only for the crates your edit touched
  • re-run one named test inside a crate
  • fix a failing test and confirm it passes
  • run the whole Rust suite before a commit
  • hunt undefined behavior with miri

Example prompts for the agent

  • Run /run-rust-tests now that I've finished editing src/redisearch_rs/.
  • Run /run-rust-tests all and show me the failures.
  • Run /run-rust-tests hyperloglog test_merge and fix it if the test is red.

How to install run-rust-tests

1Skills CLI (Vercel)

npx skills add RediSearch/RediSearch --skill run-rust-tests -a claude-code

2Manually: put the files in place

~/.claude/skills/run-rust-tests/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/run-rust-tests/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about run-rust-tests

How do I install run-rust-tests in Claude Code?

Run npx skills add RediSearch/RediSearch --skill run-rust-tests -a claude-code; the skill lands at ~/.claude/skills/run-rust-tests/SKILL.md.

What does run-rust-tests do?

It maps your edits in src/redisearch_rs/ to their crates and calls cargo nextest for those packages. When something fails it reads the output and fixes the code or the test.

What has to be installed first?

cargo nextest. The miri run goes through cargo +nightly miri test, so it also needs a nightly toolchain.

Similar skills

All skills for Testing and QA →

From the same set4

Project sponsors

Companies that keep this analytics open