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
npx skills add RediSearch/RediSearch --skill run-rust-tests -a claude-codeWhat 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-testsnow that I've finished editingsrc/redisearch_rs/. - Run
/run-rust-tests alland show me the failures. - Run
/run-rust-tests hyperloglog test_mergeand 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-code2Manually: put the files in place
~/.claude/skills/run-rust-tests/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/run-rust-tests/
1Skills CLI (Vercel)
npx skills add RediSearch/RediSearch --skill run-rust-tests -a codex2Manually: put the files in place
.agents/skills/run-rust-tests/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add RediSearch/RediSearch --skill run-rust-tests -a cursor2Manually: put the files in place
.cursor/skills/run-rust-tests/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install RediSearch/RediSearch .skills/run-rust-tests/SKILL.md2Manually: put the files in place
.github/skills/run-rust-tests/SKILL.md1Skills CLI (Vercel)
npx skills add RediSearch/RediSearch --skill run-rust-tests -a gemini-cli2Platform CLI
gemini skills install https://github.com/RediSearch/RediSearch --path .skills/run-rust-testsManually: put the files in place
.devin/skills/run-rust-tests/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add RediSearch/RediSearch --skill run-rust-tests -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
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.