Token导航 LogoToken导航

Agent Skill · 开发

testing-strategies(测试策略)

用于辅助测试设计、自动化测试、用例整理和回归验证。它适合让 Agent 编写单元测试、端到端测试、测试计划或根据失败日志定位问题。使用时需要确认项目测试框架、运行命令和夹具数据,避免为了通过测试而改坏真实逻辑;涉及浏览器或外部服务时,应区分本地模拟、测试环境和生产环境。

testing-strategies 是开发类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为操作浏览器;许可证信息还不明确,第三方扫描已通过,按安装量在开发类的 21,746 个 Skill 里排第 14,961。

总安装 643周安装 26GitHub Stars 11下载 202核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:testing-strategies(测试策略)
来源仓库:https://github.com/akillness/skills-template
仓库路径:skills/testing-strategies
安装命令:
npx skills add https://github.com/akillness/skills-template --skill testing-strategies
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/akillness/skills-template --skill testing-strategies

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

用于制定测试策略、验证流程和回归保障方案。帮助定义信任的验证包、置信级别和执行预期。区分本地、PR 和生产环境的测试要求与异常处理规则。

安装命令:npx skills add https://github.com/akillness/skills-template --skill testing-strategies 需结合项目测试框架运行命令,避免为通过测试而破坏真实逻辑

来源仓库内路径:skills/testing-strategies

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/akillness/skills-template --skill testing-stra…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

testing-strategies 怎么安装?

在终端执行 npx skills add https://github.com/akillness/skills-template --skill testing-strategies。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

testing-strategies 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

testing-strategies 需要什么权限?

权限级别是操作浏览器。该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

testing-strategies 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

testing-strategies 用的人多吗?

公开数据是累计安装 643 次,近一周安装 26 次,下载 202 次,GitHub 11 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

testing-strategies 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
skill-vetter

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
testing-strategies

测试策略 · 本页

64311操作浏览器未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Testing Strategies

Use this skill when the main question is "what validation packet do we trust, what confidence level do we actually need, and what should the team do next?"

The job is not to dump a generic pyramid/trophy manifesto or write test code. The job is to:

  1. normalize the current policy packet,
  2. name which gate is actually being decided,
  3. choose one primary policy mode,
  4. name the smallest convincing layer mix,
  5. separate local / PR / release / scheduled expectations,
  6. state exception and flake rules honestly,
  7. route implementation, debugging, release execution, accessibility, game launch, or performance work out immediately.

Read references/intake-packets-and-route-outs.md before handling an unfamiliar policy packet. Read references/gate-truth-and-release-handovers.md when the ambiguity is really about branch blockers vs release-only or platform-launch proof. Read references/validation-matrix.md when choosing the minimum convincing layer mix. Read references/handoff-boundaries.md when deciding whether testing-strategies, backend-testing, debugging, code-review, performance-optimization, or web-accessibility should own the next step.

When to use this skill

  • The team needs one change-based validation brief instead of vague “add more tests” advice
  • A developer or reviewer is asking what should run locally, on PR, before release, or on scheduled/nightly cadence
  • You need to decide whether unit, integration, contract, smoke, exploratory, or manual checks are actually required
  • A flaky or expensive suite problem is really a gate-policy problem
  • An escaped bug or incident needs the right regression ratchet without blindly expanding broad E2E coverage
  • Release-readiness or QA-signoff work needs to be tied back to the real change risk

When not to use this skill

  • The main task is implementing API/service/database/browser tests, fixtures, mocks, or testcontainers → use backend-testing or the stack-specific implementation skill
  • The main task is reproducing a failure, isolating why a test is red, or debugging flaky behavior → use debugging
  • The main task is judging one specific PR, diff, or merge request → use code-review
  • The main task is accessibility-heavy verification or visual review policy → use web-accessibility or web-design-guidelines
  • The dominant risk is performance benchmarking, load testing, or frame-budget policy → use performance-optimization or game-performance-profiler
  • There is no real change or decision point yet; first define what changed and what confidence decision must be made

Instructions

Step 1: Start from the policy packet already in hand

Use references/intake-packets-and-route-outs.md.

Normalize the current packet into one of these shapes:

  • change-risk-packet — a feature, bugfix, migration, API change, auth change, UI flow change, config/deploy change, or incident follow-up
  • gate-design-packet — the team is arguing about what belongs in local, PR, release, or scheduled gates
  • flake-cost-packet — the suite is slow, noisy, brittle, or expensive and policy is unclear
  • release-readiness-packet — staging smoke, signoff, rollout, or checklist work is present but layer ownership is fuzzy
  • incident-ratchet-packet — an escaped bug or outage fix needs the smallest lasting regression protection

Capture the minimum useful frame:

Packet: change-risk-packet
Change type: API contract + DB migration
Hotspots: compatibility, migration safety, permissions
Decision point: PR + release
Current evidence: unit tests only

Rule: start from the packet the user already has. Do not demand an ideal QA template before doing useful work.

