@leeovery/claude-technical-workflows 2.1.41 → 2.2.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.
Files changed (119) hide show
  1. package/README.md +5 -20
  2. package/hooks/workflows/compact-recovery.sh +3 -23
  3. package/hooks/workflows/write-session-state.sh +2 -26
  4. package/package.json +1 -1
  5. package/skills/link-dependencies/SKILL.md +0 -1
  6. package/skills/migrate/SKILL.md +0 -1
  7. package/skills/migrate/scripts/migrations/013-discussion-work-type.sh +76 -0
  8. package/skills/migrate/scripts/migrations/014-specification-work-type.sh +76 -0
  9. package/skills/migrate/scripts/migrations/015-plan-work-type.sh +76 -0
  10. package/skills/start-bugfix/SKILL.md +80 -0
  11. package/skills/start-bugfix/references/gather-bug-context.md +75 -0
  12. package/skills/start-bugfix/references/invoke-investigation.md +46 -0
  13. package/skills/start-bugfix/references/topic-name-check.md +59 -0
  14. package/skills/start-discussion/SKILL.md +51 -46
  15. package/skills/start-discussion/references/gather-context.md +54 -10
  16. package/skills/start-discussion/references/handle-selection.md +14 -4
  17. package/skills/start-discussion/references/invoke-skill.md +71 -3
  18. package/skills/start-discussion/references/research-analysis.md +2 -0
  19. package/skills/start-discussion/references/route-scenario.md +39 -0
  20. package/skills/start-discussion/references/validate-topic.md +46 -0
  21. package/skills/start-discussion/scripts/discovery.sh +3 -0
  22. package/skills/start-feature/SKILL.md +28 -84
  23. package/skills/start-feature/references/invoke-discussion.md +8 -4
  24. package/skills/start-feature/references/invoke-research.md +29 -0
  25. package/skills/start-feature/references/invoke-skill.md +35 -0
  26. package/skills/start-feature/references/research-gating.md +65 -0
  27. package/skills/start-feature/references/topic-name-check.md +61 -0
  28. package/skills/start-implementation/SKILL.md +35 -289
  29. package/skills/start-implementation/references/check-dependencies.md +65 -0
  30. package/skills/start-implementation/references/display-plans.md +159 -0
  31. package/skills/start-implementation/references/environment-check.md +45 -0
  32. package/skills/start-implementation/references/invoke-skill.md +42 -0
  33. package/skills/start-implementation/references/route-scenario.md +32 -0
  34. package/skills/start-implementation/references/validate-plan.md +45 -0
  35. package/skills/start-implementation/scripts/discovery.sh +3 -0
  36. package/skills/start-investigation/SKILL.md +145 -0
  37. package/skills/start-investigation/references/gather-context-fresh.md +72 -0
  38. package/skills/start-investigation/references/gather-context.md +31 -0
  39. package/skills/start-investigation/references/invoke-skill.md +54 -0
  40. package/skills/start-investigation/references/route-scenario.md +69 -0
  41. package/skills/start-investigation/references/validate-investigation.md +46 -0
  42. package/skills/start-investigation/scripts/discovery.sh +92 -0
  43. package/skills/start-planning/SKILL.md +32 -72
  44. package/skills/start-planning/references/cross-cutting-context.md +5 -5
  45. package/skills/start-planning/references/invoke-skill.md +27 -4
  46. package/skills/start-planning/references/route-plan-state.md +30 -0
  47. package/skills/start-planning/references/route-scenario.md +38 -0
  48. package/skills/start-planning/references/validate-spec.md +47 -0
  49. package/skills/start-planning/scripts/discovery.sh +7 -0
  50. package/skills/start-research/SKILL.md +17 -6
  51. package/skills/start-research/references/invoke-skill.md +3 -0
  52. package/skills/start-review/SKILL.md +32 -60
  53. package/skills/start-review/references/determine-review-version.md +24 -0
  54. package/skills/start-review/references/display-plans.md +2 -2
  55. package/skills/start-review/references/route-scenario.md +74 -0
  56. package/skills/start-review/references/select-plans.md +8 -6
  57. package/skills/start-review/references/validate-artifacts.md +63 -0
  58. package/skills/start-review/scripts/discovery.sh +3 -0
  59. package/skills/start-specification/SKILL.md +44 -20
  60. package/skills/start-specification/references/check-existing-spec.md +57 -0
  61. package/skills/start-specification/references/check-prerequisites.md +15 -0
  62. package/skills/start-specification/references/handoffs/continue-concluded.md +3 -0
  63. package/skills/start-specification/references/handoffs/continue.md +3 -0
  64. package/skills/start-specification/references/handoffs/create-with-incorporation.md +3 -0
  65. package/skills/start-specification/references/handoffs/create.md +3 -0
  66. package/skills/start-specification/references/handoffs/unify-with-incorporation.md +3 -0
  67. package/skills/start-specification/references/handoffs/unify.md +3 -0
  68. package/skills/start-specification/references/invoke-skill-bridge.md +74 -0
  69. package/skills/start-specification/references/route-scenario.md +23 -0
  70. package/skills/start-specification/references/validate-source.md +91 -0
  71. package/skills/start-specification/scripts/discovery.sh +6 -0
  72. package/skills/status/SKILL.md +6 -3
  73. package/skills/status/scripts/discovery.sh +9 -0
  74. package/skills/technical-discussion/SKILL.md +15 -4
  75. package/skills/technical-discussion/references/template.md +9 -1
  76. package/skills/technical-implementation/SKILL.md +24 -1
  77. package/skills/technical-implementation/references/analysis-loop.md +4 -4
  78. package/skills/technical-implementation/references/task-loop.md +2 -2
  79. package/skills/technical-investigation/SKILL.md +239 -0
  80. package/skills/technical-investigation/references/analysis-patterns.md +181 -0
  81. package/skills/technical-investigation/references/symptom-gathering.md +164 -0
  82. package/skills/technical-investigation/references/template.md +164 -0
  83. package/skills/technical-planning/SKILL.md +24 -1
  84. package/skills/technical-planning/references/author-tasks.md +16 -16
  85. package/skills/technical-planning/references/define-tasks.md +2 -2
  86. package/skills/technical-planning/references/output-formats/tick/authoring.md +3 -15
  87. package/skills/technical-planning/references/plan-construction.md +11 -30
  88. package/skills/technical-planning/references/plan-review.md +3 -3
  89. package/skills/technical-research/SKILL.md +38 -2
  90. package/skills/technical-review/SKILL.md +1 -2
  91. package/skills/technical-review/references/review-actions-loop.md +43 -1
  92. package/skills/technical-specification/SKILL.md +1 -2
  93. package/skills/technical-specification/references/spec-completion.md +34 -6
  94. package/skills/technical-specification/references/spec-construction.md +1 -1
  95. package/skills/technical-specification/references/spec-review.md +5 -5
  96. package/skills/view-plan/SKILL.md +0 -1
  97. package/skills/workflow/bridge/SKILL.md +82 -0
  98. package/skills/workflow/bridge/references/bugfix-continuation.md +59 -0
  99. package/skills/workflow/bridge/references/feature-continuation.md +60 -0
  100. package/skills/workflow/bridge/references/greenfield-continuation.md +224 -0
  101. package/skills/workflow/bridge/scripts/discovery.sh +512 -0
  102. package/skills/workflow/start/SKILL.md +97 -0
  103. package/skills/workflow/start/references/bugfix-routing.md +117 -0
  104. package/skills/workflow/start/references/feature-routing.md +117 -0
  105. package/skills/workflow/start/references/greenfield-routing.md +140 -0
  106. package/skills/workflow/start/references/work-type-selection.md +83 -0
  107. package/skills/workflow/start/scripts/discovery.sh +577 -0
  108. package/skills/begin-implementation/SKILL.md +0 -162
  109. package/skills/begin-planning/SKILL.md +0 -92
  110. package/skills/begin-review/SKILL.md +0 -90
  111. package/skills/continue-feature/SKILL.md +0 -186
  112. package/skills/continue-feature/references/detect-phase.md +0 -99
  113. package/skills/continue-feature/references/invoke-implementation.md +0 -43
  114. package/skills/continue-feature/references/invoke-planning.md +0 -43
  115. package/skills/continue-feature/references/invoke-review.md +0 -43
  116. package/skills/continue-feature/references/invoke-specification.md +0 -55
  117. package/skills/continue-feature/references/phase-bridge.md +0 -57
  118. package/skills/continue-feature/scripts/discovery.sh +0 -233
  119. package/skills/start-feature/references/phase-bridge.md +0 -37
