test-gap-analysis
Skill1 starsChanged 4 months agoMITView on GitHub
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。
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 4 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
Default to fast; bounded natural-language invocation is allowed.
- Distinctive: line 21
Do not treat a coverage percentage as sufficient evidence of behavioral coverage.
- Distinctive: line 22
Do not generate bulk test code or modify code, tests, configuration, dependencies, or documentation.
- Very specific: line 23
If the user explicitly requests implementation, route to safe-test-implementation when available.
- Very specific: line 24
Keep broad repository health findings in project-health-check and general code findings in safe-code-review.
- Distinctive: line 33
Check normal, failure, boundary, permission, concurrency, compatibility, migration, and regression scenarios when applicable.
- Distinctive: line 52
Do not include generated test code.
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
English
Execution Contract
Default to fast; bounded natural-language invocation is allowed.
Complete one primary task by default. Continue an authorized end-to-end workflow within each Skill's permissions; Router remains recommendation-only. Pause for new material decisions or scope, not authorization already given.
For a human-only blocker, give location, action, success signal and resume step; never request secret values or assume completion.
Validate according to actual risk; security, production, migrations, releases and other high-risk work use audit. Read references/execution-modes.en.md only when mode selection is unclear.
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.
简体中文
执行契约
默认使用 fast;允许边界明确的自然语言隐式调用。
默认完成一个主任务。用户已授权完整流程时,在各 Skill 权限内连续完成;Router 仍只推荐。新重大决策或超出授权时暂停,不重复索取已有授权。
必须由用户完成的阻塞步骤:给出操作位置、具体动作、成功标志、恢复步骤;不要求粘贴秘密值,不代替用户确认完成。
按实际风险选择验证;安全、生产、迁移、发布等高风险工作使用 audit。模式不明确时才读取 references/execution-modes.zh-CN.md。
测试缺口分析
针对需求、根因、现有测试或 Git Diff 分析覆盖缺口。不要创建或修改测试。
职责边界
- 不得把覆盖率百分比当作行为已覆盖的充分证据。
- 不得批量生成测试代码,也不得修改代码、测试、配置、依赖或文档。
- 用户明确要求实施时,交给可用的
safe-test-implementation;若不可用,说明需要实现类 Skill。 - 全仓健康问题留给
project-health-check,普通代码问题留给safe-code-review。 - 输出语言跟随用户输入,技术标识符保持原样。
工作流程
- 明确范围内的需求、根因、diff、模块或行为。
- 从 manifest 和配置中识别测试框架、层级、命名与 fixture 约定、CI 集成和真实可运行命令;推断命令必须标记,不得编造。
- 使用文件路径、测试名、断言、fixture、mock 或执行证据,把每项行为和风险映射到现有测试。
- 将每个场景分类为已覆盖、部分覆盖、缺失或无法判断。
- 在适用时检查正常、异常、边界、权限、并发、兼容性、迁移和回归场景。
- 选择合适层级:单元、集成、契约、端到端或人工验证,避免每层重复相同断言。
- 按故障影响、发生概率、变更风险、可观察性和测试价值排序,而不是只看覆盖率。
- 建议聚焦的测试用例和已验证命令,但不编写测试代码。
- 说明证据限制和解决未知覆盖所需的输入。
输出契约
- 分析范围
- 现有测试体系:框架、层级、约定、CI 和有证据的命令
- 行为—风险—测试矩阵,包含覆盖状态和证据
- 已覆盖项
- 部分覆盖项
- 缺失项
- 优先级及风险、价值依据
- 按测试层级给出的建议新增测试
- 建议运行命令、证据与置信度
- 无法判断项及所需证据
不得包含生成的测试代码。
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- microsoft/testfx★ 1.1ksame name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository40 other files it gives its agents.
- api-contract-reviewSkill
- architecture-decision-recordSkill
- architecture-deepening-analysisSkill
- bug-root-cause-analysisSkill
- change-impact-analysisSkill
- ci-failure-diagnosisSkill
- configuration-auditSkill
- content-consistency-checkSkill
- database-migration-reviewSkill
- dead-code-verificationSkill
- decision-prototypeSkill
- dependency-upgrade-analysisSkill
- documentation-syncSkill
- document-reviewSkill
- excel-data-quality-check-basicSkill
- feature-implementationSkill
- meeting-notes-to-actionsSkill
- pdf-review-basicSkill
- pdf-reviewSkill
- performance-regression-analysisSkill
- presentation-outlineSkill
- project-health-checkSkill
- release-readiness-checkSkill
- repo-doctor-routerSkill
- repo-onboardingSkill
- report-writerSkill
- requirements-clarificationSkill
- requirements-to-specSkill
- research-briefSkill
- safe-change-planSkill
- safe-code-reviewSkill
- safe-fix-implementationSkill
- safe-test-implementationSkill
- security-focused-reviewSkill
- session-handoffSkill
- skill-authoringSkill
- skill-quality-auditSkill
- spec-to-work-itemsSkill
- spreadsheet-data-cleaningSkill
- word-document-review-basicSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

