一键导入
spec-orchestrator
Multi-agent specification review and iteration. Writes specs via spec-writer, reviews with AI personas, and iterates until approved.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Multi-agent specification review and iteration. Writes specs via spec-writer, reviews with AI personas, and iterates until approved.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Thoroughly reviews a GitHub pull request and posts inline review comments anchored to the exact lines it has feedback on. Spawns review sub-agents (parallel lenses for bugs, security, edge cases, tests, design), scores findings by confidence, filters false positives, and posts one PR review with per-line comments plus a summary. Works against github.com AND GitHub Enterprise Server. Use this whenever the user wants to review a PR, generate line-level feedback on a PR, "leave comments on" or "critique" a pull request, or produce actionable review comments to then process with pr-review-handler. Reach for this for arbitrary PR URLs and Enterprise hosts; for reviewing your own current branch on github.com, the built-in /code-review --comment is a lighter alternative.
Processes PR review comments by assessing feedback, planning actions, implementing changes, and responding to reviewers. Use when a PR has review comments that need to be addressed.
Rebases the current branch on the latest default branch (main, master, etc.), resolving any merge conflicts automatically. Detects the default branch and remote, fetches latest, performs rebase, and handles conflicts file-by-file.
You MUST use this skill for ANY changes you make within to the iOS app. Senior iOS engineer with visual feedback capabilities via simulator MCP tools.
Create and bootstrap a git worktree for isolated development work.
Collaborative exploration to refine ideas into clear requirements before spec writing. Explores user intent, requirements and design through iterative dialogue.
| name | spec-orchestrator |
| description | Multi-agent specification review and iteration. Writes specs via spec-writer, reviews with AI personas, and iterates until approved. |
Coordinates the full lifecycle of specification development: writing, multi-agent review, revision, and approval. Simulates diverse team perspectives during review and iterates until the spec is approved or escalated to the user.
topic-or-spec (positional): A topic to write a spec for, or path to existing spec--skip-review: Write spec without review cycle (just invoke spec-writer)--reviewers=<p1,p2>: Use only specific personas (comma-separated names)--max-iterations=<n>: Override max revision cycles--require-approval: Always require human approval (never auto-approve)Check for .claude/spec-workflow/config.yaml:
review:
maxIterations: 3 # Cycles before escalating to human
autoApproveThreshold: 0.8 # Consensus for auto-approval (0.0-1.0)
selection:
strategy: "auto" # "auto" | "all" | "explicit"
minimum: 2 # Minimum reviewers
maximum: 4 # Maximum reviewers
If .claude/spec-workflow/philosophy/review-criteria.md exists, inject it into all reviewer prompts to guide their focus.
If .claude/spec-workflow/personas/ exists and contains .md files:
name and triggersOtherwise, use built-in personas from references/personas.md.
Input (idea or spec)
│
▼
┌─────────────────────┐
│ B: Is spec written? │
└─────────────────────┘
│
├─No──► Invoke spec-writer (autonomous mode)
│ │
│ ▼
└─Yes─► C: Does spec need agent review?
│
├─No (trivial)──► Human review
│
└─Yes──► Parallel agent review
│
▼
D: Evaluate feedback
│
┌──────────────┼──────────────┐
▼ ▼ ▼
Approved Iterate Escalate
│ │ │
▼ │ ▼
EXIT │ Human review
│ │
└──────────────┘
Track across iterations:
{
iteration: 0,
maxIterations: 3, // From config or argument
status: "drafting" | "awaiting-review" | "in-review" | "approved",
spec: null,
reviewPath: "agent" | "human" | null,
originalRequest: string,
history: [{ iteration, feedback, reviewer }],
escalationCount: 0
}
{ mode: "autonomous", request: originalRequest }Classify the spec first, then:
| Criteria | Route |
|---|---|
| Trivial scope AND low risk | No → Human review |
| Small/medium scope OR medium risk | Yes → Agent review |
| Large scope OR high risk | Yes → Agent review |
Evaluate feedback and return one of:
Approved → Exit
autoApproveThresholdIterate → Back to spec-writer
maxIterationsEscalate → Human Review
Analyze the spec and determine:
Type (select one):
bug-fix — Fixing incorrect behaviorsmall-feature — Additive, limited scopelarge-feature — Significant new capabilityrefactor — Restructuring without behavior changeinfrastructure — Build, deploy, observabilityapi-change — Public interface modificationsRisk (select one):
low — Easily reversible, limited blast radiusmedium — Some complexity, moderate impacthigh — Hard to undo, broad impact, security-sensitiveScope — Based on surface area and complexity:
| Scope | Surface Area | Complexity Signals |
|---|---|---|
| Trivial | Single function/method | None |
| Small | Single file/module | 0-1 signals |
| Medium | Multiple files or 2-3 components | 1-2 signals |
| Large | Multiple services, external deps, or 4+ components | 2+ signals |
Complexity signals: new abstractions, data model changes, state management, concurrency, new dependencies.
When the spec needs agent review, invoke reviewer personas in parallel.
Based on classification, determine review depth:
| Criteria | Depth |
|---|---|
| Small/medium scope OR medium risk | Standard (2-4 reviewers) |
| Large scope OR high risk | Deep (all reviewers) |
Standard review — select based on type:
| Type | Reviewers |
|---|---|
| bug-fix | Paranoid, Simplifier |
| small-feature | Simplifier, User Advocate |
| refactor | Architect, Paranoid, Simplifier |
| infrastructure | Architect, Paranoid, Operator |
| api-change | Architect, Paranoid, Simplifier, User Advocate |
Deep review — all available reviewers
If --reviewers argument provided, use only those personas.
Reviewers are independent—run as parallel sub-agents using the Task tool:
FOR EACH reviewer IN selectedReviewers:
SPAWN_SUBAGENT(
prompt: [Persona prompt] + [Review criteria philosophy] + [Spec content],
description: "{reviewer.name} reviewing spec"
)
AWAIT_ALL(tasks)
RETURN SYNTHESIZE(results)
[Persona prompt from personas file]
---
## Review Criteria
[Content from philosophy/review-criteria.md if present]
---
## Spec to Review
**Classification**: {type} | {risk} risk | {scope} scope
{spec content}
---
Provide your review. If you have no substantive feedback, respond only with:
"No concerns from a {perspective} perspective—LGTM."
After all reviews, produce:
## Review Summary
[2-3 sentence overview]
### Must Address
- [Issue] — raised by [Reviewer]
### Should Consider
- [Suggestion] — raised by [Reviewer]
### Minor/Optional
- [Item] — raised by [Reviewer]
### Points of Disagreement
- [Topic]: [Reviewer A] says X, [Reviewer B] says Y
For simple specs that don't need agent review:
## Spec Ready for Review
[spec content]
---
Please review. When done, provide:
1. Any issues that must be addressed (blocking)
2. Suggestions to consider (non-blocking)
3. Your verdict: **approve** or **request changes**
When escalated from agent review:
## Spec Escalated for Human Review
### Escalation Reason
[max-iterations | reviewer-disagreement | spec-writer-dispute | requires-judgment]
[Details]
### Iteration History
[Summary of each round]
---
### Current Spec
[spec content]
---
Please provide direction:
1. **Approve** if acceptable
2. **Feedback** for another iteration
3. **Redirect** if approach is fundamentally wrong
This skill invokes spec-writer directly. See references/spec-writer-integration.md for the contract.
Autonomous draft: { mode: "autonomous", request: string }
Revision: { mode: "revision", currentSpec: string, feedback: object, iteration: number }
## Spec Approved
**Review path**: Agent | Human | Mixed
**Review depth**: Light | Standard | Deep
**Iterations**: N
---
[Final spec content]
---
## Review Discussion
### Key Feedback Addressed
[Issues raised and how resolved, with reviewer attribution]
### Tradeoffs Considered
[Alternatives discussed, why rejected]
### Dissenting Perspectives
[Concerns acknowledged but not fully addressed]
---
### Review History
[What changed each iteration]
### Escalations
[If any, what was escalated and how resolved]
| Option | Default | Description |
|---|---|---|
review.maxIterations | 3 | Iterations before escalating |
review.autoApproveThreshold | 0.8 | Auto-approve if consensus ≥ this |
review.selection.strategy | "auto" | How to select reviewers |
review.selection.minimum | 2 | Minimum reviewers |
review.selection.maximum | 4 | Maximum reviewers |
When no custom personas are configured, use:
See references/personas.md for full prompts.
Spec writer fails: Retry once with clarified prompt. If still failing, escalate to human.
Reviewer fails: Skip and continue with others. Note in synthesis.
All reviewers fail: Escalate to human review.