specsmd 0.0.0-dev

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 (85) hide show
  1. package/README.md +397 -0
  2. package/bin/cli.js +21 -0
  3. package/flows/aidlc/README.md +372 -0
  4. package/flows/aidlc/agents/construction-agent.md +80 -0
  5. package/flows/aidlc/agents/inception-agent.md +97 -0
  6. package/flows/aidlc/agents/master-agent.md +61 -0
  7. package/flows/aidlc/agents/operations-agent.md +89 -0
  8. package/flows/aidlc/commands/construction-agent.md +63 -0
  9. package/flows/aidlc/commands/inception-agent.md +55 -0
  10. package/flows/aidlc/commands/master-agent.md +47 -0
  11. package/flows/aidlc/commands/operations-agent.md +77 -0
  12. package/flows/aidlc/context-config.yaml +67 -0
  13. package/flows/aidlc/memory-bank.yaml +104 -0
  14. package/flows/aidlc/quick-start.md +322 -0
  15. package/flows/aidlc/skills/construction/bolt-list.md +163 -0
  16. package/flows/aidlc/skills/construction/bolt-replan.md +345 -0
  17. package/flows/aidlc/skills/construction/bolt-start.md +414 -0
  18. package/flows/aidlc/skills/construction/bolt-status.md +185 -0
  19. package/flows/aidlc/skills/construction/navigator.md +196 -0
  20. package/flows/aidlc/skills/inception/bolt-plan.md +359 -0
  21. package/flows/aidlc/skills/inception/context.md +171 -0
  22. package/flows/aidlc/skills/inception/intent-create.md +211 -0
  23. package/flows/aidlc/skills/inception/intent-list.md +124 -0
  24. package/flows/aidlc/skills/inception/navigator.md +207 -0
  25. package/flows/aidlc/skills/inception/requirements.md +227 -0
  26. package/flows/aidlc/skills/inception/review.md +248 -0
  27. package/flows/aidlc/skills/inception/story-create.md +304 -0
  28. package/flows/aidlc/skills/inception/units.md +278 -0
  29. package/flows/aidlc/skills/master/analyze-context.md +239 -0
  30. package/flows/aidlc/skills/master/answer-question.md +141 -0
  31. package/flows/aidlc/skills/master/explain-flow.md +158 -0
  32. package/flows/aidlc/skills/master/project-init.md +281 -0
  33. package/flows/aidlc/skills/master/route-request.md +126 -0
  34. package/flows/aidlc/skills/operations/build.md +237 -0
  35. package/flows/aidlc/skills/operations/deploy.md +259 -0
  36. package/flows/aidlc/skills/operations/monitor.md +265 -0
  37. package/flows/aidlc/skills/operations/navigator.md +209 -0
  38. package/flows/aidlc/skills/operations/verify.md +224 -0
  39. package/flows/aidlc/templates/construction/bolt-template.md +205 -0
  40. package/flows/aidlc/templates/construction/bolt-types/ddd-construction-bolt/adr-template.md +49 -0
  41. package/flows/aidlc/templates/construction/bolt-types/ddd-construction-bolt/ddd-01-domain-model-template.md +55 -0
  42. package/flows/aidlc/templates/construction/bolt-types/ddd-construction-bolt/ddd-02-technical-design-template.md +67 -0
  43. package/flows/aidlc/templates/construction/bolt-types/ddd-construction-bolt/ddd-03-test-report-template.md +62 -0
  44. package/flows/aidlc/templates/construction/bolt-types/ddd-construction-bolt.md +528 -0
  45. package/flows/aidlc/templates/construction/bolt-types/simple-construction-bolt.md +342 -0
  46. package/flows/aidlc/templates/construction/bolt-types/spike-bolt.md +240 -0
  47. package/flows/aidlc/templates/construction/construction-log-template.md +129 -0
  48. package/flows/aidlc/templates/construction/standards/coding-standards.md +29 -0
  49. package/flows/aidlc/templates/construction/standards/system-architecture.md +22 -0
  50. package/flows/aidlc/templates/construction/standards/tech-stack.md +19 -0
  51. package/flows/aidlc/templates/inception/inception-log-template.md +134 -0
  52. package/flows/aidlc/templates/inception/project/README.md +55 -0
  53. package/flows/aidlc/templates/inception/requirements-template.md +144 -0
  54. package/flows/aidlc/templates/inception/stories-template.md +38 -0
  55. package/flows/aidlc/templates/inception/story-template.md +147 -0
  56. package/flows/aidlc/templates/inception/system-context-template.md +29 -0
  57. package/flows/aidlc/templates/inception/unit-brief-template.md +177 -0
  58. package/flows/aidlc/templates/inception/units-template.md +52 -0
  59. package/flows/aidlc/templates/standards/catalog.yaml +345 -0
  60. package/flows/aidlc/templates/standards/coding-standards.guide.md +553 -0
  61. package/flows/aidlc/templates/standards/data-stack.guide.md +162 -0
  62. package/flows/aidlc/templates/standards/tech-stack.guide.md +280 -0
  63. package/lib/InstallerFactory.js +36 -0
  64. package/lib/analytics/env-detector.js +92 -0
  65. package/lib/analytics/index.js +22 -0
  66. package/lib/analytics/machine-id.js +33 -0
  67. package/lib/analytics/tracker.js +227 -0
  68. package/lib/cli-utils.js +342 -0
  69. package/lib/constants.js +32 -0
  70. package/lib/installer.js +402 -0
  71. package/lib/installers/AntigravityInstaller.js +22 -0
  72. package/lib/installers/ClaudeInstaller.js +85 -0
  73. package/lib/installers/ClineInstaller.js +21 -0
  74. package/lib/installers/CodexInstaller.js +21 -0
  75. package/lib/installers/CopilotInstaller.js +113 -0
  76. package/lib/installers/CursorInstaller.js +63 -0
  77. package/lib/installers/GeminiInstaller.js +75 -0
  78. package/lib/installers/KiroInstaller.js +22 -0
  79. package/lib/installers/OpenCodeInstaller.js +22 -0
  80. package/lib/installers/RooInstaller.js +22 -0
  81. package/lib/installers/ToolInstaller.js +73 -0
  82. package/lib/installers/WindsurfInstaller.js +76 -0
  83. package/lib/markdown-validator.ts +175 -0
  84. package/lib/yaml-validator.ts +99 -0
  85. package/package.json +117 -0
