locales/zh-CN/skills/test-coverage-assistant/SKILL.md
多维度分析测试覆盖率并提供可执行的建议。 使用时机:分析覆盖率、识别测试缺口、制定测试策略。 关键字:coverage, test, analysis, dimension, 覆盖率, 测试, 分析, 维度。
npx skillsauth add asiaostrich/universal-dev-standards locales/zh-CN/skills/test-coverage-assistantInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
语言: English | 简体中文
多维度分析测试覆盖率并提供可执行的建议。
| 维度 | 测量内容 | Dimension | What it Measures | |------|----------|-----------|------------------| | 行覆盖率 | 执行的代码行数 | Line | Lines of code executed | | 分支覆盖率 | 决策路径覆盖 | Branch | Decision paths taken | | 函数覆盖率 | 调用的函数 | Function | Functions called | | 语句覆盖率 | 执行的语句 | Statement | Statements executed |
| 等级 | 覆盖率 | 适用场景 | Use Case | |------|--------|----------|----------| | 最低要求 | 60% | 遗留代码 | Legacy code | | 标准 | 80% | 大多数项目 | Most projects | | 高标准 | 90% | 关键系统 | Critical systems | | 严格 | 95%+ | 安全关键 | Safety-critical |
/coverage - 执行完整覆盖率分析/coverage src/auth - 分析特定模块/coverage --recommend - 获取测试建议/coverage 完成后,AI 助手应建议:
覆盖率分析完成。建议下一步:
- 覆盖率不足 → 执行
/tdd补齐测试- 已达标 → 执行
/checkin品质关卡- 发现热点 → 执行
/refactor改善可测试性
development
[UDS] 扫描代码库的调试残留与代码质量问题;可自动修正安全模式。 Use when: before committing, during PR review, or periodic codebase cleanup. Keywords: sweep, debug cleanup, console.log, debugger, TODO, ts-any, code quality, 扫描, 清理.
tools
[UDS] 从规格衍生 BDD 场景、TDD 骨架或 ATDD 表格
development
[UDS] 识别重复流程并以正确的开发深度构建 Skill
tools
[UDS] AI 辅助 git push 安全层:质量门禁 + 协作护栏。 Use when: pushing commits, force pushing, pushing to protected branches, pushing feature branches. Keywords: git push, force push, protected branch, quality gate, push receipt, PR automation, 推送, 保护分支, 质量门禁.