@torka/claude-workflows 0.1.0 β 0.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 +34 -105
- package/bmad-workflows/bmm/workflows/4-implementation/implement-epic-with-subagents/completion-summary-implement-epic-with-subagents.md +103 -0
- package/bmad-workflows/bmm/workflows/4-implementation/implement-epic-with-subagents/steps/step-01-init.md +228 -0
- package/bmad-workflows/bmm/workflows/4-implementation/implement-epic-with-subagents/steps/step-01b-continue.md +298 -0
- package/bmad-workflows/bmm/workflows/4-implementation/implement-epic-with-subagents/steps/step-01c-new.md +434 -0
- package/bmad-workflows/bmm/workflows/4-implementation/implement-epic-with-subagents/steps/step-02-orchestrate.md +437 -0
- package/bmad-workflows/bmm/workflows/4-implementation/implement-epic-with-subagents/steps/step-03-complete.md +473 -0
- package/bmad-workflows/bmm/workflows/4-implementation/implement-epic-with-subagents/templates/epic-completion-report.md +62 -0
- package/bmad-workflows/bmm/workflows/4-implementation/implement-epic-with-subagents/validation/checklist.md +121 -0
- package/bmad-workflows/bmm/workflows/4-implementation/implement-epic-with-subagents/workflow-plan-implement-epic-with-subagents.md +758 -0
- package/bmad-workflows/bmm/workflows/4-implementation/implement-epic-with-subagents/workflow.md +101 -0
- package/bmad-workflows/bmm/workflows/4-implementation/implement-epic-with-subagents/workflow.yaml +87 -0
- package/examples/settings.local.example.json +0 -39
- package/install.js +15 -12
- package/package.json +3 -12
- package/skills/designer-founder/steps/step-01-context.md +171 -0
- package/skills/designer-founder/steps/step-01b-continue.md +75 -0
- package/skills/designer-founder/steps/step-02-scope.md +198 -0
- package/skills/designer-founder/steps/step-03-design.md +168 -0
- package/skills/designer-founder/steps/step-04-artifacts.md +292 -0
- package/skills/designer-founder/templates/component-strategy.md +35 -0
- package/skills/designer-founder/templates/design-brief.md +26 -0
- package/skills/designer-founder/templates/layouts.md +41 -0
- package/skills/designer-founder/templates/user-journeys.md +32 -0
- package/skills/designer-founder/tools/conversion.md +275 -0
- package/skills/designer-founder/tools/direct-mapping.md +222 -0
- package/skills/designer-founder/tools/magicpatterns.md +193 -0
- package/skills/designer-founder/tools/superdesign-assets/generate-theme.ts +193 -0
- package/skills/designer-founder/tools/superdesign-assets/superdesign-agent-instructions.md +375 -0
- package/skills/designer-founder/tools/superdesign.md +167 -0
- package/skills/designer-founder/tools/wireframe.md +181 -0
- package/skills/designer-founder/workflow.md +85 -0
- package/uninstall.js +97 -8
- package/hooks/auto_approve_safe.py +0 -261
- package/hooks/auto_approve_safe.rules.json +0 -134
- package/scripts/context-monitor.py +0 -175
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: 'step-01b-continue'
|
|
3
|
+
description: 'Resume epic execution from previous session using sidecar state'
|
|
4
|
+
|
|
5
|
+
# Path Definitions
|
|
6
|
+
workflow_path: '{project-root}/_bmad/bmm/workflows/4-implementation/implement-epic-with-subagents'
|
|
7
|
+
|
|
8
|
+
# File References
|
|
9
|
+
thisStepFile: '{workflow_path}/steps/step-01b-continue.md'
|
|
10
|
+
nextStepFile: '{workflow_path}/steps/step-02-orchestrate.md'
|
|
11
|
+
completionStepFile: '{workflow_path}/steps/step-03-complete.md'
|
|
12
|
+
workflowFile: '{workflow_path}/workflow.md'
|
|
13
|
+
|
|
14
|
+
# State files
|
|
15
|
+
sidecarFolder: '{output_folder}/epic-executions'
|
|
16
|
+
sprintStatus: '{implementation_artifacts}/sprint-status.yaml'
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
# Step 1B: Epic Execution Continuation
|
|
20
|
+
|
|
21
|
+
## STEP GOAL:
|
|
22
|
+
|
|
23
|
+
To resume epic execution from a previous session by loading the sidecar state, determining the exact resume point (which story, which phase), and seamlessly continuing autonomous execution.
|
|
24
|
+
|
|
25
|
+
## MANDATORY EXECUTION RULES (READ FIRST):
|
|
26
|
+
|
|
27
|
+
### Universal Rules:
|
|
28
|
+
|
|
29
|
+
- π NEVER generate content without user input
|
|
30
|
+
- π CRITICAL: Read the complete step file before taking any action
|
|
31
|
+
- π CRITICAL: When loading next step with 'C', ensure entire file is read
|
|
32
|
+
- π YOU ARE A FACILITATOR, not a content generator
|
|
33
|
+
|
|
34
|
+
### Orchestrator-Specific Rules:
|
|
35
|
+
|
|
36
|
+
- π NEVER modify completed story results
|
|
37
|
+
- π CRITICAL: Determine exact resume point from sidecar state
|
|
38
|
+
- π YOU ARE AN ORCHESTRATOR resuming execution
|
|
39
|
+
|
|
40
|
+
### Role Reinforcement:
|
|
41
|
+
|
|
42
|
+
- β
You are an Epic Execution Orchestrator
|
|
43
|
+
- β
You are resuming a previously started epic execution
|
|
44
|
+
- β
You maintain execution continuity without loss of progress
|
|
45
|
+
- β
You communicate resume status clearly
|
|
46
|
+
|
|
47
|
+
### Step-Specific Rules:
|
|
48
|
+
|
|
49
|
+
- π― Focus ONLY on analyzing state and resuming
|
|
50
|
+
- π« FORBIDDEN to re-execute completed stories
|
|
51
|
+
- π¬ Confirm resume point with user
|
|
52
|
+
- πͺ DETECT if all stories are already complete
|
|
53
|
+
|
|
54
|
+
## EXECUTION PROTOCOLS:
|
|
55
|
+
|
|
56
|
+
- π― Show current state analysis before resuming
|
|
57
|
+
- πΎ Update sidecar with resume timestamp
|
|
58
|
+
- π Preserve all completed story data
|
|
59
|
+
- π« FORBIDDEN to modify historical execution data
|
|
60
|
+
|
|
61
|
+
## CONTEXT BOUNDARIES:
|
|
62
|
+
|
|
63
|
+
- Sidecar file contains complete execution state
|
|
64
|
+
- Previous stories may be completed, in-progress, or pending
|
|
65
|
+
- Current phase indicates where to resume within a story
|
|
66
|
+
- Sprint-status.yaml reflects actual story states
|
|
67
|
+
- Worktree context affects where execution continues
|
|
68
|
+
|
|
69
|
+
## CONTINUATION SEQUENCE:
|
|
70
|
+
|
|
71
|
+
### 0. Context Awareness
|
|
72
|
+
|
|
73
|
+
**Note:** This step is routed from step-01-init which already detected:
|
|
74
|
+
- Whether we're in a worktree or main repo
|
|
75
|
+
- Which sidecar file to use (passed as context)
|
|
76
|
+
|
|
77
|
+
If sidecar was NOT specified by router (edge case):
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
# Detect worktree context
|
|
81
|
+
GIT_DIR=$(git rev-parse --git-dir 2>/dev/null)
|
|
82
|
+
GIT_COMMON=$(git rev-parse --git-common-dir 2>/dev/null)
|
|
83
|
+
CURRENT_PATH=$(pwd)
|
|
84
|
+
|
|
85
|
+
# If in worktree, find matching sidecar
|
|
86
|
+
if [ "$GIT_DIR" != "$GIT_COMMON" ]; then
|
|
87
|
+
# Search for sidecar with matching worktree_path
|
|
88
|
+
# Parse each epic-*-state.yaml and match worktree_config.worktree_path
|
|
89
|
+
fi
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
**Worktree-specific notes:**
|
|
93
|
+
- Sidecar files are ALWAYS in main repo's `{sidecarFolder}`
|
|
94
|
+
- When in worktree, sidecar is accessed via the shared git history
|
|
95
|
+
- `worktree_config.worktree_path` in sidecar identifies the worktree
|
|
96
|
+
|
|
97
|
+
### 1. Load Sidecar State
|
|
98
|
+
|
|
99
|
+
Read the sidecar file at `{sidecarFolder}/epic-{N}-state.yaml`:
|
|
100
|
+
|
|
101
|
+
Extract:
|
|
102
|
+
- `epic_execution_state.epic_file`: Path to epic being executed
|
|
103
|
+
- `epic_execution_state.epic_name`: Name of the epic
|
|
104
|
+
- `epic_execution_state.epic_number`: Epic number
|
|
105
|
+
- `epic_execution_state.current_story`: Story that was being processed (may be null)
|
|
106
|
+
- `epic_execution_state.current_phase`: Phase within story (create/dev/visual/review/commit)
|
|
107
|
+
- `epic_execution_state.stories_completed`: List of finished stories
|
|
108
|
+
- `epic_execution_state.stories_pending`: List of remaining stories
|
|
109
|
+
- `epic_execution_state.stories_skipped`: List of skipped stories
|
|
110
|
+
- `epic_execution_state.stories_failed`: List of failed stories
|
|
111
|
+
- `epic_execution_state.started_at`: Original start timestamp
|
|
112
|
+
- `epic_execution_state.last_updated`: Last activity timestamp
|
|
113
|
+
- `execution_mode.type`: "worktree" | "main"
|
|
114
|
+
- `worktree_config` (if worktree mode):
|
|
115
|
+
- `worktree_path`: Absolute path to worktree
|
|
116
|
+
- `branch_name`: Feature branch name
|
|
117
|
+
- `main_repo_path`: Path to main repository
|
|
118
|
+
|
|
119
|
+
### 2. Validate Execution Context
|
|
120
|
+
|
|
121
|
+
**If sidecar indicates worktree mode:**
|
|
122
|
+
|
|
123
|
+
Check current working directory matches expected worktree:
|
|
124
|
+
|
|
125
|
+
```bash
|
|
126
|
+
EXPECTED_PATH=$(grep 'worktree_path:' sidecar.yaml | awk '{print $2}')
|
|
127
|
+
CURRENT_PATH=$(pwd)
|
|
128
|
+
|
|
129
|
+
if [ "$CURRENT_PATH" != "$EXPECTED_PATH" ]; then
|
|
130
|
+
# Wrong directory - warn user
|
|
131
|
+
fi
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
**If mismatch detected:**
|
|
135
|
+
```
|
|
136
|
+
β οΈ Context Mismatch
|
|
137
|
+
|
|
138
|
+
This epic execution was configured for worktree mode:
|
|
139
|
+
Expected: {worktree_path}
|
|
140
|
+
Current: {current_path}
|
|
141
|
+
|
|
142
|
+
Options:
|
|
143
|
+
[P] Proceed anyway (may cause issues)
|
|
144
|
+
[X] Exit and navigate to correct directory
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
### 3. Analyze Execution State
|
|
148
|
+
|
|
149
|
+
Determine resume scenario:
|
|
150
|
+
|
|
151
|
+
**Scenario A: Mid-Story Resume**
|
|
152
|
+
If `current_story` is set and `current_phase` is not "between_stories":
|
|
153
|
+
- Resume at the specific phase of that story
|
|
154
|
+
- Example: Story 2.3 was in "dev" phase β resume dev
|
|
155
|
+
|
|
156
|
+
**Scenario B: Between Stories**
|
|
157
|
+
If `current_story` is null or phase is "between_stories":
|
|
158
|
+
- Start next story from `stories_pending[0]`
|
|
159
|
+
|
|
160
|
+
**Scenario C: All Stories Complete**
|
|
161
|
+
If `stories_pending` is empty:
|
|
162
|
+
- Route to step-03-complete for report generation and cleanup
|
|
163
|
+
|
|
164
|
+
### 4. Display Resume Summary
|
|
165
|
+
|
|
166
|
+
```
|
|
167
|
+
**Welcome Back!**
|
|
168
|
+
|
|
169
|
+
**Epic:** {epic_name} (Epic {epic_number})
|
|
170
|
+
**Mode:** {execution_mode.type}
|
|
171
|
+
**Started:** {started_at}
|
|
172
|
+
**Last Activity:** {last_updated}
|
|
173
|
+
|
|
174
|
+
**Location:**
|
|
175
|
+
{If worktree: "Worktree: {worktree_path}"}
|
|
176
|
+
{If main: "Main repository"}
|
|
177
|
+
|
|
178
|
+
**Progress:**
|
|
179
|
+
- β
Completed: {X} stories
|
|
180
|
+
- βΈοΈ Skipped: {X} stories
|
|
181
|
+
- β Failed: {X} stories
|
|
182
|
+
- β³ Pending: {X} stories
|
|
183
|
+
|
|
184
|
+
**Resume Point:**
|
|
185
|
+
{Based on scenario - describe where we'll resume}
|
|
186
|
+
|
|
187
|
+
Example outputs:
|
|
188
|
+
- 'Resuming Story 2.3 at development phase'
|
|
189
|
+
- 'Starting Story 2.4 (previous story completed)'
|
|
190
|
+
- 'All stories complete - ready to generate report'
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
### 5. Validate Resume Readiness
|
|
194
|
+
|
|
195
|
+
Quick prerequisite check:
|
|
196
|
+
- Epic file still exists and readable
|
|
197
|
+
- Sprint-status.yaml accessible
|
|
198
|
+
- Required agents still available
|
|
199
|
+
- If worktree: worktree still exists and is valid
|
|
200
|
+
|
|
201
|
+
If any critical issue β report and ask user how to proceed.
|
|
202
|
+
|
|
203
|
+
### 6. Confirm Continuation Intent
|
|
204
|
+
|
|
205
|
+
```
|
|
206
|
+
**Ready to continue?**
|
|
207
|
+
|
|
208
|
+
Options:
|
|
209
|
+
[C] Continue from {resume point}
|
|
210
|
+
[R] Restart epic from beginning (will lose progress)
|
|
211
|
+
[S] Show detailed execution log
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
### 7. Handle Menu Selection
|
|
215
|
+
|
|
216
|
+
#### IF C (Continue):
|
|
217
|
+
1. Update sidecar:
|
|
218
|
+
```yaml
|
|
219
|
+
execution_log:
|
|
220
|
+
- event: "session_resumed"
|
|
221
|
+
timestamp: "{current_timestamp}"
|
|
222
|
+
from_phase: "{current_phase}"
|
|
223
|
+
last_updated: "{current_timestamp}"
|
|
224
|
+
```
|
|
225
|
+
2. Route based on scenario:
|
|
226
|
+
- Scenario A/B β load, read entire file, then execute `{nextStepFile}`
|
|
227
|
+
- Scenario C β load, read entire file, then execute `{completionStepFile}`
|
|
228
|
+
|
|
229
|
+
#### IF R (Restart):
|
|
230
|
+
1. Confirm: "This will clear all progress. Are you sure? [Y/N]"
|
|
231
|
+
2. If Y:
|
|
232
|
+
- If worktree mode: Also ask about worktree cleanup
|
|
233
|
+
- Delete sidecar file
|
|
234
|
+
- Route to step-01-init.md (will go to step-01c for new setup)
|
|
235
|
+
3. If N: Redisplay menu
|
|
236
|
+
|
|
237
|
+
#### IF S (Show Log):
|
|
238
|
+
1. Display execution_log entries with timestamps
|
|
239
|
+
2. Show per-story details:
|
|
240
|
+
```
|
|
241
|
+
Execution Log:
|
|
242
|
+
|
|
243
|
+
[timestamp] Session started
|
|
244
|
+
[timestamp] Story 2.1 - create phase completed
|
|
245
|
+
[timestamp] Story 2.1 - dev phase completed (auth-specialist)
|
|
246
|
+
[timestamp] Story 2.1 - review approved
|
|
247
|
+
[timestamp] Story 2.1 - committed
|
|
248
|
+
[timestamp] Session interrupted
|
|
249
|
+
[timestamp] Session resumed β current
|
|
250
|
+
```
|
|
251
|
+
3. Redisplay menu
|
|
252
|
+
|
|
253
|
+
### 8. Present MENU OPTIONS
|
|
254
|
+
|
|
255
|
+
Display: **Select an Option:** [C] Continue | [R] Restart | [S] Show Log
|
|
256
|
+
|
|
257
|
+
#### EXECUTION RULES:
|
|
258
|
+
|
|
259
|
+
- ALWAYS halt and wait for user selection
|
|
260
|
+
- Confirm restart with double-check
|
|
261
|
+
- Show execution context before continuing
|
|
262
|
+
|
|
263
|
+
#### Menu Handling Logic:
|
|
264
|
+
|
|
265
|
+
- IF C: Update sidecar with resume timestamp, then:
|
|
266
|
+
- If stories pending β load `{nextStepFile}`
|
|
267
|
+
- If all complete β load `{completionStepFile}`
|
|
268
|
+
- IF R: Confirm and handle restart
|
|
269
|
+
- IF S: Display log and redisplay menu
|
|
270
|
+
- IF Any questions: Respond and redisplay menu
|
|
271
|
+
|
|
272
|
+
---
|
|
273
|
+
|
|
274
|
+
## π¨ SYSTEM SUCCESS/FAILURE METRICS
|
|
275
|
+
|
|
276
|
+
### β
SUCCESS:
|
|
277
|
+
|
|
278
|
+
- Sidecar state loaded and analyzed correctly
|
|
279
|
+
- Worktree context validated (if applicable)
|
|
280
|
+
- Resume point determined accurately
|
|
281
|
+
- User confirmed continuation
|
|
282
|
+
- Proper routing to next step
|
|
283
|
+
- Resume timestamp recorded
|
|
284
|
+
|
|
285
|
+
### β SYSTEM FAILURE:
|
|
286
|
+
|
|
287
|
+
- Not loading complete sidecar state
|
|
288
|
+
- Not validating worktree context
|
|
289
|
+
- Incorrect resume point determination
|
|
290
|
+
- Re-executing completed stories
|
|
291
|
+
- Not confirming with user before resuming
|
|
292
|
+
- Modifying historical execution data
|
|
293
|
+
|
|
294
|
+
**Master Rule:** Skipping steps, optimizing sequences, or not following exact instructions is FORBIDDEN and constitutes SYSTEM FAILURE.
|
|
295
|
+
|
|
296
|
+
## CRITICAL STEP COMPLETION NOTE
|
|
297
|
+
|
|
298
|
+
ONLY WHEN user selects [C] and sidecar is updated with resume info, will you then load the appropriate next step file based on execution state.
|