tdd-workflow
Test-Driven Development discovery hub that detects TDD intent and guides the red-green-refactor cycle. Use when wanting to write tests first, implement TDD workflow, or learn test-first development practices. Routes to appropriate TDD commands (/sw:tdd-red, /sw:tdd-green, /sw:tdd-refactor).
Why use this skill?
Enhance your coding efficiency with the TDD Workflow skill. Automatically detect, guide, and execute Red-Green-Refactor cycles in SpecWeave for cleaner, tested code.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/anton-abyzov/sw-tdd-workflowWhat This Skill Does
The tdd-workflow skill serves as the primary gateway for Test-Driven Development (TDD) within the SpecWeave ecosystem. It is an intelligent discovery hub designed to identify when a user intends to employ the Red-Green-Refactor methodology. Rather than being a monolithic tool, it acts as a coordinator, ensuring developers follow a disciplined approach by offering three distinct paths: the strictly enforced Guided TDD Workflow via /sw:tdd:cycle, the flexible Expert TDD Agent (tdd-orchestrator) for complex tasks, or a Manual TDD mode for experienced practitioners who need occasional advice. By bridging the gap between intent and execution, this skill ensures that testing is never an afterthought, helping users maintain a clean, high-coverage codebase from the very first line of implementation.
Installation
To integrate this into your workflow, execute the following command in your terminal:
clawhub install openclaw/skills/skills/anton-abyzov/sw-tdd-workflow
This installs the discovery hub and links the necessary dependencies for the orchestrator and phase-specific command gates.
Use Cases
This skill is ideal for:
- Beginners wanting to build a habit of TDD through rigid gatekeeping.
- Experienced engineers needing to refactor legacy codebases with safety nets.
- Teams requiring advanced testing strategies like property-based testing (via the Expert Agent).
- Any project where code quality and maintainability are critical success metrics.
Example Prompts
- "Implement authentication with TDD, I want to ensure my tests are as strong as my code."
- "Use test-driven development for this payment module, I'm new to this and need the guided cycle."
- "Let's do red-green-refactor for the data parser; can you use the expert agent to help with edge cases?"
Tips & Limitations
- Tip: If you are learning, always opt for the 'Guided TDD Workflow' to prevent skipping the RED phase, which is a common pitfall.
- Tip: For complex, multi-module systems, the 'Expert TDD Agent' is significantly more effective as it can perform mutation testing and coordinate across multiple files.
- Limitation: This skill is a router. It does not contain the core logic for running your specific language's test runner directly; ensure your environment is configured for your chosen language's test framework.
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-anton-abyzov-sw-tdd-workflow": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: code-execution
Related Skills
network-engineer
Cloud network architect for VPC design, service mesh, zero-trust networking, load balancers, and CDN optimization. Use for network troubleshooting or connectivity issues.
jira-multi-project-mapper
Expert in mapping SpecWeave specs to multiple JIRA projects with intelligent project detection and cross-project coordination. Use when syncing to multiple JIRA projects (project-per-team, component-based), or managing bidirectional sync across team boundaries.
helm-chart-scaffolding
Design, organize, and manage Helm charts for templating and packaging Kubernetes applications with reusable configurations. Use when creating Helm charts, packaging Kubernetes applications, or implementing templated deployments.
performance-optimization
React Native performance with Hermes V1, FlashList, expo-image v2, concurrent rendering. Use for slow app, memory leaks, or FPS issues.
release-strategy-advisor
Release strategy advisor - detects brownfield patterns (tags, CI/CD, changelogs), recommends versioning strategy based on architecture. Creates release-strategy.md.