pypict-skill
它能做什么
这个工具可以生成一组测试用例,覆盖不同因素之间所有可能的取值两两组合。当测试每一种完整组合的成本过高或耗时过长时,它就很有用。
适用场景
- ✓当可选项很多,但你无法全部测试时。
- ✓当你需要生成一份高效的测试清单时。
- ✓当你想确保每一对设置至少被测试一次时。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/pypict-skill/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“为“操作系统”(Windows、macOS)和“浏览器”(Chrome、Firefox、Safari)两个因素生成测试用例,覆盖所有两两组合。”
每周 5 个新技能,1 分钟读完。
工作原理
你提供各个因素(类别)以及每个因素的可选值,工具会生成一份测试组合列表,确保不同因素之间的每一对取值都被测试到。它不会生成三个或更多因素的组合测试。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Pypict Skill
Overview
Pairwise test generation
When to Use
Design a small test matrix covering every pair of values across discrete factors, when exhaustive combinations are too costly and pairwise coverage is appropriate.
Procedure
- Define factors, permitted values and real invalid-combination constraints.
- Inspect an actual installed pairwise generator and its supported input format; this entrypoint does not bundle a Python package or executable.
- Generate candidate rows and independently enumerate covered valid value pairs. Missing pairs must remain visible; constraints must not be invented to hide them.
- Convert rows into tests with expected behavior, not just input combinations.
For three binary factors, this illustrative matrix covers all two-factor pairs:
[[0,0,0],[0,1,1],[1,0,1],[1,1,0]]
Pair coverage is not correctness or coverage of three-way interactions. Add known boundary, authorization and failure cases separately.
Example
User request:
Use @pypict-skill for this task: Pairwise test generation.
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
常见问题
“因素”和“取值”是什么?
因素是你想要测试的类别,比如操作系统、浏览器;取值是每个因素下的具体选项,比如操作系统下的 Windows、macOS,浏览器下的 Chrome、Firefox。
这样能保证所有可能的测试都被覆盖吗?
不能。这个工具的重点是覆盖取值的所有两两组合。对于三个或更多取值的组合,以及专门的安全测试和故障测试,你需要另外补充。
这个工具适用于所有类型的测试吗?
只适用于需要高效生成取值两两组合测试矩阵的场景,尤其是在穷举测试不可行的时候。
详情
热度
- GitHub 星标
- 48k
- 排名
- #5543
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。