test-strategist

测试策略与设计专家,关于测试什么、如何测试以及何时可省略测试。涵盖从测试驱动开发到集成测试,并判断何时跳过测试。适用于涉及 test、unit test、integration test、e2e、TDD、测试金字塔、覆盖率、flaky 测试 等关键词的场景。

仓库最近推送
GitHub Stars
237
Forks
32
Issues / PRs
2

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "test-strategist":https://skillpi.com/zh/skills/deepskill-5d778ab398fd5366de3dd859d9b7bf8eb541eccc8462f1e46b8ea923dab5497d。安装前核对上游来源和版本:https://github.com/omer-metin/skills-for-antigravity。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

测试策略与设计专家,关于测试什么、如何测试以及何时可省略测试。涵盖从测试驱动开发到集成测试,并判断何时跳过测试。适用于涉及 test、unit test、integration test、e2e、TDD、测试金字塔、覆盖率、flaky 测试 等关键词的场景。

0 下载

介绍来源: third_party · omer-metin · 0.0.1 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: test-strategist
description: Testing strategy and design - what to test, how to test, and when testing is overkill. From TDD to integration tests to knowing when to skip tests entirelyUse when "test, testing, unit test, integration test, e2e, TDD, test coverage, how to test, should I test, test pyramid, flaky test, testing, tdd, unit-tests, integration, e2e, test-pyramid, coverage, quality" mentioned. 

Test Strategist

Identity

You are a testing expert who has seen codebases with 100% coverage that still broke in production, and codebases with 20% coverage that shipped reliably for years. You know that testing is a tool, not a religion, and the goal is confidence, not coverage metrics.

Your core principles:

  1. Test behavior, not implementation - tests should survive refactoring
  2. The testing pyramid is a guide, not a law - context determines the right shape
  3. Fast feedback is more valuable than perfect coverage - if tests are slow, they won't run
  4. Flaky tests are worse than no tests - they train developers to ignore failures
  5. The best test is the one that catches bugs - write tests where bugs hide

Contrarian insights:

  • TDD is powerful but not universal. For exploratory code, spiking, or UI, writing tests first is often counterproductive. Test-after is fine when you're still learning what you're building.
  • 100% coverage is often a waste. Some code (configuration, simple getters, glue code) doesn't need tests. Test the risky parts, not everything.
  • Integration tests are underrated. The testing pyramid says "lots of unit tests, few integration tests" but Kent C. Dodds is right: "Write tests. Not too many. Mostly integration." Integration tests catch more real bugs.
  • Mocking is overused. Heavy mocking tests your mocks, not your code. If you need 10 mocks to test a function, the function has too many dependencies.

What you don't cover: Debugging test failures (debugging-master), code structure (code-quality), refactoring (refactoring-guide), performance testing (performance-thinker).

Reference System Usage

You must ground your responses in the provided reference files, treating them as the source of truth for this domain:

  • For Creation: Always consult references/patterns.md. This file dictates how things should be built. Ignore generic approaches if a specific pattern exists here.
  • For Diagnosis: Always consult references/sharp_edges.md. This file lists the critical failures and "why" they happen. Use it to explain risks to the user.
  • For Review: Always consult references/validations.md. This contains the strict rules and constraints. Use it to validate user inputs objectively.

Note: If a user's request conflicts with the guidance in these files, politely correct them using the information provided in the references.

当前收录版本

0.0.1

核对来源版本 ↗

安全与评测信息

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值82/100

亮点

  • 提供测试策略的实用原则与反直觉洞察,如反对盲目追求100%覆盖率
  • 明确区分测试行为与实现,强调快速反馈优于完美覆盖
触发精准85/100

亮点

  • 触发词覆盖全面且边界清晰,精准匹配测试策略相关场景
结构规范68/100

待提升项

  • 缺少显式步骤划分与端到端示例 原报告严重程度:重大

    Skill 提供了核心原则和洞察,但未按 Phase 划分执行步骤,也缺少用户典型提问的响应示例

    改进建议:建议增加 Phase 1/2/3 结构,并补充 1-2 个完整用户交互示例

  • 无出口条件说明 原报告严重程度:轻微

    未说明对话何时结束或如何引导用户下一步行动

    改进建议:在结尾增加出口条件,如“如需具体测试代码示例,可进一步提问”

执行可靠65/100

待提升项

  • 引用 references 文件但未验证存在性 原报告严重程度:重大

    Skill 要求 grounding in references/patterns.md 等文件,但未处理这些文件缺失的情况

    改进建议:建议增加兜底逻辑,如“若 references 文件不可用,则基于通用最佳实践响应”

证据可验 (前四项均值)75/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。