一键导入
multi-perspective-review
Multi-perspective code review with simpler-alternative pass.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Multi-perspective code review with simpler-alternative pass.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Iterative multi-round codebase audit with diminishing-returns detection. Run 5-20+ rounds, each focusing on one specific area. Built from 19 rounds of dogfooding pi-crew on itself.
Pi TUI crew widget data sources, display priority, and rendering performance.
Multi-phase orchestration for planners and executors.
Spawn 3 adversarial subagents (Skeptic, Pragmatist, Critic) to evaluate a decision, architecture choice, or plan. Anti-anchoring: each role receives ONLY the question, not conversation history. Aggregates votes into consensus recommendation with dissent tracking. Use when facing critical decisions, architecture choices, security tradeoffs, or plan reviews where single-perspective analysis is insufficient.
Background worker, heartbeat, stale-run, crash-recovery, and deadletter workflow. Use when debugging stuck/dead workers or changing async run reliability.
Child Pi worker spawning, lifecycle callbacks, and failure modes.
| name | multi-perspective-review |
| description | Multi-perspective code review with simpler-alternative pass. |
| origin | pi-crew |
| triggers | ["review this","look at this","LGTM check","sanity check","check this PR"] |
Core principle: review early, review often, and separate concerns. Reviewer output is evidence to evaluate, not an instruction to obey blindly.
Distilled from detailed reads of requesting-code-review, receiving-code-review, subagent review checkpoints, differential review, and specialized review-agent patterns.
Before running any review passes, ask:
This is the most valuable finding you can produce — surfacing unnecessary complexity before reviewing its details.
Run relevant passes separately:
[severity] path:line or symbol
Issue: ...
Impact: ...
Fix: ...
Verification: ...
Severity:
[medium] src/runtime/task-runner.ts:89
Issue: `executeWorkers` is checked once at top of runTeamTask but the value
is passed through an untyped parameter. The function comment says "workers
are disabled in scaffold mode" but the actual behavior is driven by `runtimeKind`.
Impact: If someone changes the comment but not the code, the mismatch is invisible.
Fix: Add a runtimeKind guard and deprecate the executeWorkers parameter.
Verification: `npx tsc --noEmit` passes; test with `PI_TEAMS_MOCK_CHILD_PI=scaffold`.
[high] src/runtime/live-agent-manager.ts:47
Issue: `registerLiveAgent` returns the new handle but callers may use the
old handle reference if they captured it before the call.
Impact: Status updates may apply to the wrong handle if the agent re-registers.
Fix: Always call `getLiveAgent` after `registerLiveAgent` to get the canonical handle.
Verification: Add test that verifies status after re-registration.
[medium] src/state/state-store.ts:150
Issue: `saveRunTasks` uses `atomicWriteJson` but the file may grow large.
No pagination or archiving strategy for long-running runs.
Impact: Tasks file could exceed 10MB with many updates, causing slow I/O.
Fix: Consider splitting into per-task files or adding a size warning.
Verification: Load test with 10,000 task updates.
[critical] src/utils/safe-paths.ts:20
Issue: `resolveRealContainedPath` follows symlinks but doesn't verify the
resolved path stays under the allowed base.
Impact: A malicious symlink could escape the workspace boundary.
Fix: Compare resolved path against allowed base after following symlinks.
Verification: Unit test with malicious symlink pointing outside workspace.
[medium] test/unit/live-agent-manager.test.ts:45
Issue: Test only checks the happy path. Missing: re-registration, workspaceId
mismatch, evict on timeout, cross-workspace access prevention.
Impact: Edge cases are not covered; future changes could break silently.
Fix: Add tests for re-registration, cross-workspace rejection, stale eviction.
Verification: `npm test` with new test cases.
[low] src/runtime/task-runner.ts:250
Issue: `runTeamTask` is 400+ lines with deeply nested if/else. Hard to follow.
Impact: Future changes require understanding all branches simultaneously.
Fix: Extract inner logic into helper functions (spawn, execute, complete).
Verification: No functional change; `npx tsc --noEmit` passes.
[medium] src/extension/team-tool/api.ts:80
Issue: Error message for missing `agentId` doesn't show available agent IDs.
Impact: Operator must manually look up agent IDs to fix the error.
Fix: Include list of available agent IDs in the error message.
Verification: Call steer-agent without agentId and verify error lists IDs.
[high] src/runtime/child-pi.ts:45
Issue: `spawn("cmd", ["/c", ...])` on Windows fails with `&&` in commands.
Impact: Background runs with multiple commands silently fail on Windows.
Fix: Use explicit argv array instead of shell string concatenation.
Verification: Test background run with multiple commands on Windows.
When receiving feedback:
Before reporting review findings, verify:
If ANY answer is NO → Stop. Complete review requirements before reporting.