smart-spec-kit-mcp 2.0.0 → 2.0.2
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 +111 -169
- package/dist/cli.d.ts +13 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +307 -0
- package/dist/cli.js.map +1 -0
- package/dist/tools/orchestrationTools.d.ts.map +1 -1
- package/dist/tools/orchestrationTools.js +84 -27
- package/dist/tools/orchestrationTools.js.map +1 -1
- package/dist/utils/starterKitInstaller.d.ts +44 -0
- package/dist/utils/starterKitInstaller.d.ts.map +1 -0
- package/dist/utils/starterKitInstaller.js +264 -0
- package/dist/utils/starterKitInstaller.js.map +1 -0
- package/package.json +10 -5
- package/starter-kit/memory/constitution.md +122 -0
- package/starter-kit/prompts/speckit.clarify.md +129 -0
- package/starter-kit/prompts/speckit.implement.md +122 -0
- package/starter-kit/prompts/speckit.init.md +153 -0
- package/starter-kit/prompts/speckit.plan.md +145 -0
- package/starter-kit/prompts/speckit.specify.md +123 -0
- package/starter-kit/prompts/speckit.tasks.md +137 -0
- package/starter-kit/templates/bugfix-report.md +127 -0
- package/starter-kit/templates/functional-spec.md +144 -0
- package/starter-kit/templates/plan-template.md +126 -0
- package/starter-kit/templates/tasks-template.md +153 -0
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
# Tasks: [FEATURE NAME]
|
|
2
|
+
|
|
3
|
+
**Input**: Design documents from `/specs/[feature]/`
|
|
4
|
+
**Generated**: [DATE]
|
|
5
|
+
**Total Tasks**: [COUNT]
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Task Format
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
- [ ] T### [P?] [Story?] Description - `path/to/file.ext`
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
**Legend**:
|
|
16
|
+
- `T###`: Task ID (sequential)
|
|
17
|
+
- `[P]`: Can be executed in parallel with other `[P]` tasks in same phase
|
|
18
|
+
- `[Story?]`: Associated user story ID (optional)
|
|
19
|
+
- File path in backticks shows primary file(s) affected
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## Phase 1: Setup (Shared Infrastructure)
|
|
24
|
+
|
|
25
|
+
**Purpose**: Project initialization and basic structure
|
|
26
|
+
**Duration**: [X days]
|
|
27
|
+
|
|
28
|
+
- [ ] T001 Initialize project with package manager - `package.json`
|
|
29
|
+
- [ ] T002 Configure TypeScript/linting - `tsconfig.json`, `.eslintrc`
|
|
30
|
+
- [ ] T003 [P] Set up testing framework - `jest.config.js`
|
|
31
|
+
- [ ] T004 [P] Create project directory structure - `src/`
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
## Phase 2: Foundational (Blocking Prerequisites)
|
|
36
|
+
|
|
37
|
+
**Purpose**: Core infrastructure that MUST be complete before ANY user story
|
|
38
|
+
**Duration**: [X days]
|
|
39
|
+
|
|
40
|
+
⚠️ **CRITICAL**: No user story work begins until this phase is complete.
|
|
41
|
+
|
|
42
|
+
- [ ] T005 Create database schema - `src/db/schema.sql`
|
|
43
|
+
- [ ] T006 [P] Set up database migrations - `src/db/migrations/`
|
|
44
|
+
- [ ] T007 [P] Implement base entity models - `src/models/`
|
|
45
|
+
- [ ] T008 Create error handling utilities - `src/utils/errors.ts`
|
|
46
|
+
- [ ] T009 Set up logging infrastructure - `src/utils/logger.ts`
|
|
47
|
+
|
|
48
|
+
**Checkpoint**: Foundation ready - run `npm run test:setup` to verify
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
|
|
52
|
+
## Phase 3: User Story 1 - [Title] (Priority: P1) 🎯 MVP
|
|
53
|
+
|
|
54
|
+
**Goal**: [User story goal from spec]
|
|
55
|
+
**Independent Test**: [How to verify this story works alone]
|
|
56
|
+
**Duration**: [X days]
|
|
57
|
+
|
|
58
|
+
- [ ] T010 [US-1] Create [entity] model - `src/models/entity.ts`
|
|
59
|
+
- [ ] T011 [P] [US-1] Create [entity] repository - `src/repositories/entity.ts`
|
|
60
|
+
- [ ] T012 [P] [US-1] Create [entity] service - `src/services/entity.ts`
|
|
61
|
+
- [ ] T013 [US-1] Create [endpoint] API route - `src/api/routes/entity.ts`
|
|
62
|
+
- [ ] T014 [US-1] Add unit tests for service - `tests/unit/entity.test.ts`
|
|
63
|
+
- [ ] T015 [US-1] Add integration tests - `tests/integration/entity.test.ts`
|
|
64
|
+
|
|
65
|
+
**Checkpoint**: Story 1 complete - run `npm test && npm run test:integration`
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
69
|
+
## Phase 4: User Story 2 - [Title] (Priority: P2)
|
|
70
|
+
|
|
71
|
+
**Goal**: [User story goal from spec]
|
|
72
|
+
**Independent Test**: [How to verify this story works alone]
|
|
73
|
+
**Duration**: [X days]
|
|
74
|
+
|
|
75
|
+
- [ ] T020 [US-2] [Description] - `path/to/file`
|
|
76
|
+
- [ ] T021 [P] [US-2] [Description] - `path/to/file`
|
|
77
|
+
- [ ] T022 [US-2] [Description] - `path/to/file`
|
|
78
|
+
|
|
79
|
+
**Checkpoint**: Story 2 complete - [verification command]
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
## Phase 5: User Story 3 - [Title] (Priority: P3)
|
|
84
|
+
|
|
85
|
+
**Goal**: [User story goal from spec]
|
|
86
|
+
**Duration**: [X days]
|
|
87
|
+
|
|
88
|
+
- [ ] T030 [US-3] [Description] - `path/to/file`
|
|
89
|
+
|
|
90
|
+
**Checkpoint**: Story 3 complete - [verification command]
|
|
91
|
+
|
|
92
|
+
---
|
|
93
|
+
|
|
94
|
+
## Phase N: Polish & Cross-Cutting Concerns
|
|
95
|
+
|
|
96
|
+
**Purpose**: Final quality improvements
|
|
97
|
+
**Duration**: [X days]
|
|
98
|
+
|
|
99
|
+
- [ ] T090 Code cleanup and refactoring
|
|
100
|
+
- [ ] T091 [P] Update documentation - `README.md`
|
|
101
|
+
- [ ] T092 [P] Add inline code comments
|
|
102
|
+
- [ ] T093 Performance profiling and optimization
|
|
103
|
+
- [ ] T094 Security review and hardening
|
|
104
|
+
- [ ] T095 Final integration test pass
|
|
105
|
+
|
|
106
|
+
---
|
|
107
|
+
|
|
108
|
+
## Dependencies & Execution Order
|
|
109
|
+
|
|
110
|
+
```
|
|
111
|
+
Phase 1 (Setup)
|
|
112
|
+
│
|
|
113
|
+
▼
|
|
114
|
+
Phase 2 (Foundation)
|
|
115
|
+
│
|
|
116
|
+
├──────────────┬──────────────┐
|
|
117
|
+
▼ ▼ ▼
|
|
118
|
+
Phase 3 (US-1) Phase 4 (US-2) Phase 5 (US-3) ← Can run in parallel
|
|
119
|
+
│ │ │
|
|
120
|
+
└──────────────┴──────────────┘
|
|
121
|
+
│
|
|
122
|
+
▼
|
|
123
|
+
Phase N (Polish)
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
---
|
|
127
|
+
|
|
128
|
+
## Parallel Execution Example
|
|
129
|
+
|
|
130
|
+
Tasks marked `[P]` within the same phase can run simultaneously:
|
|
131
|
+
|
|
132
|
+
```
|
|
133
|
+
Phase 3, Story 1:
|
|
134
|
+
├── T010 Create model (sequential - others depend on this)
|
|
135
|
+
│
|
|
136
|
+
├── T011 [P] Create repository ─┐
|
|
137
|
+
├── T012 [P] Create service ─┼── Run in parallel
|
|
138
|
+
└── T013 Create API route (waits for T011, T012)
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
---
|
|
142
|
+
|
|
143
|
+
## Task Statistics
|
|
144
|
+
|
|
145
|
+
| Phase | Tasks | Parallel | Duration |
|
|
146
|
+
|-------|-------|----------|----------|
|
|
147
|
+
| Setup | 4 | 2 | [X days] |
|
|
148
|
+
| Foundation | 5 | 3 | [X days] |
|
|
149
|
+
| Story 1 | 6 | 2 | [X days] |
|
|
150
|
+
| Story 2 | 3 | 1 | [X days] |
|
|
151
|
+
| Story 3 | 1 | 0 | [X days] |
|
|
152
|
+
| Polish | 6 | 3 | [X days] |
|
|
153
|
+
| **Total** | **25** | **11** | **[X days]** |
|