ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified developer tools Safety 4/5

test-driven-development

Unified TDD skill with three input modes — from spec, from task, or from description. Enforces test-first development using repository patterns, with proptest guidance and backpressure integration.

Why use this skill?

Automate your Red-Green-Refactor cycle with the OpenClaw TDD skill. Safely generate unit tests from specs, tasks, or descriptions to enforce high code quality.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/paulpete/test-driven-development
Or

What This Skill Does

The test-driven-development skill is an authoritative automation agent designed to enforce professional software craftsmanship. It serves as a unified interface for implementing features using the proven Red-Green-Refactor cycle. By abstracting the complexities of test file generation, environment discovery, and pattern matching, it allows engineers to focus on logic rather than boilerplate. The skill natively supports three input modes—Spec files, Task files, or natural language descriptions—ensuring that every contribution is verified by a failing test before a single line of production code is written.

Installation

To integrate this skill into your local environment, execute the following command via the OpenClaw terminal:

clawhub install openclaw/skills/skills/paulpete/test-driven-development

Ensure that you have cargo and the relevant project dependencies configured in your root directory, as the skill leverages internal rg and cargo commands to scan your codebase and execute test runners.

Use Cases

  • Feature Implementation: Use when moving from an accepted Gherkin-style spec file to a verified implementation.
  • Refactoring & Legacy Maintenance: Apply strict TDD cycles when modifying existing modules to ensure that side effects are caught immediately.
  • Bug Reproduction: Create a failing test case that mirrors a reported issue before applying the fix.
  • API Development: Define contract requirements in a task file and let the skill generate the framework for endpoint testing.

Example Prompts

  1. "Apply test-driven-development using the requirements in ./docs/specs/user-auth.spec.md to implement the login logic."
  2. "Use test-driven-development for the current task file .code-task.md; focus on edge cases for input validation."
  3. "I need to implement a new CalculateTotal function. Use test-driven-development to define unit tests first based on these requirements: input must be a list of integers, output the sum, handle empty lists as zero."

Tips & Limitations

  • Pattern Awareness: The skill is highly effective when you have existing test infrastructure. It will automatically scan your crates/*/tests/ directories to adopt your project's naming conventions and helper utilities.
  • Proptest Caution: Only utilize the provided Proptest guidance for pure functions. For I/O heavy logic or stateful systems, stick to standard unit testing to avoid flaky results.
  • Red-Green-Refactor Discipline: The agent is designed to force the RED phase. If your tests pass without implementation, the agent will flag the test as insufficient. Do not skip phases; this ensures the integrity of your codebase.

Metadata

Author@paulpete
Stars1217
Views1
Updated2026-02-20
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-paulpete-test-driven-development": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#tdd#rust#automation#software-engineering#testing
Safety Score: 4/5

Flags: file-write, file-read, code-execution