Structured guide for setting up A/B tests with mandatory gates for hypothesis, metrics, and execution readiness.
test-driven-development
test-driven-development is an open-source testing skill for Claude Code and compatible agents, published by jnMetaCode. Its author describes it as: “在实现任何功能或修复 bug 时使用,在编写实现代码之前”. The project has 7.7k stars on GitHub and is available under the MIT license. Add it to your setup with `/plugin marketplace add jnMetaCode/superpowers-zh`.
What test-driven-development does
先写测试。看它失败。写最少的代码让它通过。
Installation
Add test-driven-development to your agent with:
/plugin marketplace add jnMetaCode/superpowers-zh Always review a skill's source before installing it. This command comes from the skill's public repository; the linked repo is the source of truth for exact setup steps.
What's inside
The SKILL.md for test-driven-development is organised into these sections:
- 概述
- 何时使用
- 铁律
- 红-绿-重构
- 红灯 - 编写失败的测试
- 验证红灯 - 看它失败
- 绿灯 - 最少代码
- 验证绿灯 - 看它通过
- 重构 - 清理代码
- 重复
- 好的测试
- 常见借口
When to use it
Reach for test-driven-development when you want testing help from your agent without writing the same instructions every session. Load the skill and the agent picks it up automatically for relevant tasks.
Strengths
- Clear MIT license — safe to read and adapt
- Ships in jnMetaCode/superpowers-zh, an established project with 7,721 GitHub stars
- Actively maintained (recent commits)
Things to check
- Sparse description in metadata — read the repository for full details
Topics
Frequently asked questions
- What does test-driven-development do?
- 在实现任何功能或修复 bug 时使用,在编写实现代码之前
- How do I install test-driven-development?
- Run /plugin marketplace add jnMetaCode/superpowers-zh in your agent, then reload your skills. Review the source at https://github.com/jnMetaCode/superpowers-zh before installing.
- Is test-driven-development free to use?
- Yes. test-driven-development is free and open source under the MIT license, so you can read, run, and adapt it within that license's terms.
- Where does test-driven-development come from?
- test-driven-development ships inside jnMetaCode/superpowers-zh, a repository that contains 21 catalogued skills in total. The repository's 7,721 GitHub stars apply to that whole collection, not to this skill on its own.
Related skills
More Testing →When the user wants to plan, design, or implement an A/B test or experiment, or build a growth experimentation program. Also use when the user mentions "A/B test," "split test," "experiment," "test this change," "variant copy," "multivariate test," "hypothesis," "should I test this,"...
Master end-to-end testing with Playwright and Cypress to build reliable test suites that catch bugs, improve confidence, and enable fast deployment. Use when implementing E2E tests, debugging flaky tests, or establishing testing standards.
Test web applications with screen readers including VoiceOver, NVDA, and JAWS. Use when validating screen reader compatibility, debugging accessibility issues, or ensuring assistive technology support.
Test Temporal workflows with pytest, time-skipping, and mocking strategies. Covers unit testing, integration testing, replay testing, and local development setup. Use when implementing Temporal workflow tests or debugging test failures.