testcoverage
Use when: analyzing test coverage as a diagnostic tool, identifying gaps, or evaluating assertion strength.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when: analyzing test coverage as a diagnostic tool, identifying gaps, or evaluating assertion strength.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when running workspace tests, choosing a test command, or summarizing results before handoff to debugger.
Use when running workspace tests, choosing a test command, or summarizing results before handoff to debugger.
Use when: running pre-commit or pre-push CI-equivalent checks in any workspace — discovers workflow commands with Cursor tools, filters for local executability, scopes to staged changes, and runs checks cheapest-first.
Use when the user wants to install or customize cursorAssistant in the current project (GitHub install or configure).
Use when: running pre-commit or pre-push CI-equivalent checks in any workspace — discovers workflow commands with Cursor tools, filters for local executability, scopes to staged changes, and runs checks cheapest-first.
Use when: discovering package manifests, assessing dependency health, finding replacements, or confirming import usage before removal — discovery only; mutating installs are handled by the deps agent.
| name | testCoverage |
| description | Use when: analyzing test coverage as a diagnostic tool, identifying gaps, or evaluating assertion strength. |
| type | reference |
| version | 1.0 |
| license | MIT |
Skill metadata: version "1.0"; tags [tdd, coverage, testing]; recommended tools [].
Use this skill in workspaces with the tdd pack selected.
Coverage is a diagnostic tool, not a goal. High line coverage with weak assertions is worse than targeted coverage with strong assertions.
tddCycletestArchitecturemutmut, PIT) to validate test quality when coverage targets are met.There are no universal targets. Use these as starting heuristics:
| Code type | Branch coverage target | Notes |
|---|---|---|
| Core business logic | ≥ 90% | Test all decision points; high value, high risk |
| Public API layer | ≥ 80% | Focus on contract behavior, not internal wiring |
| Infrastructure / adapters | ≥ 70% | Integration tests often cover more than unit tests here |
| Generated / boilerplate | Excluded | No value in testing generated code |
| Error handling paths | ≥ 80% | Untested error paths fail in production |