@leeovery/claude-technical-workflows 2.0.49 → 2.0.50
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.
|
@@ -60,10 +60,11 @@ This outputs structured YAML. Parse it to understand:
|
|
|
60
60
|
|
|
61
61
|
**From `specifications` section:**
|
|
62
62
|
- `exists` - whether any specifications exist
|
|
63
|
-
- `feature` - list of feature specs (name, status, has_plan)
|
|
63
|
+
- `feature` - list of feature specs (name, status, has_plan, plan_status)
|
|
64
64
|
- `crosscutting` - list of cross-cutting specs (name, status)
|
|
65
65
|
- `counts.feature` - total feature specifications
|
|
66
66
|
- `counts.feature_ready` - feature specs ready for planning (concluded + no plan)
|
|
67
|
+
- `counts.feature_with_plan` - feature specs that already have plans
|
|
67
68
|
- `counts.crosscutting` - total cross-cutting specifications
|
|
68
69
|
|
|
69
70
|
**From `plans` section:**
|
|
@@ -71,7 +72,7 @@ This outputs structured YAML. Parse it to understand:
|
|
|
71
72
|
- `files` - each plan's name, format, status, and plan_id (if present)
|
|
72
73
|
|
|
73
74
|
**From `state` section:**
|
|
74
|
-
- `scenario` - one of: `"no_specs"`, `"
|
|
75
|
+
- `scenario` - one of: `"no_specs"`, `"nothing_actionable"`, `"has_options"`
|
|
75
76
|
|
|
76
77
|
**IMPORTANT**: Use ONLY this script for discovery. Do NOT run additional bash commands (ls, head, cat, etc.) to gather state - the script provides everything needed.
|
|
77
78
|
|
|
@@ -95,18 +96,20 @@ The planning phase requires a concluded specification. Please run /start-specifi
|
|
|
95
96
|
|
|
96
97
|
**STOP.** Wait for user to acknowledge before ending.
|
|
97
98
|
|
|
98
|
-
#### If scenario is "
|
|
99
|
+
#### If scenario is "nothing_actionable"
|
|
99
100
|
|
|
100
|
-
Specifications exist but none are
|
|
101
|
+
Specifications exist but none are actionable — all are still in-progress and no plans exist to continue.
|
|
101
102
|
|
|
102
103
|
→ Proceed to **Step 3** to show the state.
|
|
103
104
|
|
|
104
|
-
#### If scenario is "
|
|
105
|
+
#### If scenario is "has_options"
|
|
105
106
|
|
|
106
|
-
|
|
107
|
+
At least one specification is ready for planning, or an existing plan can be continued or reviewed.
|
|
107
108
|
|
|
108
109
|
→ Proceed to **Step 3** to present options.
|
|
109
110
|
|
|
111
|
+
---
|
|
112
|
+
|
|
110
113
|
## Step 3: Present Workflow State and Options
|
|
111
114
|
|
|
112
115
|
Present everything discovered to help the user make an informed choice.
|
|
@@ -114,47 +117,55 @@ Present everything discovered to help the user make an informed choice.
|
|
|
114
117
|
**Present the full state:**
|
|
115
118
|
|
|
116
119
|
```
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
Feature specifications:
|
|
120
|
-
1. · {topic-1} (in-progress) - not ready
|
|
121
|
-
2. ✓ {topic-2} (concluded) - ready for planning
|
|
122
|
-
3. - {topic-3} (concluded) → plan exists
|
|
120
|
+
Planning Phase
|
|
123
121
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
122
|
+
Available:
|
|
123
|
+
1. + {topic-2} - create new plan
|
|
124
|
+
2. ▶ {topic-3} - continue in-progress plan
|
|
125
|
+
3. > {topic-4} - review concluded plan
|
|
127
126
|
|
|
128
|
-
|
|
129
|
-
|
|
127
|
+
Not plannable specifications:
|
|
128
|
+
· {topic-1} [feature, in-progress]
|
|
129
|
+
· {caching-strategy} [cross-cutting, concluded]
|
|
130
|
+
· {rate-limiting} [cross-cutting, in-progress]
|
|
130
131
|
```
|
|
131
132
|
|
|
132
|
-
**
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
-
|
|
133
|
+
**Formatting rules:**
|
|
134
|
+
|
|
135
|
+
Available (numbered, selectable):
|
|
136
|
+
- **`+`** — concluded spec with no plan yet
|
|
137
|
+
- **`▶`** — has a plan with `plan_status: planning`
|
|
138
|
+
- **`>`** — has a plan with `plan_status: concluded`
|
|
139
|
+
|
|
140
|
+
Not plannable specifications (no number, not selectable — `[type, status]` format):
|
|
141
|
+
- **`·`** — feature specs still in-progress, or cross-cutting specifications
|
|
142
|
+
- Feature specs: `[feature, in-progress]`
|
|
143
|
+
- Cross-cutting specs: `[cross-cutting, {status}]`
|
|
136
144
|
|
|
137
|
-
|
|
145
|
+
Omit either section entirely if it has no entries.
|
|
138
146
|
|
|
139
|
-
**
|
|
147
|
+
**Then prompt based on what's actionable:**
|
|
148
|
+
|
|
149
|
+
**If multiple actionable items:**
|
|
140
150
|
```
|
|
141
|
-
|
|
151
|
+
Select a specification (enter number):
|
|
142
152
|
```
|
|
143
153
|
|
|
144
154
|
**STOP.** Wait for user response.
|
|
145
155
|
|
|
146
|
-
**If single
|
|
156
|
+
**If single actionable item (auto-select):**
|
|
147
157
|
```
|
|
148
|
-
Auto-selecting: {topic} (only
|
|
158
|
+
Auto-selecting: {topic} (only actionable specification)
|
|
149
159
|
```
|
|
160
|
+
|
|
150
161
|
→ Proceed directly to **Step 4**.
|
|
151
162
|
|
|
152
|
-
**If
|
|
163
|
+
**If nothing actionable:**
|
|
153
164
|
```
|
|
154
|
-
No specifications
|
|
165
|
+
No plannable specifications.
|
|
155
166
|
|
|
156
167
|
To proceed:
|
|
157
|
-
- Complete any
|
|
168
|
+
- Complete any in-progress specifications with /start-specification
|
|
158
169
|
- Or create a new specification first
|
|
159
170
|
```
|
|
160
171
|
|
|
@@ -164,7 +175,23 @@ To proceed:
|
|
|
164
175
|
|
|
165
176
|
---
|
|
166
177
|
|
|
167
|
-
## Step 4:
|
|
178
|
+
## Step 4: Route by Plan State
|
|
179
|
+
|
|
180
|
+
Check whether the selected specification already has a plan (from `has_plan` in discovery output).
|
|
181
|
+
|
|
182
|
+
#### If no existing plan (fresh start)
|
|
183
|
+
|
|
184
|
+
→ Proceed to **Step 5** to gather context before invoking the skill.
|
|
185
|
+
|
|
186
|
+
#### If existing plan (continue or review)
|
|
187
|
+
|
|
188
|
+
The plan already has its context from when it was created. Skip context gathering.
|
|
189
|
+
|
|
190
|
+
→ Go directly to **Step 7** to invoke the skill.
|
|
191
|
+
|
|
192
|
+
---
|
|
193
|
+
|
|
194
|
+
## Step 5: Gather Additional Context
|
|
168
195
|
|
|
169
196
|
Ask:
|
|
170
197
|
- Any additional context or priorities to consider?
|
|
@@ -172,50 +199,75 @@ Ask:
|
|
|
172
199
|
|
|
173
200
|
**STOP.** Wait for user response.
|
|
174
201
|
|
|
175
|
-
→ Proceed to **Step
|
|
202
|
+
→ Proceed to **Step 6**.
|
|
176
203
|
|
|
177
204
|
---
|
|
178
205
|
|
|
179
|
-
## Step
|
|
206
|
+
## Step 6: Surface Cross-Cutting Context
|
|
180
207
|
|
|
181
|
-
If
|
|
208
|
+
**If no cross-cutting specifications exist**: Skip this step. → Proceed to **Step 7**.
|
|
182
209
|
|
|
183
|
-
|
|
184
|
-
- Read each cross-cutting specification
|
|
185
|
-
- Identify which ones are relevant to the feature being planned
|
|
186
|
-
- Relevance is determined by topic overlap (e.g., caching strategy applies if the feature involves data retrieval or API calls)
|
|
210
|
+
Read each cross-cutting specification from `specifications.crosscutting` in the discovery output.
|
|
187
211
|
|
|
188
|
-
|
|
189
|
-
```
|
|
190
|
-
Cross-cutting specifications to reference:
|
|
191
|
-
- caching-strategy.md: [brief summary of key decisions]
|
|
192
|
-
- rate-limiting.md: [brief summary of key decisions]
|
|
193
|
-
```
|
|
212
|
+
### 6a: Warn about in-progress cross-cutting specs
|
|
194
213
|
|
|
195
|
-
|
|
214
|
+
If any **in-progress** cross-cutting specifications exist, check whether they could be relevant to the feature being planned (by topic overlap — e.g., a caching strategy is relevant if the feature involves data retrieval or API calls).
|
|
196
215
|
|
|
197
|
-
|
|
216
|
+
If any are relevant:
|
|
198
217
|
|
|
199
|
-
|
|
218
|
+
```
|
|
219
|
+
Note: The following cross-cutting specifications are still in-progress:
|
|
220
|
+
· {rate-limiting} - in-progress
|
|
221
|
+
|
|
222
|
+
These may contain architectural decisions relevant to this plan. You can:
|
|
223
|
+
- Continue planning without them
|
|
224
|
+
- Stop and complete them first (/start-specification)
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
**STOP.** Wait for user response.
|
|
228
|
+
|
|
229
|
+
If the user chooses to stop, end here. If they choose to continue, proceed.
|
|
230
|
+
|
|
231
|
+
### 6b: Summarize concluded cross-cutting specs
|
|
232
|
+
|
|
233
|
+
If any **concluded** cross-cutting specifications exist, identify which are relevant to the feature being planned and summarize for handoff:
|
|
234
|
+
|
|
235
|
+
```
|
|
236
|
+
Cross-cutting specifications to reference:
|
|
237
|
+
- caching-strategy.md: [brief summary of key decisions]
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
These specifications contain validated architectural decisions that should inform the plan. The planning skill will incorporate these as a "Cross-Cutting References" section in the plan.
|
|
241
|
+
|
|
242
|
+
→ Proceed to **Step 7**.
|
|
200
243
|
|
|
201
244
|
---
|
|
202
245
|
|
|
203
|
-
## Step
|
|
246
|
+
## Step 7: Invoke the Skill
|
|
204
247
|
|
|
205
248
|
After completing the steps above, this command's purpose is fulfilled.
|
|
206
249
|
|
|
207
250
|
Invoke the [technical-planning](../../skills/technical-planning/SKILL.md) skill for your next instructions. Do not act on the gathered information until the skill is loaded - it contains the instructions for how to proceed.
|
|
208
251
|
|
|
209
|
-
**Example handoff:**
|
|
252
|
+
**Example handoff (fresh plan):**
|
|
210
253
|
```
|
|
211
254
|
Planning session for: {topic}
|
|
212
255
|
Specification: docs/workflow/specification/{topic}.md
|
|
213
|
-
Additional context: {summary of user's answers from Step
|
|
256
|
+
Additional context: {summary of user's answers from Step 5}
|
|
214
257
|
Cross-cutting references: {list of applicable cross-cutting specs with brief summaries, or "none"}
|
|
215
258
|
|
|
216
259
|
Invoke the technical-planning skill.
|
|
217
260
|
```
|
|
218
261
|
|
|
262
|
+
**Example handoff (continue/review existing plan):**
|
|
263
|
+
```
|
|
264
|
+
Planning session for: {topic}
|
|
265
|
+
Specification: docs/workflow/specification/{topic}.md
|
|
266
|
+
Existing plan: docs/workflow/planning/{topic}.md
|
|
267
|
+
|
|
268
|
+
Invoke the technical-planning skill.
|
|
269
|
+
```
|
|
270
|
+
|
|
219
271
|
## Notes
|
|
220
272
|
|
|
221
273
|
- Ask questions clearly and wait for responses before proceeding
|
|
@@ -120,25 +120,31 @@ At least one concluded discussion exists.
|
|
|
120
120
|
Show the current state clearly. Use this EXACT format:
|
|
121
121
|
|
|
122
122
|
```
|
|
123
|
-
|
|
123
|
+
Specification Phase
|
|
124
124
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
125
|
+
Available discussions:
|
|
126
|
+
+ {topic-1} - create new spec
|
|
127
|
+
+ {topic-2} - create new spec
|
|
128
|
+
▶ {topic-3} - continue in-progress spec
|
|
129
|
+
> {topic-4} - review concluded spec
|
|
130
130
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
131
|
+
Not specifiable discussions:
|
|
132
|
+
· {topic-5} [in-progress]
|
|
133
|
+
|
|
134
|
+
Existing specifications:
|
|
135
|
+
• {spec-1} [active] - sources: {topic-1}
|
|
136
|
+
• {spec-2} [superseded → {other-spec}] - sources: {topic-x}
|
|
134
137
|
|
|
135
138
|
{N} concluded discussions available.
|
|
136
139
|
```
|
|
137
140
|
|
|
138
141
|
**Legend:**
|
|
139
|
-
-
|
|
140
|
-
-
|
|
141
|
-
-
|
|
142
|
+
- `+` = concluded, no spec yet (create new)
|
|
143
|
+
- `▶` = concluded, has in-progress spec (continue)
|
|
144
|
+
- `>` = concluded, has concluded spec (review)
|
|
145
|
+
- `·` = in-progress (not specifiable)
|
|
146
|
+
|
|
147
|
+
Omit either discussions section if it has no entries.
|
|
142
148
|
|
|
143
149
|
#### Routing Based on State
|
|
144
150
|
|
package/package.json
CHANGED
|
@@ -40,6 +40,7 @@ echo "specifications:"
|
|
|
40
40
|
|
|
41
41
|
feature_count=0
|
|
42
42
|
feature_ready_count=0
|
|
43
|
+
feature_with_plan_count=0
|
|
43
44
|
crosscutting_count=0
|
|
44
45
|
|
|
45
46
|
if [ -d "$SPEC_DIR" ] && [ -n "$(ls -A "$SPEC_DIR" 2>/dev/null)" ]; then
|
|
@@ -59,21 +60,30 @@ if [ -d "$SPEC_DIR" ] && [ -n "$(ls -A "$SPEC_DIR" 2>/dev/null)" ]; then
|
|
|
59
60
|
# Skip cross-cutting specs in this pass
|
|
60
61
|
[ "$spec_type" = "cross-cutting" ] && continue
|
|
61
62
|
|
|
62
|
-
# Check if plan exists
|
|
63
|
+
# Check if plan exists and its status
|
|
63
64
|
has_plan="false"
|
|
65
|
+
plan_status=""
|
|
64
66
|
if [ -f "$PLAN_DIR/${name}.md" ]; then
|
|
65
67
|
has_plan="true"
|
|
68
|
+
plan_status=$(extract_field "$PLAN_DIR/${name}.md" "status")
|
|
69
|
+
plan_status=${plan_status:-"unknown"}
|
|
66
70
|
fi
|
|
67
71
|
|
|
68
72
|
echo " - name: \"$name\""
|
|
69
73
|
echo " status: \"$status\""
|
|
70
74
|
echo " has_plan: $has_plan"
|
|
75
|
+
if [ "$has_plan" = "true" ]; then
|
|
76
|
+
echo " plan_status: \"$plan_status\""
|
|
77
|
+
fi
|
|
71
78
|
|
|
72
79
|
feature_count=$((feature_count + 1))
|
|
73
80
|
# "concluded" specs without plans are ready for planning
|
|
74
81
|
if [ "$status" = "concluded" ] && [ "$has_plan" = "false" ]; then
|
|
75
82
|
feature_ready_count=$((feature_ready_count + 1))
|
|
76
83
|
fi
|
|
84
|
+
if [ "$has_plan" = "true" ]; then
|
|
85
|
+
feature_with_plan_count=$((feature_with_plan_count + 1))
|
|
86
|
+
fi
|
|
77
87
|
done
|
|
78
88
|
|
|
79
89
|
if [ "$feature_count" -eq 0 ]; then
|
|
@@ -109,6 +119,7 @@ if [ -d "$SPEC_DIR" ] && [ -n "$(ls -A "$SPEC_DIR" 2>/dev/null)" ]; then
|
|
|
109
119
|
echo " counts:"
|
|
110
120
|
echo " feature: $feature_count"
|
|
111
121
|
echo " feature_ready: $feature_ready_count"
|
|
122
|
+
echo " feature_with_plan: $feature_with_plan_count"
|
|
112
123
|
echo " crosscutting: $crosscutting_count"
|
|
113
124
|
else
|
|
114
125
|
echo " exists: false"
|
|
@@ -117,6 +128,7 @@ else
|
|
|
117
128
|
echo " counts:"
|
|
118
129
|
echo " feature: 0"
|
|
119
130
|
echo " feature_ready: 0"
|
|
131
|
+
echo " feature_with_plan: 0"
|
|
120
132
|
echo " crosscutting: 0"
|
|
121
133
|
fi
|
|
122
134
|
|
|
@@ -177,10 +189,8 @@ echo " has_plans: $plans_exist"
|
|
|
177
189
|
# Determine workflow state for routing
|
|
178
190
|
if [ "$specs_exist" = "false" ]; then
|
|
179
191
|
echo " scenario: \"no_specs\""
|
|
180
|
-
elif [ "$feature_ready_count" -eq 0 ]; then
|
|
181
|
-
echo " scenario: \"
|
|
182
|
-
elif [ "$feature_ready_count" -eq 1 ]; then
|
|
183
|
-
echo " scenario: \"single_ready_spec\""
|
|
192
|
+
elif [ "$feature_ready_count" -eq 0 ] && [ "$feature_with_plan_count" -eq 0 ]; then
|
|
193
|
+
echo " scenario: \"nothing_actionable\""
|
|
184
194
|
else
|
|
185
|
-
echo " scenario: \"
|
|
195
|
+
echo " scenario: \"has_options\""
|
|
186
196
|
fi
|
|
@@ -88,6 +88,17 @@ Present the task list to the user for review.
|
|
|
88
88
|
|
|
89
89
|
Work through each task in the phase's task table, in order.
|
|
90
90
|
|
|
91
|
+
### Parallel authoring (optional optimization)
|
|
92
|
+
|
|
93
|
+
After the first `pending` task in a phase is approved, you may invoke multiple Step B agents concurrently for tasks you judge to be independent — where the authored detail of one would not inform the other. This is an invocation optimization only; the approval flow is unchanged:
|
|
94
|
+
|
|
95
|
+
- Present tasks one at a time, in order
|
|
96
|
+
- Each task still requires explicit user approval before logging
|
|
97
|
+
- If user feedback on a presented task changes context that could affect any already-authored task waiting to be presented, discard those results and re-invoke Step B
|
|
98
|
+
- When uncertain about independence, default to sequential — it is always safe
|
|
99
|
+
|
|
100
|
+
Never parallelize the first `pending` task in a phase. Never parallelize across phases.
|
|
101
|
+
|
|
91
102
|
#### If the task status is `authored`
|
|
92
103
|
|
|
93
104
|
Already written. Present a brief summary:
|