一键导入
tdd-workflow
Drive implementation with test-first red-green-refactor workflow and focused validation loops.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Drive implementation with test-first red-green-refactor workflow and focused validation loops.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Runtime instructions for Ask mode: answer directly without code mutation.
Runs configurable multi-round research with compare, review, and explore modes, visible progress, source collection, and final sourced answers.
Creates and maintains project-board tasks with correct dedupe, umbrella/root linking, dependencies, tags, authors, assignments, and autopilot queue placement.
Runtime instructions for Plan mode: produce implementation or investigation plans without code mutation.
Ultra-compressed communication mode. Cuts token usage ~75% by speaking like caveman while keeping full technical accuracy. Supports intensity levels: lite, full (default), ultra, wenyan-lite, wenyan-full, wenyan-ultra. Use when user says "caveman mode", "talk like caveman", "use caveman", "less tokens", "be brief", or invokes /caveman. Also auto-triggers when token efficiency is requested.
Interview the user relentlessly about a plan or design until reaching shared understanding, resolving each branch of the decision tree. Use when user wants to stress-test a plan, get grilled on their design, or mentions "grill me".
| name | tdd-workflow |
| description | Drive implementation with test-first red-green-refactor workflow and focused validation loops. |
| version | 1.0.0 |
| author | Sloppy Team |
| license | MIT |
| platforms | ["linux","macos","windows"] |
| metadata | {"hermes":{"tags":["Development","TDD","Testing","Build","Refactor"],"related_skills":["development-code-review","test-authoring"]}} |
Use this skill when the user asks to implement behavior with TDD, add a regression fix, build from acceptance criteria, or create tests before changing production code.
Follow a visible red-green-refactor loop:
When active in build mode, include the visible build checklist with TDD-specific items:
Goal: Implement <behavior> using TDD.
Checklist:
- [ ] Identify the expected behavior and test seam
- [ ] Add a failing test for the behavior
- [ ] Run focused test and confirm red
- [ ] Implement minimal production change
- [ ] Rerun focused test and confirm green
- [ ] Refactor if needed and rerun validation
Update the checklist after each meaningful red/green/refactor milestone.
Prefer a test that is:
If no test framework exists, first inspect project conventions and propose the smallest test harness addition before creating one.
For bugs and regressions:
Refactor only after a green test unless the code cannot be safely tested without a small seam extraction. During refactor:
In the final response, include: