@leeovery/claude-technical-workflows 2.0.15 → 2.0.17
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 +41 -24
- package/commands/link-dependencies.md +170 -0
- package/commands/start-discussion.md +6 -313
- package/commands/start-feature.md +80 -0
- package/commands/start-implementation.md +7 -101
- package/commands/start-planning.md +7 -86
- package/commands/start-research.md +7 -13
- package/commands/start-specification.md +7 -81
- package/commands/workflow:start-discussion.md +339 -0
- package/commands/workflow:start-implementation.md +187 -0
- package/commands/workflow:start-planning.md +111 -0
- package/commands/workflow:start-research.md +38 -0
- package/commands/workflow:start-review.md +112 -0
- package/commands/workflow:start-specification.md +106 -0
- package/package.json +1 -1
- package/skills/technical-discussion/SKILL.md +13 -8
- package/skills/technical-implementation/SKILL.md +23 -11
- package/skills/technical-planning/SKILL.md +14 -12
- package/skills/technical-planning/references/dependencies.md +69 -0
- package/skills/technical-planning/references/formal-planning.md +25 -0
- package/skills/technical-planning/references/output-backlog-md.md +75 -4
- package/skills/technical-planning/references/output-beads.md +95 -5
- package/skills/technical-planning/references/output-linear.md +57 -4
- package/skills/technical-planning/references/output-local-markdown.md +71 -3
- package/skills/technical-research/SKILL.md +13 -9
- package/skills/technical-review/SKILL.md +26 -9
- package/skills/technical-review/references/review-checklist.md +4 -2
- package/skills/technical-specification/SKILL.md +16 -9
- package/skills/technical-specification/references/specification-guide.md +8 -9
package/README.md
CHANGED
|
@@ -59,8 +59,8 @@ You have two entry points:
|
|
|
59
59
|
|
|
60
60
|
| Start here... | When... | Command |
|
|
61
61
|
|---------------|---------|---------|
|
|
62
|
-
| **Research** | You have a fresh idea to explore: feasibility, market, viability, early thoughts | `/start-research` |
|
|
63
|
-
| **Discussion** | You already know what you're building and need to iron out the details | `/start-discussion` |
|
|
62
|
+
| **Research** | You have a fresh idea to explore: feasibility, market, viability, early thoughts | `/workflow:start-research` |
|
|
63
|
+
| **Discussion** | You already know what you're building and need to iron out the details | `/workflow:start-discussion` |
|
|
64
64
|
|
|
65
65
|
**Research** is a free-for-all. Explore broadly, follow tangents, challenge assumptions. Not everything researched gets built, and that's fine. Use this for ideas that need validating before you commit.
|
|
66
66
|
|
|
@@ -76,15 +76,16 @@ Each phase builds on the previous. Specification validates your discussions into
|
|
|
76
76
|
|
|
77
77
|
### Commands
|
|
78
78
|
|
|
79
|
-
Each phase has a command designed as its entry point:
|
|
79
|
+
Each phase has a command designed as its entry point. Commands are prefixed with `workflow:` to indicate they're part of the sequential workflow system:
|
|
80
80
|
|
|
81
|
-
| Phase | Command
|
|
82
|
-
|
|
83
|
-
| Research | `/start-research` |
|
|
84
|
-
| Discussion | `/start-discussion` |
|
|
85
|
-
| Specification | `/start-specification` |
|
|
86
|
-
| Planning | `/start-planning` |
|
|
87
|
-
| Implementation | `/start-implementation` |
|
|
81
|
+
| Phase | Command |
|
|
82
|
+
|----------------|----------------------------------|
|
|
83
|
+
| Research | `/workflow:start-research` |
|
|
84
|
+
| Discussion | `/workflow:start-discussion` |
|
|
85
|
+
| Specification | `/workflow:start-specification` |
|
|
86
|
+
| Planning | `/workflow:start-planning` |
|
|
87
|
+
| Implementation | `/workflow:start-implementation` |
|
|
88
|
+
| Review | `/workflow:start-review` |
|
|
88
89
|
|
|
89
90
|
Run the command directly or ask Claude to run it. Each command gathers the context it needs, asking what you're researching, discussing, or planning. Where relevant, it looks at outputs from the previous phase and offers you a choice from the list.
|
|
90
91
|
|
|
@@ -213,11 +214,15 @@ skills/
|
|
|
213
214
|
└── technical-review/ # Phase 6: Validate against artifacts
|
|
214
215
|
|
|
215
216
|
commands/
|
|
216
|
-
├── start-research.md
|
|
217
|
-
├── start-discussion.md
|
|
218
|
-
├── start-specification.md
|
|
219
|
-
├── start-planning.md
|
|
220
|
-
|
|
217
|
+
├── workflow:start-research.md # Begin research exploration
|
|
218
|
+
├── workflow:start-discussion.md # Begin technical discussions
|
|
219
|
+
├── workflow:start-specification.md # Begin specification building
|
|
220
|
+
├── workflow:start-planning.md # Begin implementation planning
|
|
221
|
+
├── workflow:start-implementation.md # Begin implementing a plan
|
|
222
|
+
├── workflow:start-review.md # Begin reviewing completed work
|
|
223
|
+
├── link-dependencies.md # Link dependencies across topics
|
|
224
|
+
├── start-feature.md # Create spec directly from inline context
|
|
225
|
+
└── interview.md # Focused questioning mode (general purpose)
|
|
221
226
|
|
|
222
227
|
agents/
|
|
223
228
|
└── chain-verifier.md # Parallel task verification for review
|
|
@@ -329,16 +334,28 @@ Reviews completed work with fresh perspective. Validates implementation against
|
|
|
329
334
|
|
|
330
335
|
## Commands
|
|
331
336
|
|
|
332
|
-
|
|
337
|
+
### Workflow Commands
|
|
333
338
|
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
|
337
|
-
|
|
338
|
-
| [**/start-
|
|
339
|
-
| [**/start-
|
|
340
|
-
| [**/start-
|
|
341
|
-
| [**/
|
|
339
|
+
Sequential workflow commands are prefixed with `workflow:` and expect files from previous phases.
|
|
340
|
+
|
|
341
|
+
| Command | Description |
|
|
342
|
+
|--------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|
343
|
+
| [**/workflow:start-research**](commands/workflow:start-research.md) | Begin research exploration. For early-stage ideas, feasibility checks, and broad exploration before formal discussion. |
|
|
344
|
+
| [**/workflow:start-discussion**](commands/workflow:start-discussion.md) | Begin a new technical discussion. Gathers topic, context, background information, and relevant codebase areas before starting documentation. |
|
|
345
|
+
| [**/workflow:start-specification**](commands/workflow:start-specification.md) | Start a specification session from an existing discussion. Validates and refines discussion content into a standalone specification. |
|
|
346
|
+
| [**/workflow:start-planning**](commands/workflow:start-planning.md) | Start a planning session from an existing specification. Creates implementation plans with phases, tasks, and acceptance criteria. Supports multiple output formats (markdown, Linear, Backlog.md, Beads). |
|
|
347
|
+
| [**/workflow:start-implementation**](commands/workflow:start-implementation.md) | Start implementing a plan. Executes tasks via strict TDD, committing after each passing test. |
|
|
348
|
+
| [**/workflow:start-review**](commands/workflow:start-review.md) | Start reviewing completed work. Validates implementation against plan tasks and acceptance criteria. |
|
|
349
|
+
|
|
350
|
+
### Standalone Commands
|
|
351
|
+
|
|
352
|
+
These commands can be used independently, without the full workflow.
|
|
353
|
+
|
|
354
|
+
| Command | Description |
|
|
355
|
+
|---------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------|
|
|
356
|
+
| [**/start-feature**](commands/start-feature.md) | Create a specification directly from inline context. For adding features to existing projects when you already know what you're building. |
|
|
357
|
+
| [**/interview**](commands/interview.md) | Shift into focused questioning mode. Probes ideas with non-obvious questions, challenges assumptions, and surfaces concerns. |
|
|
358
|
+
| [**/link-dependencies**](commands/link-dependencies.md) | Link external dependencies across topics. Scans plans and wires up unresolved cross-topic dependencies. |
|
|
342
359
|
|
|
343
360
|
## Agents
|
|
344
361
|
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Scan all plans and wire up cross-topic dependencies. Finds unresolved external dependencies, matches them to tasks in other plans, and updates both the plan index and output format.
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Link cross-topic dependencies across all existing plans.
|
|
6
|
+
|
|
7
|
+
## Instructions
|
|
8
|
+
|
|
9
|
+
Follow these steps EXACTLY as written. Do not skip steps or combine them.
|
|
10
|
+
|
|
11
|
+
## Important
|
|
12
|
+
|
|
13
|
+
Use simple, individual commands. Never combine multiple operations into bash loops or one-liners. Execute commands one at a time.
|
|
14
|
+
|
|
15
|
+
## Step 1: Discover All Plans
|
|
16
|
+
|
|
17
|
+
Scan the codebase for existing plans:
|
|
18
|
+
|
|
19
|
+
1. **Find plan files**: Look in `docs/workflow/planning/`
|
|
20
|
+
- Run `ls docs/workflow/planning/` to list plan files
|
|
21
|
+
- Each file is named `{topic}.md`
|
|
22
|
+
|
|
23
|
+
2. **Extract plan metadata**: For each plan file
|
|
24
|
+
- Read the frontmatter to get the `format:` field
|
|
25
|
+
- Note the format used by each plan
|
|
26
|
+
|
|
27
|
+
**If no plans exist:**
|
|
28
|
+
|
|
29
|
+
```
|
|
30
|
+
No plans found in docs/workflow/planning/
|
|
31
|
+
|
|
32
|
+
There are no plans to link. Create plans first.
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Stop here.
|
|
36
|
+
|
|
37
|
+
**If only one plan exists:**
|
|
38
|
+
|
|
39
|
+
```
|
|
40
|
+
Only one plan found: {topic}
|
|
41
|
+
|
|
42
|
+
Cross-topic dependency linking requires at least two plans.
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Stop here.
|
|
46
|
+
|
|
47
|
+
## Step 2: Check Output Format Consistency
|
|
48
|
+
|
|
49
|
+
Compare the `format:` field across all discovered plans.
|
|
50
|
+
|
|
51
|
+
**If plans use different output formats:**
|
|
52
|
+
|
|
53
|
+
```
|
|
54
|
+
Mixed output formats detected:
|
|
55
|
+
|
|
56
|
+
- authentication: beads
|
|
57
|
+
- billing-system: linear
|
|
58
|
+
- notifications: beads
|
|
59
|
+
|
|
60
|
+
Cross-topic dependencies can only be wired within the same output format.
|
|
61
|
+
Please consolidate your plans to use a single output format before linking dependencies.
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
Stop here.
|
|
65
|
+
|
|
66
|
+
## Step 3: Extract External Dependencies
|
|
67
|
+
|
|
68
|
+
For each plan, find the External Dependencies section:
|
|
69
|
+
|
|
70
|
+
1. **Read the External Dependencies section** from each plan index file
|
|
71
|
+
2. **Categorize each dependency**:
|
|
72
|
+
- **Unresolved**: `- {topic}: {description}` (no arrow, no task ID)
|
|
73
|
+
- **Resolved**: `- {topic}: {description} → {task-id}` (has task ID)
|
|
74
|
+
- **Satisfied externally**: `- ~~{topic}: {description}~~ → satisfied externally`
|
|
75
|
+
|
|
76
|
+
3. **Build a summary**:
|
|
77
|
+
|
|
78
|
+
```
|
|
79
|
+
Dependency Summary
|
|
80
|
+
|
|
81
|
+
Plan: authentication (format: beads)
|
|
82
|
+
- billing-system: Invoice generation (unresolved)
|
|
83
|
+
- user-management: User profiles → beads-7x2k (resolved)
|
|
84
|
+
|
|
85
|
+
Plan: billing-system (format: beads)
|
|
86
|
+
- authentication: User context (unresolved)
|
|
87
|
+
- ~~payment-gateway: Payment processing~~ → satisfied externally
|
|
88
|
+
|
|
89
|
+
Plan: notifications (format: beads)
|
|
90
|
+
- authentication: User lookup (unresolved)
|
|
91
|
+
- billing-system: Invoice events (unresolved)
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
## Step 4: Match Dependencies to Plans
|
|
95
|
+
|
|
96
|
+
For each unresolved dependency:
|
|
97
|
+
|
|
98
|
+
1. **Search for matching plan**: Does `docs/workflow/planning/{dependency-topic}.md` exist?
|
|
99
|
+
- If no match: Mark as "no plan exists" - cannot resolve yet
|
|
100
|
+
|
|
101
|
+
2. **If plan exists**: Load the output format reference file
|
|
102
|
+
- Read `format:` from the dependency plan's frontmatter
|
|
103
|
+
- Load `skills/technical-planning/references/output-{format}.md`
|
|
104
|
+
- Follow the "Querying Dependencies" section to search for matching tasks
|
|
105
|
+
|
|
106
|
+
3. **Handle ambiguous matches**:
|
|
107
|
+
- If multiple tasks could satisfy the dependency, present options to user
|
|
108
|
+
- Allow selecting multiple if the dependency requires multiple tasks
|
|
109
|
+
|
|
110
|
+
## Step 5: Wire Up Dependencies
|
|
111
|
+
|
|
112
|
+
For each resolved match:
|
|
113
|
+
|
|
114
|
+
1. **Update the plan index file**:
|
|
115
|
+
- Change `- {topic}: {description}` to `- {topic}: {description} → {task-id}`
|
|
116
|
+
|
|
117
|
+
2. **Create dependency in output format**:
|
|
118
|
+
- Load `skills/technical-planning/references/output-{format}.md`
|
|
119
|
+
- Follow the "Cross-Epic Dependencies" or equivalent section to create the blocking relationship
|
|
120
|
+
|
|
121
|
+
## Step 6: Bidirectional Check
|
|
122
|
+
|
|
123
|
+
For each plan that was a dependency target (i.e., other plans depend on it):
|
|
124
|
+
|
|
125
|
+
1. **Check reverse dependencies**: Are there other plans that should have this wired up?
|
|
126
|
+
2. **Offer to update**: "Plan X depends on tasks you just linked. Update its External Dependencies section?"
|
|
127
|
+
|
|
128
|
+
## Step 7: Report Results
|
|
129
|
+
|
|
130
|
+
Present a summary:
|
|
131
|
+
|
|
132
|
+
```
|
|
133
|
+
Dependency Linking Complete
|
|
134
|
+
|
|
135
|
+
RESOLVED (newly linked):
|
|
136
|
+
- authentication → billing-system: beads-b7c2.1.1 (Invoice generation)
|
|
137
|
+
- notifications → authentication: beads-a3f8.1.2 (Session management)
|
|
138
|
+
|
|
139
|
+
ALREADY RESOLVED (no action needed):
|
|
140
|
+
- authentication → user-management: beads-9m3p
|
|
141
|
+
|
|
142
|
+
SATISFIED EXTERNALLY (no action needed):
|
|
143
|
+
- billing-system → payment-gateway
|
|
144
|
+
|
|
145
|
+
UNRESOLVED (no matching plan exists):
|
|
146
|
+
- notifications → email-service: Email delivery
|
|
147
|
+
|
|
148
|
+
These dependencies have no corresponding plan. Either:
|
|
149
|
+
- Create a plan for the topic
|
|
150
|
+
- Mark as "satisfied externally" if already implemented
|
|
151
|
+
|
|
152
|
+
UPDATED FILES:
|
|
153
|
+
- docs/workflow/planning/authentication.md
|
|
154
|
+
- docs/workflow/planning/notifications.md
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
## Step 8: Commit Changes
|
|
158
|
+
|
|
159
|
+
If any files were updated:
|
|
160
|
+
|
|
161
|
+
```
|
|
162
|
+
Shall I commit these dependency updates? (y/n)
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
If yes, commit with message:
|
|
166
|
+
```
|
|
167
|
+
Link cross-topic dependencies
|
|
168
|
+
|
|
169
|
+
- {summary of what was linked}
|
|
170
|
+
```
|
|
@@ -1,322 +1,15 @@
|
|
|
1
1
|
---
|
|
2
|
-
description:
|
|
2
|
+
description: "[DEPRECATED] Use /workflow:start-discussion instead"
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
# Deprecated Command
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
⚠️ **`/start-discussion` is deprecated.** Use `/workflow:start-discussion` instead.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
The command has been renamed to use the `workflow:` prefix to distinguish workflow commands from standalone commands.
|
|
10
10
|
|
|
11
|
-
Before beginning, discover existing work and determine the best entry path.
|
|
12
|
-
|
|
13
|
-
## Important
|
|
14
|
-
|
|
15
|
-
Use simple, individual commands. Never combine multiple operations into bash loops or one-liners. Execute commands one at a time.
|
|
16
|
-
|
|
17
|
-
## Step 1: Discover Existing Work
|
|
18
|
-
|
|
19
|
-
Scan the codebase for research and discussions:
|
|
20
|
-
|
|
21
|
-
1. **Find research**: Look in `docs/workflow/research/`
|
|
22
|
-
- Run `ls docs/workflow/research/` to list research files
|
|
23
|
-
- Note which files exist (may include `exploration.md` and semantic files like `market-landscape.md`)
|
|
24
|
-
|
|
25
|
-
2. **Find discussions**: Look in `docs/workflow/discussion/`
|
|
26
|
-
- Run `ls docs/workflow/discussion/` to list discussion files
|
|
27
|
-
- Each file is named `{topic}.md`
|
|
28
|
-
|
|
29
|
-
3. **Check discussion status**: For each discussion file
|
|
30
|
-
- Run `head -10 docs/workflow/discussion/{topic}.md` to extract the `Status:` field
|
|
31
|
-
- Status values: `Exploring`, `Deciding`, or `Concluded`
|
|
32
|
-
- Do NOT use bash loops - run separate commands for each file
|
|
33
|
-
|
|
34
|
-
4. **Check for cached analysis** (if research files exist):
|
|
35
|
-
- Check if `docs/workflow/.cache/research-analysis.md` exists
|
|
36
|
-
- If it exists, read it to get the stored checksum from the frontmatter
|
|
37
|
-
|
|
38
|
-
5. **Compute current research checksum** (if research files exist):
|
|
39
|
-
- Run exactly: `cat docs/workflow/research/*.md 2>/dev/null | md5sum | cut -d' ' -f1`
|
|
40
|
-
- IMPORTANT: Use this exact command - glob expansion is alphabetically sorted by default
|
|
41
|
-
- Do NOT modify or "simplify" this command - checksum must be deterministic
|
|
42
|
-
- Store this value to compare with the cached checksum
|
|
43
|
-
|
|
44
|
-
## Step 2: Present Workflow State and Options
|
|
45
|
-
|
|
46
|
-
Present the workflow state and available options based on what was discovered.
|
|
47
|
-
|
|
48
|
-
**Format:**
|
|
49
|
-
```
|
|
50
|
-
📂 Workflow state:
|
|
51
|
-
📚 Research: {count} files found / None found
|
|
52
|
-
💬 Discussions: {count} existing / None yet
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
Then present the appropriate options:
|
|
56
|
-
|
|
57
|
-
**If research AND discussions exist:**
|
|
58
|
-
```
|
|
59
|
-
How would you like to proceed?
|
|
60
|
-
|
|
61
|
-
1. **From research** - Analyze research and suggest undiscussed topics
|
|
62
|
-
2. **Continue discussion** - Resume an existing discussion
|
|
63
|
-
3. **Fresh topic** - Start a new discussion
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
**If ONLY research exists:**
|
|
67
|
-
```
|
|
68
|
-
How would you like to proceed?
|
|
69
|
-
|
|
70
|
-
1. **From research** - Analyze research and suggest topics to discuss
|
|
71
|
-
2. **Fresh topic** - Start a new discussion
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
**If ONLY discussions exist:**
|
|
75
|
-
```
|
|
76
|
-
How would you like to proceed?
|
|
77
|
-
|
|
78
|
-
1. **Continue discussion** - Resume an existing discussion
|
|
79
|
-
2. **Fresh topic** - Start a new discussion
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
**If NOTHING exists:**
|
|
83
|
-
```
|
|
84
|
-
Starting fresh - no prior research or discussions found.
|
|
85
|
-
|
|
86
|
-
What topic would you like to discuss?
|
|
87
|
-
```
|
|
88
|
-
Then skip to Step 5 (Fresh topic path).
|
|
89
|
-
|
|
90
|
-
Wait for the user to choose before proceeding.
|
|
91
|
-
|
|
92
|
-
## Step 3A: "From research" Path
|
|
93
|
-
|
|
94
|
-
This step uses caching to avoid re-analyzing unchanged research documents.
|
|
95
|
-
|
|
96
|
-
### Step 3A.1: Check Cache Validity
|
|
97
|
-
|
|
98
|
-
Compare the current research checksum (computed in Step 1.5) with the cached checksum:
|
|
99
|
-
|
|
100
|
-
**If cache exists AND checksums match:**
|
|
101
|
-
```
|
|
102
|
-
📋 Using cached analysis
|
|
103
|
-
|
|
104
|
-
Research documents unchanged since last analysis ({date from cache}).
|
|
105
|
-
Loading {count} previously identified topics...
|
|
106
|
-
|
|
107
|
-
💡 To force a fresh analysis, enter: refresh
|
|
108
|
-
```
|
|
109
|
-
|
|
110
|
-
Then load the topics from the cache file and skip to Step 3A.3 (Cross-reference).
|
|
111
|
-
|
|
112
|
-
**If cache missing OR checksums differ:**
|
|
113
|
-
```
|
|
114
|
-
🔍 Analyzing research documents...
|
|
115
|
-
```
|
|
116
|
-
|
|
117
|
-
Proceed to Step 3A.2 (Full Analysis).
|
|
118
|
-
|
|
119
|
-
### Step 3A.2: Full Analysis (when cache invalid)
|
|
120
|
-
|
|
121
|
-
Read each research file and analyze the content to extract key themes and potential discussion topics. For each theme:
|
|
122
|
-
- Note the source file and relevant line numbers
|
|
123
|
-
- Summarize what the theme is about in 1-2 sentences
|
|
124
|
-
- Identify key questions or decisions that need discussion
|
|
125
|
-
|
|
126
|
-
**Be thorough**: This analysis will be cached, so take time to identify ALL potential topics including:
|
|
127
|
-
- Major architectural decisions
|
|
128
|
-
- Technical trade-offs mentioned
|
|
129
|
-
- Open questions or concerns raised
|
|
130
|
-
- Implementation approaches discussed
|
|
131
|
-
- Integration points with external systems
|
|
132
|
-
- Security or performance considerations
|
|
133
|
-
- Edge cases or error handling mentioned
|
|
134
|
-
|
|
135
|
-
**Save to cache:**
|
|
136
|
-
After analysis, create/update `docs/workflow/.cache/research-analysis.md`:
|
|
137
|
-
|
|
138
|
-
```markdown
|
|
139
11
|
---
|
|
140
|
-
checksum: {computed_checksum}
|
|
141
|
-
generated: {ISO date}
|
|
142
|
-
research_files:
|
|
143
|
-
- {filename1}.md
|
|
144
|
-
- {filename2}.md
|
|
145
|
-
---
|
|
146
|
-
|
|
147
|
-
# Research Analysis Cache
|
|
148
|
-
|
|
149
|
-
## Topics
|
|
150
|
-
|
|
151
|
-
### {Theme name}
|
|
152
|
-
- **Source**: {filename}.md (lines {start}-{end})
|
|
153
|
-
- **Summary**: {1-2 sentence summary}
|
|
154
|
-
- **Key questions**: {what needs deciding}
|
|
155
|
-
|
|
156
|
-
### {Another theme}
|
|
157
|
-
- **Source**: {filename}.md (lines {start}-{end})
|
|
158
|
-
- **Summary**: {1-2 sentence summary}
|
|
159
|
-
- **Key questions**: {what needs deciding}
|
|
160
|
-
|
|
161
|
-
[... more topics ...]
|
|
162
|
-
```
|
|
163
|
-
|
|
164
|
-
Ensure the `.cache` directory exists: `mkdir -p docs/workflow/.cache`
|
|
165
|
-
|
|
166
|
-
### Step 3A.3: Cross-reference with Discussions
|
|
167
|
-
|
|
168
|
-
**Always performed** (whether using cache or fresh analysis):
|
|
169
|
-
|
|
170
|
-
For each identified topic, check if a corresponding discussion already exists in `docs/workflow/discussion/`.
|
|
171
|
-
|
|
172
|
-
### Step 3A.4: Present Findings
|
|
173
|
-
|
|
174
|
-
**If using cached analysis:**
|
|
175
|
-
```
|
|
176
|
-
📋 Cached analysis (research unchanged since {date})
|
|
177
|
-
|
|
178
|
-
💡 Topics identified:
|
|
179
|
-
|
|
180
|
-
✨ {Theme name}
|
|
181
|
-
Source: {filename}.md (lines {start}-{end})
|
|
182
|
-
"{Brief summary}"
|
|
183
|
-
|
|
184
|
-
✅ {Already discussed theme} → discussed in {topic}.md
|
|
185
|
-
Source: {filename}.md (lines {start}-{end})
|
|
186
|
-
"{Brief summary}"
|
|
187
|
-
|
|
188
|
-
Which topic would you like to discuss? (Or enter 'refresh' for fresh analysis)
|
|
189
|
-
```
|
|
190
|
-
|
|
191
|
-
**If fresh analysis:**
|
|
192
|
-
```
|
|
193
|
-
🔍 Analysis complete (cached for future sessions)
|
|
194
|
-
|
|
195
|
-
💡 Topics identified:
|
|
196
|
-
|
|
197
|
-
✨ {Theme name}
|
|
198
|
-
Source: {filename}.md (lines {start}-{end})
|
|
199
|
-
"{Brief summary}"
|
|
200
|
-
|
|
201
|
-
✅ {Already discussed theme} → discussed in {topic}.md
|
|
202
|
-
Source: {filename}.md (lines {start}-{end})
|
|
203
|
-
"{Brief summary}"
|
|
204
|
-
|
|
205
|
-
Which topic would you like to discuss? (Or describe something else)
|
|
206
|
-
```
|
|
207
|
-
|
|
208
|
-
**Key:**
|
|
209
|
-
- ✨ = Undiscussed topic (potential new discussion)
|
|
210
|
-
- ✅ = Already has a corresponding discussion
|
|
211
|
-
|
|
212
|
-
### Step 3A.5: Handle "refresh" Request
|
|
213
|
-
|
|
214
|
-
If user enters `refresh`:
|
|
215
|
-
- Delete the cache file: `rm docs/workflow/.cache/research-analysis.md`
|
|
216
|
-
- Return to Step 3A.2 (Full Analysis)
|
|
217
|
-
- Inform user: "Refreshing analysis..."
|
|
218
|
-
|
|
219
|
-
**Important:** Keep track of the source file and line numbers for the chosen topic - this will be passed to the skill.
|
|
220
|
-
|
|
221
|
-
Wait for the user to choose before proceeding to Step 4.
|
|
222
|
-
|
|
223
|
-
## Step 3B: "Continue discussion" Path
|
|
224
|
-
|
|
225
|
-
List existing discussions with their status:
|
|
226
|
-
|
|
227
|
-
```
|
|
228
|
-
💬 Existing discussions:
|
|
229
|
-
|
|
230
|
-
⚡ {topic}.md — {Status}
|
|
231
|
-
"{Brief description from context section}"
|
|
232
|
-
|
|
233
|
-
⚡ {topic}.md — {Status}
|
|
234
|
-
"{Brief description}"
|
|
235
|
-
|
|
236
|
-
✅ {topic}.md — Concluded
|
|
237
|
-
"{Brief description}"
|
|
238
|
-
|
|
239
|
-
Which discussion would you like to continue?
|
|
240
|
-
```
|
|
241
|
-
|
|
242
|
-
**Key:**
|
|
243
|
-
- ⚡ = In progress (Exploring or Deciding)
|
|
244
|
-
- ✅ = Concluded (can still be continued/reopened)
|
|
245
|
-
|
|
246
|
-
Wait for the user to choose, then proceed to Step 4.
|
|
247
|
-
|
|
248
|
-
## Step 3C: "Fresh topic" Path
|
|
249
|
-
|
|
250
|
-
Proceed directly to Step 4.
|
|
251
|
-
|
|
252
|
-
## Step 4: Gather Context
|
|
253
|
-
|
|
254
|
-
Gather context based on the chosen path.
|
|
255
|
-
|
|
256
|
-
**If starting new discussion (from research or fresh):**
|
|
257
|
-
|
|
258
|
-
```
|
|
259
|
-
## New discussion: {topic}
|
|
260
|
-
|
|
261
|
-
Before we begin:
|
|
262
|
-
|
|
263
|
-
1. What's the core problem or decision we need to work through?
|
|
264
|
-
|
|
265
|
-
2. Any constraints or context I should know about?
|
|
266
|
-
|
|
267
|
-
3. Are there specific files in the codebase I should review first?
|
|
268
|
-
```
|
|
269
|
-
|
|
270
|
-
Wait for responses before proceeding.
|
|
271
|
-
|
|
272
|
-
**If continuing existing discussion:**
|
|
273
|
-
|
|
274
|
-
Read the existing discussion document first, then ask:
|
|
275
|
-
|
|
276
|
-
```
|
|
277
|
-
## Continuing: {topic}
|
|
278
|
-
|
|
279
|
-
I've read the existing discussion.
|
|
280
|
-
|
|
281
|
-
What would you like to focus on in this session?
|
|
282
|
-
```
|
|
283
|
-
|
|
284
|
-
Wait for response before proceeding.
|
|
285
|
-
|
|
286
|
-
## Step 5: Invoke Discussion Skill
|
|
287
|
-
|
|
288
|
-
Begin the discussion session with appropriate context based on the path taken.
|
|
289
|
-
|
|
290
|
-
**If from research:**
|
|
291
|
-
```
|
|
292
|
-
Discussion session for: {topic}
|
|
293
|
-
Output: docs/workflow/discussion/{topic}.md
|
|
294
|
-
|
|
295
|
-
## Research Reference
|
|
296
|
-
Source: docs/workflow/research/{filename}.md (lines {start}-{end})
|
|
297
|
-
Summary: {the 1-2 sentence summary from Step 3A}
|
|
298
|
-
|
|
299
|
-
Begin discussion using the technical-discussion skill.
|
|
300
|
-
```
|
|
301
|
-
|
|
302
|
-
**If continuing or fresh:**
|
|
303
|
-
```
|
|
304
|
-
Discussion session for: {topic}
|
|
305
|
-
Source: {existing discussion | fresh}
|
|
306
|
-
Output: docs/workflow/discussion/{topic}.md
|
|
307
|
-
|
|
308
|
-
Begin discussion using the technical-discussion skill.
|
|
309
|
-
```
|
|
310
|
-
|
|
311
|
-
**Setup:**
|
|
312
|
-
- Ensure discussion directory exists: `docs/workflow/discussion/`
|
|
313
|
-
- If new: Create file using the template structure
|
|
314
|
-
- If continuing: Work with existing file
|
|
315
|
-
- Commit frequently at natural discussion breaks
|
|
316
12
|
|
|
317
|
-
|
|
13
|
+
**Forwarding to `/workflow:start-discussion`...**
|
|
318
14
|
|
|
319
|
-
|
|
320
|
-
- Discussion captures WHAT and WHY - don't jump to specifications or implementation
|
|
321
|
-
- The goal is to work through edge cases, debates, and decisions before planning
|
|
322
|
-
- Commit the discussion document frequently during the session
|
|
15
|
+
Run the `/workflow:start-discussion` command now.
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Start a feature specification directly, skipping formal discussion documentation. For adding features to existing projects where you already know what you're building.
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Invoke the **technical-specification** skill for this conversation with inline feature context.
|
|
6
|
+
|
|
7
|
+
## Instructions
|
|
8
|
+
|
|
9
|
+
Follow these steps EXACTLY as written. Do not skip steps or combine them.
|
|
10
|
+
|
|
11
|
+
This command is for **feature mode** - a streamlined path to specification when you already know what you're building and don't need formal discussion documentation.
|
|
12
|
+
|
|
13
|
+
## Step 1: Gather Feature Context
|
|
14
|
+
|
|
15
|
+
Ask the user these questions (can be combined into one prompt):
|
|
16
|
+
|
|
17
|
+
1. **What feature are you adding?**
|
|
18
|
+
- Brief description of what you're building
|
|
19
|
+
|
|
20
|
+
2. **What's the scope?**
|
|
21
|
+
- Core functionality to implement
|
|
22
|
+
- Edge cases you're already aware of
|
|
23
|
+
|
|
24
|
+
3. **Any constraints or integration points?**
|
|
25
|
+
- How this integrates with existing code
|
|
26
|
+
- Technical decisions already made
|
|
27
|
+
- Conventions to follow
|
|
28
|
+
|
|
29
|
+
**Note**: If the user has already provided this context in their initial message, don't ask again - acknowledge what they've shared and proceed.
|
|
30
|
+
|
|
31
|
+
## Step 2: Suggest a Topic Name
|
|
32
|
+
|
|
33
|
+
Based on the feature description, suggest a topic name for the specification file:
|
|
34
|
+
|
|
35
|
+
```
|
|
36
|
+
Based on what you've described, I'd suggest the topic name: {suggested-topic}
|
|
37
|
+
|
|
38
|
+
This will create: docs/workflow/specification/{suggested-topic}.md
|
|
39
|
+
|
|
40
|
+
Is this name okay, or would you prefer something else?
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Step 3: Check for Existing Specifications
|
|
44
|
+
|
|
45
|
+
Look in `docs/workflow/specification/` for naming conflicts:
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
ls docs/workflow/specification/
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
If a specification with the same name exists, inform the user and ask how to proceed:
|
|
52
|
+
- Append to existing specification
|
|
53
|
+
- Choose a different name
|
|
54
|
+
- Replace existing specification
|
|
55
|
+
|
|
56
|
+
## Step 4: Invoke Specification Skill
|
|
57
|
+
|
|
58
|
+
Pass the gathered context to the technical-specification skill:
|
|
59
|
+
|
|
60
|
+
```
|
|
61
|
+
Feature specification for: {topic}
|
|
62
|
+
|
|
63
|
+
## Feature Context (from user)
|
|
64
|
+
|
|
65
|
+
{paste the gathered feature description, scope, and constraints}
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
69
|
+
Begin specification building using the technical-specification skill.
|
|
70
|
+
|
|
71
|
+
This is feature mode - there is no discussion document to reference.
|
|
72
|
+
Work from the inline context provided above.
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
## Notes
|
|
76
|
+
|
|
77
|
+
- The specification skill will synthesize the inline context, present it for validation, and build the specification
|
|
78
|
+
- Output is a standard specification file at `docs/workflow/specification/{topic}.md`
|
|
79
|
+
- From there, the user can proceed to `/workflow:start-planning` as normal
|
|
80
|
+
- This path skips formal discussion documentation - use the full workflow for complex features that need debate captured
|