jettypod 4.1.2 → 4.1.4
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/.nvmrc +1 -0
- package/docs/COMPLETE-TESTING-STRATEGY.md +970 -0
- package/docs/DECISIONS.md +10 -12
- package/docs/NODE_VERSION.md +83 -0
- package/docs/TDD-INFRASTRUCTURE-STRATEGY.md +1374 -0
- package/docs/TESTING-FOR-NON-ENGINEERS.md +1588 -0
- package/docs/TESTING-STRATEGY-AUDIT.md +698 -0
- package/hooks/post-checkout +17 -0
- package/hooks/post-merge +17 -0
- package/hooks/pre-commit +30 -0
- package/jettypod.js +259 -120
- package/lib/coverage-tracker.js +218 -0
- package/lib/database.js +2 -0
- package/lib/db-export.js +192 -0
- package/lib/db-import.js +193 -0
- package/lib/external-transition-handler.js +32 -0
- package/lib/git-hook-helpers.js +174 -0
- package/lib/git-root.js +90 -0
- package/lib/infrastructure-chore-generator.js +45 -0
- package/lib/install-hooks.js +52 -0
- package/lib/jettypod-backup.js +238 -0
- package/lib/merge-lock.js +193 -0
- package/lib/migrations/012-add-worktree-path.js +38 -0
- package/lib/migrations/013-worktrees-table.js +86 -0
- package/lib/migrations/014-migrate-worktree-data.js +161 -0
- package/lib/migrations/015-merge-locks-table.js +67 -0
- package/lib/pattern-finder.js +152 -0
- package/lib/process-manager.js +140 -0
- package/lib/production-standards-reader.js +13 -2
- package/lib/production-standards-writer.js +85 -0
- package/lib/skills/feature-planning/dry-run-validator.js +135 -0
- package/lib/skills/feature-planning/validation-formatter.js +160 -0
- package/lib/smart-conflict-detection.js +168 -0
- package/lib/smart-fetch-rebase.js +614 -0
- package/lib/step-definition-parser.js +76 -0
- package/lib/unit-test-generator.js +232 -0
- package/lib/verification-command-generator.js +66 -0
- package/lib/worktree-diagnostics.js +413 -0
- package/lib/worktree-facade.js +174 -0
- package/lib/worktree-manager.js +636 -0
- package/lib/worktree-reconciler.js +429 -0
- package/package.json +30 -3
- package/skills-templates/external-transition/SKILL.md +34 -3
- package/skills-templates/feature-planning/SKILL.md +190 -24
- package/skills-templates/production-mode/SKILL.md +127 -9
- package/skills-templates/speed-mode/SKILL.md +454 -51
- package/skills-templates/stable-mode/SKILL.md +285 -76
- package/.claude/PROTECT_SKILLS.md +0 -28
- package/.claude/settings.json +0 -24
- package/.claude/settings.local.json +0 -16
- package/.claude/skills/epic-planning/SKILL.md +0 -297
- package/.claude/skills/external-transition/SKILL.md +0 -384
- package/.claude/skills/feature-planning/SKILL.md +0 -464
- package/.claude/skills/production-mode/SKILL.md +0 -369
- package/.claude/skills/speed-mode/SKILL.md +0 -481
- package/.claude/skills/stable-mode/SKILL.md +0 -713
- package/.claude/skills.backup-2025-11-10T23-33-09-368Z/epic-planning/SKILL.md +0 -297
- package/.claude/skills.backup-2025-11-10T23-33-09-368Z/feature-planning/SKILL.md +0 -464
- package/.claude/skills.backup-2025-11-10T23-33-09-368Z/speed-mode/SKILL.md +0 -467
- package/.claude/skills.backup-2025-11-10T23-33-09-368Z/stable-mode/SKILL.md +0 -673
- package/.claude/skills.backup-2025-11-11T16-15-10-070Z/epic-discover/SKILL.md +0 -297
- package/.claude/skills.backup-2025-11-11T16-42-43-212Z/epic-planning/SKILL.md +0 -297
- package/.claude/skills.backup-2025-11-11T16-42-43-212Z/feature-planning/SKILL.md +0 -464
- package/.claude/skills.backup-2025-11-11T16-42-43-212Z/speed-mode/SKILL.md +0 -467
- package/.claude/skills.backup-2025-11-11T16-42-43-212Z/stable-mode/SKILL.md +0 -673
- package/.claude/skills.backup-2025-11-11T17-06-09-783Z/epic-planning/SKILL.md +0 -297
- package/.claude/skills.backup-2025-11-11T17-06-09-783Z/feature-planning/SKILL.md +0 -464
- package/.claude/skills.backup-2025-11-11T17-06-09-783Z/speed-mode/SKILL.md +0 -467
- package/.claude/skills.backup-2025-11-11T17-06-09-783Z/stable-mode/SKILL.md +0 -673
- package/.devpod/current-work.json +0 -10
- package/.devpod/work.db +0 -0
- package/.github/workflows/test-safety.yml +0 -85
- package/.jettypod/config.json +0 -5
- package/.jettypod/current-work.json +0 -10
- package/.jettypod/hooks/README.md +0 -77
- package/.jettypod/hooks/protect-claude-md.js +0 -338
- package/.jettypod/test-work.db +0 -0
- package/.jettypod/work.db +0 -0
- package/CLAUDE.md +0 -49
- package/SPEED-STABLE-AUDIT.md +0 -853
- package/SYSTEM-BEHAVIOR.md +0 -2199
- package/TEST_SAFETY_AUDIT.md +0 -314
- package/TEST_SAFETY_IMPLEMENTATION.md +0 -97
- package/cucumber-report.html +0 -45
- package/dist/devpod-linux +0 -0
- package/dist/devpod-macos +0 -0
- package/dist/devpod-win.exe +0 -0
- package/docs/features/jettypod-standards-explained.md +0 -543
- package/docs/features/standards-inventory.md +0 -257
- package/features/auto-generate-production-chores.feature +0 -13
- package/features/backlog-command.feature +0 -26
- package/features/backlog-filtering-production.feature +0 -10
- package/features/claude-md-protection/steps.js +0 -498
- package/features/decisions/index.js +0 -490
- package/features/decisions/index.test.js +0 -208
- package/features/fix-text-wrapping.feature +0 -42
- package/features/git-hooks/git-hooks.feature +0 -30
- package/features/git-hooks/index.js +0 -93
- package/features/git-hooks/index.test.js +0 -137
- package/features/git-hooks/post-commit +0 -56
- package/features/git-hooks/post-merge +0 -47
- package/features/git-hooks/pre-commit +0 -28
- package/features/git-hooks/simple-steps.js +0 -53
- package/features/git-hooks/simple-test.feature +0 -10
- package/features/git-hooks/steps.js +0 -196
- package/features/jettypod-update-command.feature +0 -46
- package/features/mode-prompts/index.js +0 -95
- package/features/mode-prompts/simple-steps.js +0 -44
- package/features/mode-prompts/simple-test.feature +0 -9
- package/features/mode-prompts/validation.test.js +0 -120
- package/features/multiple-claude-instances.feature +0 -121
- package/features/production-mode-skill.feature +0 -121
- package/features/refactor-mode/steps.js +0 -217
- package/features/refactor-mode.feature +0 -49
- package/features/simplify-external-transition.feature +0 -166
- package/features/skills-update/index.test.js +0 -216
- package/features/step_definitions/backlog-command.steps.js +0 -37
- package/features/step_definitions/fix-text-wrapping.steps.js +0 -271
- package/features/step_definitions/multiple-claude-instances.steps.js +0 -621
- package/features/step_definitions/production-mode-skill.steps.js +0 -862
- package/features/step_definitions/simplify-external-transition.steps.js +0 -370
- package/features/step_definitions/terminal-logo.steps.js +0 -145
- package/features/step_definitions/update-command.steps.js +0 -183
- package/features/support/hooks.js +0 -9
- package/features/terminal-logo/index.js +0 -39
- package/features/terminal-logo/terminal-logo.feature +0 -30
- package/features/update-command/index.js +0 -181
- package/features/update-command/index.test.js +0 -225
- package/features/work-commands/bug-workflow-display.feature +0 -22
- package/features/work-commands/index.js +0 -498
- package/features/work-commands/simple-steps.js +0 -69
- package/features/work-commands/stable-tests.feature +0 -57
- package/features/work-commands/steps.js +0 -1174
- package/features/work-commands/validation.test.js +0 -88
- package/features/work-commands/work-commands.feature +0 -13
- package/features/work-tracking/discovery-validation.test.js +0 -228
- package/features/work-tracking/index.js +0 -1921
- package/features/work-tracking/mode-required.feature +0 -112
- package/features/work-tracking/phase-tracking.test.js +0 -482
- package/features/work-tracking/prototype-tracking.test.js +0 -485
- package/features/work-tracking/tree-view.test.js +0 -310
- package/features/work-tracking/work-set-mode.feature +0 -71
- package/features/work-tracking/work-start-mode.feature +0 -88
- package/full-test.txt +0 -0
- package/lib/bug-workflow.test.js +0 -177
- package/lib/claudemd.test.js +0 -195
- package/lib/config.test.js +0 -511
- package/lib/constants.test.js +0 -164
- package/lib/current-work.test.js +0 -146
- package/lib/database-project-config.test.js +0 -111
- package/lib/database.test.js +0 -106
- package/lib/decisions-generator.test.js +0 -457
- package/lib/decisions-helpers.test.js +0 -310
- package/lib/git-coordinator.js +0 -167
- package/lib/git.test.js +0 -145
- package/lib/migrations/002-default-work-item-modes.test.js +0 -351
- package/lib/production-chore-generator.test.js +0 -432
- package/lib/production-context-detector.test.js +0 -277
- package/lib/production-scenario-appender.test.js +0 -235
- package/lib/production-scenario-validator.test.js +0 -246
- package/lib/production-standards-reader.test.js +0 -270
- package/lib/project-state.test.js +0 -92
- package/lib/push-queue.js +0 -417
- package/lib/queue-processor.js +0 -74
- package/lib/test-helpers.js +0 -202
- package/lib/test-helpers.test.js +0 -255
- package/prototypes/2025-01-11-production-mode-autonomous.js +0 -119
- package/prototypes/2025-01-11-production-mode-collaborative.js +0 -166
- package/prototypes/2025-01-11-production-mode-guided.js +0 -217
- package/prototypes/2025-01-11-production-mode-smart-context.js +0 -347
- package/prototypes/2025-01-11-production-standards-example.md +0 -204
- package/prototypes/2025-11-10-backlog-filtering-tree-aware.js +0 -242
- package/prototypes/test/index.html +0 -1
- package/setup-dist-repo.sh +0 -68
- package/test-production-standards-engine.js +0 -130
- package/test-results.json +0 -2195
- package/test-safety-check.sh +0 -80
- package/work-item-tracking-plan.md +0 -199
- /package/{.jettypod/devpod.db → jettypod.db} +0 -0
|
@@ -1,297 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: epic-discover
|
|
3
|
-
description: Guide epic planning with feature brainstorming and optional architectural decision prototyping. Use when user asks to plan an epic, mentions planning features for an epic, says "help me plan epic", or when they just created an epic and want to break it down into features.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Epic Discovery Skill
|
|
7
|
-
|
|
8
|
-
Guides Claude through comprehensive epic planning including feature identification and architectural decisions.
|
|
9
|
-
|
|
10
|
-
## Instructions
|
|
11
|
-
|
|
12
|
-
When this skill is activated, you are helping plan an epic. Follow this structured approach:
|
|
13
|
-
|
|
14
|
-
### Step 1: Understand the Epic
|
|
15
|
-
|
|
16
|
-
You'll receive context about the epic being planned. Review:
|
|
17
|
-
- Epic title and description
|
|
18
|
-
- Project context
|
|
19
|
-
- Any parent context
|
|
20
|
-
|
|
21
|
-
### Step 2: Check Existing Features and Decisions
|
|
22
|
-
|
|
23
|
-
**CRITICAL:** Before suggesting features or approaches, check what already exists:
|
|
24
|
-
|
|
25
|
-
**Check for existing features:**
|
|
26
|
-
```bash
|
|
27
|
-
node jettypod.js backlog | grep -A 20 "Epic Name"
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
If features already exist, acknowledge them and skip to Step 4 (Architectural Decision).
|
|
31
|
-
|
|
32
|
-
**Check for existing decisions:**
|
|
33
|
-
```bash
|
|
34
|
-
node -e "const { showDecisionsForEpic } = require('./features/decisions/index.js'); showDecisionsForEpic(epicId)"
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
If decisions exist, present them to the user:
|
|
38
|
-
|
|
39
|
-
```
|
|
40
|
-
🎯 **Existing Architectural Decisions for This Epic:**
|
|
41
|
-
|
|
42
|
-
[For each decision:]
|
|
43
|
-
- **[Aspect]:** [Decision]
|
|
44
|
-
*Rationale:* [Why this was chosen]
|
|
45
|
-
*Decided:* [Date]
|
|
46
|
-
|
|
47
|
-
These decisions were made previously. Before we continue:
|
|
48
|
-
1. Do these decisions still apply?
|
|
49
|
-
2. Should we revisit any of them?
|
|
50
|
-
3. Are there additional aspects we need to decide?
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
Only proceed with suggesting new architectural options if:
|
|
54
|
-
- No decisions exist yet, OR
|
|
55
|
-
- User confirms decisions need to be revisited, OR
|
|
56
|
-
- User identifies new aspects to decide
|
|
57
|
-
|
|
58
|
-
### Step 3: Brainstorm Features (Skip if Features Already Exist)
|
|
59
|
-
|
|
60
|
-
Based on the epic's purpose, suggest features that belong in this epic:
|
|
61
|
-
|
|
62
|
-
```
|
|
63
|
-
I'll help you plan the features for this epic.
|
|
64
|
-
|
|
65
|
-
Based on [epic name], here are the features I recommend:
|
|
66
|
-
|
|
67
|
-
**Feature 1: [Name]** - [Brief description of what users can do]
|
|
68
|
-
**Feature 2: [Name]** - [Brief description]
|
|
69
|
-
**Feature 3: [Name]** - [Brief description]
|
|
70
|
-
...
|
|
71
|
-
|
|
72
|
-
**Questions:**
|
|
73
|
-
- [Any clarifying questions about scope]
|
|
74
|
-
- [Missing features to consider]
|
|
75
|
-
|
|
76
|
-
What features should we include? What am I missing?
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
### Step 4: Architectural Decision (Optional)
|
|
80
|
-
|
|
81
|
-
After features are defined, ask if this epic needs a shared technical approach:
|
|
82
|
-
|
|
83
|
-
```
|
|
84
|
-
**Architectural question:** Does this epic need a shared technical decision?
|
|
85
|
-
|
|
86
|
-
For example:
|
|
87
|
-
- Which library/framework for this capability?
|
|
88
|
-
- What data structure or protocol?
|
|
89
|
-
- What architectural pattern?
|
|
90
|
-
|
|
91
|
-
Examples where architectural decisions matter:
|
|
92
|
-
- Real-time features: WebSockets vs SSE vs polling?
|
|
93
|
-
- Auth system: Which auth library and token strategy?
|
|
94
|
-
- Data sync: Optimistic vs pessimistic locking?
|
|
95
|
-
|
|
96
|
-
Should we explore different architectural approaches?
|
|
97
|
-
```
|
|
98
|
-
|
|
99
|
-
### Step 5A: If Architectural Decision Needed
|
|
100
|
-
|
|
101
|
-
If the epic needs architectural decision, suggest exactly 3 approaches:
|
|
102
|
-
|
|
103
|
-
```
|
|
104
|
-
Here are 3 different architectural approaches for [epic name]:
|
|
105
|
-
|
|
106
|
-
**Option 1: [Simple/Conservative approach name]**
|
|
107
|
-
- **Pros**: ✅ [2-3 advantages - proven, reliable, fast to implement]
|
|
108
|
-
- **Cons**: ❌ [2-3 trade-offs - limitations, constraints]
|
|
109
|
-
- **Technical Impact**: [How this affects the features in this epic]
|
|
110
|
-
|
|
111
|
-
**Option 2: [Balanced approach name]**
|
|
112
|
-
- **Pros**: ✅ [2-3 advantages - good balance]
|
|
113
|
-
- **Cons**: ❌ [2-3 trade-offs]
|
|
114
|
-
- **Technical Impact**: [How this affects the features in this epic]
|
|
115
|
-
|
|
116
|
-
**Option 3: [Advanced/Modern approach name]**
|
|
117
|
-
- **Pros**: ✅ [2-3 advantages - powerful, flexible]
|
|
118
|
-
- **Cons**: ❌ [2-3 trade-offs - complexity, learning curve]
|
|
119
|
-
- **Technical Impact**: [How this affects the features in this epic]
|
|
120
|
-
|
|
121
|
-
**Additional approaches considered but not recommended:**
|
|
122
|
-
- *[Alternative 1]*: [Brief] - Not selected because [reason]
|
|
123
|
-
- *[Alternative 2]*: [Brief] - Not selected because [reason]
|
|
124
|
-
|
|
125
|
-
Would you like me to create working prototypes of these architectural approaches?
|
|
126
|
-
```
|
|
127
|
-
|
|
128
|
-
### Step 5B: If Prototyping Needed
|
|
129
|
-
|
|
130
|
-
If user wants to prototype approaches:
|
|
131
|
-
|
|
132
|
-
1. Build 2-3 prototype approaches in `/prototypes/epic-[id]-[approach-name]/`
|
|
133
|
-
2. Each prototype should demonstrate the architectural difference
|
|
134
|
-
3. **Add prototype header**:
|
|
135
|
-
```
|
|
136
|
-
// Prototype: Epic [epic-id] - [approach name]
|
|
137
|
-
// Created: [date]
|
|
138
|
-
// Purpose: Demonstrate [architectural aspect]
|
|
139
|
-
// Decision: [to be filled after testing]
|
|
140
|
-
```
|
|
141
|
-
4. After user tests, help them choose the winner
|
|
142
|
-
5. Document the decision and rationale
|
|
143
|
-
|
|
144
|
-
### Step 5C: If Approach Already Known
|
|
145
|
-
|
|
146
|
-
If user already knows the approach or skips prototyping:
|
|
147
|
-
|
|
148
|
-
```
|
|
149
|
-
Which architectural approach works best for this epic?
|
|
150
|
-
```
|
|
151
|
-
|
|
152
|
-
Then record their decision.
|
|
153
|
-
|
|
154
|
-
### Step 6: Create Features and Complete Discovery
|
|
155
|
-
|
|
156
|
-
Once features are defined and architectural decision is made (if needed):
|
|
157
|
-
|
|
158
|
-
**CRITICAL: You must EXECUTE commands using the Bash tool. Do NOT just display them as text.**
|
|
159
|
-
|
|
160
|
-
#### Step 6A: Create Features
|
|
161
|
-
|
|
162
|
-
Use the Bash tool to create each feature:
|
|
163
|
-
|
|
164
|
-
```javascript
|
|
165
|
-
// For each feature, use Bash tool to execute:
|
|
166
|
-
node jettypod.js work create feature "[Feature 1]" "[Description]" --parent=[epic-id]
|
|
167
|
-
node jettypod.js work create feature "[Feature 2]" "[Description]" --parent=[epic-id]
|
|
168
|
-
// etc.
|
|
169
|
-
```
|
|
170
|
-
|
|
171
|
-
Display to user as you create each one:
|
|
172
|
-
```
|
|
173
|
-
Creating features...
|
|
174
|
-
✅ Created Feature #123: [Feature 1]
|
|
175
|
-
✅ Created Feature #456: [Feature 2]
|
|
176
|
-
```
|
|
177
|
-
|
|
178
|
-
#### Step 6B: Record Architectural Decision (if applicable)
|
|
179
|
-
|
|
180
|
-
If an architectural decision was made, propose the rationale to the user:
|
|
181
|
-
|
|
182
|
-
```
|
|
183
|
-
I'm going to record this architectural decision:
|
|
184
|
-
|
|
185
|
-
Aspect: Architecture
|
|
186
|
-
Decision: [architectural approach chosen]
|
|
187
|
-
Rationale: [why this approach was selected]
|
|
188
|
-
|
|
189
|
-
Does this rationale capture why you chose this approach? (You can edit it if needed)
|
|
190
|
-
```
|
|
191
|
-
|
|
192
|
-
**WAIT for user to confirm or provide edited rationale.**
|
|
193
|
-
|
|
194
|
-
**CRITICAL: After user confirms, use Bash tool to EXECUTE the epic-implement command:**
|
|
195
|
-
|
|
196
|
-
```javascript
|
|
197
|
-
// Use Bash tool to execute:
|
|
198
|
-
node jettypod.js work epic-implement [epic-id] \
|
|
199
|
-
--aspect="Architecture" \
|
|
200
|
-
--decision="[architectural approach chosen]" \
|
|
201
|
-
--rationale="[user's confirmed/edited rationale]"
|
|
202
|
-
```
|
|
203
|
-
|
|
204
|
-
**DO NOT display this as example text. EXECUTE IT using the Bash tool.**
|
|
205
|
-
|
|
206
|
-
After execution succeeds, verify the decision was recorded and display:
|
|
207
|
-
|
|
208
|
-
```
|
|
209
|
-
✅ Architectural decision recorded
|
|
210
|
-
|
|
211
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
212
|
-
🎯 Epic Planning Complete!
|
|
213
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
214
|
-
|
|
215
|
-
Features created: [count]
|
|
216
|
-
Architectural decision: Recorded
|
|
217
|
-
|
|
218
|
-
**Next step:** Plan your first feature
|
|
219
|
-
Run: jettypod work discover [feature-id]
|
|
220
|
-
Or talk to Claude Code: "Let's do feature discovery for #[feature-id]"
|
|
221
|
-
```
|
|
222
|
-
|
|
223
|
-
## Key Principles
|
|
224
|
-
|
|
225
|
-
1. **Feature brainstorming is always required** - Don't skip this even if architectural decision is clear
|
|
226
|
-
2. **Architectural decision is optional** - Not all epics need one (e.g., "Q1 Goals" is just grouping)
|
|
227
|
-
3. **Always suggest exactly 3 options** when architectural decision needed - Simple/Conservative, Balanced, Advanced
|
|
228
|
-
4. **Be specific about features** - Each feature should be user-facing capability
|
|
229
|
-
5. **Use the Approach Suggestion template** - Pros, Cons, Technical Impact format
|
|
230
|
-
6. **Suggest next step** - Always end with clear guidance on what to do next
|
|
231
|
-
7. **Use jettypod commands** - Create features using jettypod CLI, record decisions with epic-implement
|
|
232
|
-
|
|
233
|
-
## Example: Epic with Architectural Decision
|
|
234
|
-
|
|
235
|
-
Epic: "Real-time Collaboration"
|
|
236
|
-
|
|
237
|
-
**Features brainstormed:**
|
|
238
|
-
- Live cursor tracking
|
|
239
|
-
- Concurrent editing with conflict resolution
|
|
240
|
-
- Presence indicators
|
|
241
|
-
- Real-time chat
|
|
242
|
-
|
|
243
|
-
**Architectural approaches suggested:**
|
|
244
|
-
|
|
245
|
-
**Option 1: Long Polling (REST)**
|
|
246
|
-
- **Pros**: ✅ Simple, works with all proxies, uses existing HTTP infrastructure
|
|
247
|
-
- **Cons**: ❌ Higher latency (1-2s), more server load, inefficient for high-frequency updates
|
|
248
|
-
- **Technical Impact**: Each feature polls independently, easy to implement per feature
|
|
249
|
-
|
|
250
|
-
**Option 2: Server-Sent Events (SSE)**
|
|
251
|
-
- **Pros**: ✅ Lightweight, auto-reconnection, efficient one-way streaming
|
|
252
|
-
- **Cons**: ❌ One-direction only (server→client), limited browser connections (6 per domain)
|
|
253
|
-
- **Technical Impact**: Good for cursor/presence, requires separate POST for edits
|
|
254
|
-
|
|
255
|
-
**Option 3: WebSockets (Socket.io)**
|
|
256
|
-
- **Pros**: ✅ Bidirectional, low latency (<100ms), perfect for real-time, fallback support
|
|
257
|
-
- **Cons**: ❌ More complex infrastructure, requires sticky sessions, WebSocket proxies needed
|
|
258
|
-
- **Technical Impact**: All features use unified connection, best UX but infrastructure complexity
|
|
259
|
-
|
|
260
|
-
**Additional approaches considered:**
|
|
261
|
-
- *WebRTC Data Channels*: Peer-to-peer, low latency - Not selected due to NAT/firewall traversal complexity
|
|
262
|
-
- *GraphQL Subscriptions*: Good for selective updates - Not selected as overkill for this use case
|
|
263
|
-
|
|
264
|
-
**User choice:** Option 3 (WebSockets with Socket.io)
|
|
265
|
-
|
|
266
|
-
**Rationale confirmation:**
|
|
267
|
-
Claude proposes: "Bidirectional real-time updates needed for collaboration, Socket.io provides fallbacks and auto-reconnection"
|
|
268
|
-
User confirms: "Yes, that's right"
|
|
269
|
-
|
|
270
|
-
**Command run:**
|
|
271
|
-
```bash
|
|
272
|
-
jettypod work epic-implement 5 \
|
|
273
|
-
--aspect="Architecture" \
|
|
274
|
-
--decision="WebSockets with Socket.io" \
|
|
275
|
-
--rationale="Bidirectional real-time updates needed for collaboration, Socket.io provides fallbacks and auto-reconnection"
|
|
276
|
-
```
|
|
277
|
-
|
|
278
|
-
## Example: Epic without Architectural Decision
|
|
279
|
-
|
|
280
|
-
Epic: "User Management"
|
|
281
|
-
|
|
282
|
-
**Features brainstormed:**
|
|
283
|
-
- User registration
|
|
284
|
-
- Profile editing
|
|
285
|
-
- Password reset
|
|
286
|
-
- Account deletion
|
|
287
|
-
|
|
288
|
-
**Architectural decision:** None needed - these are independent features using existing auth system
|
|
289
|
-
|
|
290
|
-
## Validation
|
|
291
|
-
|
|
292
|
-
Before completing epic discovery, ensure:
|
|
293
|
-
- [ ] At least 2-3 features identified
|
|
294
|
-
- [ ] Features are user-facing capabilities (not technical tasks)
|
|
295
|
-
- [ ] Architectural decision documented if needed
|
|
296
|
-
- [ ] Features created in database
|
|
297
|
-
- [ ] User knows next step .jettypod work discover [feature-id])
|
|
@@ -1,297 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: epic-planning
|
|
3
|
-
description: Guide epic planning with feature brainstorming and optional architectural decision prototyping. Use when user asks to plan an epic, mentions planning features for an epic, says "help me plan epic", or when they just created an epic and want to break it down into features.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Epic Planning Skill
|
|
7
|
-
|
|
8
|
-
Guides Claude through comprehensive epic planning including feature identification and architectural decisions.
|
|
9
|
-
|
|
10
|
-
## Instructions
|
|
11
|
-
|
|
12
|
-
When this skill is activated, you are helping plan an epic. Follow this structured approach:
|
|
13
|
-
|
|
14
|
-
### Step 1: Understand the Epic
|
|
15
|
-
|
|
16
|
-
You'll receive context about the epic being planned. Review:
|
|
17
|
-
- Epic title and description
|
|
18
|
-
- Project context
|
|
19
|
-
- Any parent context
|
|
20
|
-
|
|
21
|
-
### Step 2: Check Existing Features and Decisions
|
|
22
|
-
|
|
23
|
-
**CRITICAL:** Before suggesting features or approaches, check what already exists:
|
|
24
|
-
|
|
25
|
-
**Check for existing features:**
|
|
26
|
-
```bash
|
|
27
|
-
node jettypod.js backlog | grep -A 20 "Epic Name"
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
If features already exist, acknowledge them and skip to Step 4 (Architectural Decision).
|
|
31
|
-
|
|
32
|
-
**Check for existing decisions:**
|
|
33
|
-
```bash
|
|
34
|
-
node -e "const { showDecisionsForEpic } = require('./features/decisions/index.js'); showDecisionsForEpic(epicId)"
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
If decisions exist, present them to the user:
|
|
38
|
-
|
|
39
|
-
```
|
|
40
|
-
🎯 **Existing Architectural Decisions for This Epic:**
|
|
41
|
-
|
|
42
|
-
[For each decision:]
|
|
43
|
-
- **[Aspect]:** [Decision]
|
|
44
|
-
*Rationale:* [Why this was chosen]
|
|
45
|
-
*Decided:* [Date]
|
|
46
|
-
|
|
47
|
-
These decisions were made previously. Before we continue:
|
|
48
|
-
1. Do these decisions still apply?
|
|
49
|
-
2. Should we revisit any of them?
|
|
50
|
-
3. Are there additional aspects we need to decide?
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
Only proceed with suggesting new architectural options if:
|
|
54
|
-
- No decisions exist yet, OR
|
|
55
|
-
- User confirms decisions need to be revisited, OR
|
|
56
|
-
- User identifies new aspects to decide
|
|
57
|
-
|
|
58
|
-
### Step 3: Brainstorm Features (Skip if Features Already Exist)
|
|
59
|
-
|
|
60
|
-
Based on the epic's purpose, suggest features that belong in this epic:
|
|
61
|
-
|
|
62
|
-
```
|
|
63
|
-
I'll help you plan the features for this epic.
|
|
64
|
-
|
|
65
|
-
Based on [epic name], here are the features I recommend:
|
|
66
|
-
|
|
67
|
-
**Feature 1: [Name]** - [Brief description of what users can do]
|
|
68
|
-
**Feature 2: [Name]** - [Brief description]
|
|
69
|
-
**Feature 3: [Name]** - [Brief description]
|
|
70
|
-
...
|
|
71
|
-
|
|
72
|
-
**Questions:**
|
|
73
|
-
- [Any clarifying questions about scope]
|
|
74
|
-
- [Missing features to consider]
|
|
75
|
-
|
|
76
|
-
What features should we include? What am I missing?
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
### Step 4: Architectural Decision (Optional)
|
|
80
|
-
|
|
81
|
-
After features are defined, ask if this epic needs a shared technical approach:
|
|
82
|
-
|
|
83
|
-
```
|
|
84
|
-
**Architectural question:** Does this epic need a shared technical decision?
|
|
85
|
-
|
|
86
|
-
For example:
|
|
87
|
-
- Which library/framework for this capability?
|
|
88
|
-
- What data structure or protocol?
|
|
89
|
-
- What architectural pattern?
|
|
90
|
-
|
|
91
|
-
Examples where architectural decisions matter:
|
|
92
|
-
- Real-time features: WebSockets vs SSE vs polling?
|
|
93
|
-
- Auth system: Which auth library and token strategy?
|
|
94
|
-
- Data sync: Optimistic vs pessimistic locking?
|
|
95
|
-
|
|
96
|
-
Should we explore different architectural approaches?
|
|
97
|
-
```
|
|
98
|
-
|
|
99
|
-
### Step 5A: If Architectural Decision Needed
|
|
100
|
-
|
|
101
|
-
If the epic needs architectural decision, suggest exactly 3 approaches:
|
|
102
|
-
|
|
103
|
-
```
|
|
104
|
-
Here are 3 different architectural approaches for [epic name]:
|
|
105
|
-
|
|
106
|
-
**Option 1: [Simple/Conservative approach name]**
|
|
107
|
-
- **Pros**: ✅ [2-3 advantages - proven, reliable, fast to implement]
|
|
108
|
-
- **Cons**: ❌ [2-3 trade-offs - limitations, constraints]
|
|
109
|
-
- **Technical Impact**: [How this affects the features in this epic]
|
|
110
|
-
|
|
111
|
-
**Option 2: [Balanced approach name]**
|
|
112
|
-
- **Pros**: ✅ [2-3 advantages - good balance]
|
|
113
|
-
- **Cons**: ❌ [2-3 trade-offs]
|
|
114
|
-
- **Technical Impact**: [How this affects the features in this epic]
|
|
115
|
-
|
|
116
|
-
**Option 3: [Advanced/Modern approach name]**
|
|
117
|
-
- **Pros**: ✅ [2-3 advantages - powerful, flexible]
|
|
118
|
-
- **Cons**: ❌ [2-3 trade-offs - complexity, learning curve]
|
|
119
|
-
- **Technical Impact**: [How this affects the features in this epic]
|
|
120
|
-
|
|
121
|
-
**Additional approaches considered but not recommended:**
|
|
122
|
-
- *[Alternative 1]*: [Brief] - Not selected because [reason]
|
|
123
|
-
- *[Alternative 2]*: [Brief] - Not selected because [reason]
|
|
124
|
-
|
|
125
|
-
Would you like me to create working prototypes of these architectural approaches?
|
|
126
|
-
```
|
|
127
|
-
|
|
128
|
-
### Step 5B: If Prototyping Needed
|
|
129
|
-
|
|
130
|
-
If user wants to prototype approaches:
|
|
131
|
-
|
|
132
|
-
1. Build 2-3 prototype approaches in `/prototypes/epic-[id]-[approach-name]/`
|
|
133
|
-
2. Each prototype should demonstrate the architectural difference
|
|
134
|
-
3. **Add prototype header**:
|
|
135
|
-
```
|
|
136
|
-
// Prototype: Epic [epic-id] - [approach name]
|
|
137
|
-
// Created: [date]
|
|
138
|
-
// Purpose: Demonstrate [architectural aspect]
|
|
139
|
-
// Decision: [to be filled after testing]
|
|
140
|
-
```
|
|
141
|
-
4. After user tests, help them choose the winner
|
|
142
|
-
5. Document the decision and rationale
|
|
143
|
-
|
|
144
|
-
### Step 5C: If Approach Already Known
|
|
145
|
-
|
|
146
|
-
If user already knows the approach or skips prototyping:
|
|
147
|
-
|
|
148
|
-
```
|
|
149
|
-
Which architectural approach works best for this epic?
|
|
150
|
-
```
|
|
151
|
-
|
|
152
|
-
Then record their decision.
|
|
153
|
-
|
|
154
|
-
### Step 6: Create Features and Complete Discovery
|
|
155
|
-
|
|
156
|
-
Once features are defined and architectural decision is made (if needed):
|
|
157
|
-
|
|
158
|
-
**CRITICAL: You must EXECUTE commands using the Bash tool. Do NOT just display them as text.**
|
|
159
|
-
|
|
160
|
-
#### Step 6A: Create Features
|
|
161
|
-
|
|
162
|
-
Use the Bash tool to create each feature:
|
|
163
|
-
|
|
164
|
-
```javascript
|
|
165
|
-
// For each feature, use Bash tool to execute:
|
|
166
|
-
node jettypod.js work create feature "[Feature 1]" "[Description]" --parent=[epic-id]
|
|
167
|
-
node jettypod.js work create feature "[Feature 2]" "[Description]" --parent=[epic-id]
|
|
168
|
-
// etc.
|
|
169
|
-
```
|
|
170
|
-
|
|
171
|
-
Display to user as you create each one:
|
|
172
|
-
```
|
|
173
|
-
Creating features...
|
|
174
|
-
✅ Created Feature #123: [Feature 1]
|
|
175
|
-
✅ Created Feature #456: [Feature 2]
|
|
176
|
-
```
|
|
177
|
-
|
|
178
|
-
#### Step 6B: Record Architectural Decision (if applicable)
|
|
179
|
-
|
|
180
|
-
If an architectural decision was made, propose the rationale to the user:
|
|
181
|
-
|
|
182
|
-
```
|
|
183
|
-
I'm going to record this architectural decision:
|
|
184
|
-
|
|
185
|
-
Aspect: Architecture
|
|
186
|
-
Decision: [architectural approach chosen]
|
|
187
|
-
Rationale: [why this approach was selected]
|
|
188
|
-
|
|
189
|
-
Does this rationale capture why you chose this approach? (You can edit it if needed)
|
|
190
|
-
```
|
|
191
|
-
|
|
192
|
-
**WAIT for user to confirm or provide edited rationale.**
|
|
193
|
-
|
|
194
|
-
**CRITICAL: After user confirms, use Bash tool to EXECUTE the epic-implement command:**
|
|
195
|
-
|
|
196
|
-
```javascript
|
|
197
|
-
// Use Bash tool to execute:
|
|
198
|
-
node jettypod.js work epic-implement [epic-id] \
|
|
199
|
-
--aspect="Architecture" \
|
|
200
|
-
--decision="[architectural approach chosen]" \
|
|
201
|
-
--rationale="[user's confirmed/edited rationale]"
|
|
202
|
-
```
|
|
203
|
-
|
|
204
|
-
**DO NOT display this as example text. EXECUTE IT using the Bash tool.**
|
|
205
|
-
|
|
206
|
-
After execution succeeds, verify the decision was recorded and display:
|
|
207
|
-
|
|
208
|
-
```
|
|
209
|
-
✅ Architectural decision recorded
|
|
210
|
-
|
|
211
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
212
|
-
🎯 Epic Planning Complete!
|
|
213
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
214
|
-
|
|
215
|
-
Features created: [count]
|
|
216
|
-
Architectural decision: Recorded
|
|
217
|
-
|
|
218
|
-
**Next step:** Plan your first feature
|
|
219
|
-
Run: jettypod work discover [feature-id]
|
|
220
|
-
Or talk to Claude Code: "Let's do feature discovery for #[feature-id]"
|
|
221
|
-
```
|
|
222
|
-
|
|
223
|
-
## Key Principles
|
|
224
|
-
|
|
225
|
-
1. **Feature brainstorming is always required** - Don't skip this even if architectural decision is clear
|
|
226
|
-
2. **Architectural decision is optional** - Not all epics need one (e.g., "Q1 Goals" is just grouping)
|
|
227
|
-
3. **Always suggest exactly 3 options** when architectural decision needed - Simple/Conservative, Balanced, Advanced
|
|
228
|
-
4. **Be specific about features** - Each feature should be user-facing capability
|
|
229
|
-
5. **Use the Approach Suggestion template** - Pros, Cons, Technical Impact format
|
|
230
|
-
6. **Suggest next step** - Always end with clear guidance on what to do next
|
|
231
|
-
7. **Use jettypod commands** - Create features using jettypod CLI, record decisions with epic-implement
|
|
232
|
-
|
|
233
|
-
## Example: Epic with Architectural Decision
|
|
234
|
-
|
|
235
|
-
Epic: "Real-time Collaboration"
|
|
236
|
-
|
|
237
|
-
**Features brainstormed:**
|
|
238
|
-
- Live cursor tracking
|
|
239
|
-
- Concurrent editing with conflict resolution
|
|
240
|
-
- Presence indicators
|
|
241
|
-
- Real-time chat
|
|
242
|
-
|
|
243
|
-
**Architectural approaches suggested:**
|
|
244
|
-
|
|
245
|
-
**Option 1: Long Polling (REST)**
|
|
246
|
-
- **Pros**: ✅ Simple, works with all proxies, uses existing HTTP infrastructure
|
|
247
|
-
- **Cons**: ❌ Higher latency (1-2s), more server load, inefficient for high-frequency updates
|
|
248
|
-
- **Technical Impact**: Each feature polls independently, easy to implement per feature
|
|
249
|
-
|
|
250
|
-
**Option 2: Server-Sent Events (SSE)**
|
|
251
|
-
- **Pros**: ✅ Lightweight, auto-reconnection, efficient one-way streaming
|
|
252
|
-
- **Cons**: ❌ One-direction only (server→client), limited browser connections (6 per domain)
|
|
253
|
-
- **Technical Impact**: Good for cursor/presence, requires separate POST for edits
|
|
254
|
-
|
|
255
|
-
**Option 3: WebSockets (Socket.io)**
|
|
256
|
-
- **Pros**: ✅ Bidirectional, low latency (<100ms), perfect for real-time, fallback support
|
|
257
|
-
- **Cons**: ❌ More complex infrastructure, requires sticky sessions, WebSocket proxies needed
|
|
258
|
-
- **Technical Impact**: All features use unified connection, best UX but infrastructure complexity
|
|
259
|
-
|
|
260
|
-
**Additional approaches considered:**
|
|
261
|
-
- *WebRTC Data Channels*: Peer-to-peer, low latency - Not selected due to NAT/firewall traversal complexity
|
|
262
|
-
- *GraphQL Subscriptions*: Good for selective updates - Not selected as overkill for this use case
|
|
263
|
-
|
|
264
|
-
**User choice:** Option 3 (WebSockets with Socket.io)
|
|
265
|
-
|
|
266
|
-
**Rationale confirmation:**
|
|
267
|
-
Claude proposes: "Bidirectional real-time updates needed for collaboration, Socket.io provides fallbacks and auto-reconnection"
|
|
268
|
-
User confirms: "Yes, that's right"
|
|
269
|
-
|
|
270
|
-
**Command run:**
|
|
271
|
-
```bash
|
|
272
|
-
jettypod work epic-implement 5 \
|
|
273
|
-
--aspect="Architecture" \
|
|
274
|
-
--decision="WebSockets with Socket.io" \
|
|
275
|
-
--rationale="Bidirectional real-time updates needed for collaboration, Socket.io provides fallbacks and auto-reconnection"
|
|
276
|
-
```
|
|
277
|
-
|
|
278
|
-
## Example: Epic without Architectural Decision
|
|
279
|
-
|
|
280
|
-
Epic: "User Management"
|
|
281
|
-
|
|
282
|
-
**Features brainstormed:**
|
|
283
|
-
- User registration
|
|
284
|
-
- Profile editing
|
|
285
|
-
- Password reset
|
|
286
|
-
- Account deletion
|
|
287
|
-
|
|
288
|
-
**Architectural decision:** None needed - these are independent features using existing auth system
|
|
289
|
-
|
|
290
|
-
## Validation
|
|
291
|
-
|
|
292
|
-
Before completing epic discovery, ensure:
|
|
293
|
-
- [ ] At least 2-3 features identified
|
|
294
|
-
- [ ] Features are user-facing capabilities (not technical tasks)
|
|
295
|
-
- [ ] Architectural decision documented if needed
|
|
296
|
-
- [ ] Features created in database
|
|
297
|
-
- [ ] User knows next step .jettypod work discover [feature-id])
|