@codemcp/workflows-core 5.2.2 → 5.2.3
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/package.json +1 -1
- package/resources/workflows/adr.yaml +62 -48
- package/resources/workflows/big-bang-conversion.yaml +231 -172
- package/resources/workflows/boundary-testing.yaml +137 -95
- package/resources/workflows/bugfix.yaml +33 -38
- package/resources/workflows/business-analysis.yaml +130 -172
- package/resources/workflows/c4-analysis.yaml +120 -114
- package/resources/workflows/epcc.yaml +43 -10
- package/resources/workflows/game-beginner.yaml +113 -103
- package/resources/workflows/greenfield.yaml +61 -38
- package/resources/workflows/minor.yaml +51 -28
- package/resources/workflows/posts.yaml +41 -42
- package/resources/workflows/sdd-bugfix-crowd.yaml +181 -206
- package/resources/workflows/sdd-bugfix.yaml +168 -179
- package/resources/workflows/sdd-feature-crowd.yaml +357 -380
- package/resources/workflows/sdd-feature.yaml +162 -155
- package/resources/workflows/sdd-greenfield-crowd.yaml +82 -74
- package/resources/workflows/sdd-greenfield.yaml +153 -147
- package/resources/workflows/slides.yaml +29 -35
- package/resources/workflows/tdd.yaml +59 -48
- package/resources/workflows/waterfall.yaml +64 -44
|
@@ -27,25 +27,26 @@ states:
|
|
|
27
27
|
analyze:
|
|
28
28
|
description: 'Analyze current state and requirements (optional for new features)'
|
|
29
29
|
default_instructions: |
|
|
30
|
-
|
|
30
|
+
Analyze the current state to understand the context for this feature development.
|
|
31
31
|
|
|
32
32
|
**Analysis Tasks:**
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
33
|
+
|
|
34
|
+
**For New Features**: This phase can be brief. Focus on understanding:
|
|
35
|
+
- How this feature fits into the existing system
|
|
36
|
+
- Integration points with current functionality
|
|
37
|
+
- Existing patterns and conventions to follow
|
|
38
|
+
|
|
39
|
+
**For Enhancements**: Conduct thorough analysis:
|
|
40
|
+
- Current implementation and its limitations
|
|
41
|
+
- User pain points and feedback
|
|
42
|
+
- Performance or usability issues
|
|
43
|
+
- Technical debt that should be addressed
|
|
44
|
+
|
|
45
|
+
**Context Gathering**:
|
|
46
|
+
- Review existing codebase and architecture
|
|
47
|
+
- Understand current user workflows
|
|
48
|
+
- Identify constraints and dependencies
|
|
49
|
+
- Document assumptions about the current state
|
|
49
50
|
|
|
50
51
|
**Output**: Create `$VIBE_DIR/specs/$BRANCH_NAME/current-state-analysis.md` documenting your findings. For simple new features, this can be brief. For enhancements, be comprehensive.
|
|
51
52
|
|
|
@@ -66,37 +67,39 @@ states:
|
|
|
66
67
|
specify:
|
|
67
68
|
description: 'Create feature specification'
|
|
68
69
|
default_instructions: |
|
|
69
|
-
|
|
70
|
+
Create the feature specification that will guide all development decisions.
|
|
70
71
|
|
|
71
72
|
**Specification Process:**
|
|
72
73
|
|
|
73
|
-
1
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
74
|
+
**STEP 1: Parse Requirements**
|
|
75
|
+
- Extract key concepts from the user's description
|
|
76
|
+
- Identify: actors, actions, data, constraints
|
|
77
|
+
- Consider existing system context (from analysis if performed)
|
|
78
|
+
- Focus on WHAT users need and WHY, not HOW to implement
|
|
79
|
+
|
|
80
|
+
**STEP 2: Interactive Requirements Gathering**
|
|
81
|
+
Ask clarifying questions about:
|
|
82
|
+
- **Integration Points**: How should this integrate with existing features?
|
|
83
|
+
- **User Impact**: Which existing users will be affected?
|
|
84
|
+
- **Data Dependencies**: What existing data does this feature need?
|
|
85
|
+
- **Performance**: Any specific performance requirements for this feature?
|
|
86
|
+
- **Compatibility**: Any backward compatibility concerns?
|
|
87
|
+
|
|
88
|
+
**STEP 3: Handle Ambiguities Systematically**
|
|
89
|
+
- Make informed guesses based on context, existing patterns, and industry standards
|
|
90
|
+
- Only use `[NEEDS CLARIFICATION: specific question]` for critical decisions that:
|
|
91
|
+
- Significantly impact feature scope or user experience
|
|
92
|
+
- Have multiple reasonable interpretations with different implications
|
|
93
|
+
- Lack any reasonable default
|
|
94
|
+
- **LIMIT: Maximum 3** `[NEEDS CLARIFICATION]` markers total
|
|
95
|
+
- Prioritize: scope > security/privacy > user experience > technical details
|
|
96
|
+
|
|
97
|
+
**STEP 4: Quality Validation**
|
|
98
|
+
- Ensure no implementation details (languages, frameworks, APIs)
|
|
99
|
+
- Ensure written for non-technical stakeholders
|
|
100
|
+
- Verify all requirements are testable
|
|
101
|
+
- Ensure success criteria are measurable and technology-agnostic
|
|
102
|
+
- Consider existing system constraints
|
|
100
103
|
|
|
101
104
|
Create `$VIBE_DIR/specs/$BRANCH_NAME/spec.md` using the template provided below.
|
|
102
105
|
additional_instructions: |
|
|
@@ -203,38 +206,38 @@ states:
|
|
|
203
206
|
clarify:
|
|
204
207
|
description: 'Review and clarify specification details'
|
|
205
208
|
default_instructions: |
|
|
206
|
-
|
|
209
|
+
Review the specification for completeness and clarity.
|
|
207
210
|
|
|
208
211
|
**Clarification Process:**
|
|
209
212
|
|
|
210
|
-
1
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
2
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
3
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
213
|
+
**STEP 1: Specification Review**
|
|
214
|
+
- Check for any remaining `[NEEDS CLARIFICATION]` markers
|
|
215
|
+
- Verify all functional requirements are testable
|
|
216
|
+
- Ensure success criteria are measurable
|
|
217
|
+
- Validate user scenarios are complete
|
|
218
|
+
|
|
219
|
+
**STEP 2: Handle Remaining Clarifications**
|
|
220
|
+
If `[NEEDS CLARIFICATION]` markers exist:
|
|
221
|
+
- Extract all markers from the spec
|
|
222
|
+
- For each clarification (max 3), present options in structured format:
|
|
223
|
+
```
|
|
224
|
+
## Question [N]: [Topic]
|
|
225
|
+
**Context**: [Quote relevant spec section]
|
|
226
|
+
**What we need to know**: [Specific question]
|
|
227
|
+
**Suggested Answers**:
|
|
228
|
+
| Option | Answer | Implications |
|
|
229
|
+
|--------|--------|--------------|
|
|
230
|
+
| A | [First option] | [Impact on feature] |
|
|
231
|
+
| B | [Second option] | [Impact on feature] |
|
|
232
|
+
| C | [Third option] | [Impact on feature] |
|
|
233
|
+
```
|
|
234
|
+
- Wait for user responses
|
|
235
|
+
- Update specification with chosen answers
|
|
236
|
+
|
|
237
|
+
**STEP 3: Final Validation**
|
|
238
|
+
- Ensure no implementation details leaked in
|
|
239
|
+
- Verify requirements align with existing system
|
|
240
|
+
- Confirm specification is ready for planning
|
|
238
241
|
|
|
239
242
|
**Output**: Updated `$VIBE_DIR/specs/$BRANCH_NAME/spec.md` with all clarifications resolved and ready for implementation planning.
|
|
240
243
|
|
|
@@ -253,46 +256,47 @@ states:
|
|
|
253
256
|
plan:
|
|
254
257
|
description: 'Generate implementation plan with constitutional compliance'
|
|
255
258
|
default_instructions: |
|
|
256
|
-
|
|
259
|
+
Create the implementation plan, considering existing system architecture.
|
|
257
260
|
|
|
258
261
|
**Planning Process:**
|
|
259
262
|
|
|
260
|
-
1
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
2
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
263
|
+
**STEP 1: Load Context**
|
|
264
|
+
- Read the feature specification (`$VIBE_DIR/specs/$BRANCH_NAME/spec.md`)
|
|
265
|
+
- Read analysis findings (`$VIBE_DIR/specs/$BRANCH_NAME/current-state-analysis.md` if exists)
|
|
266
|
+
- Review existing project constitution or architectural principles
|
|
267
|
+
- Understand current system architecture and patterns
|
|
268
|
+
|
|
269
|
+
**STEP 2: Interactive Integration Planning**
|
|
270
|
+
Ask the user about:
|
|
271
|
+
- **Technology Consistency**: Should this use the same tech stack as existing features?
|
|
272
|
+
- **Architecture Alignment**: How should this fit into the current architecture?
|
|
273
|
+
- **Database Changes**: Any new data models or schema changes needed?
|
|
274
|
+
|
|
275
|
+
**STEP 3: Technical Context Analysis**
|
|
276
|
+
- Identify how this feature integrates with existing system
|
|
277
|
+
- Map dependencies and integration points
|
|
278
|
+
- Choose appropriate technology stack (consistent with existing)
|
|
279
|
+
- Mark unknowns as "NEEDS CLARIFICATION" for research
|
|
280
|
+
|
|
281
|
+
**STEP 4: Constitutional/Architectural Compliance**
|
|
282
|
+
- Evaluate approach against existing architectural principles
|
|
283
|
+
- Ensure consistency with current patterns and conventions
|
|
284
|
+
- Identify any violations and justify or resolve them
|
|
285
|
+
|
|
286
|
+
**STEP 5: Phase 0 - Research & Decisions**
|
|
287
|
+
- For each unknown → research task
|
|
288
|
+
- For each integration point → compatibility analysis
|
|
289
|
+
- Generate `$VIBE_DIR/specs/$BRANCH_NAME/technology-research.md` with decisions and rationale
|
|
290
|
+
|
|
291
|
+
**STEP 6: Phase 1 - High-Level Integration Design**
|
|
292
|
+
- Document how this feature integrates with existing architecture
|
|
293
|
+
- Identify integration points and dependencies
|
|
294
|
+
- Plan compatibility and migration requirements
|
|
295
|
+
|
|
296
|
+
**STEP 7: Integration Strategy**
|
|
297
|
+
- Plan how to integrate with existing codebase
|
|
298
|
+
- Identify migration or compatibility requirements
|
|
299
|
+
- Document rollout strategy if needed
|
|
296
300
|
|
|
297
301
|
Create `$VIBE_DIR/specs/$BRANCH_NAME/plan.md` with complete implementation strategy that respects existing system architecture.
|
|
298
302
|
|
|
@@ -311,63 +315,65 @@ states:
|
|
|
311
315
|
tasks:
|
|
312
316
|
description: 'Generate actionable, dependency-ordered tasks organized by user stories'
|
|
313
317
|
default_instructions: |
|
|
314
|
-
|
|
318
|
+
Generate actionable tasks organized by user stories for independent implementation.
|
|
315
319
|
|
|
316
320
|
**Task Generation Process:**
|
|
317
321
|
|
|
318
|
-
1
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
2
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
322
|
+
**STEP 1: Load Design Documents**
|
|
323
|
+
- **Required**: `$VIBE_DIR/specs/$BRANCH_NAME/plan.md`, `$VIBE_DIR/specs/$BRANCH_NAME/spec.md` (user stories with priorities)
|
|
324
|
+
- **Optional**: `$VIBE_DIR/specs/$BRANCH_NAME/technology-research.md`, `$VIBE_DIR/specs/$BRANCH_NAME/current-state-analysis.md`
|
|
325
|
+
|
|
326
|
+
**STEP 2: Extract User Stories**
|
|
327
|
+
Load `$VIBE_DIR/specs/$BRANCH_NAME/spec.md` and extract user stories with priorities (P1, P2, P3...)
|
|
328
|
+
|
|
329
|
+
**STEP 3: Generate Tasks Organized by User Story**
|
|
330
|
+
- **Setup Phase**: Integration setup and shared infrastructure
|
|
331
|
+
- **Foundational Phase**: Prerequisites for this feature (database changes, etc.)
|
|
332
|
+
- **User Story Phases** (P1, P2, P3...): One phase per story in priority order
|
|
333
|
+
- Group all tasks needed to complete JUST that story
|
|
334
|
+
- Include models, services, endpoints, UI components specific to that story
|
|
335
|
+
- Consider integration with existing components
|
|
336
|
+
- Mark parallelizable tasks with `[P]`
|
|
337
|
+
- Each story should be independently testable
|
|
338
|
+
|
|
339
|
+
**STEP 4: Integration Tasks**
|
|
340
|
+
- Tasks for connecting with existing system
|
|
341
|
+
- Migration or compatibility tasks if needed
|
|
342
|
+
- Testing integration points
|
|
343
|
+
|
|
344
|
+
**STEP 5: Apply Task Rules**
|
|
345
|
+
- Different files/components = mark `[P]` for parallel execution
|
|
346
|
+
- Same file = sequential (no `[P]`)
|
|
347
|
+
- Number tasks sequentially (T001, T002...)
|
|
348
|
+
- Ensure each task is specific enough for LLM to complete
|
|
349
|
+
|
|
350
|
+
**STEP 6: Rollout Strategy**
|
|
351
|
+
Plan for gradual feature rollout if applicable
|
|
346
352
|
|
|
347
353
|
additional_instructions: |
|
|
348
354
|
**Document Creation Instructions:**
|
|
349
355
|
|
|
350
356
|
Create these documents in the following order:
|
|
351
357
|
|
|
352
|
-
**1. Data Model (`$VIBE_DIR/specs/$BRANCH_NAME/data-model.md`)
|
|
358
|
+
**1. Data Model** (`$VIBE_DIR/specs/$BRANCH_NAME/data-model.md`)
|
|
353
359
|
- Extract entities from the specification
|
|
354
360
|
- Design data models that integrate with existing system
|
|
355
361
|
- Document relationships with existing entities
|
|
356
362
|
- Include migration requirements if needed
|
|
357
363
|
|
|
358
|
-
**2. API Contracts (`$VIBE_DIR/specs/$BRANCH_NAME/contracts/`)
|
|
364
|
+
**2. API Contracts** (`$VIBE_DIR/specs/$BRANCH_NAME/contracts/`)
|
|
359
365
|
- Design API contracts that integrate with existing system
|
|
360
366
|
- Ensure compatibility with existing data models and APIs
|
|
361
367
|
- Include versioning strategy if needed
|
|
362
368
|
- Document integration points
|
|
363
369
|
|
|
364
|
-
**3. Development Setup (`$VIBE_DIR/specs/$BRANCH_NAME/quickstart.md`)
|
|
370
|
+
**3. Development Setup** (`$VIBE_DIR/specs/$BRANCH_NAME/quickstart.md`)
|
|
365
371
|
- Feature development setup instructions
|
|
366
372
|
- Integration testing setup
|
|
367
373
|
- Local development environment for this feature
|
|
368
374
|
- Testing instructions specific to this feature
|
|
369
375
|
|
|
370
|
-
**4. Task Breakdown (`$VIBE_DIR/specs/$BRANCH_NAME/tasks.md`)
|
|
376
|
+
**4. Task Breakdown** (`$VIBE_DIR/specs/$BRANCH_NAME/tasks.md`)
|
|
371
377
|
Use this structure for the tasks file:
|
|
372
378
|
|
|
373
379
|
```markdown
|
|
@@ -415,25 +421,26 @@ states:
|
|
|
415
421
|
implement:
|
|
416
422
|
description: 'Execute implementation following the task breakdown'
|
|
417
423
|
default_instructions: |
|
|
418
|
-
|
|
424
|
+
Execute the feature implementation by following the tasks defined in `$VIBE_DIR/specs/$BRANCH_NAME/tasks.md`, ensuring proper integration with the existing system.
|
|
419
425
|
|
|
420
426
|
**Implementation Guidelines:**
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
427
|
+
|
|
428
|
+
- Follow task order respecting dependencies and integration requirements
|
|
429
|
+
- Ensure new code follows existing patterns and conventions
|
|
430
|
+
- Complete one user story at a time for incremental delivery
|
|
431
|
+
- Verify each user story meets success criteria from specification
|
|
432
|
+
- Test both new functionality and integration with existing features
|
|
433
|
+
- Update existing documentation as needed
|
|
434
|
+
|
|
435
|
+
**Integration Considerations:**
|
|
429
436
|
- Follow existing code style and patterns
|
|
430
437
|
- Respect current architectural decisions
|
|
431
438
|
- Test integration points thoroughly
|
|
432
439
|
- Consider backward compatibility
|
|
433
440
|
- Update relevant configuration or setup
|
|
434
441
|
|
|
435
|
-
**Progress Tracking
|
|
436
|
-
- Mark completed tasks with [x] in `$VIBE_DIR/specs/$BRANCH_NAME/tasks.md`
|
|
442
|
+
**Progress Tracking:**
|
|
443
|
+
- Mark completed tasks with `[x]` in `$VIBE_DIR/specs/$BRANCH_NAME/tasks.md`
|
|
437
444
|
- Document any integration challenges or decisions
|
|
438
445
|
- Update specification if requirements evolve
|
|
439
446
|
|