Help us improve
Share bugs, ideas, or general feedback.
Guides through the Test-Driven Development Red-Green-Refactor cycle with FIRST principles, AAA pattern, and test-first workflow. Useful when starting a new feature or function with TDD.
npx claudepluginhub asiaostrich/universal-dev-standards --plugin universal-dev-standardsHow this skill is triggered — by the user, by Claude, or both
Slash command
/universal-dev-standards:tdd-assistant [feature or file | 功能或檔案][feature or file | 功能或檔案]This skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
<!-- DEPRECATION NOTICE (XSPEC-086 Phase 4, 2026-04-28):
Guides the RED-GREEN-REFACTOR cycle for test-driven development, including AAA pattern, test prioritization, and anti-patterns. Useful when writing tests before code or implementing new features.
Guides TDD workflow with red-green-refactor cycle: plan interfaces, tracer bullet tests, minimal implementation to green, refactor under tests. For explicit TDD requests only.
Share bugs, ideas, or general feedback.
Guide through the Test-Driven Development workflow: Red-Green-Refactor.
引導測試驅動開發(TDD)流程:紅-綠-重構。
┌─────┐ ┌───────┐ ┌──────────┐
│ RED │ ────► │ GREEN │ ────► │ REFACTOR │
└─────┘ └───────┘ └──────────┘
▲ │
└────────────────────────────────┘
| Principle | Description | 說明 |
|---|---|---|
| Fast | Tests run quickly (< 100ms/unit) | 快速執行 |
| Independent | No shared state between tests | 測試間無共享狀態 |
| Repeatable | Same result every time | 每次結果相同 |
| Self-validating | Clear pass/fail result | 明確的通過/失敗 |
| Timely | Written before production code | 在產品程式碼之前撰寫 |
/tdd - Start interactive TDD session/tdd calculateTotal - TDD for specific function/tdd "user can login" - TDD for user storyAfter /tdd completes, the AI assistant should suggest:
TDD 循環完成。建議下一步 / TDD cycle complete. Suggested next steps:
- 執行
/checkin通過品質關卡 ⭐ Recommended / 推薦 — Pass quality gates- 執行
/coverage確認測試覆蓋率 — Check test coverage- 執行
/review自我審查程式碼 — Self-review code quality
完整的 AI 行為定義請參閱對應的命令文件:
/tddFor complete AI agent behavior definition, see the corresponding command file:
/tdd