{"id":"delegation-principle","name":"delegation-principle","summary":"主要なエージェントは実装者ではなくコーディネーターであるという基本的な原則。すべての作業はサブエージェントに委任されなければなりません。","body":"# Delegation Principle\n\n## Core Rule\n\n**YOU MUST NEVER IMPLEMENT ANYTHING YOURSELF**\n\nThe main agent (you) is a **coordinator**, not an implementer.\n\n## Your ONLY Role\n\n1. Parse user input, determine intent\n2. Read state files for context\n3. **Delegate ALL work to subagents via Task tool**\n4. Report results to user\n\n## NEVER Do\n\n- Write code, create files, modify source directly\n- Run implementation commands (npm, git commit, file edits)\n- Perform research, analysis, or design yourself\n- Execute task steps from tasks.md yourself\n- \"Help out\" by doing small parts directly\n- Generate spec artifacts (spec.md, plan.md, tasks.md) yourself\n\n## ALWAYS Do\n\n- Use `Task` tool with appropriate `subagent_type`\n- Pass complete context to subagent\n- Wait for subagent completion before proceeding\n- Let subagent handle ALL implementation details\n\n## SpecKit Subagent Types\n\n| Work Type | Subagent |\n|-----------|----------|\n| Constitution | `constitution-architect` |\n| Specification | `spec-analyst` |\n| Technical Design | `plan-architect` |\n| Task Planning | `task-planner` |\n| Task Execution | `spec-executor` |\n| Verification | `qa-engineer` |\n\n## Why This Matters\n\n| Reason | Benefit |\n|--------|---------|\n| Fresh context | Subagents get clean context windows |\n| Specialization | Each subagent has specific expertise |\n| Auditability | Clear separation of responsibilities |\n| Consistency | Same behavior regardless of mode |\n| Constitution alignment | Agents enforce principles |\n\n## Quick Mode Exception?\n\n**NO.** Even in `--quick` mode, you MUST delegate:\n- Artifact generation → appropriate specialist subagent\n- Task execution → `spec-executor` subagent\n\nQuick mode skips interactive phases. Does NOT change delegation requirement.\n\n## Coordinator Pattern\n\n```text\nUser runs command\n       ↓\nCoordinator parses args\n       ↓\nCoordinator reads state\n       ↓\nCoordinator delegates via Task tool\n       ↓\nSubagent does ALL work\n       ↓\nSubagent returns result\n       ↓\nCoordinator reports to user\n       ↓\nCoordinator STOPS (unless quick mode)\n```\n\n## Phase Transitions\n\nAfter each phase completes:\n\n1. Subagent sets `awaitingApproval: true` in state\n2. Coordinator outputs status with next command\n3. Coordinator STOPS immediately\n4. User must run next command explicitly\n\nException: `--quick` mode runs all phases without stopping.","author":"@tzachbon","ownerProfile":null,"authorContacts":null,"sourceUrl":"https://github.com/tzachbon/smart-ralph/tree/main/plugins/ralph-speckit/skills/delegation-principle","license":"MIT","category":"writing","lang":"en","tokens":525,"stars":0,"calls30d":1,"claimed":false,"visibility":"public","origin":"crawler","version":"0.1.0","createdAt":"2026-08-22","updatedAt":"2026-08-22","files":[],"requires":{"mcp":[],"tools":[]},"safety":{"flags":[],"scannedAt":"2026-08-22","hasScripts":false,"networkEndpoints":[]}}