Token导航 LogoToken导航TokenDH.com
开发操作浏览器github未标认证来源可访问许可证需确认审计通过

testing-strategies测试策略

Agent Skill

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

总安装

643

周安装

26

GitHub Stars

11

下载量

202
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 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

简介

用于制定测试策略、验证流程和回归保障方案。

  • 帮助定义信任的验证包、置信级别和执行预期。
  • 区分本地、PR 和生产环境的测试要求与异常处理规则。
  • 安装命令:npx skills add https://github.com/akillness/skills-template --skill testing-strategies
  • 需结合项目测试框架运行命令,避免为通过测试而破坏真实逻辑

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

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.3%
按下载量换算73

Claude

30.81%
按下载量换算62

Cursor

20.71%
按下载量换算42

Gemini CLI

10%
按下载量换算20

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

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

安装前确认

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

来源信息

继续浏览同类 Skills