@e0ipso/ai-task-manager 1.2.1 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +74 -9
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +23 -15
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +5 -3
- package/dist/utils.js.map +1 -1
- package/package.json +1 -1
- package/templates/ai-task-manager/{TASK_MANAGER_INFO.md → config/TASK_MANAGER.md} +1 -1
- package/templates/ai-task-manager/config/hooks/POST_TASK_GENERATION_ALL.md +96 -0
- package/templates/ai-task-manager/config/scripts/check-task-dependencies.sh +185 -0
- package/templates/ai-task-manager/config/templates/PLAN_TEMPLATE.md +93 -0
- package/templates/ai-task-manager/config/templates/TASK_TEMPLATE.md +36 -0
- package/templates/{commands → assistant/commands}/tasks/create-plan.md +3 -97
- package/templates/{commands → assistant/commands}/tasks/execute-blueprint.md +17 -7
- package/templates/assistant/commands/tasks/execute-task.md +319 -0
- package/templates/{commands → assistant/commands}/tasks/generate-tasks.md +54 -35
- /package/templates/ai-task-manager/{VALIDATION_GATES.md → config/hooks/POST_PHASE.md} +0 -0
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
|
|
3
|
+
# Script: check-task-dependencies.sh
|
|
4
|
+
# Purpose: Check if a task has all of its dependencies resolved (completed)
|
|
5
|
+
# Usage: ./check-task-dependencies.sh <plan-id> <task-id>
|
|
6
|
+
# Returns: 0 if all dependencies are resolved, 1 if not
|
|
7
|
+
|
|
8
|
+
set -e
|
|
9
|
+
|
|
10
|
+
# Color codes for output
|
|
11
|
+
RED='\033[0;31m'
|
|
12
|
+
GREEN='\033[0;32m'
|
|
13
|
+
YELLOW='\033[1;33m'
|
|
14
|
+
NC='\033[0m' # No Color
|
|
15
|
+
|
|
16
|
+
# Function to print colored output
|
|
17
|
+
print_error() {
|
|
18
|
+
echo -e "${RED}ERROR: $1${NC}" >&2
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
print_success() {
|
|
22
|
+
echo -e "${GREEN}✓ $1${NC}"
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
print_warning() {
|
|
26
|
+
echo -e "${YELLOW}⚠ $1${NC}"
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
print_info() {
|
|
30
|
+
echo -e "$1"
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
# Check arguments
|
|
34
|
+
if [ $# -ne 2 ]; then
|
|
35
|
+
print_error "Invalid number of arguments"
|
|
36
|
+
echo "Usage: $0 <plan-id> <task-id>"
|
|
37
|
+
echo "Example: $0 16 03"
|
|
38
|
+
exit 1
|
|
39
|
+
fi
|
|
40
|
+
|
|
41
|
+
PLAN_ID="$1"
|
|
42
|
+
TASK_ID="$2"
|
|
43
|
+
|
|
44
|
+
# Find the plan directory
|
|
45
|
+
PLAN_DIR=$(find .ai/task-manager/{plans,archive} -type d -name "${PLAN_ID}--*" 2>/dev/null | head -1)
|
|
46
|
+
|
|
47
|
+
if [ -z "$PLAN_DIR" ]; then
|
|
48
|
+
print_error "Plan with ID ${PLAN_ID} not found"
|
|
49
|
+
exit 1
|
|
50
|
+
fi
|
|
51
|
+
|
|
52
|
+
print_info "Found plan directory: ${PLAN_DIR}"
|
|
53
|
+
|
|
54
|
+
# Construct task file path
|
|
55
|
+
# Handle both padded (01, 02) and unpadded (1, 2) task IDs
|
|
56
|
+
TASK_FILE=""
|
|
57
|
+
if [ -f "${PLAN_DIR}/tasks/${TASK_ID}--"*.md ]; then
|
|
58
|
+
TASK_FILE=$(ls "${PLAN_DIR}/tasks/${TASK_ID}--"*.md 2>/dev/null | head -1)
|
|
59
|
+
elif [ -f "${PLAN_DIR}/tasks/0${TASK_ID}--"*.md ]; then
|
|
60
|
+
# Try with zero-padding if direct match fails
|
|
61
|
+
TASK_FILE=$(ls "${PLAN_DIR}/tasks/0${TASK_ID}--"*.md 2>/dev/null | head -1)
|
|
62
|
+
fi
|
|
63
|
+
|
|
64
|
+
if [ -z "$TASK_FILE" ] || [ ! -f "$TASK_FILE" ]; then
|
|
65
|
+
print_error "Task with ID ${TASK_ID} not found in plan ${PLAN_ID}"
|
|
66
|
+
exit 1
|
|
67
|
+
fi
|
|
68
|
+
|
|
69
|
+
print_info "Checking task: $(basename "$TASK_FILE")"
|
|
70
|
+
echo ""
|
|
71
|
+
|
|
72
|
+
# Extract dependencies from task frontmatter
|
|
73
|
+
# Using awk to parse YAML frontmatter
|
|
74
|
+
DEPENDENCIES=$(awk '
|
|
75
|
+
/^---$/ { if (++delim == 2) exit }
|
|
76
|
+
/^dependencies:/ {
|
|
77
|
+
dep_section = 1
|
|
78
|
+
# Check if dependencies are on the same line
|
|
79
|
+
if (match($0, /\[.*\]/)) {
|
|
80
|
+
gsub(/^dependencies:[ \t]*\[/, "")
|
|
81
|
+
gsub(/\].*$/, "")
|
|
82
|
+
gsub(/[ \t]/, "")
|
|
83
|
+
print
|
|
84
|
+
dep_section = 0
|
|
85
|
+
}
|
|
86
|
+
next
|
|
87
|
+
}
|
|
88
|
+
dep_section && /^[^ ]/ { dep_section = 0 }
|
|
89
|
+
dep_section && /^[ \t]*-/ {
|
|
90
|
+
gsub(/^[ \t]*-[ \t]*/, "")
|
|
91
|
+
gsub(/[ \t]*$/, "")
|
|
92
|
+
print
|
|
93
|
+
}
|
|
94
|
+
' "$TASK_FILE" | tr ',' '\n' | sed 's/^[ \t]*//;s/[ \t]*$//' | grep -v '^$')
|
|
95
|
+
|
|
96
|
+
# Check if there are any dependencies
|
|
97
|
+
if [ -z "$DEPENDENCIES" ]; then
|
|
98
|
+
print_success "Task has no dependencies - ready to execute!"
|
|
99
|
+
exit 0
|
|
100
|
+
fi
|
|
101
|
+
|
|
102
|
+
# Display dependencies
|
|
103
|
+
print_info "Task dependencies found:"
|
|
104
|
+
echo "$DEPENDENCIES" | while read -r dep; do
|
|
105
|
+
echo " - Task ${dep}"
|
|
106
|
+
done
|
|
107
|
+
echo ""
|
|
108
|
+
|
|
109
|
+
# Check each dependency
|
|
110
|
+
ALL_RESOLVED=true
|
|
111
|
+
UNRESOLVED_DEPS=""
|
|
112
|
+
RESOLVED_COUNT=0
|
|
113
|
+
TOTAL_DEPS=$(echo "$DEPENDENCIES" | wc -l)
|
|
114
|
+
|
|
115
|
+
print_info "Checking dependency status..."
|
|
116
|
+
echo ""
|
|
117
|
+
|
|
118
|
+
for DEP_ID in $DEPENDENCIES; do
|
|
119
|
+
# Find dependency task file
|
|
120
|
+
DEP_FILE=""
|
|
121
|
+
|
|
122
|
+
# Try exact match first
|
|
123
|
+
if [ -f "${PLAN_DIR}/tasks/${DEP_ID}--"*.md ]; then
|
|
124
|
+
DEP_FILE=$(ls "${PLAN_DIR}/tasks/${DEP_ID}--"*.md 2>/dev/null | head -1)
|
|
125
|
+
elif [ -f "${PLAN_DIR}/tasks/0${DEP_ID}--"*.md ]; then
|
|
126
|
+
# Try with zero-padding
|
|
127
|
+
DEP_FILE=$(ls "${PLAN_DIR}/tasks/0${DEP_ID}--"*.md 2>/dev/null | head -1)
|
|
128
|
+
else
|
|
129
|
+
# Try removing potential zero-padding from DEP_ID
|
|
130
|
+
UNPADDED_DEP=$(echo "$DEP_ID" | sed 's/^0*//')
|
|
131
|
+
if [ -f "${PLAN_DIR}/tasks/${UNPADDED_DEP}--"*.md ]; then
|
|
132
|
+
DEP_FILE=$(ls "${PLAN_DIR}/tasks/${UNPADDED_DEP}--"*.md 2>/dev/null | head -1)
|
|
133
|
+
elif [ -f "${PLAN_DIR}/tasks/0${UNPADDED_DEP}--"*.md ]; then
|
|
134
|
+
DEP_FILE=$(ls "${PLAN_DIR}/tasks/0${UNPADDED_DEP}--"*.md 2>/dev/null | head -1)
|
|
135
|
+
fi
|
|
136
|
+
fi
|
|
137
|
+
|
|
138
|
+
if [ -z "$DEP_FILE" ] || [ ! -f "$DEP_FILE" ]; then
|
|
139
|
+
print_error "Dependency task ${DEP_ID} not found"
|
|
140
|
+
ALL_RESOLVED=false
|
|
141
|
+
UNRESOLVED_DEPS="${UNRESOLVED_DEPS}${DEP_ID} (not found)\n"
|
|
142
|
+
continue
|
|
143
|
+
fi
|
|
144
|
+
|
|
145
|
+
# Extract status from dependency task
|
|
146
|
+
STATUS=$(awk '
|
|
147
|
+
/^---$/ { if (++delim == 2) exit }
|
|
148
|
+
/^status:/ {
|
|
149
|
+
gsub(/^status:[ \t]*/, "")
|
|
150
|
+
gsub(/^["'\'']/, "")
|
|
151
|
+
gsub(/["'\'']$/, "")
|
|
152
|
+
print
|
|
153
|
+
exit
|
|
154
|
+
}
|
|
155
|
+
' "$DEP_FILE")
|
|
156
|
+
|
|
157
|
+
# Check if status is completed
|
|
158
|
+
if [ "$STATUS" = "completed" ]; then
|
|
159
|
+
print_success "Task ${DEP_ID} - Status: completed ✓"
|
|
160
|
+
((RESOLVED_COUNT++))
|
|
161
|
+
else
|
|
162
|
+
print_warning "Task ${DEP_ID} - Status: ${STATUS:-unknown} ✗"
|
|
163
|
+
ALL_RESOLVED=false
|
|
164
|
+
UNRESOLVED_DEPS="${UNRESOLVED_DEPS}${DEP_ID} (${STATUS:-unknown})\n"
|
|
165
|
+
fi
|
|
166
|
+
done
|
|
167
|
+
|
|
168
|
+
echo ""
|
|
169
|
+
print_info "========================================="
|
|
170
|
+
print_info "Dependency Check Summary"
|
|
171
|
+
print_info "========================================="
|
|
172
|
+
print_info "Total dependencies: ${TOTAL_DEPS}"
|
|
173
|
+
print_info "Resolved: ${RESOLVED_COUNT}"
|
|
174
|
+
print_info "Unresolved: $((TOTAL_DEPS - RESOLVED_COUNT))"
|
|
175
|
+
echo ""
|
|
176
|
+
|
|
177
|
+
if [ "$ALL_RESOLVED" = true ]; then
|
|
178
|
+
print_success "All dependencies are resolved! Task ${TASK_ID} is ready to execute."
|
|
179
|
+
exit 0
|
|
180
|
+
else
|
|
181
|
+
print_error "Task ${TASK_ID} has unresolved dependencies:"
|
|
182
|
+
echo -e "$UNRESOLVED_DEPS"
|
|
183
|
+
print_info "Please complete the dependencies before executing this task."
|
|
184
|
+
exit 1
|
|
185
|
+
fi
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: [PLAN-ID]
|
|
3
|
+
summary: "[Brief one-line description of what this plan accomplishes]"
|
|
4
|
+
created: [YYYY-MM-DD]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Plan: [Descriptive Plan Title]
|
|
8
|
+
|
|
9
|
+
## Original Work Order
|
|
10
|
+
[The unmodified user input that was used to generate this plan, as a quote]
|
|
11
|
+
|
|
12
|
+
## Plan Clarifications [only add it if clarifications were necessary]
|
|
13
|
+
[Clarification questions and answers in table format]
|
|
14
|
+
|
|
15
|
+
## Executive Summary
|
|
16
|
+
|
|
17
|
+
[Provide a 2-3 paragraph overview of the plan. Include:
|
|
18
|
+
- What the plan accomplishes
|
|
19
|
+
- Why this approach was chosen
|
|
20
|
+
- Key benefits and outcomes expected]
|
|
21
|
+
|
|
22
|
+
## Context
|
|
23
|
+
|
|
24
|
+
### Current State
|
|
25
|
+
[Describe the existing situation, problems, or gaps that this plan addresses. Include specific details about what exists now, current limitations, and why change is needed.]
|
|
26
|
+
|
|
27
|
+
### Target State
|
|
28
|
+
[Describe the desired end state after plan completion. Be specific about the expected outcomes and how success will be measured.]
|
|
29
|
+
|
|
30
|
+
### Background
|
|
31
|
+
[Any additional context, requirements, constraints, any solutions that we tried that didn't work, or relevant history that informs the implementation approach.]
|
|
32
|
+
|
|
33
|
+
## Technical Implementation Approach
|
|
34
|
+
|
|
35
|
+
[Provide an overview of the implementation strategy, key architectural decisions, and technical approach. Break down into major components or phases using ### subheadings.]
|
|
36
|
+
|
|
37
|
+
### [Component/Phase 1 Name]
|
|
38
|
+
**Objective**: [What this component accomplishes and why it's important]
|
|
39
|
+
|
|
40
|
+
[Detailed explanation of implementation approach, key technical decisions, specifications, and rationale for design choices.]
|
|
41
|
+
|
|
42
|
+
### [Component/Phase 2 Name]
|
|
43
|
+
**Objective**: [What this component accomplishes and why it's important]
|
|
44
|
+
|
|
45
|
+
[Detailed explanation of implementation approach, key technical decisions, specifications, and rationale for design choices.]
|
|
46
|
+
|
|
47
|
+
### [Additional Components as Needed]
|
|
48
|
+
[Continue with additional technical components or phases following the same pattern]
|
|
49
|
+
|
|
50
|
+
## Risk Considerations and Mitigation Strategies
|
|
51
|
+
|
|
52
|
+
### Technical Risks
|
|
53
|
+
- **[Specific Technical Risk]**: [Description of the technical challenge or limitation]
|
|
54
|
+
- **Mitigation**: [Specific strategy to address this technical risk]
|
|
55
|
+
|
|
56
|
+
### Implementation Risks
|
|
57
|
+
- **[Specific Implementation Risk]**: [Description of implementation-related challenge]
|
|
58
|
+
- **Mitigation**: [Specific strategy to address this implementation risk]
|
|
59
|
+
|
|
60
|
+
### [Additional Risk Categories as Needed]
|
|
61
|
+
[Continue with other risk categories such as Integration Risks, Quality Risks, Resource Risks, etc.]
|
|
62
|
+
|
|
63
|
+
## Success Criteria
|
|
64
|
+
|
|
65
|
+
### Primary Success Criteria
|
|
66
|
+
1. [Measurable outcome 1]
|
|
67
|
+
2. [Measurable outcome 2]
|
|
68
|
+
3. [Measurable outcome 3]
|
|
69
|
+
|
|
70
|
+
### Quality Assurance Metrics
|
|
71
|
+
1. [Quality measure 1]
|
|
72
|
+
2. [Quality measure 2]
|
|
73
|
+
3. [Quality measure 3]
|
|
74
|
+
|
|
75
|
+
## Resource Requirements
|
|
76
|
+
|
|
77
|
+
### Development Skills
|
|
78
|
+
[Required technical expertise and specialized knowledge areas needed for successful implementation]
|
|
79
|
+
|
|
80
|
+
### Technical Infrastructure
|
|
81
|
+
[Tools, libraries, frameworks, and systems needed for development and deployment]
|
|
82
|
+
|
|
83
|
+
### [Additional Resource Categories as Needed]
|
|
84
|
+
[Other resources such as external dependencies, research access, third-party services, etc.]
|
|
85
|
+
|
|
86
|
+
## Integration Strategy
|
|
87
|
+
[Optional section - how this work integrates with existing systems]
|
|
88
|
+
|
|
89
|
+
## Implementation Order
|
|
90
|
+
[Optional section - high-level sequence without detailed phases]
|
|
91
|
+
|
|
92
|
+
## Notes
|
|
93
|
+
[Optional section - any additional considerations, constraints, or important context]
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: [TASK-ID]
|
|
3
|
+
group: "user-authentication"
|
|
4
|
+
dependencies: [] # List of task IDs, e.g., [2, 3]
|
|
5
|
+
status: "[STATUS]" # pending | in-progress | completed | needs-clarification
|
|
6
|
+
created: [YYYY-MM-DD]
|
|
7
|
+
skills: # Technical skills required for this task
|
|
8
|
+
- [SKILL-1]
|
|
9
|
+
- [SKILL-2]
|
|
10
|
+
---
|
|
11
|
+
# [TASK-TITLE]
|
|
12
|
+
|
|
13
|
+
## Objective
|
|
14
|
+
[Clear statement of what this task accomplishes]
|
|
15
|
+
|
|
16
|
+
## Skills Required
|
|
17
|
+
[Reference to the skills listed in frontmatter - these should align with the technical work needed]
|
|
18
|
+
|
|
19
|
+
## Acceptance Criteria
|
|
20
|
+
- [ ] Criterion 1
|
|
21
|
+
- [ ] Criterion 2
|
|
22
|
+
- [ ] Criterion 3
|
|
23
|
+
|
|
24
|
+
Use your internal TODO tool to track these and keep on track.
|
|
25
|
+
|
|
26
|
+
## Technical Requirements
|
|
27
|
+
[Specific technical details, APIs, libraries, etc. - use this to infer appropriate skills]
|
|
28
|
+
|
|
29
|
+
## Input Dependencies
|
|
30
|
+
[What artifacts/code from other tasks are needed]
|
|
31
|
+
|
|
32
|
+
## Output Artifacts
|
|
33
|
+
[What this task produces for other tasks to consume]
|
|
34
|
+
|
|
35
|
+
## Implementation Notes
|
|
36
|
+
[Any helpful context or suggestions, including skill-specific guidance]
|
|
@@ -6,7 +6,7 @@ description: Create a comprehensive plan to accomplish the request from the user
|
|
|
6
6
|
|
|
7
7
|
You are a comprehensive task planning assistant. Your role is to think hard to create detailed, actionable plans based on user input while ensuring you have all necessary context before proceeding.
|
|
8
8
|
|
|
9
|
-
Include @.ai/task-manager/
|
|
9
|
+
Include @.ai/task-manager/config/TASK_MANAGER.md for the directory structure of tasks.
|
|
10
10
|
|
|
11
11
|
## Instructions
|
|
12
12
|
|
|
@@ -94,107 +94,13 @@ Remember that a plan needs to be reviewed by a human. Be concise and to the poin
|
|
|
94
94
|
### Output Format
|
|
95
95
|
Structure your response as follows:
|
|
96
96
|
- If context is insufficient: List specific clarifying questions
|
|
97
|
-
- If context is sufficient: Provide the comprehensive plan using the structure above. Use the information in @
|
|
97
|
+
- If context is sufficient: Provide the comprehensive plan using the structure above. Use the information in @TASK_MANAGER.md for the directory structure and additional information about plans.
|
|
98
98
|
|
|
99
99
|
Outside the plan document, be **extremely** concise. Just tell the user that you are done, and instruct them to review the plan document.
|
|
100
100
|
|
|
101
101
|
#### Plan Template
|
|
102
102
|
|
|
103
|
-
|
|
104
|
-
---
|
|
105
|
-
id: [PLAN-ID]
|
|
106
|
-
summary: "[Brief one-line description of what this plan accomplishes]"
|
|
107
|
-
created: [YYYY-MM-DD]
|
|
108
|
-
---
|
|
109
|
-
|
|
110
|
-
# Plan: [Descriptive Plan Title]
|
|
111
|
-
|
|
112
|
-
## Original Work Order
|
|
113
|
-
[The unmodified user input that was used to generate this plan, as a quote]
|
|
114
|
-
|
|
115
|
-
## Plan Clarifications [only add it if clarifications were necessary]
|
|
116
|
-
[Clarification questions and answers in table format]
|
|
117
|
-
|
|
118
|
-
## Executive Summary
|
|
119
|
-
|
|
120
|
-
[Provide a 2-3 paragraph overview of the plan. Include:
|
|
121
|
-
- What the plan accomplishes
|
|
122
|
-
- Why this approach was chosen
|
|
123
|
-
- Key benefits and outcomes expected]
|
|
124
|
-
|
|
125
|
-
## Context
|
|
126
|
-
|
|
127
|
-
### Current State
|
|
128
|
-
[Describe the existing situation, problems, or gaps that this plan addresses. Include specific details about what exists now, current limitations, and why change is needed.]
|
|
129
|
-
|
|
130
|
-
### Target State
|
|
131
|
-
[Describe the desired end state after plan completion. Be specific about the expected outcomes and how success will be measured.]
|
|
132
|
-
|
|
133
|
-
### Background
|
|
134
|
-
[Any additional context, requirements, constraints, any solutions that we tried that didn't work, or relevant history that informs the implementation approach.]
|
|
135
|
-
|
|
136
|
-
## Technical Implementation Approach
|
|
137
|
-
|
|
138
|
-
[Provide an overview of the implementation strategy, key architectural decisions, and technical approach. Break down into major components or phases using ### subheadings.]
|
|
139
|
-
|
|
140
|
-
### [Component/Phase 1 Name]
|
|
141
|
-
**Objective**: [What this component accomplishes and why it's important]
|
|
142
|
-
|
|
143
|
-
[Detailed explanation of implementation approach, key technical decisions, specifications, and rationale for design choices.]
|
|
144
|
-
|
|
145
|
-
### [Component/Phase 2 Name]
|
|
146
|
-
**Objective**: [What this component accomplishes and why it's important]
|
|
147
|
-
|
|
148
|
-
[Detailed explanation of implementation approach, key technical decisions, specifications, and rationale for design choices.]
|
|
149
|
-
|
|
150
|
-
### [Additional Components as Needed]
|
|
151
|
-
[Continue with additional technical components or phases following the same pattern]
|
|
152
|
-
|
|
153
|
-
## Risk Considerations and Mitigation Strategies
|
|
154
|
-
|
|
155
|
-
### Technical Risks
|
|
156
|
-
- **[Specific Technical Risk]**: [Description of the technical challenge or limitation]
|
|
157
|
-
- **Mitigation**: [Specific strategy to address this technical risk]
|
|
158
|
-
|
|
159
|
-
### Implementation Risks
|
|
160
|
-
- **[Specific Implementation Risk]**: [Description of implementation-related challenge]
|
|
161
|
-
- **Mitigation**: [Specific strategy to address this implementation risk]
|
|
162
|
-
|
|
163
|
-
### [Additional Risk Categories as Needed]
|
|
164
|
-
[Continue with other risk categories such as Integration Risks, Quality Risks, Resource Risks, etc.]
|
|
165
|
-
|
|
166
|
-
## Success Criteria
|
|
167
|
-
|
|
168
|
-
### Primary Success Criteria
|
|
169
|
-
1. [Measurable outcome 1]
|
|
170
|
-
2. [Measurable outcome 2]
|
|
171
|
-
3. [Measurable outcome 3]
|
|
172
|
-
|
|
173
|
-
### Quality Assurance Metrics
|
|
174
|
-
1. [Quality measure 1]
|
|
175
|
-
2. [Quality measure 2]
|
|
176
|
-
3. [Quality measure 3]
|
|
177
|
-
|
|
178
|
-
## Resource Requirements
|
|
179
|
-
|
|
180
|
-
### Development Skills
|
|
181
|
-
[Required technical expertise and specialized knowledge areas needed for successful implementation]
|
|
182
|
-
|
|
183
|
-
### Technical Infrastructure
|
|
184
|
-
[Tools, libraries, frameworks, and systems needed for development and deployment]
|
|
185
|
-
|
|
186
|
-
### [Additional Resource Categories as Needed]
|
|
187
|
-
[Other resources such as external dependencies, research access, third-party services, etc.]
|
|
188
|
-
|
|
189
|
-
## Integration Strategy
|
|
190
|
-
[Optional section - how this work integrates with existing systems]
|
|
191
|
-
|
|
192
|
-
## Implementation Order
|
|
193
|
-
[Optional section - high-level sequence without detailed phases]
|
|
194
|
-
|
|
195
|
-
## Notes
|
|
196
|
-
[Optional section - any additional considerations, constraints, or important context]
|
|
197
|
-
```
|
|
103
|
+
Use the template in @.ai/task-manager/config/templates/PLAN_TEMPLATE.md
|
|
198
104
|
|
|
199
105
|
#### Patterns to Avoid
|
|
200
106
|
Do not include the following in your plan output.
|
|
@@ -15,9 +15,9 @@ You are the orchestrator responsible for executing all tasks defined in the exec
|
|
|
15
15
|
5. **Fail safely** - Better to halt and request help than corrupt the execution state
|
|
16
16
|
|
|
17
17
|
## Input Requirements
|
|
18
|
-
- A plan document with an execution blueprint section. See @.ai/task-manager/
|
|
18
|
+
- A plan document with an execution blueprint section. See @.ai/task-manager/TASK_MANAGER.md fo find the plan with ID $1
|
|
19
19
|
- Task files with frontmatter metadata (id, group, dependencies, status)
|
|
20
|
-
- Validation gates document: `@.ai/task-manager/
|
|
20
|
+
- Validation gates document: `@.ai/task-manager/config/hooks/POST_PHASE.md`
|
|
21
21
|
|
|
22
22
|
### Input Error Handling
|
|
23
23
|
If the plan does not exist, or the plan does not have an execution blueprint section. Stop immediately and show an error to the user.
|
|
@@ -26,14 +26,24 @@ If the plan does not exist, or the plan does not have an execution blueprint sec
|
|
|
26
26
|
|
|
27
27
|
### Phase Pre-Execution
|
|
28
28
|
|
|
29
|
-
Before starting execution check if you are in the `main` branch. If so, create a git
|
|
29
|
+
Before starting execution check if you are in the `main` branch. If so, create a git branch to work on this blueprint use the plan name for the branch name.
|
|
30
30
|
|
|
31
31
|
### Phase Execution Workflow
|
|
32
32
|
|
|
33
33
|
1. **Phase Initialization**
|
|
34
34
|
- Identify current phase from the execution blueprint
|
|
35
35
|
- List all tasks scheduled for parallel execution in this phase
|
|
36
|
-
-
|
|
36
|
+
- **Validate Task Dependencies**: For each task in the current phase, use the dependency checking script:
|
|
37
|
+
```bash
|
|
38
|
+
# For each task in current phase
|
|
39
|
+
for TASK_ID in $PHASE_TASKS; do
|
|
40
|
+
if ! @templates/ai-task-manager/config/scripts/check-task-dependencies.sh "$1" "$TASK_ID"; then
|
|
41
|
+
echo "ERROR: Task $TASK_ID has unresolved dependencies - cannot proceed with phase execution"
|
|
42
|
+
echo "Please resolve dependencies before continuing with blueprint execution"
|
|
43
|
+
exit 1
|
|
44
|
+
fi
|
|
45
|
+
done
|
|
46
|
+
```
|
|
37
47
|
- Confirm no tasks are marked "needs-clarification"
|
|
38
48
|
- If any phases are marked as completed, verify they are actually completed and continue from the next phase.
|
|
39
49
|
|
|
@@ -57,7 +67,7 @@ Before starting execution check if you are in the `main` branch. If so, create a
|
|
|
57
67
|
- Document any issues or exceptions encountered
|
|
58
68
|
|
|
59
69
|
5. **Validation Gate Execution**
|
|
60
|
-
- Reference validation criteria from `@.ai/task-manager/
|
|
70
|
+
- Reference validation criteria from `@.ai/task-manager/config/hooks/POST_PHASE.md`
|
|
61
71
|
- Execute all validation gates for the current phase
|
|
62
72
|
- Document validation results
|
|
63
73
|
- Only proceed if ALL validations pass
|
|
@@ -69,8 +79,8 @@ Before starting execution check if you are in the `main` branch. If so, create a
|
|
|
69
79
|
|
|
70
80
|
### Agent Selection Guidelines
|
|
71
81
|
|
|
72
|
-
#### Available
|
|
73
|
-
Analyze the sub-agents available
|
|
82
|
+
#### Available Sub-Agents
|
|
83
|
+
Analyze the sub-agents available in your current assistant's agents directory. If none are available
|
|
74
84
|
or the available ones do not match the task's requirements, then use a generic
|
|
75
85
|
agent.
|
|
76
86
|
|