Expert Consultation
Requires: Claude Code Agent Teams feature.
Get expert opinions on code, architecture, security, or plans using a team of AI specialists.
Arguments: $ARGUMENTS
Instructions
- •
Get the recipe: Call
mcp__mira__recipe(ormcp__plugin_mira_mira__recipe) tool:coderecipe(action="get", name="expert-review")
- •
Parse arguments (optional):
- •
--roles architect,security→ Only spawn these specific experts - •No arguments → spawn all 6 experts
- •Any other text → use as the context/question for the experts
- •
- •
Determine context: The user's question, the code they want reviewed, or the plan they want analyzed. If no context is obvious, ask the user what they'd like experts to review.
- •
Create the team:
codeTeamCreate(team_name="expert-review-{timestamp}") - •
Spawn experts: For each member in the recipe (or filtered subset), use the
Tasktool:codeTask( subagent_type=member.agent_type, name=member.name, team_name="expert-review-{timestamp}", prompt=member.prompt + "\n\n## Context\n\n" + user_context )Spawn all experts in parallel (multiple Task calls in one message).
- •
Create and assign tasks: For each recipe task:
codeTaskCreate(subject=task.subject, description=task.description) TaskUpdate(taskId=id, owner=task.assignee, status="in_progress")
- •
Wait for findings: Teammates will send their findings via SendMessage when complete. Wait for all to finish.
- •
Synthesize findings: Combine all expert findings into a unified report:
- •Consensus: Points multiple experts agree on
- •Key findings per expert: Top findings from each specialist
- •Tensions: Where experts disagree — present both sides with evidence
- •Action items: Concrete next steps
IMPORTANT: Preserve genuine disagreements. Do NOT force consensus. Present conditional recommendations: "If your priority is X, then..." / "If your priority is Y, then..."
- •
Cleanup: Send
shutdown_requestto each teammate, then callTeamDelete.
Examples
/mira:experts → Prompts for what to review, then spawns all 6 experts /mira:experts --roles architect,security → Only spawns architect and security experts /mira:experts Review the authentication flow in src/auth/ → All 6 experts review the auth code /mira:experts Is this migration plan safe? → All 6 experts analyze the plan in context
Expert Roles
| Role | Focus |
|---|---|
| architect | System design, patterns, tradeoffs |
| code-reviewer | Bugs, logic errors, code quality |
| security | Vulnerabilities, attack vectors |
| scope-analyst | Missing requirements, edge cases |
| ux-strategist | UX, developer experience, API ergonomics |
| plan-reviewer | Plan completeness, risks, gaps |