一键导入
pi-test-harness
Run the groundwork acceptance test harness. Documents how to test the plugin locally.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run the groundwork acceptance test harness. Documents how to test the plugin locally.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Agent Communication Protocol — fan-out dispatch reference for Claude plugin orchestration
Disciplined 6-phase bug diagnosis loop. Build feedback loop, reproduce, hypothesise, instrument, fix with regression test, cleanup with post-mortem. Use for all bugs — bypasses PRD entirely. Ends with advisor-gate completion gate.
Interview-based planning skill. Ask one question at a time with recommended answers, cross-reference codebase, detect and defer to project-level planning conventions, and synthesize a concise plan that feeds vertical-slice. Use for features, small changes, and bug scoping.
MANDATORY user acceptance testing before advisor-gate. Enforces real end-user testing — TUI via tmux/expect, API via real HTTP calls in docker-compose, web apps via Playwright browser. Unit/integration tests are INSUFFICIENT unless they exercise the system exactly as end-users experience it. No exceptions.
Engage maximum parallel fan-out mode. Use when you want to work 10x faster by dispatching all independent work simultaneously to specialist agents. Triggers on "ultrawork", "ulw", "fan out hard", "go parallel".
Bootstrap skill for the groundwork workflow suite. Loaded at every conversation start. Establishes core rules, skill triggers, and the 1% escalation heuristic. ALWAYS load this first.
| name | pi-test-harness |
| description | Run the groundwork acceptance test harness. Documents how to test the plugin locally. |
pnpm exec vitest run test/unit test/lib test/tools test/commands
These spawn pi --mode rpc as a child process, send prompts, and assert on the
full transcript for correct skill routing and subagent fan-out.
# Run all e2e tests (slow — spawns real pi processes)
pnpm exec vitest run test/e2e
# Run only routing tests
pnpm exec vitest run test/e2e/routing.test.ts
# Run only fan-out tests
pnpm exec vitest run test/e2e/fanout.test.ts
# With verbose logging
pnpm exec vitest run test/e2e --reporter=verbose
| Test file | What it verifies |
|---|---|
routing.test.ts | Correct skill routing for bugs, features, small changes |
fanout.test.ts | Orchestrator delegates to parallel subagents instead of doing work itself |
test/e2e/harness.ts — PiRpcClient that drives pi --mode rpc via stdin/stdoutget_state pollingassertSkillUsed, assertSkillNotUsed, assertFanOutuse-groundwork rules appear in system prompt/agents → should see orchestrator (general-purpose), advisor, general-purpose, designer, explorerset_goal(action="set", objective="Test", acceptanceCriteria=["A","B"])/handoff → should produce a handoff prompt