Test gap analysis
Skill dss-time/repo-doctor-skills/plugins/repo-doctor/skills/test-gap-analysis
Map a requirement, root cause, existing tests, or Git diff to evidence-backed test coverage and prioritized gaps across unit, integration, contract, end-to-end, and manual validation. Use to decide what is covered or missing; do not generate bulk test code, and route explicit test implementation to safe-test-implementation when available. 将需求、根因、现有测试或 Git Diff 映射到有证据的测试覆盖与优先级缺口,覆盖单元、集成、契约、端到端和人工验证。用于判断已覆盖和缺失场景;不得批量生成测试代码,明确实施测试时交给可用的 safe-test-implementation。From its SKILL.md
npx -y skills add dss-time/repo-doctor-skills --skill test-gap-analysisAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
4.9 KB, ~1.2k tokens by cl100k_base, as published. Nobody here has run it
Test Gap Analysis(测试缺口分析)
Use the section matching the user's language. 使用与用户输入语言一致的章节。
Test Gap Analysis
Analyze coverage gaps for a requirement, root cause, existing test suite, or Git diff. Do not create or modify tests.
Boundary
- Do not treat a coverage percentage as sufficient evidence of behavioral coverage.
- Do not generate bulk test code or modify code, tests, configuration, dependencies, or documentation.
- If the user explicitly requests implementation, route to
safe-test-implementationwhen available; otherwise state that an implementation skill is required. - Keep broad repository health findings in
project-health-checkand general code findings insafe-code-review. - Match the user's language and preserve technical identifiers.
Workflow
- Define the requirement, root cause, diff, modules, or behaviors in scope.
- Discover test frameworks, layers, naming and fixture conventions, CI integration, and real runnable commands from manifests and configuration. Mark inferred commands; never invent them.
- Map each behavior and risk to existing tests using file paths, test names, assertions, fixtures, mocks, or execution evidence.
- Classify each scenario as covered, partially covered, missing, or unknown.
- Check normal, failure, boundary, permission, concurrency, compatibility, migration, and regression scenarios when applicable.
- Select the appropriate layer: unit, integration, contract, end-to-end, or manual validation. Avoid duplicating the same assertion across every layer.
- Prioritize gaps by failure impact, likelihood, change risk, observability, and test value rather than coverage percentage alone.
- Recommend focused test cases and verified commands without writing test code.
- State evidence limits and the inputs needed to resolve unknown coverage.
Output Contract
- Analysis scope
- Existing test system: frameworks, layers, conventions, CI, and evidence-backed commands
- Behavior-risk-test matrix with coverage status and evidence
- Covered scenarios
- Partially covered scenarios
- Missing scenarios
- Priorities with risk and value rationale
- Recommended tests by test layer
- Recommended commands with evidence and confidence
- Unknowns and required evidence
Do not include generated test code.
测试缺口分析
针对需求、根因、现有测试或 Git Diff 分析覆盖缺口。不要创建或修改测试。
职责边界
- 不得把覆盖率百分比当作行为已覆盖的充分证据。
- 不得批量生成测试代码,也不得修改代码、测试、配置、依赖或文档。
- 用户明确要求实施时,交给可用的
safe-test-implementation;若不可用,说明需要实现类 Skill。 - 全仓健康问题留给
project-health-check,普通代码问题留给safe-code-review。 - 输出语言跟随用户输入,技术标识符保持原样。
工作流程
- 明确范围内的需求、根因、diff、模块或行为。
- 从 manifest 和配置中识别测试框架、层级、命名与 fixture 约定、CI 集成和真实可运行命令;推断命令必须标记,不得编造。
- 使用文件路径、测试名、断言、fixture、mock 或执行证据,把每项行为和风险映射到现有测试。
- 将每个场景分类为已覆盖、部分覆盖、缺失或无法判断。
- 在适用时检查正常、异常、边界、权限、并发、兼容性、迁移和回归场景。
- 选择合适层级:单元、集成、契约、端到端或人工验证,避免每层重复相同断言。
- 按故障影响、发生概率、变更风险、可观察性和测试价值排序,而不是只看覆盖率。
- 建议聚焦的测试用例和已验证命令,但不编写测试代码。
- 说明证据限制和解决未知覆盖所需的输入。
输出契约
- 分析范围
- 现有测试体系:框架、层级、约定、CI 和有证据的命令
- 行为—风险—测试矩阵,包含覆盖状态和证据
- 已覆盖项
- 部分覆盖项
- 缺失项
- 优先级及风险、价值依据
- 按测试层级给出的建议新增测试
- 建议运行命令、证据与置信度
- 无法判断项及所需证据
不得包含生成的测试代码。
What ships with it: 1 file
265 B alongside SKILL.md
agents/
- openai.yaml265 B