一键导入
test-specialist-workflow
Test the full specialist handoff pipeline (review → test → merge)
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Test the full specialist handoff pipeline (review → test → merge)
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Add repositories to the current progressive polyrepo workspace
pan close <id> — close-out ceremony for a completed and merged issue
pan review <subcommand> — manage the code review lifecycle: list pending work, re-request review, heal status drift, reset/abort/restart review cycles
pan start <id> — spawn a work agent for an issue in its own tmux session and workspace
Maintain a project knowledge wiki in Open Knowledge Format with /okf init, open, author, convert, sync, study, retro, extract, validate, lint, and embed.
pan flywheel — start, pause, resume, complete, stop, inspect, emit, and report on the singleton Fix-All Flywheel orchestrator
| name | test-specialist-workflow |
| description | Test the full specialist handoff pipeline (review → test → merge) |
| triggers | ["test specialist workflow","test specialists","specialist e2e test","test approve pipeline"] |
| allowed-tools | ["Bash","Read","Grep","Glob"] |
Test the full specialist handoff pipeline: review-agent -> test-agent -> merge-agent
pan cloister start if not)# Check dashboard is running
curl -s http://localhost:3011/api/health | jq .
# Check specialists are available
curl -s http://localhost:3011/api/specialists | jq '.[].name'
# Verify all three exist
curl -s http://localhost:3011/api/specialists | jq 'length' # Should be 3
# Create GitHub issue
ISSUE_URL=$(gh issue create \
--title "Test: Specialist workflow $(date +%Y%m%d-%H%M%S)" \
--body "Automated test of specialist handoff pipeline. Will be auto-closed." \
2>&1)
ISSUE_NUM=$(echo "$ISSUE_URL" | grep -oP 'issues/\K\d+')
echo "Created issue: PAN-$ISSUE_NUM"
# Create workspace
pan workspace create "PAN-$ISSUE_NUM"
# Navigate to workspace
WORKSPACE="~/Projects/overdeck/workspaces/feature-pan-$ISSUE_NUM"
cd "$WORKSPACE"
# Create test fixture
mkdir -p tests/fixtures
echo "Specialist workflow test at: $(date -Iseconds)" > tests/fixtures/specialist-test.txt
# Commit and push
git add tests/fixtures/specialist-test.txt
git commit -m "test: specialist workflow test (PAN-$ISSUE_NUM)"
git push -u origin "feature/pan-$ISSUE_NUM"
# Trigger the approval - this kicks off review-agent
RESULT=$(curl -s -X POST "http://localhost:3011/api/workspaces/PAN-$ISSUE_NUM/approve" \
-H "Content-Type: application/json")
echo "$RESULT" | jq .
# Should see: "pipeline": "running"
# Watch review-agent (should complete review and hand off)
echo "=== REVIEW-AGENT ==="
tmux capture-pane -t specialist-review-agent -p | tail -20
# Wait for handoff, then check test-agent
sleep 30
echo "=== TEST-AGENT ==="
tmux capture-pane -t specialist-test-agent -p | tail -20
# If test-agent task is pending, submit it
tmux send-keys -t specialist-test-agent Enter 2>/dev/null || true
# Wait for tests to run
sleep 60
echo "=== TEST-AGENT (after tests) ==="
tmux capture-pane -t specialist-test-agent -p | tail -20
# Check merge-agent
echo "=== MERGE-AGENT ==="
tmux capture-pane -t specialist-merge-agent -p | tail -20
# Check if branch was merged to main
cd ~/Projects/overdeck
git fetch origin
git log --oneline main -5 | grep -i "pan-$ISSUE_NUM" && echo "SUCCESS: Merge found!" || echo "PENDING: Merge not yet on main"
# Check specialist states
curl -s http://localhost:3011/api/specialists | jq '.[] | {name, state}'
# Close the GitHub issue
gh issue close "$ISSUE_NUM" -c "Automated test completed successfully"
# Remove workspace
rm -rf "$WORKSPACE"
echo "Cleanup complete!"
If specialists show "Exit code 1" errors or shell commands fail:
# Kill and restart specialist sessions
tmux kill-session -t specialist-review-agent 2>/dev/null
tmux kill-session -t specialist-test-agent 2>/dev/null
tmux kill-session -t specialist-merge-agent 2>/dev/null
# Restart them
pan specialists wake review-agent
pan specialists wake test-agent
pan specialists wake merge-agent
If test-agent doesn't receive task from review-agent:
# Manually trigger the handoff
pan specialists wake test-agent --task "TEST TASK for PAN-$ISSUE_NUM:
WORKSPACE: $WORKSPACE
BRANCH: feature/pan-$ISSUE_NUM
PROJECT: ~/Projects/overdeck
1. cd $WORKSPACE
2. Run tests: npm test
3. If PASS: Hand off to merge-agent
4. If FAIL: Report failures"
If merge-agent can't complete:
# Check for uncommitted changes
cd ~/Projects/overdeck
git status
# Workspace `.overdeck/` runtime files are gitignored and should not be staged
# Other uncommitted changes need to be committed or stashed