npx skills add https://github.com/dhruvbaldawa/ccconfigs --skill testing给定任务文件路径 .plans/<project>/testing/NNN-task.md:
使用 TodoWrite 来跟踪测试验证:
☐ 验证现有测试(关注行为?)
☐ 检查验证清单项的覆盖情况
☐ 识别缺口(空值/null、边界、错误)
☐ 为真正的缺口添加测试
☐ 运行覆盖率(>80% 语句,>75% 分支)
☐ 更新任务状态
验证现有测试 - 是否关注行为?是否覆盖了验证清单?
识别缺口 - 空值/null 输入、边界、错误、竞态条件、安全性
添加最小化测试(如果确实缺失)
运行覆盖率 - 验证 >80% 语句,>75% 分支
使用编辑工具更新任务状态:
**Status:** [当前状态]**Status:** READY_FOR_REVIEW(添加到任务文件末尾):
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
**testing:**
已验证 [N] 个测试(关注行为)
已添加 [M] 个边界用例:
- [测试描述]
- [测试描述]
测试分类:单元测试: X | 集成测试: Y | 总计: Z
覆盖率:语句: XX% | 分支: XX% | 函数: XX% | 行: XX%
完整测试套件:XXX/XXX 通过
工作结果已验证:✓ [描述]
报告完成
良好:expect(response.status).toBe(401)(测试行为)
不佳:expect(bcrypt.compare).toHaveBeenCalled()(测试实现细节)
粒度:
如果测试失败或覆盖率 <80%:
首先修复测试场景
如果发现代码错误:
* 使用编辑工具更新状态:查找 **Status:** [当前状态] → 替换为 **Status:** NEEDS_FIX
* 使用编辑工具附加说明(追加到文件末尾):
**testing:**
发现问题:
- [具体问题]
- [具体问题]
需要修复代码。返回至实现阶段。
当测试完成(状态更新为 READY_FOR_REVIEW 或 NEEDS_FIX)时:
✅ 测试完成。状态:[状态]每周安装数
1
代码仓库
GitHub 星标数
20
首次出现
1 天前
安全审计
安装于
zencoder1
amp1
cline1
openclaw1
opencode1
cursor1
Given task file path .plans/<project>/testing/NNN-task.md:
Use TodoWrite to track testing validation:
☐ Validate existing tests (behavior-focused?)
☐ Check coverage of Validation checklist items
☐ Identify gaps (empty/null, boundaries, errors)
☐ Add tests for genuine gaps
☐ Run coverage (>80% statements, >75% branches)
☐ Update task status
Validate existing tests - behavior-focused? Covers Validation?
Identify gaps - empty/null inputs, boundaries, errors, race conditions, security
Add minimal tests if genuinely missing
Run coverage - verify >80% statements, >75% branches
Update task status using Edit tool:
**Status:** [current status]**Status:** READY_FOR_REVIEWAppend testing notes using Edit tool (add to end of task file):
**testing:**
Validated [N] tests (behavior-focused)
Added [M] edge cases:
- [Test description]
- [Test description]
Test breakdown: Unit: X | Integration: Y | Total: Z
Coverage: Statements: XX% | Branches: XX% | Functions: XX% | Lines: XX%
Full suite: XXX/XXX passing
Working Result verified: ✓ [description]
Report completion
Good: expect(response.status).toBe(401) (tests behavior) Bad: expect(bcrypt.compare).toHaveBeenCalled() (tests implementation)
Granularity: Pure functions → Unit | DB/API → Integration | Critical workflows → E2E (rare)
If tests fail or coverage <80%:
Update status using Edit tool: Find **Status:** [current status] → Replace **Status:** NEEDS_FIX
Append notes using Edit tool (append to end of file):
**testing:**
Found issues:
- [Specific issue]
- [Specific issue]
Requires code fixes. Moving back to implementation.
When testing is complete (status updated to READY_FOR_REVIEW or NEEDS_FIX):
✅ Testing complete. Status: [STATUS]Weekly Installs
1
Repository
GitHub Stars
20
First Seen
1 day ago
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
zencoder1
amp1
cline1
openclaw1
opencode1
cursor1
通过 LiteLLM 代理让 Claude Code 对接 GitHub Copilot 运行 | 高级变通方案指南
31,600 周安装