@@ -0,0 +1,224 @@
1
+ # Greenfield Continuation
2
+
3
+ *Reference for **[workflow:bridge](../SKILL.md)***
4
+
5
+ ---
6
+
7
+ Present greenfield state, let the user choose what to do next, then enter plan mode with that specific choice.
8
+
9
+ Greenfield is phase-centric — all artifacts in a phase complete before moving to the next. Unlike feature/bugfix pipelines, greenfield doesn't route to a single next phase. Instead, present what's actionable across all phases and let the user choose.
10
+
11
+ ## A. Display State
12
+
13
+ Using the discovery output, build the phase-centric view.
14
+
15
+ > *Output the next fenced block as a code block:*
16
+
17
+ ```
18
+ Greenfield — {completed_phase:(titlecase)} Complete
19
+
20
+ "{topic:(titlecase)}" {completed_phase} has concluded.
21
+
22
+ Research:
23
+ @if(research.count > 0)
24
+ @foreach(file in research.files)
25
+ └─ {file}
26
+ @endforeach
27
+ @else
28
+ (none)
29
+ @endif
30
+
31
+ Discussions:
32
+ @if(discussions.count > 0)
33
+ @foreach(disc in discussions.files)
34
+ └─ {disc.name:(titlecase)} ({disc.status})
35
+ @endforeach
36
+ @else
37
+ (none)
38
+ @endif
39
+
40
+ Specifications:
41
+ @if(specifications.count > 0)
42
+ @foreach(spec in specifications.files)
43
+ └─ {spec.name:(titlecase)}
44
+ └─ Spec: {spec.status} ({spec.type})
45
+ └─ Plan: @if(spec.has_plan) exists @else (no plan) @endif
46
+ @endforeach
47
+ @else
48
+ (none)
49
+ @endif
50
+
51
+ Plans:
52
+ @if(plans.count > 0)
53
+ @foreach(plan in plans.files)
54
+ └─ {plan.name:(titlecase)}
55
+ └─ Plan: {plan.status}
56
+ └─ Implementation: @if(plan.has_implementation) exists @else (not started) @endif
57
+ @endforeach
58
+ @else
59
+ (none)
60
+ @endif
61
+
62
+ Implementation:
63
+ @if(implementation.count > 0)
64
+ @foreach(impl in implementation.files)
65
+ └─ {impl.topic:(titlecase)}
66
+ └─ Implementation: {impl.status}
67
+ └─ Review: @if(impl.has_review) exists @else (no review) @endif
68
+ @endforeach
69
+ @else
70
+ (none)
71
+ @endif
72
+ ```
73
+
74
+ → Proceed to **B. Present Choices**.
75
+
76
+ ---
77
+
78
+ ## B. Present Choices
79
+
80
+ Build a numbered menu of actionable items. The verb depends on the state:
81
+
82
+ | State | Verb |
83
+ |-------|------|
84
+ | In-progress discussion | Continue |
85
+ | In-progress specification | Continue |
86
+ | Concluded spec (feature type), no plan | Start planning for |
87
+ | In-progress plan | Continue |
88
+ | Concluded plan, no implementation | Start implementation of |
89
+ | In-progress implementation | Continue |
90
+ | Completed implementation, no review | Start review for |
91
+ | Research exists | Continue research |
92
+
93
+ **Specification phase is different in greenfield**: Don't offer "Start specification from {topic}". Instead, when concluded discussions exist, offer "Start specification" which invokes `/start-specification greenfield`. Don't pass a topic. Always route through discovery mode so analysis can detect changed discussions.
94
+
95
+ **Specification readiness:**
96
+ - All discussions concluded → "Start specification" (recommended)
97
+ - Some discussions still in-progress → "Start specification" with note: "(some discussions still in-progress)"
98
+
99
+ **Recommendation logic**: Mark one item as "(recommended)" based on phase completion state:
100
+ - All discussions concluded, no specifications exist → "Start specification (recommended)"
101
+ - All specifications (feature type) concluded, some without plans → first plannable spec "(recommended)"
102
+ - All plans concluded, some without implementations → first implementable plan "(recommended)"
103
+ - All implementations completed, some without reviews → first reviewable implementation "(recommended)"
104
+ - Otherwise → no recommendation (complete in-progress work first)
105
+
106
+ Always include "Start new research", "Start new discussion", and "Stop here" as final options.
107
+
108
+ > *Output the next fenced block as markdown (not a code block):*
109
+
110
+ ```
111
+ · · · · · · · · · · · ·
112
+ What would you like to do next?
113
+
114
+ 1. Continue "Auth Flow" discussion — in-progress
115
+ 2. Continue "Data Model" specification — in-progress
116
+ 3. Start planning for "User Profiles" — spec concluded
117
+ 4. Continue "Caching" plan — in-progress
118
+ 5. Start implementation of "Notifications" — plan concluded
119
+ 6. Start specification — 3 discussions concluded (recommended)
120
+ 7. Continue research
121
+ 8. Start new research
122
+ 9. Start new discussion
123
+ 10. Stop here — resume later with /workflow:start
124
+
125
+ Select an option (enter number):
126
+ · · · · · · · · · · · ·
127
+ ```
128
+
129
+ Recreate with actual topics and states from discovery. Only include options that apply based on current state.
130
+
131
+ **STOP.** Wait for user response.
132
+
133
+ → Proceed to **C. Route Selection**.
134
+
135
+ ---
136
+
137
+ ## C. Route Selection
138
+
139
+ #### If user chose "Stop here"
140
+
141
+ > *Output the next fenced block as a code block:*
142
+
143
+ ```
144
+ Session Paused
145
+
146
+ To resume later, run /workflow:start — it will discover your
147
+ current state and present all available options.
148
+ ```
149
+
150
+ **STOP.** Do not proceed — terminal condition.
151
+
152
+ #### Otherwise
153
+
154
+ Map the selection to a skill invocation:
155
+
156
+ | Selection | Skill | Work Type | Topic |
157
+ |-----------|-------|-----------|-------|
158
+ | Continue discussion | `/start-discussion` | greenfield | {topic} |
159
+ | Continue specification | `/start-specification` | greenfield | — |
160
+ | Continue plan | `/start-planning` | greenfield | {topic} |
161
+ | Continue implementation | `/start-implementation` | greenfield | {topic} |
162
+ | Continue research | `/start-research` | greenfield | — |
163
+ | Start specification | `/start-specification` | greenfield | — |
164
+ | Start planning for {topic} | `/start-planning` | greenfield | {topic} |
165
+ | Start implementation of {topic} | `/start-implementation` | greenfield | {topic} |
166
+ | Start review for {topic} | `/start-review` | greenfield | {topic} |
167
+ | Start new research | `/start-research` | greenfield | — |
168
+ | Start new discussion | `/start-discussion` | greenfield | — |
169
+
170
+ Skills receive positional arguments: `$0` = work_type, `$1` = topic.
171
+
172
+ **With arguments** (bridge mode): `/start-discussion greenfield {topic}` — skill skips discovery, validates topic, proceeds to processing.
173
+
174
+ **Without arguments** (discovery mode): `/start-discussion greenfield` — skill runs discovery with work_type context.
175
+
176
+ → Proceed to **D. Enter Plan Mode**.
177
+
178
+ ---
179
+
180
+ ## D. Enter Plan Mode
181
+
182
+ #### If topic is present
183
+
184
+ Enter plan mode with the following content:
185
+
186
+ ```
187
+ # Continue Greenfield: {selected_phase:(titlecase)}
188
+
189
+ Continue {selected_phase} for "{selected_topic}".
190
+
191
+ ## Next Step
192
+
193
+ Invoke `/start-{selected_phase} greenfield {selected_topic}`
194
+
195
+ Arguments: work_type = greenfield, topic = {selected_topic}
196
+ The skill will skip discovery and proceed directly to validation.
197
+
198
+ ## How to proceed
199
+
200
+ Clear context and continue.
201
+ ```
202
+
203
+ #### If topic is absent
204
+
205
+ Enter plan mode with the following content:
206
+
207
+ ```
208
+ # Continue Greenfield: {selected_phase:(titlecase)}
209
+
210
+ Start {selected_phase} phase.
211
+
212
+ ## Next Step
213
+
214
+ Invoke `/start-{selected_phase} greenfield`
215
+
216
+ Arguments: work_type = greenfield
217
+ The skill will run discovery with greenfield context.
218
+
219
+ ## How to proceed
220
+
221
+ Clear context and continue.
222
+ ```
223
+
224
+ Exit plan mode. The user will approve and clear context.