@@ -0,0 +1,177 @@
1
+ # Unit Brief Template
2
+
3
+ Use this template when creating unit briefs during decomposition. This is the **critical input for Construction**.
4
+
5
+ ---
6
+
7
+ ## Frontmatter
8
+
9
+ ```yaml
10
+ ---
11
+ unit: {UUU}-{unit-name}
12
+ intent: {NNN}-{intent-name}
13
+ phase: inception
14
+ status: draft|ready
15
+ created: {YYYY-MM-DDTHH:MM:SSZ}
16
+ updated: {YYYY-MM-DDTHH:MM:SSZ}
17
+ ---
18
+ ```
19
+
20
+ **Note**: The `unit` field uses the full folder name including the 3-digit prefix (e.g., `001-auth-service`). This matches the folder structure and enables direct path construction in scripts. Story naming uses the story title (e.g., `001-user-signup.md`).
21
+
22
+ ---
23
+
24
+ ## Content
25
+
26
+ ```markdown
27
+ # Unit Brief: {Unit Name}
28
+
29
+ ## Purpose
30
+
31
+ {Clear, concise statement of what this unit does and why it exists}
32
+
33
+ ## Scope
34
+
35
+ ### In Scope
36
+ - {What this unit IS responsible for}
37
+ - {What this unit IS responsible for}
38
+
39
+ ### Out of Scope
40
+ - {What this unit is NOT responsible for}
41
+ - {What other units handle}
42
+
43
+ ---
44
+
45
+ ## Assigned Requirements
46
+
47
+ **These FRs from the intent are assigned to this unit. Stories will be created from these.**
48
+
49
+ | FR | Requirement | Priority |
50
+ |----|-------------|----------|
51
+ | FR-{n} | {description from intent requirements.md} | Must/Should/Could |
52
+
53
+ ---
54
+
55
+ ## Domain Concepts
56
+
57
+ ### Key Entities
58
+ | Entity | Description | Attributes |
59
+ |--------|-------------|------------|
60
+ | {Entity 1} | {What it represents} | {Key properties} |
61
+ | {Entity 2} | {What it represents} | {Key properties} |
62
+
63
+ ### Key Operations
64
+ | Operation | Description | Inputs | Outputs |
65
+ |-----------|-------------|--------|---------|
66
+ | {Operation 1} | {What it does} | {Input data} | {Output data} |
67
+ | {Operation 2} | {What it does} | {Input data} | {Output data} |
68
+
69
+ ---
70
+
71
+ ## Story Summary
72
+
73
+ | Metric | Count |
74
+ |--------|-------|
75
+ | Total Stories | {n} |
76
+ | Must Have | {n} |
77
+ | Should Have | {n} |
78
+ | Could Have | {n} |
79
+
80
+ ### Stories
81
+
82
+ | Story ID | Title | Priority | Status |
83
+ |----------|-------|----------|--------|
84
+ | {story-1} | {Title} | Must | Planned |
85
+ | {story-2} | {Title} | Should | Planned |
86
+
87
+ ---
88
+
89
+ ## Dependencies
90
+
91
+ ### Depends On
92
+ | Unit | Reason |
93
+ |------|--------|
94
+ | {unit-name} | {Why this dependency exists} |
95
+
96
+ ### Depended By
97
+ | Unit | Reason |
98
+ |------|--------|
99
+ | {unit-name} | {Why they depend on this} |
100
+
101
+ ### External Dependencies
102
+ | System | Purpose | Risk |
103
+ |--------|---------|------|
104
+ | {External system} | {Why needed} | {Risk level} |
105
+
106
+ ---
107
+
108
+ ## Technical Context
109
+
110
+ ### Suggested Technology
111
+ {Recommendations based on tech stack standards}
112
+
113
+ ### Integration Points
114
+ | Integration | Type | Protocol |
115
+ |-------------|------|----------|
116
+ | {System/Unit} | API/Event/DB | REST/GraphQL/Kafka |
117
+
118
+ ### Data Storage
119
+ | Data | Type | Volume | Retention |
120
+ |------|------|--------|-----------|
121
+ | {Data type} | SQL/NoSQL/Cache | {Volume} | {Retention} |
122
+
123
+ ---
124
+
125
+ ## Constraints
126
+
127
+ - {Technical constraint specific to this unit}
128
+ - {Business constraint specific to this unit}
129
+
130
+ ---
131
+
132
+ ## Success Criteria
133
+
134
+ ### Functional
135
+ - [ ] {Criterion 1: What must work}
136
+ - [ ] {Criterion 2: What must work}
137
+
138
+ ### Non-Functional
139
+ - [ ] {Performance target}
140
+ - [ ] {Security requirement}
141
+
142
+ ### Quality
143
+ - [ ] Code coverage > 80%
144
+ - [ ] All acceptance criteria met
145
+ - [ ] Code reviewed and approved
146
+
147
+ ---
148
+
149
+ ## Bolt Suggestions
150
+
151
+ Based on stories and complexity:
152
+
153
+ | Bolt | Type | Stories | Objective |
154
+ |------|------|---------|-----------|
155
+ | bolt-{unit}-1 | DDD | S1, S2 | Core entities |
156
+ | bolt-{unit}-2 | DDD | S3, S4 | API layer |
157
+
158
+ ---
159
+
160
+ ## Notes
161
+
162
+ {Any additional context, risks, or considerations for Construction}
163
+ ```
164
+
165
+ ---
166
+
167
+ ## Quality Checklist
168
+
169
+ Before marking unit brief as ready:
170
+
171
+ - [ ] Purpose is clear and specific
172
+ - [ ] Scope boundaries are defined
173
+ - [ ] Key entities identified
174
+ - [ ] Stories assigned to this unit
175
+ - [ ] Dependencies mapped
176
+ - [ ] Success criteria are measurable
177
+ - [ ] Bolt suggestions provided
@@ -0,0 +1,52 @@
1
+ ---
2
+ intent: {NNN}-{intent-name}
3
+ phase: inception
4
+ status: units-decomposed
5
+ updated: {YYYY-MM-DDTHH:MM:SSZ}
6
+ ---
7
+
8
+ # {Intent Name} - Unit Decomposition
9
+
10
+ ## Units Overview
11
+
12
+ This intent decomposes into {N} units of work:
13
+
14
+ ### Unit 1: {unit-name}
15
+
16
+ **Description**: {What this unit does}
17
+
18
+ **Stories**:
19
+
20
+ - Story-1: {Title}
21
+ - Story-3: {Title}
22
+
23
+ **Deliverables**:
24
+
25
+ - {Specific artifacts this unit produces}
26
+
27
+ **Dependencies**:
28
+
29
+ - Depends on: {Other units}
30
+ - Depended by: {Units that need this}
31
+
32
+ **Estimated Complexity**: S/M/L/XL
33
+
34
+ ### Unit 2: {unit-name}
35
+
36
+ ...
37
+
38
+ ## Unit Dependency Graph
39
+
40
+ ```text
41
+ [Unit A] ──> [Unit B] ──> [Unit D]
42
+ │ │
43
+ └────> [Unit C] ──┘
44
+ ```
45
+
46
+ ## Execution Order
47
+
48
+ Based on dependencies:
49
+
50
+ 1. Day 1-2: Unit A (foundation)
51
+ 2. Day 2-4: Unit B, Unit C (parallel)
52
+ 3. Day 5-6: Unit D (integration)
@@ -0,0 +1,345 @@
1
+ # Standards Catalog
2
+ # Defines what standards exist, their decisions, and relationships.
3
+ # Each standard has a facilitation guide in templates/standards/
4
+
5
+ standards:
6
+ tech-stack:
7
+ description: Core technology choices for the project
8
+ facilitation: templates/standards/tech-stack.guide.md
9
+ output_path: standards/tech-stack.md
10
+ importance: critical
11
+ sections:
12
+ - header: Overview
13
+ type: static
14
+ content: "Core technology decisions for this project."
15
+ - type: from_decisions
16
+ decisions:
17
+ - id: languages
18
+ display_name: Languages
19
+ category: core
20
+ importance: critical
21
+ depends_on: []
22
+
23
+ - id: framework
24
+ display_name: Framework
25
+ category: core
26
+ importance: critical
27
+ depends_on: [languages]
28
+
29
+ - id: authentication
30
+ display_name: Authentication
31
+ category: security
32
+ importance: high
33
+ optional: true
34
+ depends_on: [framework]
35
+
36
+ - id: infrastructure
37
+ display_name: Infrastructure & Deployment
38
+ category: deployment
39
+ importance: high
40
+ depends_on: [framework]
41
+
42
+ - id: package_manager
43
+ display_name: Package Manager
44
+ category: tooling
45
+ importance: medium
46
+ depends_on: [languages]
47
+
48
+ data-stack:
49
+ description: Database and data persistence choices
50
+ facilitation: templates/standards/data-stack.guide.md
51
+ output_path: standards/data-stack.md
52
+ importance: high
53
+ depends_on_standards: [tech-stack]
54
+ sections:
55
+ - header: Overview
56
+ type: static
57
+ content: "Database and data persistence decisions for this project."
58
+ - type: from_decisions
59
+ decisions:
60
+ - id: database
61
+ display_name: Database
62
+ category: data
63
+ importance: high
64
+ depends_on: []
65
+
66
+ - id: orm
67
+ display_name: ORM / Database Client
68
+ category: data
69
+ importance: medium
70
+ depends_on: [database]
71
+
72
+ coding-standards:
73
+ description: Code style, patterns, and quality standards
74
+ facilitation: templates/standards/coding-standards.guide.md
75
+ output_path: standards/coding-standards.md
76
+ importance: critical
77
+ depends_on_standards: [tech-stack]
78
+ sections:
79
+ - header: Overview
80
+ type: static
81
+ content: "Code style and quality standards for this project."
82
+ - type: from_decisions
83
+ decisions:
84
+ - id: formatting
85
+ display_name: Code Formatting
86
+ category: style
87
+ importance: high
88
+ depends_on: []
89
+
90
+ - id: linting
91
+ display_name: Linting Rules
92
+ category: quality
93
+ importance: high
94
+ depends_on: []
95
+
96
+ - id: naming_conventions
97
+ display_name: Naming Conventions
98
+ category: style
99
+ importance: high
100
+ depends_on: []
101
+
102
+ - id: file_organization
103
+ display_name: File & Folder Organization
104
+ category: structure
105
+ importance: high
106
+ depends_on: []
107
+
108
+ - id: testing_strategy
109
+ display_name: Testing Strategy
110
+ category: quality
111
+ importance: critical
112
+ depends_on: []
113
+
114
+ - id: error_handling
115
+ display_name: Error Handling Patterns
116
+ category: patterns
117
+ importance: high
118
+ depends_on: []
119
+
120
+ - id: logging
121
+ display_name: Logging Standards
122
+ category: observability
123
+ importance: medium
124
+ depends_on: []
125
+
126
+ system-architecture:
127
+ description: High-level system design and architectural patterns
128
+ facilitation: templates/standards/system-architecture.guide.md
129
+ output_path: standards/system-architecture.md
130
+ importance: high
131
+ optional: true
132
+ depends_on_standards: [tech-stack]
133
+ sections:
134
+ - header: Overview
135
+ type: static
136
+ content: "High-level architectural decisions and patterns."
137
+ - type: from_decisions
138
+ decisions:
139
+ - id: architecture_style
140
+ display_name: Architecture Style
141
+ category: structure
142
+ importance: critical
143
+ depends_on: []
144
+
145
+ - id: api_design
146
+ display_name: API Design
147
+ category: communication
148
+ importance: high
149
+ optional: true
150
+ depends_on: []
151
+
152
+ - id: state_management
153
+ display_name: State Management
154
+ category: data
155
+ importance: high
156
+ optional: true
157
+ depends_on: []
158
+
159
+ - id: caching_strategy
160
+ display_name: Caching Strategy
161
+ category: performance
162
+ importance: medium
163
+ optional: true
164
+ depends_on: []
165
+
166
+ - id: security_patterns
167
+ display_name: Security Patterns
168
+ category: security
169
+ importance: high
170
+ depends_on: []
171
+
172
+ ux-guide:
173
+ description: UI/UX patterns and design system choices
174
+ facilitation: templates/standards/ux-guide.guide.md
175
+ output_path: standards/ux-guide.md
176
+ importance: medium
177
+ optional: true
178
+ depends_on_standards: [tech-stack]
179
+ sections:
180
+ - header: Overview
181
+ type: static
182
+ content: "UI/UX standards and design system choices."
183
+ - type: from_decisions
184
+ decisions:
185
+ - id: design_system
186
+ display_name: Design System / Component Library
187
+ category: ui
188
+ importance: high
189
+ depends_on: []
190
+
191
+ - id: styling_approach
192
+ display_name: Styling Approach
193
+ category: ui
194
+ importance: high
195
+ depends_on: []
196
+
197
+ - id: accessibility
198
+ display_name: Accessibility Standards
199
+ category: compliance
200
+ importance: high
201
+ depends_on: []
202
+
203
+ - id: responsive_strategy
204
+ display_name: Responsive Design Strategy
205
+ category: ui
206
+ importance: medium
207
+ depends_on: []
208
+
209
+ api-conventions:
210
+ description: API design conventions and standards
211
+ facilitation: templates/standards/api-conventions.guide.md
212
+ output_path: standards/api-conventions.md
213
+ importance: medium
214
+ optional: true
215
+ depends_on_standards: [tech-stack]
216
+ sections:
217
+ - header: Overview
218
+ type: static
219
+ content: "API design conventions and response formats."
220
+ - type: from_decisions
221
+ decisions:
222
+ - id: api_style
223
+ display_name: API Style
224
+ category: design
225
+ importance: critical
226
+ depends_on: []
227
+
228
+ - id: versioning
229
+ display_name: API Versioning
230
+ category: design
231
+ importance: medium
232
+ depends_on: []
233
+
234
+ - id: response_format
235
+ display_name: Response Format
236
+ category: format
237
+ importance: high
238
+ depends_on: []
239
+
240
+ - id: error_format
241
+ display_name: Error Response Format
242
+ category: format
243
+ importance: high
244
+ depends_on: []
245
+
246
+ - id: pagination
247
+ display_name: Pagination Strategy
248
+ category: design
249
+ importance: medium
250
+ optional: true
251
+ depends_on: []
252
+
253
+ # Project type presets - determines which standards to create and how to decompose units
254
+ project_types:
255
+ full-stack-web:
256
+ description: Full-stack web application
257
+ required_standards:
258
+ - tech-stack
259
+ - data-stack
260
+ - coding-standards
261
+ recommended_standards:
262
+ - system-architecture
263
+ - ux-guide
264
+ - api-conventions
265
+ # Unit decomposition structure
266
+ unit_structure:
267
+ backend:
268
+ enabled: true
269
+ decomposition: domain-driven
270
+ default_bolt_type: ddd-construction-bolt
271
+ description: Backend services using DDD decomposition
272
+ frontend:
273
+ enabled: true
274
+ decomposition: feature-based
275
+ default_bolt_type: simple-construction-bolt
276
+ naming_pattern: "{intent}-ui"
277
+ description: Frontend application (pages, components, state)
278
+
279
+ backend-api:
280
+ description: Backend API service
281
+ required_standards:
282
+ - tech-stack
283
+ - data-stack
284
+ - coding-standards
285
+ recommended_standards:
286
+ - system-architecture
287
+ - api-conventions
288
+ unit_structure:
289
+ backend:
290
+ enabled: true
291
+ decomposition: domain-driven
292
+ default_bolt_type: ddd-construction-bolt
293
+ description: Backend services using DDD decomposition
294
+ frontend:
295
+ enabled: false
296
+
297
+ frontend-app:
298
+ description: Frontend application (SPA/SSR)
299
+ required_standards:
300
+ - tech-stack
301
+ - coding-standards
302
+ recommended_standards:
303
+ - ux-guide
304
+ unit_structure:
305
+ backend:
306
+ enabled: false
307
+ frontend:
308
+ enabled: true
309
+ decomposition: feature-based
310
+ default_bolt_type: simple-construction-bolt
311
+ description: Frontend application (pages, components, state)
312
+
313
+ cli-tool:
314
+ description: Command-line tool
315
+ required_standards:
316
+ - tech-stack
317
+ - coding-standards
318
+ recommended_standards: []
319
+ unit_structure:
320
+ backend:
321
+ enabled: false
322
+ frontend:
323
+ enabled: false
324
+ cli:
325
+ enabled: true
326
+ decomposition: command-based
327
+ default_bolt_type: simple-construction-bolt
328
+ description: CLI commands and handlers
329
+
330
+ library:
331
+ description: Reusable library/package
332
+ required_standards:
333
+ - tech-stack
334
+ - coding-standards
335
+ recommended_standards:
336
+ - data-stack
337
+ - api-conventions
338
+ unit_structure:
339
+ backend:
340
+ enabled: true
341
+ decomposition: module-based
342
+ default_bolt_type: simple-construction-bolt
343
+ description: Library modules and public API
344
+ frontend:
345
+ enabled: false