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?
Streamline your development process with the OpenClaw TDD skill. Automate Red-Green-Refactor cycles using spec files, task lists, or custom feature descriptions.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/imbeasting/imbeasting-test-driven-developmentWhat This Skill Does
The test-driven-development skill is a unified framework designed to enforce rigorous software engineering practices within the OpenClaw ecosystem. By mandating a Red-Green-Refactor workflow, it ensures that your codebase grows intentionally and defect-free. The skill intelligently detects your entry point—whether it is a formal .spec.md file, a specific .code-task.md document, or a simple ad-hoc feature description—and adapts its strategy accordingly. It emphasizes pattern discovery by analyzing existing repository conventions before writing a single line of test code, ensuring that new tests feel like native components of your project.
Installation
To integrate this skill into your OpenClaw environment, execute the following command in your terminal:
clawhub install openclaw/skills/skills/imbeasting/imbeasting-test-driven-development
Ensure your local environment is configured to access the openclaw/skills repository.
Use Cases
- Formal Specification Fulfillment: Ideal for projects following strict TDD where acceptance criteria are predefined in Markdown documentation.
- Refactoring Legacy Code: Use the test-first approach to lock down current behavior with safety nets before modifying or optimizing existing modules.
- Rapid Feature Development: Perfect for developers who need to implement new logic while maintaining high coverage, ensuring that edge cases are accounted for through systematic test generation.
- Proptest Implementation: Automatically identify functions suitable for property-based testing to verify complex input spaces that unit tests might miss.
Example Prompts
- "Apply TDD to the authentication module using the requirements defined in ./specs/auth.spec.md."
- "Implement a new rate-limiting feature based on the task description in ./tasks/rate-limit.code-task.md; follow the project's existing test patterns."
- "Refactor the currency converter logic. I've described the goal here: [insert description]; please generate the failing tests first."
Tips & Limitations
- Pattern Discovery: Always allow the skill to search your repository for existing test helpers. Matching the local style leads to better PR reviews and easier maintenance.
- Proptest Constraints: Only enable
proptestfor pure, deterministic functions. Attempting to use property-based testing on I/O-bound code will result in test flakiness. - Red-Green-Refactor: Never skip the RED phase. If your test passes before you have written the implementation code, verify your test logic; it is likely incorrectly asserting behavior.
Metadata
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 skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-imbeasting-imbeasting-test-driven-development": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-write, file-read, code-execution
Related Skills
tmux-terminal
Interactive terminal control via tmux for TUI apps, prompts, and long-running CLI workflows.
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).