gap-filler

Generate additional test cases from review issues and coverage gaps.

63|14|Updated Apr 27, 2026
One-click install
npx skills add https://github.com/liwanlei/AITestCraft --skill gap-filler
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gap-filler
Source: https://github.com/liwanlei/AITestCraft/tree/main/skills/gap-filler
Command: npx skills add https://github.com/liwanlei/AITestCraft --skill gap-filler

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

当测试用例评审指出问题、覆盖率分析发现未覆盖场景时,本 Skill 能在不破坏现有用例的前提下,自动补充缺失与边界/异常相关的测试用例,降低回归遗漏风险。

Core Features & Use Cases

  • 基于评审问题补全:从评审结果的「问题列表」提取需要修复的点,并补充对应用例。
  • 基于覆盖缺口补全:从覆盖率分析的「未覆盖场景」生成缺失用例。
  • 风险分级生成策略:high/medium/low 风险分别侧重边界/异常/关键路径与低风险补充测试。
  • 严格合并与不修改既有用例:保留全部输入用例,输出“原始 cases + 新增 cases”的完整 JSON 数组。

Quick Start

使用 gap-filler 技能把评审结果与覆盖率分析合并到现有测试用例中,得到补全后的 JSON 数组,例如让你的 AI 按 Skill 的输入格式提供“测试用例、评审结果、覆盖率分析与风险等级”,并直接输出补全后的纯 JSON 数组。

Frequently Asked Questions about gap-filler

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate additional test cases from coverage analysis without overwriting existing ones?

To generate additional test cases without overwriting existing ones, you append new cases derived from coverage gaps to your original JSON array. This preserves all current cases while expanding boundary and exception scenario coverage.

How does risk-based testing apply to test case generation for missing scenarios?

Risk-based testing applies to test case generation by prioritizing missing scenarios according to high, medium, and low risk levels. This strategy focuses boundary and exception testing on critical paths first, ensuring severe gaps receive targeted case expansion.

Can I use review issues to automatically append missing test cases to a JSON array?

Yes, you can use review issues to automatically append missing test cases to a JSON array. The process extracts problems from the review list and outputs a single valid pure JSON array containing both original and newly generated cases.

What is the best way to increment test case IDs when filling coverage gaps?

The best way to increment test case IDs when filling coverage gaps is to derive new IDs starting from the current maximum existing ID. This ensures unique deduplication and maintains sequential integrity when appending new cases to the JSON output.

How do I output a pure JSON array of test cases without extra text formatting?

To output a pure JSON array of test cases without extra text, you process the merged data of original and newly generated cases. This strict merging approach guarantees a valid single JSON array output containing no markdown or conversational text.