Skip to main content
skill CX Codex

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

rust-unit-tests is a Claude Code skill that writes and improves Rust unit tests within the codebase. It assists when handling data transformations or fixing reproducible bugs.

AGPL-3.0 ★ 720 updated 2026-11-10

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

What rust-unit-tests does

This skill guides the creation of crate-level unit tests for deterministic logic and pure data processing. It enforces the use of specific test files like _tests.rs or mod_test.rs while ensuring tests exercise public APIs rather than internal state.

The skill discourages change-detector tests and promotes state-based assertions to keep the test suite maintainable. It suggests separating logic from I/O layers to facilitate unit testing without heavy mocking.

The tool assumes a standard Rust project environment. It is not designed for GUI rendering, PTY timing, or integration scenarios where internal shell wiring is the primary concern.

What it helps with

  • generate unit tests for data transformation logic
  • verify edge cases for parser functions
  • create a failing test for a bug
  • refactor code into testable pure functions

Example prompts for the agent

  • Create a unit test for the function in parser.rs
  • Add edge case coverage to domain_logic_tests.rs
  • Update tests to verify system state via public API

How to install rust-unit-tests

1Skills CLI (Vercel)

npx skills add dominikmartn/harp --skill rust-unit-tests -a claude-code

2Manually: put the files in place

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

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

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

Questions about rust-unit-tests

How to install rust-unit-tests in Claude Code?

Run npx skills add dominikmartn/harp --skill rust-unit-tests -a claude-code. The skill configuration is then accessible at ~/.claude/skills/rust-unit-tests/SKILL.md.

What does rust-unit-tests do?

It assists the agent in writing concise, diagnosable Rust unit tests by enforcing proper test file structure and behavior-driven naming conventions.

When should you use this skill?

Use it for testing isolated logic and data transformations. For GUI rendering, shell integration, or cross-process behaviors, rely on the project's higher-level integration testing tools instead.

Similar skills

All skills for Testing and QA →

From the same set62

The whole set →
warpctrl warpctrl is a Claude Code skill that hands the agent a CLI into the Warp app already open on the machine: tabs, panes, the input buffer, themes, settings. Requests about Warp's own windows land here instead of the project tree. CX Codex +1 ★ 720repo stars gui-create-launch-modal gui-create-launch-modal is a Claude Code skill for building a one-time launch modal in Warp’s GUI. A feature flag controls the startup display for each user. CX Codex +1 ★ 720repo stars changelog-draft changelog-draft is a Claude Code skill that turns pull requests merged between two release tags into a changelog draft, keeping explicit CHANGELOG markers and sorting the rest into categories. CX Codex +1 ★ 720repo stars oz-platform oz-platform is a Claude Code skill for running and inspecting Oz cloud agents through Warp's REST API and CLI. It also handles schedules and agent environments. CX Codex +1 ★ 720repo stars gui-settings-ui gui-settings-ui is a Claude Code skill for editing Warp GUI settings pages. It keeps widget visibility and settings search aligned with the page structure. CX Codex +1 ★ 720repo stars gui-integration-test gui-integration-test is a Claude Code skill that writes and debugs integration tests for Warp's GUI desktop app on the Builder/TestStep harness. Runs when a test is added or fixed. CX Codex +1 ★ 720repo stars tui-verify-change tui-verify-change is a Claude Code skill that runs Warp’s headless TUI and reads its rendered screen after UI, input, or behavior changes. CX Codex +1 ★ 720repo stars logging-and-error-reporting Logging-and-error-reporting is a Claude Code skill that standardizes log levels and Sentry error reporting. It runs during development or code review to ensure consistent error handling. CX Codex +1 ★ 720repo stars

Project sponsors

Companies that keep this analytics open