Step 2: Name the gate truth before choosing layers

Say which decision point is real right now:

  • merge-gate-truth — branch-blocking evidence, required status checks, or review-blocking proof
  • release-gate-truth — staging smoke, rollout safety, rollback notes, permissions, packaging, or human signoff
  • scheduled-breadth-truth — nightly/cron/matrix coverage that improves confidence but should not block every PR

Rules:

  • Do not let protected-branch tooling masquerade as the whole test strategy; it only enforces the blocking subset.
  • Do not let release/platform checklists silently expand the PR gate when they are really launch or rollout ownership.
  • If more than one gate is present, name the primary gate and the follow-up gate explicitly.

Step 3: Choose one primary policy mode

Pick exactly one primary mode:

  • layer-selection — what validation layers prove the changed behavior?
  • gate-shaping — what belongs in local vs PR vs release vs scheduled loops?
  • flake-and-cost-policy — what should block, quarantine, move, or become informational?
  • incident-regression-ratchet — what is the lowest layer that would have caught the escaped bug?
  • release-confidence — what final smoke, checklist, or rollout proof is still honestly needed?

Optional: name one secondary mode, but do not flatten every testing conversation into the same checklist.

Step 4: Classify the risk tier and critical path

Use a small risk model:

  • Tier 0 — low risk: docs, comments, dead code deletion, isolated rename, obvious config metadata
  • Tier 1 — ordinary product change: routine feature or refactor with limited blast radius
  • Tier 2 — high risk: public API, migration, auth, billing, external integrations, state machines, concurrency, background jobs
  • Tier 3 — release-critical / incident-linked: escaped bugs, outage fixes, rollback-sensitive deploy paths, or critical customer journeys

Capture:

  • critical paths and users affected
  • failure cost: annoyance, feature break, trust damage, data loss, rollout risk, security risk
  • evidence already present: tests, screenshots, previews, logs, contract notes, rollout notes, checklists
  • the decision point: local confidence, PR/merge confidence, release confidence, or long-running scheduled breadth

If the change spans multiple tiers, plan for the highest one.

Step 5: Choose the smallest convincing layer mix

Use references/validation-matrix.md.

Default layer choices:

  • Unit / component / service when logic, validation, branching, or mapping is the main risk
  • Integration when wiring, DB semantics, middleware, serialization, jobs, or real dependency behavior matters
  • Contract / API-level when response shapes, schemas, events, or cross-service/client boundaries changed
  • Smoke / selective E2E when multiple layers must prove one critical end-to-end journey together
  • Manual exploratory / checklist validation when visual nuance, device variation, operational edge cases, or human signoff is still the honest answer

Always say both:

  • what is required now
  • what is intentionally out of scope for now and why

Examples:

  • “integration + contract now; no broad browser E2E because the user journey is unchanged”
  • “release smoke plus rollout checklist; no new unit tests because the only risk lives in staging config and deployment behavior”

Step 6: Separate local, PR, release, and scheduled expectations

A useful policy brief does not pretend one suite fits every loop.

Define the smallest truthful gate split:

  • Local — fast, cheap, developer-loop proof
  • PR / merge — changed-surface confidence for risky paths
  • Release — production-facing smoke, migration safety, rollout checks, or manual signoff items
  • Scheduled / nightly — broad matrices, expensive combinations, compatibility sweeps, long-running suites

Rules of thumb:

  • if a suite is too slow or flaky for PRs, move it deliberately instead of silently rerunning it forever
  • if branch protection / required status checks are in play, name only the checks that truly must block merge
  • if a release checklist exists, tie it back to the specific risk that still needs human proof
  • if store/platform launch checklists are now the dominant work, route to the launch or delivery owner instead of stuffing them back into merge coverage
  • if the packet is really just release coordination, say so instead of pretending every item is a test-layer choice

Step 7: Write explicit exception and flake rules

This step is where strategy becomes operational.

State:

  • which checks are blocking vs informational
  • when a flaky test should be quarantined, fixed, moved to scheduled, or removed from the gate
  • what explanation is required when no new regression coverage is added
  • whether coverage percentages matter here or are just background reporting
  • whether manual verification is temporary, release-only, or an intentional long-term choice

Good defaults:

  • repeated flake is a policy problem, not just a rerun ritual
  • quarantining can reduce CI noise, but must keep owner + timeout + follow-up visible
  • “coverage went up” is not proof that the risky scenario is protected
  • escaped bugs should ratchet in the lowest-layer regression that would actually have caught them

Step 8: Route the next owner immediately

This skill owns policy and confidence decisions, not all downstream work.

