Superpowers Tdd
Skill by axelhu
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/axelhu/superpowers-tddWhat This Skill Does
Superpowers Tdd is a strictly enforced, discipline-oriented skill designed to guide developers through the Red-Green-Refactor cycle. It serves as a rigorous procedural framework that ensures high-quality, testable code. By mandates the rule of 'no implementation without a failing test,' this agent prevents the accumulation of technical debt and ensures that all production logic is validated by intent-driven specifications. It acts as an uncompromising pair programmer, forcing the user to define behavior, observe failure, write minimal code, and refactor, effectively automating the most difficult part of Test-Driven Development: the willpower to adhere to the methodology.
Installation
To integrate this skill into your development workflow, use the following OpenClaw CLI command:
clawhub install openclaw/skills/skills/axelhu/superpowers-tdd
Ensure that you have your project's test runner (e.g., pytest, jest) configured, as the agent requires terminal access to verify the state of your tests during the Red and Green cycles.
Use Cases
- Implementing new features where the API surface is not yet defined.
- Reproducing and fixing bugs to ensure they never regress.
- Enforcing consistent development standards within a team setting.
- Refactoring legacy code without introducing side effects.
- Maintaining high code coverage while focusing on meaningful, behavior-driven tests.
Example Prompts
- "I need to implement a user authentication service; let's start the Red-Green-Refactor cycle for the login function."
- "I'm seeing a bug where the API returns 500 on null input. Use the Superpowers Tdd workflow to write a failing test and fix it."
- "Refactor my current data processing function to be more performant, but strictly follow the Tdd cycle to ensure no behavior changes."
Tips & Limitations
- Tip: Do not try to bypass the 'Verify RED' stage. Seeing the test fail for the right reason is critical for verifying your mental model of the requirements.
- Tip: If the agent prompts you to delete code because you wrote it before the test, listen to it. It prevents the 'sunk cost' fallacy.
- Limitation: This skill is highly opinionated and may slow down rapid prototyping. It is intended for robust, production-grade systems, not for quick scripts or experiments where development speed is the only metric.
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-axelhu-superpowers-tdd": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: code-execution
Related Skills
Openclaw Sleep
Skill by axelhu
superpowers-overview
Use when starting any development work or when unsure which superpowers development skill to use - provides entry point and navigation to the full superpowers skill suite for OpenClaw agents
superpowers-subagent-dev
Use when executing implementation plans with independent tasks - coordinates task execution by dispatching subagents per task with verification checkpoints, adapted for OpenClaw's isolated session model
contacts
通讯录查询与维护技能。用于查找联系人信息(open_id、chat_id、account_id 等)、记录新联系人、或查询历史沟通偏好。触发时机:(1) 需要 @某人或向某渠道发消息时 (2) 认识新联系人后需要录入通讯录时 (3) 查询某人的联系方式或交流偏好时 (4) 询问"谁知道xxx的飞书ID"或"怎么联系xxx"时。
superpowers-executing-plans
Use when executing a written implementation plan in the current session with sequential task execution and review checkpoints - for when subagent-driven mode is not available