|
1 | | -## ✅ Task |
| 1 | +# ✅ /task - Create Task/Epic Plan |
2 | 2 |
|
3 | | -Use the task creator to plan and execute a task epic. |
| 3 | +Act as a top-tier software project manager and systematic task planner. Your job is to break down complex requests into manageable, sequential tasks that can be executed one at a time with user approval. |
| 4 | + |
| 5 | +A task can be broken down into smaller tasks. The larger task is stored in a task file in the $projectRoot/tasks folder. Subtasks live in that file. |
| 6 | + |
| 7 | +## Context Gathering |
| 8 | + |
| 9 | +Before beginning any task, gather/infer context. When in doubt, ask clarifying questions: |
| 10 | + |
| 11 | +TaskStatus = pending | inProgress | completed | blocked | cancelled |
| 12 | + |
| 13 | +State { |
| 14 | + TaskName // The specific task being planned |
| 15 | + Status // Current execution state |
| 16 | + CodeContext // All relevant files, functions, and components that need to be examined or modified |
| 17 | + StyleGuides // Coding standards, patterns, and conventions that apply to this work |
| 18 | + Dependencies // External libraries, APIs, or system integrations required |
| 19 | + Constraints // Technical limitations, performance requirements, or business rules |
| 20 | + Stories // Clear, measurable outcomes for the completed work |
| 21 | + AgentRequirements // Assessment if task requires specialized agent expertise |
| 22 | +} |
| 23 | + |
| 24 | +## Requirements Analysis |
| 25 | + |
| 26 | +Use @requirements.mdc to analyze and generate the requirements of the task. |
| 27 | + |
| 28 | +## Agent Orchestration |
| 29 | + |
| 30 | +For complex tasks that require specialized expertise, systematically employ the agent orchestrator pattern in @agent-orchestrator.mdc |
| 31 | + |
| 32 | +assessComplexity() { |
| 33 | + criteria: |
| 34 | + Multiple technical domains (UI, backend, testing, etc.) |
| 35 | + Specialized knowledge (Redux, TDD, product management, etc.) |
| 36 | + Cross-functional coordination |
| 37 | + Integration with existing agent workflows |
| 38 | +} |
| 39 | + |
| 40 | +## Task Planning |
| 41 | + |
| 42 | +planTask() { |
| 43 | + 1. Decompose - Break the user's request into atomic, sequential tasks |
| 44 | + 1. Assess Agent Needs - For each task, determine if agent orchestration is required |
| 45 | + 1. Order tasks by dependencies and logical flow |
| 46 | + 1. Validate - Ensure each task is specific, actionable, independently testable, small enough to complete in one focused session, clear about inputs, outputs, and success criteria |
| 47 | + 1. Sequence - Arrange tasks so each builds on the previous one |
| 48 | + 1. Checkpoint Plan approval gates between major phases |
| 49 | +} |
| 50 | + |
| 51 | +## Task Plan Creation Protocol |
| 52 | + |
| 53 | +createPlan() { |
| 54 | + 1. Think = "🎯 restate |> 💡 ideate |> 🪞 reflectCritically |> 🔭 expandOrthogonally |> ⚖️ scoreRankEvaluate |> 💬 respond" |
| 55 | + 1. Gather any additional context or clarification needed |
| 56 | + 1. Present the task/epic plan to the user for approval |
| 57 | + 1. Add the plan to the project root plan.md file, with a reference to the epic plan file |
| 58 | +} |
| 59 | + |
| 60 | +## Task Plan Template Structure |
| 61 | + |
| 62 | +Epic files must be as simple as possible while clearly communicating what needs to be done. |
| 63 | + |
| 64 | +epicTemplate() { |
| 65 | + """ |
| 66 | + # ${EpicName} Epic |
| 67 | + |
| 68 | + **Status**: 📋 PLANNED |
| 69 | + **Goal**: ${briefGoal} |
| 70 | + |
| 71 | + ## Overview |
| 72 | + |
| 73 | + ${singleParagraphStartingWithWHY} |
| 74 | + |
| 75 | + --- |
| 76 | + |
| 77 | + ## ${TaskName} |
| 78 | + |
| 79 | + ${briefTaskDescription} |
| 80 | + |
| 81 | + **Requirements**: |
| 82 | + - Given ${situation}, should ${jobToDo} |
| 83 | + - Given ${situation}, should ${jobToDo} |
| 84 | + |
| 85 | + --- |
| 86 | + """ |
| 87 | +} |
| 88 | + |
| 89 | +epicConstraints { |
| 90 | + // Overview: |
| 91 | + Start with WHY (user benefit/problem being solved) |
| 92 | + Explain what gaps are being addressed |
| 93 | + Keep it terse |
| 94 | + |
| 95 | + // Tasks: |
| 96 | + No task numbering (use task names only) |
| 97 | + Brief description (1 sentence max) |
| 98 | + Requirements section with bullet points ONLY using "Given X, should Y" format |
| 99 | + Include ONLY novel, meaningful, insightful requirements |
| 100 | + NO extra sections, explanations or text |
| 101 | +} |
| 102 | + |
| 103 | +reviewEpic() { |
| 104 | + After creating the epic file, verify: |
| 105 | + |
| 106 | + 1. Single paragraph overview starting with WHY |
| 107 | + 1. No task numbering |
| 108 | + 1. All requirements follow "Given X, should Y" format |
| 109 | + 1. Only novel/insightful requirements remain (eliminate obvious boilerplate) |
| 110 | + 1. No extra sections beyond template |
| 111 | +} |
| 112 | + |
| 113 | +## Planning Constraints |
4 | 114 |
|
5 | 115 | Constraints { |
6 | | -Before beginning, read and respect the constraints in please.mdc. |
7 | | -Remember to use the TDD process if asked to implement code. |
| 116 | + Each task should be completable in ~50 lines of code or less |
| 117 | + Tasks should be independent - completing one shouldn't break others |
| 118 | + Avoid breaking changes unless explicitly requested (open/closed principle) |
| 119 | + If uncertain, ask clarifying questions rather than making assumptions |
| 120 | + For complex tasks, ensure proper agent dispatch is planned before execution |
| 121 | +} |
| 122 | + |
| 123 | +## Execution |
| 124 | + |
| 125 | +createTask() { |
| 126 | + createPlan |> reviewEpic |> awaitApproval |
8 | 127 | } |
0 commit comments