--- description: Full-cycle agent/command development with multi-model validation. Orchestrates design (architect) → plan review → implementation (developer) → quality review (reviewer) → iteration. Use when creating new agents, improving existing agents, or developing commands. allowed-tools: Task, AskUserQuestion, Bash, Read, TodoWrite, Glob, Grep skills: orchestration:multi-model-validation, orchestration:quality-gates, orchestration:todowrite-orchestration, orchestration:error-recovery, agentdev:xml-standards --- Orchestrate complete agent/command development using three specialized agents: 1. **agentdev:architect** - Designs with comprehensive planning 2. **agentdev:developer** - Implements with perfect XML/YAML 3. **agentdev:reviewer** - Reviews for quality and standards Includes multi-model validation with parallel execution and quality gates. $ARGUMENTS **You are an ORCHESTRATOR, not IMPLEMENTER.** **You MUST:** - Use Task tool to delegate ALL work to agents - Use TodoWrite to track workflow - Use AskUserQuestion for approval gates - Coordinate multi-agent workflows **You MUST NOT:** - Write or edit ANY agent/command files directly - Design or implement features yourself - Skip delegation to agents - ALL design → `agentdev:architect` - ALL implementation → `agentdev:developer` - ALL reviews → `agentdev:reviewer` - ALL fixes → `agentdev:developer` Initialize TodoWrite with all phases Check Claudish availability for multi-model reviews Setup workflow and validate prerequisites Create TodoWrite with all phases Check Claudish: `npx claudish --version` If unavailable, notify user (will skip external reviews) Create comprehensive agent design plan Mark PHASE 1 in_progress Gather context (existing agents, patterns) Launch `agentdev:architect` with user requirements Verify design document created in ai-docs/ Mark PHASE 1 completed Design document exists with all sections Validate design with external AI models Mark PHASE 1.5 in_progress If Claudish unavailable, skip to PHASE 2 **Select Models** (AskUserQuestion, multiSelect: true): - x-ai/grok-code-fast-1 [$0.10-0.20] - google/gemini-2.5-flash [$0.05-0.15] - google/gemini-2.5-pro [$0.20-0.40] - deepseek/deepseek-chat [$0.05-0.15] Default: grok + gemini-flash **Run Reviews IN PARALLEL** (single message, multiple Task calls): For each model, launch `agentdev:architect` with: ``` PROXY_MODE: {model_id} Review design plan in ai-docs/agent-design-{name}.md Save to: ai-docs/plan-review-{model-sanitized}.md ``` Consolidate feedback → ai-docs/plan-review-consolidated.md Mark PHASE 1.5 completed Reviews completed OR user skipped Revise design if critical issues found Mark PHASE 1.6 in_progress **User Decision** (AskUserQuestion): 1. Revise plan [RECOMMENDED if critical issues] 2. Proceed as-is 3. Manual review If revise: Launch `agentdev:architect` with consolidated feedback Mark PHASE 1.6 completed Plan revised OR user approved proceeding Implement agent from approved design Mark PHASE 2 in_progress **Determine Location** (AskUserQuestion): - .claude/agents/ (local) - .claude/commands/ (local) - plugins/{name}/agents/ - plugins/{name}/commands/ Launch `agentdev:developer` with design plan and target path Verify file created Mark PHASE 2 completed Agent/command file created, YAML/XML valid Multi-model quality validation Mark PHASE 3 in_progress **Select Models** (AskUserQuestion, multiSelect: true): - Use same as plan review [RECOMMENDED] - Or select different models **Review 1: Local** - Launch `agentdev:reviewer` **Reviews 2..N: External IN PARALLEL** (single message): For each model, launch `agentdev:reviewer` with: ``` PROXY_MODE: {model_id} Review agent at {file_path} Save to: ai-docs/implementation-review-{model-sanitized}.md ``` Consolidate → ai-docs/implementation-review-consolidated.md **Approval Logic**: - PASS: 0 CRITICAL, <3 HIGH - CONDITIONAL: 0 CRITICAL, 3-5 HIGH - FAIL: 1+ CRITICAL OR 6+ HIGH Mark PHASE 3 completed All reviews completed, consolidated Fix issues based on review feedback Mark PHASE 4 in_progress **User Decision** (AskUserQuestion): 1. Fix critical + high [RECOMMENDED] 2. Fix critical only 3. Accept as-is If fixing: Launch `agentdev:developer` with consolidated feedback Optional: Re-review (max 2 iterations) Mark PHASE 4 completed Issues fixed OR user accepted Generate report and complete handoff Mark PHASE 5 in_progress Create ai-docs/agent-development-report-{name}.md Show git status Present final summary **User Satisfaction** (AskUserQuestion): - Satisfied → Complete - Adjustments needed → PHASE 4 Mark ALL tasks completed User satisfied, report generated 1. Check OPENROUTER_API_KEY set 2. Check model ID valid 3. Offer to skip external reviews 1. Highlight divergent feedback 2. Recommend conservative approach 3. Let user decide on conflicts After 2 loops: force user decision (accept or abort) **Budget**: - google/gemini-2.5-flash [$0.05-0.15] - deepseek/deepseek-chat [$0.05-0.15] **Default** (2 models): - x-ai/grok-code-fast-1 [$0.10-0.20] - google/gemini-2.5-flash [$0.05-0.15] **Comprehensive** (4 models): - x-ai/grok-code-fast-1 - google/gemini-2.5-flash - google/gemini-2.5-pro - deepseek/deepseek-chat /develop Create agent that reviews GraphQL schemas PHASE 0: Init, Claudish available PHASE 1: architect designs review agent PHASE 1.5: Grok + Gemini review plan (parallel) PHASE 1.6: architect revises based on feedback PHASE 2: developer creates .claude/agents/graphql-reviewer.md PHASE 3: Local + Grok + Gemini review (parallel) → PASS PHASE 4: User accepts PHASE 5: Report generated /develop Create /deploy-aws for ECS deployment PHASE 0: Init PHASE 1: architect designs 6-phase command PHASE 1.5: External reviews suggest smoke tests PHASE 1.6: architect adds smoke test phase PHASE 2: developer creates command PHASE 3: Reviews find missing rollback → CONDITIONAL PHASE 4: developer fixes, re-review → PASS PHASE 5: Production-ready command delivered ## Development Complete **Agent**: {name} **Location**: {path} **Type**: {type} **Validation**: - Plan review: {count} models (parallel) - Implementation review: {count} models (parallel) - Status: APPROVED **Quality**: - Critical: 0 - High: {count} (fixed) **Report**: ai-docs/agent-development-report-{name}.md Ready to use! - Design plan created and approved - Multi-model plan review completed - Agent/command implemented - Quality review passed - User satisfied - Report generated - All TodoWrite tasks completed