tdd-test-writer by am-will/codex-skills
npx skills add https://github.com/am-will/codex-skills --skill tdd-test-writer使用此技能来完成 TDD 的 RED 阶段:首先用测试定义行为,验证它们因正确的原因而失败,然后移交带有客观通过标准的实现。
当用户要求以下内容时使用此技能:
tdd_test_writer 进行 RED 阶段的测试编写。ASSUMPTION: 行。tdd_test_writertdd_test_writer 子代理,指定任务范围、目标文件和验收标准。广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
tdd_test_writer 不可用,则直接继续并注明 FALLBACK: tdd_test_writer unavailable。vitest、jest、pytest、go test、cargo test)。返回一个实现代理必须遵循的区块。移交说明必须包括:
tdd_test_writer)或明确的回退原因TDD RED PHASE COMPLETE
## 编写模式
- 子代理: tdd_test_writer
- 回退: [仅在子代理不可用时填写]
## 测试文件
- [路径]
## 验证
- 命令: [确切命令]
- 结果: FAIL (预期)
- 失败原因: [1-2行,与缺失的行为相关]
## 实现契约(给下一个代理)
1. 不要修改这些测试: [路径]
2. 仅在以下位置实现生产变更: [路径或模块]
3. 完成标准: [确切命令] 通过且未削弱测试。
4. 运行更广泛的安全检查: [辅助命令]
5. 返回证据: 更改的文件 + 命令输出摘要。
## 假设
- ASSUMPTION: [仅在需要时填写]
每周安装量
8.5K
代码仓库
GitHub 星标数
491
首次出现
9 天前
安全审计
安装于
codex8.5K
gemini-cli8.5K
opencode8.5K
github-copilot8.5K
cursor8.5K
kimi-cli8.5K
Use this skill to complete the RED phase of TDD: define behavior with tests first, verify they fail for the right reason, then hand off implementation with objective pass criteria.
Use this skill when the user asks for:
tdd_test_writer for RED-phase test authoring whenever available.ASSUMPTION: lines in output.tdd_test_writertdd_test_writer subagent with task scope, target files, and acceptance criteria.tdd_test_writer is unavailable, continue directly and note FALLBACK: tdd_test_writer unavailable.vitest, jest, pytest, go test, cargo test).Return a block that implementation agents must follow. The handoff must include:
tdd_test_writer) or explicit fallback reasonTDD RED PHASE COMPLETE
## Authoring Mode
- Subagent: tdd_test_writer
- Fallback: [only if subagent unavailable]
## Test Files
- [path]
## Verification
- Command: [exact command]
- Result: FAIL (expected)
- Failure reason: [1-2 lines tied to missing behavior]
## Implementation Contract (for next agent)
1. Do not modify these tests: [paths]
2. Implement production changes only in: [paths or modules]
3. Completion gate: [exact command] passes with no test weakening.
4. Run broader safety check: [secondary command]
5. Return evidence: changed files + command output summary.
## Assumptions
- ASSUMPTION: [only if needed]
Weekly Installs
8.5K
Repository
GitHub Stars
491
First Seen
9 days ago
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
codex8.5K
gemini-cli8.5K
opencode8.5K
github-copilot8.5K
cursor8.5K
kimi-cli8.5K
97,600 周安装