A rigorous Test-Driven Development framework for AI agents to ensure code reliability and eliminate regressions.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install tdd-discipline
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install tdd-discipline using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
TDD Discipline is a professional methodology designed to enforce strict Test-Driven Development (TDD) practices within AI coding workflows. By prioritizing the creation of failing tests before writing any functional code, this skill ensures that every feature and bug fix is verified, documented, and maintainable. It eliminates the risk of shipping untested or broken code by making the RED-GREEN-REFACTOR cycle the standard operating procedure for Openclaw Skills users.
This skill is particularly valuable for developers who want to maintain high code quality and prevent the 'spaghetti code' often associated with rapid AI generation. It enforces a philosophy where code is only written to satisfy a specific, tested requirement, adhering to the YAGNI (You Ain't Gonna Need It) principle.
To integrate TDD Discipline into your workflow, ensure your project has a test runner configured. You can use this skill within Openclaw Skills by following these steps:
# Install a test runner (example using Jest for TypeScript)
npm install --save-dev jest ts-jest @types/jest
# Run the specific test file during the RED and GREEN phases
npm test path/to/your/file.test.ts
The skill follows a strict organizational structure for code and tests to ensure clarity within Openclaw Skills projects:
| Component | Description |
|---|---|
| Test Files | Naming convention follows [filename].test.ts or [filename].spec.js to distinguish from source. |
| Source Code | Minimalist implementation files that only contain code mapped to a passing test. |
| Bug Regression | Tests created during bug fixes are permanently stored to prevent regression in future builds. |
| Metadata | The skill tracks author, version, and TDD state to maintain discipline across sessions. |
Loading
A structured implementation pattern that uses fresh subagents for every task to ensure spec compliance and high code quality.

A professional integration guide for implementing secure, modern Stripe payment flows including subscriptions and marketplaces.

A technical guide and toolkit for optimizing 2D game assets using sprite sheets and texture atlases within Rust and Godot environments.

A technical framework for developing specialized AI agent capabilities through standardized documentation and modular script structures.

A rigorous verification protocol that mandates fresh, objective evidence before an AI agent can claim task completion or perform a commit.

A high-performance video editing skill leveraging Remotion and FFmpeg for programmatic video production and processing on remote nodes.








































