为功能、缺陷修复、重构、迁移和评审设计高价值测试策略,通过把行为映射到覆盖矩阵、识别缺失边界场景、选择验证命令,并避免脆弱或低信号测试;当 Codex 被要求提供测试计划、覆盖矩阵、回归策略、QA 清单或验证方案时使用。
Scanned 9/7/2026
Install to Claude Code
npx -y skills add franklioxygen/agent-workflows --skill test-strategy --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Test Strategy?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/franklioxygen-test-strategy-agent-workflows)More formats (shields.io, HTML) on the badges page.
---
name: test-strategy
description: 为功能、缺陷修复、重构、迁移和评审设计高价值测试策略,通过把行为映射到覆盖矩阵、识别缺失边界场景、选择验证命令,并避免脆弱或低信号测试;当 Codex 被要求提供测试计划、覆盖矩阵、回归策略、QA 清单或验证方案时使用。
---
<!--
Function Name: test-strategy.zh-cn
Description: 规划高价值测试覆盖与验证的技能说明中文翻译。
-->
# 测试策略
## 快速开始
- 当仓库路径可用时,运行 `scripts/test_inventory.py <path>`。
- 在完成测试计划前,先阅读 [references/test-strategy-checklist.md](references/test-strategy-checklist.md)。
- 遵循 [../_shared/references/skill-operating-rules.md](../_shared/references/skill-operating-rules.md) 中共享的安全、验证和范围规则。
- 把测试映射到可观察行为,而不是实现细节。
- 先做定向验证,再在风险确实需要时扩大验证范围。
- 除非用户明确要求实现,否则不要改代码。
## 策略流程
1. 识别已经变更或计划变更的行为。
2. 列出风险区域:权限、数据形状、API 契约、UI 状态、错误、并发、迁移、性能和集成。
3. 盘点现有测试结构和命令:
```bash
python3 scripts/test_inventory.py /path/to/repo
```
4. 产出覆盖矩阵:
```markdown
| Behavior | Existing coverage | Needed test | Priority |
| --- | --- | --- | --- |
| <behavior> | covered / partial / missing | <test idea> | P0 / P1 / P2 |
```
5. 把自动化测试、手工 QA 和验证命令分开列出。
6. 标明哪些测试不应被更新,因为它们断言的是稳定行为。
## 输出规则
- 包含精确场景、输入、期望结果,以及每个测试为什么重要。
- 标记回归测试:修复前应失败,修复后应通过。
- 说明跳过的测试或验证及其原因。
- 标出弱测试:宽泛快照、恒真断言、时间敏感测试,以及与实现一一映射而不是验证行为的测试。
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!
Ultra-compressed communication mode. Cuts token usage ~75% by speaking like caveman while keeping full technical accuracy. Supports intensity levels: lite, full (default), ultra, wenyan-lite, wenyan-full, wenyan-ultra. Use when user says "caveman mode", "talk like caveman", "use caveman", "less tokens", "be brief", or invokes /caveman. Also auto-triggers when token efficiency is requested.
Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...
Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.
Recovers prior coding-agent session context by running `catchup <agent> --since-compact`, which extracts a clean summary of a previous Codex, Claude Code, Antigravity, OpenCode, or Pi Agent session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", or asks to recover/summarize a previous session before continuing. Do NOT use for the current conversation, git history, or any non-agent log.
A comprehensive mathematical reasoning skill for AI assistants — handles arithmetic to research-level problems with rigorous step-by-step reasoning, systematic verification, and transparent uncertainty handling