Typical route-outs:

  • backend-testing — write or repair the chosen API/service/database/fixture/contract tests
  • debugging — investigate why a suite is red, flaky, or environment-specific right now
  • code-review — judge whether one diff’s current evidence is good enough to approve
  • deployment-automation — own rollout execution, staging/prod verification sequencing, rollback steps, or release runbooks once the gate is chosen
  • game-ci-cd-pipeline — own engine/build pipeline implementation or stabilization when the problem is a game CI/CD surface, not policy selection
  • steam-store-launch-ops — own Steam-specific launch/store/runbook work when the remaining proof is release checklist, page readiness, or launch timing rather than merge confidence
  • web-accessibility / web-design-guidelines — handle accessibility-heavy or visual-governance validation packets
  • performance-optimization / game-performance-profiler — handle benchmark, load, latency, or frame-budget policy when performance is the actual dominant risk

If the user asks “what should we test?” stay here. If they ask “how do we write or stabilize those tests?” route out.

Step 9: Produce one concise validation brief

Preferred format:

# Validation Strategy Brief

## Policy packet
- Packet:
- Gate truth:
- Primary mode:
- Risk tier:
- Decision point:

## Required validation now
1. [Layer] ... because ...
2. [Layer] ... because ...
3. [Manual / release check] ... because ...

## Gate split
- Local:
- PR:
- Release:
- Scheduled:

## Out of scope for now
- ...

## Exception / flake policy
- ...

## Next owner
- `backend-testing` / `debugging` / `code-review` / other

A short, explicit brief beats a giant testing manifesto. If the honest answer is “do less, but at the right layer,” say that directly.

Output format

Always return a validation strategy brief, gate-shaping memo, or regression-ratchet brief.

Required qualities:

  • identify the packet already in hand
  • name the real gate being decided before expanding into more layers
  • choose one primary policy mode
  • classify risk and critical path explicitly
  • separate local, PR, release, and scheduled expectations when relevant
  • explain intentional exclusions instead of hand-waving them away
  • route implementation, debugging, review, accessibility, or performance work to the correct neighboring skill

Examples

Example 1: API + migration packet

Input

This PR changes an API contract and adds a DB migration. What validation should be required before merge?

Output sketch

  • Packet: change-risk-packet
  • Gate truth: merge-gate-truth
  • Primary mode: layer-selection
  • Risk tier: 2
  • Required validation:

1. integration test for migration read/write path 2. contract/API check for response compatibility 3. release smoke on the highest-value consumer path

  • Out of scope: broad browser E2E because the user flow is unchanged
  • Next owner: backend-testing

Example 2: Flaky browser suite packet

Input

Our Playwright suite is slow and keeps flaking. What testing strategy should this repo adopt?

Output sketch

  • Packet: flake-cost-packet
  • Gate truth: merge-gate-truth with scheduled-breadth-truth follow-up
  • Primary mode: flake-and-cost-policy
  • Required change:

1. narrow PR browser coverage to critical journeys only 2. move broader combinations to scheduled runs 3. define quarantine/fix rules for repeated flake 4. shift confidence to lower-level integration/component checks where honest

  • Next owner: backend-testing for implementation, debugging for current flake root cause

Example 3: Release-readiness packet

Input

Engineering says tests are green, but should we require anything else before this release?

Output sketch

  • Packet: release-readiness-packet
  • Gate truth: release-gate-truth
  • Primary mode: release-confidence
  • Required validation:

1. targeted staging smoke for the changed customer journey 2. migration / rollback checklist item if deploy shape changed 3. explicit note that no new broad regression sweep is required beyond scheduled coverage

  • Route-out: accessibility-specific signoff to web-accessibility if the change is UI-state heavy

Example 4: Game launch checklist packet

Input

Our build passed CI, but we still have Steam release checklist items and packaging work. Does this stay here?

Output sketch

  • Packet: release-readiness-packet
  • Gate truth: release-gate-truth
  • Primary mode: release-confidence
  • Required validation: targeted final smoke plus the minimum proof that launch/build checklist items are satisfied
  • Out of scope: expanding branch-blocking PR checks just because store/platform launch work remains
  • Next owner: steam-store-launch-ops and/or game-ci-cd-pipeline

Best practices

  1. Start from the packet already in hand, not from a favorite testing slogan.
  2. Prefer the cheapest layer that still proves the risky behavior.
  3. Keep local, PR, release, and scheduled loops distinct.
  4. Treat flaky tests as a policy smell, not just a rerun inconvenience.
  5. Tie release checklists back to actual risk instead of treating them as a separate universe.
  6. State intentional exclusions so residual risk is visible.
  7. Use escaped bugs to ratchet in the lowest-layer regression that would have caught them.
  8. Make merge blockers, release-only proof, and scheduled breadth explicit instead of blending them together.
  9. Route implementation to backend-testing, diagnosis to debugging, rollout execution to deployment-automation, platform/game launch work to steam-store-launch-ops or game-ci-cd-pipeline, and accessibility-heavy validation to web-accessibility.
  10. Use manual validation when it is the honest answer, not as a shameful fallback.
  11. One concise validation brief is more reusable than a giant testing manifesto.

References

平台分布

Codex

36.3%
按下载量换算73

Claude

30.81%
按下载量换算62

Cursor

20.71%
按下载量换算42

Gemini CLI

10%
按下载量换算20

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills