/autopilot:test-strategyfrom autopilot
Guides testing strategy including test pyramid, regression scoping, and flaky-test handling. Use when designing test approach or validating changes.
Ships in autopilot. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Routing overlap? If this intent better matches a sibling skill, redirect per references/routing-tiebreaks.md (prefer test design over single-bug diagnosis).
This skill is autopilot's standalone fallback for testing methodology. If the superpowers plugin is installed, superpowers:test-driven-development is available — note these are NOT equivalent.
Differences worth knowing:
superpowers:test-driven-development focuses on the「先寫測試再寫實作」red-green-refactor cycle. autopilot:test-strategy covers test pyramid, baseline 守則, failure investigation funnel — orthogonal scope..claude/dispatch-config.md's ## Testing methodology chain controls orchestrator preference.superpowers is NOT installed, the red-green-refactor coding loop has no native autopilot equivalent — this skill is the strategy frame, not a TDD substitute. For TDD specifically, install superpowers (test-driven-development) or run the red-green cycle manually. (autopilot deliberately does not ship a tdd skill: that loop is superpowers' lane, and duplicating it would violate the skill-proliferation discipline.)!cat .claude/test-strategy-config.md 2>/dev/null || echo "No project-specific test config found. Using generic defaults."
Unit (frequent, per build) > E2E (per feature) > Stress (pre-release, rare)
| Type | Purpose | When | Scope |
|---|---|---|---|
| Unit | Logic correctness | Every build | Single function/class |
| E2E | System integration | Per feature / nightly | Full stack |
| Stress | Capacity limits | Before release | System under load |
| Regression | No breakage | Every PR | Affected modules via node scripts/affected-suites.js |
Run tests BEFORE and AFTER changes. New failures = your regression.
If baseline is not green: record pre-existing failures, fix if in your area, document if unrelated, never add new failures on top.
Tests fail?
+-- Stop implementation immediately
+-- Investigate root cause:
| +-- Test bug? -> fix the test
| +-- Code bug (your changes)? -> fix the code
| +-- Pre-existing? -> verify with git stash + re-run
+-- Fix and re-run until all pass
+-- Report: count, names, root cause classification, resolution
Never: skip failures, comment out tests, commit with red tests, assume "pre-existing" without stash-verify.
| Level | Mode | Rollback |
|---|---|---|
| 0 | Legacy only | N/A |
| 1 | Dual mode, old default | Disable flag |
| 2 | Dual mode, new default | Flip to level 1 |
| 3 | New only, flag removed | Revert commit |
Use when: changing core business logic, replacing algorithms, instant rollback needed.
| Situation | Test Type |
|---|---|
| New function/class | Unit test |
| Bug fix | Regression test (reproduces the bug) |
| New feature | Unit + E2E |
| Refactoring | Ensure existing tests pass |
| Performance concern | Benchmark / stress test |
autopilot:dev-flow — invokes test commands during quality gateautopilot:quality-pipeline — orchestrates test → scan → completeness → reviewautopilot:learn — record test-strategy findings (flaky tests, baseline patterns)superpowers:test-driven-development (if installed) — complementary, not equivalent (see Coexistence section)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
test-strategy, test-pyramid, regression-testing, flaky-tests
npx claudepluginhub cookys/autopilot --plugin autopilot32 skills in this plugin
/agent-callContact an already-running persistent coding-agent session via fleet v2 (fallback: Claude SendMessage + outbox). Use when: "通知 <host>", "跟 <host> 說", naming a fleet member/pane. Not for: opinions (→ consult), hetero review (→ hetero-review), new workers (→ /l4–/l6).
/auditCompare two existing implementations for feature parity and missing items. Use when: "compare X with Y", "verify X matches Y", "比對 X 和 Y". Not for: future plan review, single-bug debug, writing tests.
/brainstormPre-code Socratic design exploration that surfaces 2-3 approaches and gates coding until approved. Use when: "help me think through X", "還沒想清楚", "我不確定要怎麼做". Not for: existing options (→ think-tank), external research (→ survey), chosen approach/quick fix (→ dev-flow).
/ceo-agentFull delegation — you own the goal end-to-end, user just wants results. Triggers: "CEO mode", "get it done", "you decide", "handle everything", "I trust you", "take over", "full authority", "just do it", "搞定 X", "幫我處理", "全權處理", "你決定". Not for: research-only (→ survey), participatory planning (→ dev-flow), or parallel task dispatch.
/debugEvidence-first debugging for correctness bugs, crashes, and flaky tests. Use when: diagnosing bugs, crashes, or intermittent failures. Not for: performance/latency/memory issues (→ profiling).
/dev-flowStart here before writing any code — sizes the task (XS/S/M/L/XL, bug, urgent `!`), sets up branch and session rules. Use when: "I'm starting on X", "quick fix for Y", "continuing from yesterday", "hotfix needed", "let's implement X", "skip to coding", "我要開始做 X", "快速修一下", "接續昨天的進度", resuming a feature branch, or any task that touches code. Not for: debugging (→ debug), authoring a plan doc (→ references/plan-template.md), pre-code design exploration (→ brainstorm), or code review (→ quality-pipeline).
Other plugins' skills for the same job