rust-test-driven-development

Enforce a test-first TDD workflow for Rust implementation stories.

2|Updated Mar 14, 2026
One-click install
npx skills add https://github.com/luminos-accessibility/luminos --skill rust-test-driven-development
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rust-test-driven-development
Source: https://github.com/luminos-accessibility/luminos/tree/main/.claude/skills/rust-test-driven-development
Command: npx skills add https://github.com/luminos-accessibility/luminos --skill rust-test-driven-development

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill codifies a rigorous test-first workflow for Rust implementation tasks within the Luminos project, ensuring tests define expected behavior before implementation and align with the spec-driven approach.

Core Features & Use Cases

  • Enforces a three-phase TDD cycle (Red, Green, Refactor) for Rust tasks, including writing failing tests from SUBTASKS.md, minimal green implementations, and refactoring with safety checks.
  • Guides test-writing patterns across unit, integration, and property-based tests, with clear naming, fixtures, and test doubles aligned to Luminos conventions.
  • Applies to subtasks described in STORY.md and any Rust-based components (X11, core engine, GPU-related code) within Luminos.

Quick Start

Start by identifying the current story's SUBTASKS.md and write a failing test that captures the acceptance criteria before implementing any code.

Frequently Asked Questions about rust-test-driven-development

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce a test-first workflow for Rust implementation tasks?

Writing failing tests before implementing code in Rust ensures expected behavior is defined upfront. This test-first approach translates acceptance criteria into failing unit and integration tests, followed by minimal implementation and subsequent refactoring.

What is the Red, Green, Refactor cycle for Rust unit testing?

The Red, Green, Refactor cycle for Rust unit testing involves writing a failing test from acceptance criteria, creating a minimal implementation to pass the test, and refactoring with safety checks. This cycle ensures rigorous test coverage and code quality.

How do I translate acceptance criteria into failing Rust tests?

Translate acceptance criteria into failing Rust tests by identifying the current story's SUBTASKS.md and writing test cases that capture the specified expected behavior before any code exists. This ensures the implementation directly matches the required specifications.

Does test-driven development work with Rust integration and property-based tests?

Test-driven development works with Rust integration and property-based tests by guiding test-writing patterns with clear naming, fixtures, and test doubles. It applies the same test-first principles across all test types to ensure comprehensive coverage.

What Rust testing patterns should I use for a spec-driven workflow?

For a spec-driven Rust workflow, use testing patterns that include clear naming conventions, structured fixtures, and test doubles aligned to project conventions. These patterns apply across unit, integration, and property-based tests to validate acceptance criteria.

When should I not use a test-first approach for Rust codebase tasks?

You should avoid a test-first approach for Rust codebase tasks when subtasks lack defined acceptance criteria in STORY.md or SUBTASKS.md. Without clear specifications to translate into failing tests, the structured Red, Green, Refactor cycle cannot be effectively initiated.