test-gap
Skill2 starsChanged 4 months agoMITView on GitHub
Detects missing unit and integration tests for changed branches, edge cases, and DB, service, messaging, and external client interactions.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- llp42/claude-skillstheir own version, first seen Sep 9, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- llp42/claude-skills★ 0same 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 repository67 other files it gives its agents.
- acceptance-criteria-testabilitySkill
- api-test-validationSkill
- architecture-decision-recordSkill
- architecture-drift-detectionSkill
- architecture-guard-detectorSkill
- architecture-riskSkill
- business-continuity-checkSkill
- changed-files-risk-classifierSkill
- change-impact-previewSkill
- concurrency-riskSkill
- contributor-pattern-analysisSkill
- cross-service-contractSkill
- database-driftSkill
- database-read-verificationSkill
- delivery-risk-radarSkill
- dependency-security-evidenceSkill
- developer-decision-reviewSkill
- developer-handoffSkill
- developer-readiness-checkSkill
- development-summarySkill
- epic-goal-extractionSkill
- epic-implementation-graphSkill
- epic-story-partitioningSkill
- epic-structure-analysisSkill
- flaky-failure-classificationSkill
- green-border-planSkill
- gui-testbook-authoringSkill
- gui-testbook-learningSkill
- gui-test-context-discoverySkill
- gui-test-executionSkill
- incident-risk-forecastSkill
- java-performance-smellSkill
- java-targeted-build-verificationSkill
- jira-acceptance-criteria-normalizerSkill
- jira-release-state-evidenceSkill
- knowledge-transfer-briefSkill
- known-pitfalls-extractionSkill
- legacy-characterizationSkill
- liquibase-production-riskSkill
- liquibase-syntaxSkill
- mana-governance-regression-verificationSkill
- mana-usage-helpSkill
- non-functional-requirements-reviewSkill
- null-safety-riskSkill
- post-merge-incident-learningSkill
- pre-review-defectSkill
- production-premortemSkill
- profile-selectorSkill
- regression-selectionSkill
- release-impact-summarySkill
- review-load-balancingSkill
- rollback-safetySkill
- rule-update-suggestionSkill
- service-boundary-fitSkill
- service-knowledge-captureSkill
- shell-syntax-verificationSkill
- sonar-change-riskSkill
- sonar-evidence-triageSkill
- source-impact-mapSkill
- story-effort-estimationSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
18 rules. About 0 are common, 15 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈15
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
- Distinctive: line 42
Unit: verify changed branches, validators, mappers, error paths, and null handling have meaningful unit tests.
- Distinctive: line 44
Integration: ensure persistence, transaction boundaries, messaging, HTTP clients, and external failures are validated beyond unit tests.
- Distinctive: line 51
When the required inputs are available and the team needs a repeatable review.
- Distinctive: line 52
Before a human approval gate where missing evidence would slow the team down.
- Distinctive: line 53
When a related agent invokes it as one step in a larger workflow.
- Very specific: line 54
Use test_levels to restrict the analysis: unit for fast local loops such as pre-commit, integration when the diff touches persistence, …
- Distinctive: line 59
Do not use it as a replacement for the accountable human owner.
- Distinctive: line 60
Do not use it for unrelated files, binary artifacts, or systems outside the approved MCP policy.
- Distinctive: line 61
Do not use it after the decision point if the finding can no longer influence the design without rework.
- Distinctive: line 62
Do not use it to justify unsafe shortcuts against project rules.
- Very specific: line 100
Read testing-policy.md to identify required unit-level protection for changed branches, and integration-map.md to identify missing …
- Distinctive: line 114
Run during the intended lifecycle phase with the full story, context, and linked artifacts available.
- Distinctive: line 115
Use the output as evidence for refinement, planning, review, or local implementation decisions.
- Distinctive: line 120
Do not use this skill as an autonomous code-changing tool.
- Distinctive: line 121
Do not run it with only a title or vague one-line request and treat the result as complete.
- Distinctive: line 122
Do not ignore high-severity findings because the output is advisory.
- Distinctive: line 123
Do not use it to bypass team, architecture, DBA, security, or reviewer approval.
- Very specific: line 126
Follow docs/standards/agent-skill-output-standard.md (Agent And Skill Output Standard) for all generated artifacts.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
Test Gap
Purpose
Detect missing test coverage for a change at two levels:
- Unit: verify changed branches, validators, mappers, error paths, and null handling have meaningful unit tests.
- Integration: ensure persistence, transaction boundaries, messaging, HTTP clients, and external failures are validated beyond unit tests.
This skill exists to reduce delivery churn by making a narrow, reusable judgement explicit. It produces structured artifacts and recommendations; it does not perform broad autonomous actions.
When To Use It
- During the lifecycle phase indicated by the tags and preferred runner.
- When the required inputs are available and the team needs a repeatable review.
- Before a human approval gate where missing evidence would slow the team down.
- When a related agent invokes it as one step in a larger workflow.
- Use
test_levelsto restrict the analysis:unitfor fast local loops such as pre-commit,integrationwhen the diff touches persistence, messaging, or external clients, both when unrestricted.
When Not To Use It
- Do not use it as a replacement for the accountable human owner.
- Do not use it for unrelated files, binary artifacts, or systems outside the approved MCP policy.
- Do not use it after the decision point if the finding can no longer influence the design without rework.
- Do not use it to justify unsafe shortcuts against project rules.
Inputs
- code_diff
- green_border_plan
- existing_tests
- test_levels
Outputs
- test_gap_report
Execution Logic
- Resolve requested
test_levels; default to both when the caller does not restrict scope. - Unit: map changed methods to existing test methods; identify new branches without assertions; check negative paths and boundary values; suggest test names and scenarios.
- Integration: find changed integration seams; check matching IT, contract, or component tests; flag missing DB rollback or messaging scenarios; suggest fixtures or stubs.
- Report gaps by level and severity in a single
test_gap_report.
Decision Rules
blocker: unresolved high-risk issue, missing critical input, unsafe database/security/architecture condition, or untestable requirement that prevents responsible delivery.warning: incomplete evidence, medium-risk design concern, missing non-critical test, or ambiguity that can be accepted by the owner.info: observation useful for reviewers, implementation, or future learning.- A level skipped because of
test_levelsmust be listed as out of scope, not silently omitted.
Failure Modes
- Missing or stale input artifacts can produce false negatives.
- Repository search can miss dynamically configured flows or generated code.
- MCP access restrictions can prevent full validation; report the access gap explicitly.
- AI output can be incomplete; human review remains mandatory.
Required Human Review
The owner role Developer / QA reviews blocker and warning findings. High-risk security, database, concurrency, or architecture findings require explicit approval before implementation or merge.
Service Context Layer
Read testing-policy.md to identify required unit-level protection for changed branches, and integration-map.md to identify missing integration coverage.
Missing context files should be reported as warnings. A violation of .mana/global/engineering-guards.md must be treated as a blocker or routed to the accountable owner for explicit approval.
Interaction With Codex
Codex should run this skill for repository-level analysis, planning, validation, documentation, and report generation. Codex should prefer proposed patches and written findings over destructive edits.
Interaction With Junie
Junie may use the output inside the IDE to implement one approved task at a time, generate local tests, or apply local fixes. Junie must not change files outside the approved impact map without asking.
Interaction With MCP
MCP access must be least-privilege. Read-only access is preferred. Writes, destructive operations, external comments, database execution, or ticket updates require human approval and audit logging.
Correct Usage Examples
- Run during the intended lifecycle phase with the full story, context, and linked artifacts available.
- Use the output as evidence for refinement, planning, review, or local implementation decisions.
- Escalate blocker findings to the named human owner before continuing.
- Store the generated report with the story or branch artifacts so later agents can reuse it.
Incorrect Usage Examples
- Do not use this skill as an autonomous code-changing tool.
- Do not run it with only a title or vague one-line request and treat the result as complete.
- Do not ignore high-severity findings because the output is advisory.
- Do not use it to bypass team, architecture, DBA, security, or reviewer approval.
Output Standard
Follow docs/standards/agent-skill-output-standard.md (Agent And Skill Output Standard) for all generated artifacts. Use templates/standard-agent-skill-report.template.md when no more specific template exists.
Internal reasoning must use compact caveman mode: terse fragments, evidence-first notes, no long narrative, and no private chain-of-thought in final artifacts. Maintain a context budget: keep a short working summary with objective, base branch or PR, issue keys, workspace path, checked evidence, open hypotheses, discarded hypotheses, and next checks instead of accumulating raw transcripts, full diffs, repeated file dumps, or copied tool output.
Diagram
flowchart TD
Inputs[Required inputs] --> Skill[test-gap]
Skill --> Findings[Findings by severity]
Skill --> Artifacts[Structured outputs]
Findings --> HumanGate[Human review gate]
Artifacts --> NextAgent[Downstream agent or workflow]Example Output
skill: test-gap
status: warning
summary: "Analysis completed with one blocker candidate and two warnings."
findings:
- severity: warning
area: "example"
message: "A required detail or verification point is incomplete."
recommended_action: "Clarify with the owner and update the related artifact."
outputs:
- test_gap_report
human_review_required: trueDoes 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.

