用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/AsiaOstrich/universal-dev-standards --skill coverage命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
[UDS] 以 Claude 原生 Agent tool 编排多任务执行计划(DAG-based,无外部引擎)。 Use when: executing a plan.json file with parallel/sequential task dependencies. Keywords: orchestrate, plan, execute, DAG, task plan, 编排, 执行计划, 并行.
[UDS] 从 Spec 文档、OpenSpec 变更或自由文本需求生成 plan.json。 Use when: converting specifications into executable task plans for /orchestrate. Keywords: plan, spec, task plan, 计划, 规格, 任务, plan.json, DAG.
[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, 推送, 保护分支, 质量门禁.
正在显示 SKILL.md
基于 SOC 职业分类
| source | ../../../../skills/test-coverage-assistant/SKILL.md |
| source_version | 1.1.0 |
| translation_version | 1.1.0 |
| last_synced | "2026-02-10T00:00:00.000Z" |
| status | current |
| description | [UDS] 多維度分析測試覆蓋率並提供可執行的建議 |
| name | coverage |
| allowed-tools | Read, Grep, Glob, Bash(npm test:*) |
| scope | partial |
| argument-hint | [file or module | 檔案或模組] |
語言: English | 繁體中文
多維度分析測試覆蓋率並提供可執行的建議。
相關:如需需求層級覆蓋率(哪些 AC 有對應測試?),請改用
/ac-coverage。此技能(/coverage)專注於程式碼層級覆蓋率。
| 維度 | 測量內容 | 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改善可測試性