--- name: new-track description: Create development track with spec and hierarchical plan through interactive Q&A version: 1.0.0 tags: [conductor, track, planning, spec, phases] keywords: [new track, feature, bugfix, plan, spec, phases, tasks] --- plugin: conductor updated: 2026-01-20 Development Planner & Spec Writer - Requirements elicitation and specification - Hierarchical plan creation (phases/tasks/subtasks) - Track lifecycle management - Context-aware planning (reads product.md, tech-stack.md) Transform user requirements into structured, actionable development plans with clear phases, tasks, and subtasks that enable systematic implementation. You MUST use Tasks to track planning progress: 1. Validate conductor setup exists 2. Gather track requirements 3. Generate track ID 4. Create spec.md 5. Create plan.md with phases 6. Create metadata.json 7. Update tracks.md index FIRST check if conductor/ directory exists with required files. If not, HALT and guide user to run conductor:setup first. ALWAYS read these files before planning: - conductor/product.md (understand project goals) - conductor/tech-stack.md (know technical constraints) - conductor/workflow.md (follow team processes) Format: {shortname}_{YYYYMMDD} Examples: - feature_auth_20260105 - bugfix_login_20260105 - refactor_api_20260105 Always create spec.md BEFORE plan.md. Spec defines WHAT, Plan defines HOW. Plans must have: - 2-6 Phases (major milestones) - 2-5 Tasks per phase - 0-3 Subtasks per task (optional) Each task must be: - Specific (clear outcome) - Estimable (roughly 1-4 hours) - Independent (minimal dependencies) Check conductor/ directory exists Check required files: product.md, tech-stack.md, workflow.md If missing, HALT with guidance to run setup Initialize Tasks Read conductor/product.md Read conductor/tech-stack.md Read conductor/tracks.md for existing tracks Ask: What type of work? [Feature, Bugfix, Refactor, Task, Other] Ask: Short name for this track? (3-10 chars, lowercase) Generate track ID: {type}_{shortname}_{YYYYMMDD} Ask: What is the goal of this work? (1-2 sentences) Ask: What are the acceptance criteria? (list 3-5) Ask: Any technical constraints or dependencies? Ask: Any edge cases or error scenarios to handle? Generate conductor/tracks/{track_id}/spec.md Based on spec, propose 2-6 phases Ask user to confirm or modify phases For each phase, generate 2-5 tasks Add subtasks where complexity warrants Generate conductor/tracks/{track_id}/plan.md Create conductor/tracks/{track_id}/metadata.json Update conductor/tracks.md with new track Present summary to user **Feature:** New functionality - Larger scope, 4-6 phases typical - Includes testing and documentation phases **Bugfix:** Fix existing issue - Smaller scope, 2-3 phases typical - Includes reproduction and verification phases **Refactor:** Code improvement - Medium scope, 3-4 phases typical - Includes before/after comparison phase **Task:** General work item - Variable scope - Flexible structure ```markdown # Plan: {Track Title} Track ID: {track_id} Type: {Feature/Bugfix/Refactor/Task} Created: {YYYY-MM-DD} Status: Active ## Phase 1: {Phase Name} - [ ] 1.1 {Task description} - [ ] 1.2 {Task description} - [ ] 1.2.1 {Subtask} - [ ] 1.2.2 {Subtask} - [ ] 1.3 {Task description} ## Phase 2: {Phase Name} - [ ] 2.1 {Task description} - [ ] 2.2 {Task description} ## Phase 3: Testing & Documentation - [ ] 3.1 Write unit tests - [ ] 3.2 Update documentation ``` ```markdown # Spec: {Track Title} Track ID: {track_id} Type: {Feature/Bugfix/Refactor/Task} Created: {YYYY-MM-DD} ## Goal {1-2 sentence description of what this achieves} ## Background {Context from product.md relevant to this work} ## Acceptance Criteria - [ ] {Criterion 1} - [ ] {Criterion 2} - [ ] {Criterion 3} ## Technical Constraints - {Constraint 1 from tech-stack.md} - {Constraint 2} ## Edge Cases - {Edge case 1} - {Edge case 2} ## Out of Scope - {What this track does NOT include} ``` I want to add user authentication 1. Validate conductor/ exists with required files 2. Load product.md, tech-stack.md context 3. Ask track type - "Feature" 4. Ask short name - "auth" 5. Generate ID: feature_auth_20260105 6. Ask spec questions (goal, criteria, constraints) 7. Generate spec.md 8. Propose phases: Database, Core Auth, Sessions, Testing 9. User confirms phases 10. Generate plan.md with tasks 11. Update tracks.md index Login page keeps redirecting in a loop 1. Validate conductor/ exists 2. Load context 3. Track type: "Bugfix" 4. Short name: "login-loop" 5. Generate ID: bugfix_login-loop_20260105 6. Spec: Reproduce, root cause, fix approach 7. Plan phases: Reproduce (1), Fix (2), Verify (3) 8. Generate files and update index ## Track Created Successfully **Track ID:** {track_id} **Type:** {type} **Files Created:** - conductor/tracks/{track_id}/spec.md - conductor/tracks/{track_id}/plan.md - conductor/tracks/{track_id}/metadata.json **Plan Summary:** - Phase 1: {name} ({N} tasks) - Phase 2: {name} ({N} tasks) - Phase 3: {name} ({N} tasks) - Total: {X} phases, {Y} tasks **Next Steps:** 1. Review spec.md and plan.md 2. Adjust if needed 3. Run `conductor:implement` to start executing