From conductor
Thorough planning for complex features using Task-based orchestration. Turn discussions into executable, self-contained implementation plans. USE for multi-file features, architectural changes, unfamiliar tech requiring research. SKIP for quick fixes or single-file changes.
npx claudepluginhub bengous/claude-code-plugins --plugin conductorThis skill uses the workspace's default tool permissions.
**You are an ORCHESTRATOR, not an implementer.**
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Guides building MCP servers enabling LLMs to interact with external services via tools. Covers best practices, TypeScript/Node (MCP SDK), Python (FastMCP).
Generates original PNG/PDF visual art via design philosophy manifestos for posters, graphics, and static designs on user request.
Share bugs, ideas, or general feedback.
You are an ORCHESTRATOR, not an implementer.
Before doing ANYTHING else, you MUST:
mkdir -p .t-plan/<session-id>You MUST NOT:
If you find yourself exploring the codebase before writing intent.md, STOP. You have violated the workflow.
The user invoked /t-plan because they want the FULL orchestrated workflow with artifacts, not ad-hoc help. Follow the steps below EXACTLY.
Transform conversations into rock-solid implementation plans using Claude Code's native Task tools for coordination.
No hooks required - Task tools handle all coordination natively.
Orchestrator responsibilities:
- Session initialization (mkdir, .gitignore, current.txt pointer)
- Task lifecycle (TaskCreate, TaskUpdate)
- Pre-truncation before subagent dispatch
- Output verification after subagent return
- Retry logic (max 2 attempts)
Subagent responsibilities:
- Read context files (intent.md, explore.md, etc.)
- Write output files directly (explore.md, scout.md, validation-vNNN.json)
- Focus on their assigned task
Reference material (load when needed):
references/subagent-patterns.mdreferences/planning-principles.mdreferences/plan-template.mdINTENT -> EXPLORE -> [gate] -> SCOUT -> DRAFT -> VALIDATE -> PLAN
| | | | | |
orch. subagent subagent orch. subagent orch.+user
| Step | Actor | Output |
|---|---|---|
| INTENT | Orchestrator | Clear intent (gate: can direct EXPLORE?) |
| EXPLORE | Subagent | Codebase insights (gate: trivial -> skip?) |
| SCOUT | Subagent (optional) | Alternatives only (no docs) |
| DRAFT | Orchestrator | Initial approach (reads files, synthesizes) |
| VALIDATE | Subagent (required checkpoint) | Doc validation + snippets |
| PLAN | Orchestrator + User | Final plan, iterate until approved |
Principles:
.t-plan/
+-- current.txt # Text pointer: "auth-oauth-20260124-150230"
+-- .gitignore # Ignore all session dirs
+-- auth-oauth-20260124-150230/ # Session directory
+-- intent.md # Orchestrator writes (Step 1)
+-- explore.md # EXPLORE subagent writes
+-- scout.md # SCOUT subagent writes (optional)
+-- draft-v001.md # Orchestrator writes (Step 4)
+-- validation-v001.json # VALIDATE subagent writes
+-- plan.md # Final output (Step 6)
Session ID format: <slug>-<YYYYMMDD-HHMMSS>
Goal: Capture user intent and initialize session.
SESSION_ID="<slug>-<YYYYMMDD-HHMMSS>"
Bash: mkdir -p .t-plan/${SESSION_ID}
Write: .t-plan/.gitignore -> "*\n!.gitignore\n"
Write: .t-plan/current.txt -> "${SESSION_ID}"
TaskCreate(subject: "T-Plan: [goal]", metadata: {"session_id": "${SESSION_ID}"})
TaskGet + TaskUpdate(status: "in_progress")
.t-plan/${SESSION_ID}/intent.md"Can I write a focused prompt for the EXPLORE subagent?"
Goal: Understand the codebase relevant to the user's intent.
# Pre-truncate output
Write: .t-plan/${SESSION_ID}/explore.md -> ""
# Create tracking task
TaskCreate(subject: "EXPLORE: [area]", metadata: {"output_file": "explore.md"})
# Dispatch
Task(subagent_type: "Explore", allowed_tools: ["Read", "Grep", "Glob", "Write"], prompt: """
**Context**: Read .t-plan/${SESSION_ID}/intent.md
**Task**: Explore codebase to understand:
1. Tech stack, frameworks, patterns
2. Existing code related to [area]
3. Project structure and conventions
4. Relevant installed dependencies
**Output**: Write to .t-plan/${SESSION_ID}/explore.md
- Start with summary referencing intent.md (proof-of-read)
- Include key files with line references
- Describe architecture connections
""")
# Verify: exists + non-empty + references intent.md
# Retry up to 2 attempts (see references/subagent-patterns.md)
"Is this task trivially simple?" (single file, pattern exists, no deps, no architecture)
If trivially simple: Ask user: "Continue T-Plan" / "Normal plan mode" / "Skip to DRAFT"
If not trivially simple: Continue to SCOUT or DRAFT.
Goal: Find alternatives that might be simpler than the obvious approach.
# Pre-truncate + create task
Write: .t-plan/${SESSION_ID}/scout.md -> ""
TaskCreate(subject: "SCOUT: alternatives")
# Dispatch
Task(subagent_type: "general-purpose", allowed_tools: ["Read", "Grep", "Glob", "Write"], prompt: """
**Context**: Read intent.md and explore.md
**Task**: Search for alternatives MEANINGFULLY simpler:
- Fewer dependencies
- Less code to maintain
- Better fits existing patterns
DO NOT query documentation (that's VALIDATE's job).
**Output**: Write to .t-plan/${SESSION_ID}/scout.md
Often correct output is: "No simpler alternatives found."
""")
# Verify: exists + non-empty + references explore.md
Goal: Synthesize all context and draft an initial approach.
.t-plan/${SESSION_ID}/draft-v001.md## Approach
**Goal**: [1-2 sentences]
**Key decisions**:
- [Decision 1]: [Choice] because [rationale]. Rejected: [alternatives]
**Files to modify/create**:
- `path/to/file.ts` - [what changes]
**Approach outline**:
1. [High-level step 1]
2. [High-level step 2]
Update master task: TaskUpdate(metadata: {"draft_version": 1})
Goal: Check the draft approach against official documentation.
Note: VALIDATE is required before PLAN. If skipping (internal refactor, no external APIs), record explicit rationale in the plan.
# Pre-truncate
Write: .t-plan/${SESSION_ID}/validation-v001.json -> ""
TaskCreate(subject: "VALIDATE: draft v1")
# Dispatch
Task(subagent_type: "general-purpose",
allowed_tools: ["Read", "Grep", "Glob", "Write", "WebSearch", "WebFetch"],
prompt: """
**Context**: Read intent.md, explore.md, scout.md (if exists), draft-v001.md
**Task**: Validate draft against official documentation.
- Using RECOMMENDED patterns?
- Any DEPRECATED APIs or anti-patterns?
- What are the GOTCHAS?
- Provide WORKING setup snippets
**Output**: Write to .t-plan/${SESSION_ID}/validation-v001.json
{
"draft_version": 1,
"status": "VALID" | "NEEDS_CHANGES",
"confirmations": [...],
"corrections": [...],
"snippets": [...],
"gotchas": [...],
"doc_links": [...]
}
""")
# Verify: valid JSON + draft_version matches + status exists
If status: "NEEDS_CHANGES":
draft-v002.md{"draft_version": 2}status: "VALID"Goal: Present final plan for user approval.
EnterPlanMode().t-plan/${SESSION_ID}/plan.md following references/plan-template.mdEnterPlanMode()
Read all context files
Write plan following template
TaskUpdate(status: "completed")
Present next steps via AskUserQuestion:
| Step | Actor | Task Subject | Output |
|---|---|---|---|
| INTENT | Orchestrator | "T-Plan: [goal]" | intent.md |
| EXPLORE | Subagent | "EXPLORE: [area]" | explore.md |
| SCOUT | Subagent | "SCOUT: alternatives" | scout.md |
| DRAFT | Orchestrator | (metadata update) | draft-vNNN.md |
| VALIDATE | Subagent | "VALIDATE: v{N}" | validation-vNNN.json |
| PLAN | Orch + User | (task complete) | plan.md |
For retry logic and parallel execution patterns, see references/subagent-patterns.md.
For planning quality principles and anti-patterns, see references/planning-principles.md.
If session is interrupted and task list is unavailable:
# Find latest session
Read: .t-plan/current.txt -> auth-oauth-20260124-150230
# Check what artifacts exist
Glob: .t-plan/auth-oauth-20260124-150230/*
# Resume from last completed phase:
# - Has intent.md only -> resume at EXPLORE
# - Has explore.md -> resume at complexity gate
# - Has draft-vNNN.md -> resume at VALIDATE
# - Has validation-vNNN.json with VALID -> resume at PLAN