بنقرة واحدة
orchestrate
Multi-agent orchestration — delegates to domain experts for complex tasks
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Multi-agent orchestration — delegates to domain experts for complex tasks
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
Triage and act on the weekly drift-guard rolling issue (transitive dependency drift)
Version bump and release checklist for remote-store
Triage and act on the weekly [mutation] rolling issue (mutation-testing run health)
Read review comments from a PR, fix each issue, resolve threads, validate
Create a pull request for the current branch
Post inline review comments on a GitHub PR. Find real issues only.
استنادا إلى تصنيف SOC المهني
| name | orchestrate |
| description | Multi-agent orchestration — delegates to domain experts for complex tasks |
| disable-model-invocation | true |
| argument-hint | [BACKLOG-ID] [optional: task description] |
Orchestrate a complex task by delegating to 5 domain experts. See ADR-0020 for architecture rationale.
Parse $ARGUMENTS: first token is the backlog ID (e.g., BK-123, ID-120),
remainder is optional task description. Ask if missing.
sdd/BACKLOG.md — confirm item exists, note description and dependenciessdd/CLAUDE-REFERENCE.md § Ripple-check table > Pre-work index — identify triggered rowsgit checkout -b <id>-<short-name>Before spawning experts, decide and document:
| Mode | When | Steps used |
|---|---|---|
| Simple | Trivial plan, clear scope | Plan → Execute → Review (1×) → Finish |
| Standard | Multi-domain, clear requirements | Plan → Refine → Execute → Consolidate → Review (1–2×) → Finish |
| Complex | Ambiguity, tight coupling, unknowns | Same as Standard, but user confirms before Execute and before each Review round |
Select mode based on scope and coupling. User can override.
Complex mode gates: Before spawning experts in Step 4 (Execute) and before each review round in Step 6, present the plan/findings to the user and wait for confirmation. This prevents wasted expert cycles when the direction is uncertain.
Code change (feature, refactor, bug fix): All 5 experts activate. Each evaluates from their domain — even if their files aren't directly touched. For bug fixes scope is narrower, but every expert still evaluates.
SDD-only change (spec/RFC/ADR/process): The SDD Expert leads implementation. The other 4 experts review (not implement) from their domain perspective.
Spawn all 5 experts in review mode with the plan from Step 2. Each expert reviews the plan from their domain perspective and returns:
One round only. The orchestrator integrates feedback and adjusts the plan. Any unresolved disagreements or open questions → escalate to user. Do not loop — if the user needs to decide, present the options and wait.
Simple mode: Skip this step entirely.
Each expert is spawned via its subagent_type (referenced below), with the
(refined) plan and per-call task passed in the invocation prompt.
Feature/refactor: Spawn all experts using multiple Agent tool calls.
Bug fix (TDD): Sequential — Testing Expert goes first. This follows the bug-fix protocol in CLAUDE.md (backlog → changelog → failing test → fix):
sdd/TESTING.md).Spawn via the Agent tool with subagent_type: store-backend-expert — the
persona lives in .claude/agents/store-backend-expert.md,
the single source of truth. The invocation prompt carries the per-call context
from the plan.
Spawn via the Agent tool with subagent_type: extension-expert — the persona
lives in .claude/agents/extension-expert.md,
the single source of truth. The invocation prompt carries the per-call context
from the plan.
Spawn via the Agent tool with subagent_type: testing-expert — the persona
lives in .claude/agents/testing-expert.md,
the single source of truth. The invocation prompt carries the per-call context
from the plan.
Spawn via the Agent tool with subagent_type: documentation-expert — the
persona lives in .claude/agents/documentation-expert.md,
the single source of truth. The invocation prompt carries the per-call context
from the plan. The orchestrator owns README.md and CHANGELOG.md; the expert
only assesses their impact (see Rules).
Spawn via the Agent tool with subagent_type: sdd-expert — the persona lives
in .claude/agents/sdd-expert.md, the single
source of truth. The invocation prompt carries the per-call context from the
plan.
After all experts complete, collect and categorize results:
| Status | Meaning | Action |
|---|---|---|
| ✓ done | Expert completed all assigned work | No action needed |
| ✗ blocked | Expert could not complete (dependency, conflict, ambiguity) | Clarify with that expert, re-execute their task |
| ⚠ needs input | Expert needs a decision outside their domain | Escalate to user |
For blocked experts: understand the blocker, provide the missing context, re-spawn that expert only. For needs-input: present the question to the user and wait.
Simple mode: Skip this step — proceed directly to Review.
Spawn all 5 experts in review mode — each reviews all output from all experts, not just their own domain. Each returns:
Simple mode: Single pass. If issues found, orchestrator fixes directly.
Standard/Complex mode: If issues found:
sdd/CLAUDE-REFERENCE.md § Ripple-check table > Detailed checklist. For each
triggered row, verify target files were updated. For domain-specific gaps
(e.g., missing test), re-spawn the relevant expert. For cross-domain gaps,
fix directly.[Unreleased] —
see format in sdd/CLAUDE-REFERENCE.md ripple-check row CHANGELOG entry.[x] to
BACKLOG-DONE.md. Partially done → split: done part to BACKLOG-DONE.md as
[x], new ID in BACKLOG.md for remainder.hatch run all. Fix failures (max 2 attempts — see Rules).hatch run all fails after 2 fix attempts, report the failure and stop.<BACKLOG-ID>: <short description>.