specpulse 1.0.3__py3-none-any.whl → 1.0.5__py3-none-any.whl
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.
- specpulse/__init__.py +1 -1
- specpulse/resources/commands/claude/plan.md +180 -50
- specpulse/resources/commands/claude/pulse.md +79 -24
- specpulse/resources/commands/claude/spec.md +156 -43
- specpulse/resources/commands/claude/task.md +229 -48
- specpulse/resources/commands/gemini/plan.toml +59 -48
- specpulse/resources/commands/gemini/pulse.toml +21 -39
- specpulse/resources/commands/gemini/spec.toml +40 -28
- specpulse/resources/commands/gemini/task.toml +69 -51
- specpulse/resources/memory/constitution.md +2 -2
- specpulse/resources/scripts/pulse-init.ps1 +186 -0
- specpulse/resources/scripts/pulse-init.py +171 -0
- specpulse/resources/scripts/pulse-init.sh +80 -21
- specpulse/resources/scripts/pulse-plan.ps1 +251 -0
- specpulse/resources/scripts/pulse-plan.py +191 -0
- specpulse/resources/scripts/pulse-plan.sh +113 -12
- specpulse/resources/scripts/pulse-spec.ps1 +185 -0
- specpulse/resources/scripts/pulse-spec.py +167 -0
- specpulse/resources/scripts/pulse-spec.sh +86 -11
- specpulse/resources/scripts/pulse-task.ps1 +263 -0
- specpulse/resources/scripts/pulse-task.py +237 -0
- specpulse/resources/scripts/pulse-task.sh +123 -9
- specpulse/resources/templates/plan.md +142 -287
- specpulse/resources/templates/spec.md +80 -246
- specpulse/resources/templates/task.md +114 -93
- {specpulse-1.0.3.dist-info → specpulse-1.0.5.dist-info}/METADATA +67 -34
- specpulse-1.0.5.dist-info/RECORD +41 -0
- specpulse-1.0.3.dist-info/RECORD +0 -33
- {specpulse-1.0.3.dist-info → specpulse-1.0.5.dist-info}/WHEEL +0 -0
- {specpulse-1.0.3.dist-info → specpulse-1.0.5.dist-info}/entry_points.txt +0 -0
- {specpulse-1.0.3.dist-info → specpulse-1.0.5.dist-info}/licenses/LICENSE +0 -0
- {specpulse-1.0.3.dist-info → specpulse-1.0.5.dist-info}/top_level.txt +0 -0
@@ -1,56 +1,237 @@
|
|
1
|
-
|
1
|
+
---
|
2
|
+
name: task
|
3
|
+
description: Generate and manage task breakdowns using AI-optimized templates
|
4
|
+
allowed_tools:
|
5
|
+
- Read
|
6
|
+
- Write
|
7
|
+
- Edit
|
8
|
+
- Bash
|
9
|
+
- TodoWrite
|
10
|
+
---
|
2
11
|
|
3
|
-
|
12
|
+
# /task Command
|
13
|
+
|
14
|
+
Generate task breakdowns from implementation plans using SpecPulse methodology with AI-optimized templates and enhanced validation.
|
4
15
|
|
5
16
|
## Usage
|
6
17
|
```
|
7
|
-
/task
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
##
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
1.
|
17
|
-
-
|
18
|
-
-
|
19
|
-
-
|
20
|
-
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
18
|
+
/task [action] [feature-directory]
|
19
|
+
```
|
20
|
+
|
21
|
+
Actions: `breakdown`, `update`, `status`, `execute` (defaults to `breakdown`)
|
22
|
+
|
23
|
+
## Implementation
|
24
|
+
|
25
|
+
When called with `/task $ARGUMENTS`, I will:
|
26
|
+
|
27
|
+
1. **Parse arguments** to determine action:
|
28
|
+
- If `update`: Update task status and dependencies
|
29
|
+
- If `status`: Show comprehensive progress with metrics
|
30
|
+
- If `execute`: Execute task with script integration
|
31
|
+
- Otherwise: Generate task breakdown
|
32
|
+
|
33
|
+
2. **For `/task breakdown` or `/task`:**
|
34
|
+
|
35
|
+
a. **Enhanced validation** using cross-platform script:
|
36
|
+
```bash
|
37
|
+
# Cross-platform detection
|
38
|
+
if [[ "$OSTYPE" == "msys" || "$OSTYPE" == "win32" ]]; then
|
39
|
+
powershell scripts/pulse-task.ps1 "$FEATURE_DIR"
|
40
|
+
else
|
41
|
+
bash scripts/pulse-task.sh "$FEATURE_DIR" || python scripts/pulse-task.py "$FEATURE_DIR"
|
42
|
+
fi
|
43
|
+
```
|
44
|
+
|
45
|
+
b. **Read implementation plan** from `plans/XXX-feature/plan.md`
|
46
|
+
|
47
|
+
c. **Generate AI-optimized tasks** using template variables:
|
48
|
+
```markdown
|
49
|
+
# Task List: {{ feature_name }}
|
50
|
+
## Metadata
|
51
|
+
- **Total Tasks**: {{ task_count }}
|
52
|
+
- **Estimated Duration**: {{ total_duration }}
|
53
|
+
```
|
54
|
+
|
55
|
+
d. **Generate structured task categories**:
|
56
|
+
- **Constitutional Gates Compliance**: Pre-implementation validation
|
57
|
+
- **Critical Path (Phase 0)**: Tasks that impact timeline
|
58
|
+
- **Parallel Groups**: Tasks that can execute simultaneously
|
59
|
+
- **Sequential Tasks**: Tasks with dependencies
|
60
|
+
- **Execution Schedule**: Time-based task organization
|
61
|
+
- **Progress Tracking**: YAML configuration for monitoring
|
62
|
+
|
63
|
+
e. **For each task**, generate comprehensive metadata:
|
64
|
+
- **ID**: T[XXX] format (T001, T002)
|
65
|
+
- **Type**: setup, development, testing, documentation
|
66
|
+
- **Priority**: HIGH, MEDIUM, LOW
|
67
|
+
- **Estimate**: Hours or complexity points
|
68
|
+
- **Dependencies**: Task ID dependencies
|
69
|
+
- **Description**: Clear what needs to be done
|
70
|
+
- **Acceptance**: How to verify completion
|
71
|
+
- **Files**: Files to be created/modified
|
72
|
+
- **Assignable**: Role/skill required
|
73
|
+
- **Parallel**: Whether can run in parallel [P]
|
74
|
+
|
75
|
+
f. **Generate execution commands** with script integration:
|
76
|
+
```bash
|
77
|
+
# Execute parallel tasks
|
78
|
+
parallel_tasks="T001 T002 T003"
|
79
|
+
for task in $parallel_tasks; do
|
80
|
+
./scripts/execute-task.sh "$task" &
|
81
|
+
done
|
82
|
+
wait
|
83
|
+
```
|
84
|
+
|
85
|
+
g. **Write comprehensive task breakdown** to `tasks/XXX-feature/tasks.md`
|
86
|
+
|
87
|
+
3. **For `/task update`:**
|
88
|
+
- **Enhanced analysis** using cross-platform script:
|
89
|
+
```bash
|
90
|
+
# Cross-platform detection
|
91
|
+
if [[ "$OSTYPE" == "msys" || "$OSTYPE" == "win32" ]]; then
|
92
|
+
powershell scripts/pulse-task.ps1 "$FEATURE_DIR"
|
93
|
+
else
|
94
|
+
bash scripts/pulse-task.sh "$FEATURE_DIR" || python scripts/pulse-task.py "$FEATURE_DIR"
|
95
|
+
fi
|
96
|
+
```
|
97
|
+
- **Parse current tasks** with comprehensive status:
|
98
|
+
- Total tasks, completed, pending, blocked
|
99
|
+
- Parallel tasks identification
|
100
|
+
- Constitutional gates status
|
101
|
+
- Completion percentage calculation
|
102
|
+
- **Interactive task updates**:
|
103
|
+
- Mark tasks as completed/in-progress/blocked
|
104
|
+
- Update dependencies and blockers
|
105
|
+
- Add newly discovered tasks with proper metadata
|
106
|
+
- Adjust estimates based on actual progress
|
107
|
+
- **Generate updated progress tracking** YAML
|
108
|
+
|
109
|
+
4. **For `/task status`:**
|
110
|
+
- **Enhanced reporting** from script output:
|
111
|
+
```bash
|
112
|
+
TOTAL_TASKS=25
|
113
|
+
COMPLETED_TASKS=10
|
114
|
+
COMPLETION_PERCENTAGE=40%
|
115
|
+
CONSTITUTIONAL_GATES_PENDING=2
|
116
|
+
```
|
117
|
+
- **Display comprehensive progress**:
|
118
|
+
- Overall completion percentage
|
119
|
+
- Phase-by-phase progress
|
120
|
+
- Blocker identification and resolution
|
121
|
+
- Velocity metrics and estimates
|
122
|
+
- Constitutional gates compliance status
|
123
|
+
|
124
|
+
5. **For `/task execute`:**
|
125
|
+
- **Validate task readiness** using constitutional gates
|
126
|
+
- **Execute task** with enhanced error handling:
|
127
|
+
```bash
|
128
|
+
./scripts/execute-task.sh "$TASK_ID"
|
129
|
+
```
|
130
|
+
- **Track execution results** and update status
|
131
|
+
- **Update progress tracking** automatically
|
132
|
+
|
133
|
+
## Enhanced Task Format
|
47
134
|
```markdown
|
48
|
-
|
49
|
-
|
50
|
-
-
|
135
|
+
### Parallel Group A
|
136
|
+
#### T001: Initialize project structure
|
137
|
+
- **Type**: setup
|
138
|
+
- **Priority**: HIGH
|
139
|
+
- **Estimate**: 2 hours
|
140
|
+
- **Dependencies**: None
|
141
|
+
- **Description**: Set up project directory structure and configuration
|
142
|
+
- **Acceptance**: All directories exist and config files are valid
|
143
|
+
- **Files**: package.json, README.md, .gitignore
|
144
|
+
- **Assignable**: developer
|
145
|
+
- **Parallel**: [P]
|
146
|
+
|
147
|
+
## Progress Tracking
|
148
|
+
```yaml
|
149
|
+
status:
|
150
|
+
total: 25
|
151
|
+
completed: 10
|
152
|
+
in_progress: 3
|
153
|
+
blocked: 0
|
154
|
+
|
155
|
+
metrics:
|
156
|
+
velocity: 2-3 tasks/day
|
157
|
+
estimated_completion: 2025-09-15
|
158
|
+
completion_percentage: 40%
|
51
159
|
```
|
52
160
|
|
53
|
-
##
|
161
|
+
## Constitutional Gates Integration
|
162
|
+
|
163
|
+
Each task breakdown includes constitutional compliance validation:
|
164
|
+
- **Simplicity Gate**: Tasks avoid unnecessary complexity
|
165
|
+
- **Test-First Gate**: Test tasks before implementation tasks
|
166
|
+
- **Integration-First Gate**: Real service integration preferred
|
167
|
+
- **Research Gate**: Technology research tasks included
|
168
|
+
|
169
|
+
## Examples
|
170
|
+
|
171
|
+
### Generate task breakdown
|
172
|
+
```
|
173
|
+
User: /task breakdown
|
174
|
+
```
|
175
|
+
I will:
|
176
|
+
- Run: Cross-platform detection and execution
|
177
|
+
```bash
|
178
|
+
# Cross-platform detection
|
179
|
+
if [[ "$OSTYPE" == "msys" || "$OSTYPE" == "win32" ]]; then
|
180
|
+
powershell scripts/pulse-task.ps1 "$FEATURE_DIR"
|
181
|
+
else
|
182
|
+
bash scripts/pulse-task.sh "$FEATURE_DIR" || python scripts/pulse-task.py "$FEATURE_DIR"
|
183
|
+
fi
|
184
|
+
```
|
185
|
+
- Create: AI-optimized task structure with template variables
|
186
|
+
- Output: `TOTAL_TASKS=25, PARALLEL_TASKS=8, STATUS=generated`
|
187
|
+
|
188
|
+
### Update task status
|
189
|
+
```
|
190
|
+
User: /task update mark T001-T005 as completed
|
191
|
+
```
|
192
|
+
I will update task status and recalculate progress metrics.
|
193
|
+
|
194
|
+
### Show comprehensive status
|
54
195
|
```
|
55
|
-
/task
|
56
|
-
```
|
196
|
+
User: /task status
|
197
|
+
```
|
198
|
+
I will display detailed progress with constitutional gates compliance.
|
199
|
+
|
200
|
+
### Execute specific task
|
201
|
+
```
|
202
|
+
User: /task execute T001
|
203
|
+
```
|
204
|
+
I will:
|
205
|
+
- Validate: Constitutional gates compliance and task readiness
|
206
|
+
- Execute: Cross-platform task execution
|
207
|
+
```bash
|
208
|
+
# Cross-platform task execution
|
209
|
+
if [[ "$OSTYPE" == "msys" || "$OSTYPE" == "win32" ]]; then
|
210
|
+
powershell scripts/pulse-task.ps1 "$FEATURE_DIR" "execute:$TASK_ID"
|
211
|
+
else
|
212
|
+
bash scripts/pulse-task.sh "$FEATURE_DIR" "execute:$TASK_ID" || python scripts/pulse-task.py "$FEATURE_DIR" "execute:$TASK_ID"
|
213
|
+
fi
|
214
|
+
```
|
215
|
+
- Track: Results and update progress automatically
|
216
|
+
|
217
|
+
## Enhanced Features
|
218
|
+
|
219
|
+
- **Cross-platform script execution** with automatic detection (PowerShell/Bash/Python)
|
220
|
+
- **AI-optimized templates** with Jinja2-style variables
|
221
|
+
- **Enhanced script integration** for validation and execution
|
222
|
+
- **Constitutional gates compliance** tracking
|
223
|
+
- **Parallel task identification** and execution
|
224
|
+
- **Comprehensive progress tracking** with YAML configuration
|
225
|
+
- **Automatic percentage calculation** and velocity metrics
|
226
|
+
- **Task dependency management** with conflict detection
|
227
|
+
- **Execution command generation** with script integration
|
228
|
+
- **Platform-agnostic operation** for Windows, Linux, and macOS
|
229
|
+
|
230
|
+
## Error Handling
|
231
|
+
|
232
|
+
- Plan existence validation before task generation
|
233
|
+
- Constitutional gates compliance checking
|
234
|
+
- Template structure validation
|
235
|
+
- Dependency conflict detection
|
236
|
+
- Task execution error handling with rollback
|
237
|
+
- Progress tracking validation and correction
|
@@ -1,48 +1,59 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
1
|
+
description = "Generate or validate implementation plans"
|
2
|
+
prompt = """
|
3
|
+
Handle the /plan command with arguments: {{args}}
|
4
|
+
|
5
|
+
Parse arguments to determine action:
|
6
|
+
- If "validate": Check plan against constitution
|
7
|
+
- Otherwise: Generate new plan
|
8
|
+
|
9
|
+
## For /plan generate or /plan:
|
10
|
+
1. Read current specification from @{specs/*/spec.md}
|
11
|
+
|
12
|
+
2. Run Phase Gates checks:
|
13
|
+
- Constitutional compliance
|
14
|
+
- Simplicity check (≤3 modules)
|
15
|
+
- Test-first strategy defined
|
16
|
+
- Framework selection complete
|
17
|
+
- Research completed
|
18
|
+
|
19
|
+
3. Generate plan sections:
|
20
|
+
- Technology stack
|
21
|
+
- Architecture overview
|
22
|
+
- Implementation phases
|
23
|
+
- API contracts
|
24
|
+
- Data models
|
25
|
+
- Testing strategy
|
26
|
+
|
27
|
+
4. Track complexity:
|
28
|
+
- If >3 modules, document justification
|
29
|
+
- Create simplification roadmap
|
30
|
+
|
31
|
+
5. Write plan to plans/XXX-feature/plan.md
|
32
|
+
6. Run cross-platform validation:
|
33
|
+
- Windows: !{powershell scripts/pulse-plan.ps1 "XXX-feature"}
|
34
|
+
- Linux/macOS: !{bash scripts/pulse-plan.sh "XXX-feature"}
|
35
|
+
- Fallback: !{python scripts/pulse-plan.py "XXX-feature"}
|
36
|
+
|
37
|
+
## For /plan validate:
|
38
|
+
1. Read existing plan from @{plans/*/plan.md}
|
39
|
+
2. Run cross-platform validation:
|
40
|
+
- Windows: !{powershell scripts/pulse-plan.ps1 "XXX-feature"}
|
41
|
+
- Linux/macOS: !{bash scripts/pulse-plan.sh "XXX-feature"}
|
42
|
+
- Fallback: !{python scripts/pulse-plan.py "XXX-feature"}
|
43
|
+
3. Verify Phase Gates compliance
|
44
|
+
4. Check complexity tracking
|
45
|
+
5. Ensure test-first approach
|
46
|
+
6. Validate framework choices
|
47
|
+
7. Report validation results
|
48
|
+
|
49
|
+
Phase Gates (Phase -1) must pass before implementation:
|
50
|
+
- ✅ Using ≤3 projects/modules
|
51
|
+
- ✅ Tests defined before code
|
52
|
+
- ✅ Using framework features directly
|
53
|
+
- ✅ No premature abstractions
|
54
|
+
- ✅ Research completed
|
55
|
+
|
56
|
+
Examples:
|
57
|
+
- /plan generate
|
58
|
+
- /plan validate
|
59
|
+
"""
|
@@ -1,45 +1,27 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
description = "Initialize a new feature with SpecPulse framework"
|
2
|
+
prompt = """
|
3
|
+
Initialize a new SpecPulse feature with the name: {{args}}
|
4
4
|
|
5
|
-
|
6
|
-
description = "Initialize a new feature with proper structure"
|
7
|
-
usage = "/pulse init <feature-name>"
|
5
|
+
Please follow these steps:
|
8
6
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
7
|
+
1. Extract the feature name from the provided arguments
|
8
|
+
2. Run the initialization script with cross-platform detection:
|
9
|
+
- Windows: !{powershell scripts/pulse-init.ps1 "{{args}}"}
|
10
|
+
- Linux/macOS: !{bash scripts/pulse-init.sh "{{args}}"}
|
11
|
+
- Fallback: !{python scripts/pulse-init.py "{{args}"}
|
12
|
+
3. Create the feature structure:
|
13
|
+
- Generate feature ID (001, 002, etc.)
|
14
|
+
- Create directories: specs/XXX-feature/, plans/XXX-feature/, tasks/XXX-feature/
|
15
|
+
- Copy templates to feature directories
|
16
|
+
- Update memory/context.md with current feature
|
17
|
+
- Create git branch if in git repository
|
13
18
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
"plans/{{branch_name}}/plan.md",
|
19
|
-
"tasks/{{branch_name}}/tasks.md"
|
20
|
-
]
|
19
|
+
4. Report the results showing:
|
20
|
+
- Created structure paths
|
21
|
+
- Feature ID and branch name
|
22
|
+
- Next steps for the user
|
21
23
|
|
22
|
-
|
23
|
-
action = "update_context"
|
24
|
-
file = "memory/context.md"
|
25
|
-
content = """
|
26
|
-
## Active Feature: {{feature_name}}
|
27
|
-
- Feature ID: {{feature_id}}
|
28
|
-
- Branch: {{branch_name}}
|
29
|
-
- Started: {{timestamp}}
|
30
|
-
"""
|
24
|
+
If no feature name is provided, ask the user for the feature name first.
|
31
25
|
|
32
|
-
|
33
|
-
action = "git_branch"
|
34
|
-
branch = "{{branch_name}}"
|
35
|
-
|
36
|
-
[command.response]
|
37
|
-
template = """
|
38
|
-
✅ Feature initialized: {{feature_name}}
|
39
|
-
- Branch: {{branch_name}}
|
40
|
-
- Spec: specs/{{branch_name}}/spec.md
|
41
|
-
- Plan: plans/{{branch_name}}/plan.md
|
42
|
-
- Tasks: tasks/{{branch_name}}/tasks.md
|
43
|
-
|
44
|
-
Next: Use /spec create to define requirements
|
26
|
+
Example usage: /pulse user-authentication
|
45
27
|
"""
|
@@ -1,33 +1,45 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
description = "Create or manage feature specifications"
|
2
|
+
prompt = """
|
3
|
+
Handle the /spec command with arguments: {{args}}
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
5
|
+
Parse the arguments to determine the action:
|
6
|
+
- If starts with "create": Generate new specification
|
7
|
+
- If starts with "update": Modify existing specification
|
8
|
+
- If starts with "validate": Check specification completeness
|
9
|
+
- If no action specified: Default to "create" with full arguments as description
|
8
10
|
|
9
|
-
[[
|
10
|
-
|
11
|
-
|
11
|
+
## For /spec create [description] or /spec [description]:
|
12
|
+
1. Read template from @{templates/spec.md}
|
13
|
+
2. Parse the description to identify:
|
14
|
+
- Functional requirements (Must/Should/Could have)
|
15
|
+
- User stories and acceptance criteria
|
16
|
+
- Technical requirements
|
17
|
+
3. Mark any uncertainties with [NEEDS CLARIFICATION: detail]
|
18
|
+
4. Find current feature directory (latest in specs/)
|
19
|
+
5. Write specification to specs/XXX-feature/spec.md
|
20
|
+
6. Run cross-platform validation:
|
21
|
+
- Windows: !{powershell scripts/pulse-spec.ps1 "XXX-feature"}
|
22
|
+
- Linux/macOS: !{bash scripts/pulse-spec.sh "XXX-feature"}
|
23
|
+
- Fallback: !{python scripts/pulse-spec.py "XXX-feature"}
|
12
24
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
25
|
+
## For /spec update:
|
26
|
+
1. Read existing specification from @{specs/*/spec.md}
|
27
|
+
2. Ask user for clarifications or changes
|
28
|
+
3. Update content while preserving structure
|
29
|
+
4. Remove resolved [NEEDS CLARIFICATION] markers
|
17
30
|
|
18
|
-
|
19
|
-
|
20
|
-
|
31
|
+
## For /spec validate:
|
32
|
+
1. Run cross-platform validation:
|
33
|
+
- Windows: !{powershell scripts/pulse-spec.ps1 "XXX-feature"}
|
34
|
+
- Linux/macOS: !{bash scripts/pulse-spec.sh "XXX-feature"}
|
35
|
+
- Fallback: !{python scripts/pulse-spec.py "XXX-feature"}
|
36
|
+
2. Check all required sections are filled
|
37
|
+
3. Count [NEEDS CLARIFICATION] markers
|
38
|
+
4. Verify acceptance criteria are testable
|
39
|
+
5. Report validation results
|
21
40
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
"testable_criteria",
|
28
|
-
"technical_specs_defined"
|
29
|
-
]
|
30
|
-
|
31
|
-
[command.subcommands.update]
|
32
|
-
description = "Update existing specification"
|
33
|
-
usage = "/spec update"
|
41
|
+
Examples:
|
42
|
+
- /spec user authentication with OAuth2 and email/password
|
43
|
+
- /spec update
|
44
|
+
- /spec validate
|
45
|
+
"""
|
@@ -1,51 +1,69 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
1
|
+
description = "Generate and manage task breakdowns"
|
2
|
+
prompt = """
|
3
|
+
Handle the /task command with arguments: {{args}}
|
4
|
+
|
5
|
+
Parse arguments to determine action:
|
6
|
+
- If "update": Update task status
|
7
|
+
- If "status": Show progress
|
8
|
+
- Otherwise: Generate task breakdown
|
9
|
+
|
10
|
+
## For /task breakdown or /task:
|
11
|
+
1. Read implementation plan from @{plans/*/plan.md}
|
12
|
+
|
13
|
+
2. Generate tasks from plan:
|
14
|
+
- Create task categories:
|
15
|
+
• Critical Path (Phase 0)
|
16
|
+
• Phase 1: Foundation
|
17
|
+
• Phase 2: Core Features
|
18
|
+
• Phase 3: Polish
|
19
|
+
• Phase 4: Testing
|
20
|
+
|
21
|
+
- For each task:
|
22
|
+
• Use T[XXX] format (T001, T002)
|
23
|
+
• Include clear description
|
24
|
+
• Mark dependencies
|
25
|
+
• Estimate complexity (S/M/L/XL)
|
26
|
+
• Assign priority
|
27
|
+
|
28
|
+
3. Write tasks to tasks/XXX-feature/tasks.md
|
29
|
+
4. Run cross-platform validation:
|
30
|
+
- Windows: !{powershell scripts/pulse-task.ps1 "XXX-feature"}
|
31
|
+
- Linux/macOS: !{bash scripts/pulse-task.sh "XXX-feature"}
|
32
|
+
- Fallback: !{python scripts/pulse-task.py "XXX-feature"}
|
33
|
+
|
34
|
+
## For /task update:
|
35
|
+
1. Read current tasks from @{tasks/*/tasks.md}
|
36
|
+
2. Ask which tasks to update
|
37
|
+
3. Mark tasks as completed/in-progress
|
38
|
+
4. Add newly discovered tasks
|
39
|
+
5. Update dependencies and blockers
|
40
|
+
6. Save updated task list
|
41
|
+
7. Run cross-platform validation:
|
42
|
+
- Windows: !{powershell scripts/pulse-task.ps1 "XXX-feature"}
|
43
|
+
- Linux/macOS: !{bash scripts/pulse-task.sh "XXX-feature"}
|
44
|
+
- Fallback: !{python scripts/pulse-task.py "XXX-feature"}
|
45
|
+
|
46
|
+
## For /task status:
|
47
|
+
1. Read current tasks
|
48
|
+
2. Run cross-platform analysis:
|
49
|
+
- Windows: !{powershell scripts/pulse-task.ps1 "XXX-feature"}
|
50
|
+
- Linux/macOS: !{bash scripts/pulse-task.sh "XXX-feature"}
|
51
|
+
- Fallback: !{python scripts/pulse-task.py "XXX-feature"}
|
52
|
+
3. Count completed vs total
|
53
|
+
4. Show current phase progress
|
54
|
+
5. List any blockers
|
55
|
+
6. Estimate remaining work
|
56
|
+
7. Display progress summary
|
57
|
+
|
58
|
+
Task Format:
|
59
|
+
```markdown
|
60
|
+
- [ ] T001: [S] Set up project structure
|
61
|
+
- [ ] T002: [M] Create database schema
|
62
|
+
- [x] T003: [L] Implement authentication
|
63
|
+
```
|
64
|
+
|
65
|
+
Examples:
|
66
|
+
- /task breakdown
|
67
|
+
- /task update
|
68
|
+
- /task status
|
69
|
+
"""
|