specsmd 0.0.1
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 +300 -0
- package/bin/cli.js +21 -0
- package/flows/aidlc/README.md +372 -0
- package/flows/aidlc/agents/construction-agent.md +81 -0
- package/flows/aidlc/agents/inception-agent.md +95 -0
- package/flows/aidlc/agents/master-agent.md +61 -0
- package/flows/aidlc/agents/operations-agent.md +89 -0
- package/flows/aidlc/commands/construction-agent.md +63 -0
- package/flows/aidlc/commands/inception-agent.md +55 -0
- package/flows/aidlc/commands/master-agent.md +47 -0
- package/flows/aidlc/commands/operations-agent.md +77 -0
- package/flows/aidlc/context-config.yaml +41 -0
- package/flows/aidlc/memory-bank.yaml +104 -0
- package/flows/aidlc/quick-start.md +315 -0
- package/flows/aidlc/skills/construction/bolt-list.md +163 -0
- package/flows/aidlc/skills/construction/bolt-replan.md +343 -0
- package/flows/aidlc/skills/construction/bolt-start.md +289 -0
- package/flows/aidlc/skills/construction/bolt-status.md +185 -0
- package/flows/aidlc/skills/construction/navigator.md +196 -0
- package/flows/aidlc/skills/inception/bolt-plan.md +338 -0
- package/flows/aidlc/skills/inception/context.md +171 -0
- package/flows/aidlc/skills/inception/intent-create.md +211 -0
- package/flows/aidlc/skills/inception/intent-list.md +124 -0
- package/flows/aidlc/skills/inception/navigator.md +207 -0
- package/flows/aidlc/skills/inception/requirements.md +227 -0
- package/flows/aidlc/skills/inception/review.md +248 -0
- package/flows/aidlc/skills/inception/story-create.md +304 -0
- package/flows/aidlc/skills/inception/units.md +271 -0
- package/flows/aidlc/skills/master/analyze-context.md +132 -0
- package/flows/aidlc/skills/master/answer-question.md +141 -0
- package/flows/aidlc/skills/master/explain-flow.md +146 -0
- package/flows/aidlc/skills/master/project-init.md +281 -0
- package/flows/aidlc/skills/master/route-request.md +126 -0
- package/flows/aidlc/skills/operations/build.md +237 -0
- package/flows/aidlc/skills/operations/deploy.md +259 -0
- package/flows/aidlc/skills/operations/monitor.md +265 -0
- package/flows/aidlc/skills/operations/navigator.md +209 -0
- package/flows/aidlc/skills/operations/verify.md +224 -0
- package/flows/aidlc/templates/construction/bolt-template.md +193 -0
- package/flows/aidlc/templates/construction/bolt-types/bdd-construction-bolt.md +250 -0
- package/flows/aidlc/templates/construction/bolt-types/ddd-construction-bolt/adr-template.md +49 -0
- package/flows/aidlc/templates/construction/bolt-types/ddd-construction-bolt/ddd-01-domain-model-template.md +55 -0
- package/flows/aidlc/templates/construction/bolt-types/ddd-construction-bolt/ddd-02-technical-design-template.md +67 -0
- package/flows/aidlc/templates/construction/bolt-types/ddd-construction-bolt/ddd-03-test-report-template.md +62 -0
- package/flows/aidlc/templates/construction/bolt-types/ddd-construction-bolt.md +528 -0
- package/flows/aidlc/templates/construction/bolt-types/simple-construction-bolt.md +273 -0
- package/flows/aidlc/templates/construction/bolt-types/spike-bolt.md +240 -0
- package/flows/aidlc/templates/construction/bolt-types/tdd-construction-bolt.md +259 -0
- package/flows/aidlc/templates/construction/construction-log-template.md +129 -0
- package/flows/aidlc/templates/construction/standards/coding-standards.md +29 -0
- package/flows/aidlc/templates/construction/standards/system-architecture.md +22 -0
- package/flows/aidlc/templates/construction/standards/tech-stack.md +19 -0
- package/flows/aidlc/templates/inception/inception-log-template.md +134 -0
- package/flows/aidlc/templates/inception/project/README.md +55 -0
- package/flows/aidlc/templates/inception/requirements-template.md +144 -0
- package/flows/aidlc/templates/inception/stories-template.md +38 -0
- package/flows/aidlc/templates/inception/story-template.md +147 -0
- package/flows/aidlc/templates/inception/system-context-template.md +29 -0
- package/flows/aidlc/templates/inception/unit-brief-template.md +177 -0
- package/flows/aidlc/templates/inception/units-template.md +52 -0
- package/flows/aidlc/templates/standards/catalog.yaml +345 -0
- package/flows/aidlc/templates/standards/coding-standards.guide.md +553 -0
- package/flows/aidlc/templates/standards/data-stack.guide.md +162 -0
- package/flows/aidlc/templates/standards/tech-stack.guide.md +280 -0
- package/lib/InstallerFactory.js +36 -0
- package/lib/cli-utils.js +372 -0
- package/lib/constants.js +31 -0
- package/lib/installer.js +314 -0
- package/lib/installers/AntigravityInstaller.js +22 -0
- package/lib/installers/ClaudeInstaller.js +85 -0
- package/lib/installers/ClineInstaller.js +21 -0
- package/lib/installers/CodexInstaller.js +21 -0
- package/lib/installers/CopilotInstaller.js +113 -0
- package/lib/installers/CursorInstaller.js +63 -0
- package/lib/installers/GeminiInstaller.js +75 -0
- package/lib/installers/KiroInstaller.js +22 -0
- package/lib/installers/OpenCodeInstaller.js +22 -0
- package/lib/installers/RooInstaller.js +22 -0
- package/lib/installers/ToolInstaller.js +73 -0
- package/lib/installers/WindsurfInstaller.js +76 -0
- package/lib/markdown-validator.ts +175 -0
- package/lib/yaml-validator.ts +99 -0
- package/package.json +65 -0
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
# Memory Bank Configuration for AI-DLC Flow
|
|
2
|
+
# Defines the directory structure and required folders for project context
|
|
3
|
+
|
|
4
|
+
# Structure created at project initialization
|
|
5
|
+
# Note: units/ and stories/ are NOT created at init - they are created
|
|
6
|
+
# dynamically when intents are elaborated during Inception phase
|
|
7
|
+
structure:
|
|
8
|
+
- path: intents/
|
|
9
|
+
description: "Intents (Features/Capabilities) - units created per intent"
|
|
10
|
+
- path: bolts/
|
|
11
|
+
description: "Execution Instances (Bolt Sessions)"
|
|
12
|
+
- path: standards/
|
|
13
|
+
description: "Project Standards (Architecture, Tech Stack)"
|
|
14
|
+
- path: operations/
|
|
15
|
+
description: "Operations Context (Deployment, Monitoring)"
|
|
16
|
+
|
|
17
|
+
# Project configuration file (created during project-init)
|
|
18
|
+
project_config:
|
|
19
|
+
path: "memory-bank/project.yaml"
|
|
20
|
+
description: "Project type and initialization metadata"
|
|
21
|
+
fields:
|
|
22
|
+
- project_type: "full-stack-web | backend-api | frontend-app | cli-tool | library"
|
|
23
|
+
- initialized_at: "ISO 8601 timestamp"
|
|
24
|
+
|
|
25
|
+
# Dynamic structure (created by agents, not at init)
|
|
26
|
+
# - intents/{NNN}-{intent-name}/ → Created by Inception when intent is created
|
|
27
|
+
# - intents/{NNN}-{intent-name}/units/ → Created by Inception when units are defined
|
|
28
|
+
# - intents/{NNN}-{intent-name}/units/{unit-name}/stories/ → Created when stories are added
|
|
29
|
+
|
|
30
|
+
# Data Conventions (CRITICAL - Agents MUST follow these)
|
|
31
|
+
conventions:
|
|
32
|
+
timestamps:
|
|
33
|
+
format: "ISO 8601 with time and timezone"
|
|
34
|
+
pattern: "YYYY-MM-DDTHH:MM:SSZ"
|
|
35
|
+
example: "2024-12-05T10:30:00Z"
|
|
36
|
+
note: "ALL timestamps in memory-bank artifacts MUST include time, not just date"
|
|
37
|
+
applies_to:
|
|
38
|
+
- "created, started, completed fields in bolt files"
|
|
39
|
+
- "stages_completed entries"
|
|
40
|
+
- "construction-log entries"
|
|
41
|
+
- "inception-log entries"
|
|
42
|
+
- "any date/time field in frontmatter"
|
|
43
|
+
|
|
44
|
+
# Naming Conventions (CRITICAL - Agents MUST follow these)
|
|
45
|
+
# All names are derived from folder/file names - NO frontmatter prefixes needed
|
|
46
|
+
naming:
|
|
47
|
+
intents:
|
|
48
|
+
format: "{NNN}-{intent-name}"
|
|
49
|
+
example: "001-user-authentication"
|
|
50
|
+
note: "3-digit prefix indicates order, kebab-case name"
|
|
51
|
+
|
|
52
|
+
units:
|
|
53
|
+
format: "{unit-name}"
|
|
54
|
+
example: "auth-service"
|
|
55
|
+
note: "Kebab-case, descriptive name"
|
|
56
|
+
|
|
57
|
+
stories:
|
|
58
|
+
format: "{SSS}-{title-slug}.md"
|
|
59
|
+
example: "001-user-signup.md"
|
|
60
|
+
note: "3-digit story number + kebab-case story title"
|
|
61
|
+
full_path_example: "memory-bank/intents/001-user-authentication/units/auth-service/stories/001-user-signup.md"
|
|
62
|
+
|
|
63
|
+
bolts:
|
|
64
|
+
format: "bolt-{unit-name}-{N}/"
|
|
65
|
+
example: "bolt-auth-service-1/"
|
|
66
|
+
note: "Directory per bolt, contains bolt.md and stage artifacts"
|
|
67
|
+
contents:
|
|
68
|
+
- "bolt.md" # Bolt instance metadata
|
|
69
|
+
- "ddd-01-domain-model.md" # Stage 1 artifact (DDD bolt)
|
|
70
|
+
- "ddd-02-technical-design.md" # Stage 2 artifact (DDD bolt)
|
|
71
|
+
- "ddd-03-test-report.md" # Stage 4 artifact (DDD bolt)
|
|
72
|
+
|
|
73
|
+
# Schema Definition (Source of Truth for Agents)
|
|
74
|
+
schema:
|
|
75
|
+
intents: "memory-bank/intents/{intent-name}/"
|
|
76
|
+
units: "memory-bank/intents/{intent-name}/units/{unit-name}/"
|
|
77
|
+
stories: "memory-bank/intents/{intent-name}/units/{unit-name}/stories/"
|
|
78
|
+
bolts: "memory-bank/bolts/{bolt-id}/"
|
|
79
|
+
bolt-artifacts: "memory-bank/bolts/{bolt-id}/"
|
|
80
|
+
standards: "memory-bank/standards/"
|
|
81
|
+
story-index: "memory-bank/story-index.md"
|
|
82
|
+
inception-log: "memory-bank/intents/{intent-name}/inception-log.md"
|
|
83
|
+
construction-log: "memory-bank/intents/{intent-name}/units/{unit-name}/construction-log.md"
|
|
84
|
+
|
|
85
|
+
# Agent Ownership
|
|
86
|
+
# Note: Both Inception and Construction can plan/create bolts
|
|
87
|
+
# Inception: initial planning, Construction: replanning during execution
|
|
88
|
+
ownership:
|
|
89
|
+
inception: [intents, units, stories, story-index, bolts] # Plans bolts initially
|
|
90
|
+
construction: [units, bolts] # Executes and can replan bolts
|
|
91
|
+
operations: [operations]
|
|
92
|
+
|
|
93
|
+
# Global Story Index Options
|
|
94
|
+
# Choose ONE approach for project-wide story tracking
|
|
95
|
+
story-index:
|
|
96
|
+
enabled: true
|
|
97
|
+
# Options:
|
|
98
|
+
# 1. single-file: One story-index.md at memory-bank root (recommended for small projects)
|
|
99
|
+
# 2. per-intent: One story-index.md per intent folder (recommended for large projects)
|
|
100
|
+
# 3. aggregate: Auto-generated from unit-level stories (computed, not stored)
|
|
101
|
+
mode: "single-file"
|
|
102
|
+
path: "memory-bank/story-index.md"
|
|
103
|
+
|
|
104
|
+
|
|
@@ -0,0 +1,315 @@
|
|
|
1
|
+
# specsmd AI-DLC Quick Start Guide
|
|
2
|
+
|
|
3
|
+
Get started with AI-Driven Development Lifecycle in minutes.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npx specsmd@latest install
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
The installer will:
|
|
14
|
+
|
|
15
|
+
1. Detect available agentic coding tools (Claude Code, Cursor, GitHub Copilot)
|
|
16
|
+
2. Install agent definitions and skills
|
|
17
|
+
3. Set up the memory bank structure
|
|
18
|
+
4. Create slash commands for your tools
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## Three-Phase Workflow
|
|
23
|
+
|
|
24
|
+
AI-DLC has three sequential phases, each with a specialized agent:
|
|
25
|
+
|
|
26
|
+
| Phase | Agent | Purpose |
|
|
27
|
+
|-------|-------|---------|
|
|
28
|
+
| **Inception** | Inception Agent | Capture intents, gather requirements, decompose into units |
|
|
29
|
+
| **Construction** | Construction Agent | Execute bolts (rapid iterations) to build code |
|
|
30
|
+
| **Operations** | Operations Agent | Deploy, verify, and monitor |
|
|
31
|
+
|
|
32
|
+
The **Master Agent** orchestrates everything and helps you navigate.
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
## Quick Start Flow
|
|
37
|
+
|
|
38
|
+
### Step 1: Initialize Your Project
|
|
39
|
+
|
|
40
|
+
Open your AI coding tool (Claude Code, Cursor, etc.) and type this command as a prompt:
|
|
41
|
+
|
|
42
|
+
```text
|
|
43
|
+
/specsmd-master-agent
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Then type `project-init` or `init` when prompted.
|
|
47
|
+
|
|
48
|
+
This guides you through:
|
|
49
|
+
|
|
50
|
+
- **Project type selection** (full-stack, backend API, frontend, CLI, library)
|
|
51
|
+
- **Tech stack decisions** (language, framework, database, ORM)
|
|
52
|
+
- **Coding standards** (formatting, linting, testing strategy)
|
|
53
|
+
- **Optional standards** (architecture, UX guide, API conventions)
|
|
54
|
+
|
|
55
|
+
Standards are saved to `memory-bank/standards/` and provide context for all AI agents.
|
|
56
|
+
|
|
57
|
+
### Step 2: Create Your First Intent
|
|
58
|
+
|
|
59
|
+
Switch to the Inception Agent:
|
|
60
|
+
|
|
61
|
+
```text
|
|
62
|
+
/specsmd-inception-agent intent-create
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
An **Intent** is a high-level goal. Examples:
|
|
66
|
+
|
|
67
|
+
- "User authentication system"
|
|
68
|
+
- "Product catalog with search"
|
|
69
|
+
- "Payment processing integration"
|
|
70
|
+
|
|
71
|
+
The agent will:
|
|
72
|
+
|
|
73
|
+
1. Capture the intent
|
|
74
|
+
2. Elaborate requirements
|
|
75
|
+
3. Define system context
|
|
76
|
+
4. Decompose into units
|
|
77
|
+
|
|
78
|
+
### Step 3: Plan and Start Bolts
|
|
79
|
+
|
|
80
|
+
Once units are defined, plan your first bolt:
|
|
81
|
+
|
|
82
|
+
```text
|
|
83
|
+
/specsmd-inception-agent bolt-plan
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
A **Bolt** is a rapid iteration (hours to days). Four types available:
|
|
87
|
+
|
|
88
|
+
| Bolt Type | Best For |
|
|
89
|
+
|-----------|----------|
|
|
90
|
+
| **DDD Construction** | Complex business logic, domain modeling |
|
|
91
|
+
| **TDD Construction** | Well-defined interfaces, test-first |
|
|
92
|
+
| **BDD Construction** | User-facing features, acceptance criteria |
|
|
93
|
+
| **Spike** | Research, exploration, unknowns |
|
|
94
|
+
|
|
95
|
+
### Step 4: Execute Bolts
|
|
96
|
+
|
|
97
|
+
Switch to the Construction Agent to execute:
|
|
98
|
+
|
|
99
|
+
```text
|
|
100
|
+
/specsmd-construction-agent bolt-start
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
Each bolt goes through stages:
|
|
104
|
+
|
|
105
|
+
1. **Domain Design** - Model the domain
|
|
106
|
+
2. **Logical Design** - Define interfaces and structure
|
|
107
|
+
3. **Code** - Implement the solution
|
|
108
|
+
4. **Test** - Verify correctness
|
|
109
|
+
|
|
110
|
+
Human validation happens at each stage.
|
|
111
|
+
|
|
112
|
+
### Step 5: Deploy
|
|
113
|
+
|
|
114
|
+
When bolts are complete, use the Operations Agent:
|
|
115
|
+
|
|
116
|
+
```text
|
|
117
|
+
/specsmd-operations-agent deploy
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
---
|
|
121
|
+
|
|
122
|
+
## Agent Commands Reference
|
|
123
|
+
|
|
124
|
+
### Master Agent (`/specsmd-master-agent`)
|
|
125
|
+
|
|
126
|
+
| Skill | Purpose |
|
|
127
|
+
|-------|---------|
|
|
128
|
+
| `project-init` | Initialize project with standards |
|
|
129
|
+
| `analyze-context` | View current project state |
|
|
130
|
+
| `route-request` | Get directed to the right agent |
|
|
131
|
+
| `explain-flow` | Learn about AI-DLC methodology |
|
|
132
|
+
| `answer-question` | Get help with any specsmd question |
|
|
133
|
+
|
|
134
|
+
### Inception Agent (`/specsmd-inception-agent`)
|
|
135
|
+
|
|
136
|
+
| Skill | Purpose |
|
|
137
|
+
|-------|---------|
|
|
138
|
+
| `intent-create` | Create a new intent |
|
|
139
|
+
| `intent-list` | List all intents |
|
|
140
|
+
| `requirements` | Elaborate intent requirements |
|
|
141
|
+
| `context` | Define system context |
|
|
142
|
+
| `units` | Decompose into units |
|
|
143
|
+
| `story-create` | Create stories for a unit |
|
|
144
|
+
| `bolt-plan` | Plan bolts for stories |
|
|
145
|
+
| `review` | Review inception artifacts |
|
|
146
|
+
| `navigator` | Navigate inception workflow |
|
|
147
|
+
|
|
148
|
+
### Construction Agent (`/specsmd-construction-agent`)
|
|
149
|
+
|
|
150
|
+
| Skill | Purpose |
|
|
151
|
+
|-------|---------|
|
|
152
|
+
| `bolt-start` | Start executing a bolt |
|
|
153
|
+
| `bolt-status` | Check bolt progress |
|
|
154
|
+
| `bolt-list` | List all bolts |
|
|
155
|
+
| `bolt-plan` | Plan additional bolts |
|
|
156
|
+
| `navigator` | Navigate construction workflow |
|
|
157
|
+
|
|
158
|
+
### Operations Agent (`/specsmd-operations-agent`)
|
|
159
|
+
|
|
160
|
+
| Skill | Purpose |
|
|
161
|
+
|-------|---------|
|
|
162
|
+
| `build` | Build the project |
|
|
163
|
+
| `deploy` | Deploy to environment |
|
|
164
|
+
| `verify` | Verify deployment |
|
|
165
|
+
| `monitor` | Set up monitoring |
|
|
166
|
+
|
|
167
|
+
---
|
|
168
|
+
|
|
169
|
+
## Project Types
|
|
170
|
+
|
|
171
|
+
Choose your project type during initialization:
|
|
172
|
+
|
|
173
|
+
| Type | Required Standards | Recommended Standards |
|
|
174
|
+
|------|-------------------|----------------------|
|
|
175
|
+
| **full-stack-web** | tech-stack, coding-standards | system-architecture, ux-guide, api-conventions |
|
|
176
|
+
| **backend-api** | tech-stack, coding-standards | system-architecture, api-conventions |
|
|
177
|
+
| **frontend-app** | tech-stack, coding-standards | ux-guide |
|
|
178
|
+
| **cli-tool** | tech-stack, coding-standards | - |
|
|
179
|
+
| **library** | tech-stack, coding-standards | api-conventions |
|
|
180
|
+
|
|
181
|
+
---
|
|
182
|
+
|
|
183
|
+
## File Structure
|
|
184
|
+
|
|
185
|
+
After installation, your project will have:
|
|
186
|
+
|
|
187
|
+
```text
|
|
188
|
+
.specsmd/
|
|
189
|
+
├── manifest.yaml # Installation manifest
|
|
190
|
+
└── aidlc/ # AI-DLC flow
|
|
191
|
+
├── agents/ # Agent definitions (master, inception, construction, operations)
|
|
192
|
+
├── commands/ # Slash commands for agentic tools
|
|
193
|
+
├── skills/ # Agent skills by phase
|
|
194
|
+
│ ├── master/ # Master agent skills
|
|
195
|
+
│ ├── inception/ # Inception phase skills
|
|
196
|
+
│ ├── construction/ # Construction phase skills
|
|
197
|
+
│ └── operations/ # Operations phase skills
|
|
198
|
+
├── templates/ # Artifact templates
|
|
199
|
+
│ ├── inception/ # Intent, unit, story templates
|
|
200
|
+
│ ├── construction/ # Bolt templates and bolt-types
|
|
201
|
+
│ │ └── bolt-types/ # DDD, TDD, BDD, Spike bolt definitions
|
|
202
|
+
│ └── standards/ # Standards facilitation
|
|
203
|
+
│ ├── catalog.yaml # Standards registry
|
|
204
|
+
│ └── *.guide.md # Facilitation guides
|
|
205
|
+
├── shared/ # Shared agent behaviors
|
|
206
|
+
├── memory-bank.yaml # Memory bank schema
|
|
207
|
+
├── context-config.yaml # Context loading configuration
|
|
208
|
+
├── quick-start.md # This file
|
|
209
|
+
└── README.md # Detailed documentation
|
|
210
|
+
|
|
211
|
+
memory-bank/ # Created after project-init
|
|
212
|
+
├── intents/ # Your captured intents
|
|
213
|
+
│ └── {intent-name}/
|
|
214
|
+
│ ├── requirements.md
|
|
215
|
+
│ ├── system-context.md
|
|
216
|
+
│ ├── units.md
|
|
217
|
+
│ └── units/
|
|
218
|
+
│ └── {unit-name}/
|
|
219
|
+
│ ├── unit-brief.md
|
|
220
|
+
│ └── stories/
|
|
221
|
+
│ └── {NNN}-{title}.md
|
|
222
|
+
├── bolts/ # Bolt execution records
|
|
223
|
+
│ └── {bolt-id}/
|
|
224
|
+
│ ├── bolt.md # Bolt definition
|
|
225
|
+
│ └── {stage-artifacts}.md # Stage outputs
|
|
226
|
+
├── standards/ # Your project standards
|
|
227
|
+
│ ├── tech-stack.md
|
|
228
|
+
│ ├── coding-standards.md
|
|
229
|
+
│ └── ...
|
|
230
|
+
└── operations/ # Deployment context
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
---
|
|
234
|
+
|
|
235
|
+
## Key Concepts
|
|
236
|
+
|
|
237
|
+
### Intent
|
|
238
|
+
|
|
239
|
+
A high-level statement of purpose. The starting point for AI-driven decomposition.
|
|
240
|
+
|
|
241
|
+
### Unit
|
|
242
|
+
|
|
243
|
+
A cohesive, self-contained work element derived from an Intent. Analogous to a Subdomain (DDD) or Epic (Scrum).
|
|
244
|
+
|
|
245
|
+
### Bolt
|
|
246
|
+
|
|
247
|
+
The smallest iteration in AI-DLC. Unlike Sprints (weeks), Bolts are hours to days. Four types: DDD, TDD, BDD, Spike.
|
|
248
|
+
|
|
249
|
+
### Memory Bank
|
|
250
|
+
|
|
251
|
+
File-based storage for all project artifacts. Maintains context across agent sessions.
|
|
252
|
+
|
|
253
|
+
### Standards
|
|
254
|
+
|
|
255
|
+
Project decisions that inform AI code generation (tech stack, coding style, architecture).
|
|
256
|
+
|
|
257
|
+
---
|
|
258
|
+
|
|
259
|
+
## Human Validation
|
|
260
|
+
|
|
261
|
+
AI-DLC emphasizes human oversight as a "loss function" - catching errors early.
|
|
262
|
+
|
|
263
|
+
**Key validation points:**
|
|
264
|
+
|
|
265
|
+
- After requirements elaboration
|
|
266
|
+
- After unit decomposition
|
|
267
|
+
- After story creation
|
|
268
|
+
- After each bolt stage
|
|
269
|
+
- Before deployment
|
|
270
|
+
|
|
271
|
+
Each validation step transforms artifacts into rich context for subsequent stages.
|
|
272
|
+
|
|
273
|
+
---
|
|
274
|
+
|
|
275
|
+
## Tips for Success
|
|
276
|
+
|
|
277
|
+
1. **Start with standards** - Project-init ensures AI agents understand your preferences
|
|
278
|
+
2. **Keep intents focused** - One major goal per intent
|
|
279
|
+
3. **Validate frequently** - Don't skip human checkpoints
|
|
280
|
+
4. **Use fresh chats** - Each agent invocation starts fresh; context comes from Memory Bank
|
|
281
|
+
5. **Trust the process** - AI-DLC is iterative; refinement happens naturally
|
|
282
|
+
|
|
283
|
+
---
|
|
284
|
+
|
|
285
|
+
## Troubleshooting
|
|
286
|
+
|
|
287
|
+
### Agents don't remember context
|
|
288
|
+
|
|
289
|
+
Agents are stateless. They read from Memory Bank at startup. Ensure artifacts are saved after each step.
|
|
290
|
+
|
|
291
|
+
### Standards not being followed
|
|
292
|
+
|
|
293
|
+
Re-run `project-init` to update standards. Agents load standards fresh each session.
|
|
294
|
+
|
|
295
|
+
### Reset project state
|
|
296
|
+
|
|
297
|
+
- Clear `memory-bank/` to reset artifacts
|
|
298
|
+
- Delete `.specsmd/` to uninstall specsmd
|
|
299
|
+
|
|
300
|
+
### Get help
|
|
301
|
+
|
|
302
|
+
```text
|
|
303
|
+
/specsmd-master-agent
|
|
304
|
+
# Then type: answer-question "your question here"
|
|
305
|
+
```
|
|
306
|
+
|
|
307
|
+
---
|
|
308
|
+
|
|
309
|
+
## What's Next?
|
|
310
|
+
|
|
311
|
+
1. Run `/specsmd-master-agent` and type `project-init` to set up your project
|
|
312
|
+
2. Create your first intent with `/specsmd-inception-agent intent-create`
|
|
313
|
+
3. Follow the guided workflow through Inception → Construction → Operations
|
|
314
|
+
|
|
315
|
+
Welcome to AI-native development!
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
# Skill: List Bolts
|
|
2
|
+
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
## Checkpoints in This Skill
|
|
6
|
+
|
|
7
|
+
| Checkpoint | Purpose | Wait For |
|
|
8
|
+
|------------|---------|----------|
|
|
9
|
+
| Checkpoint 1 | Which bolt to work on? | User selection |
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## Goal
|
|
14
|
+
|
|
15
|
+
Display all bolt instances with their status, optionally filtered by unit or intent.
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## Input
|
|
20
|
+
|
|
21
|
+
- **Required**: `.specsmd/aidlc/memory-bank.yaml` - artifact schema
|
|
22
|
+
- **Optional**: `--unit` - filter by unit name
|
|
23
|
+
- **Optional**: `--intent` - filter by intent name
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
## Process
|
|
28
|
+
|
|
29
|
+
### 1. Load Schema
|
|
30
|
+
|
|
31
|
+
Read `.specsmd/aidlc/memory-bank.yaml` to get the `bolts` path.
|
|
32
|
+
*(Default: `memory-bank/bolts/`)*
|
|
33
|
+
|
|
34
|
+
### 2. Scan Bolt Files
|
|
35
|
+
|
|
36
|
+
For each bolt directory in `memory-bank/bolts/`:
|
|
37
|
+
|
|
38
|
+
1. Read `bolt.md` frontmatter for metadata
|
|
39
|
+
2. Extract: id, unit, intent, bolt_type, status, current_stage, stories
|
|
40
|
+
3. The `bolt_type` field indicates which bolt type definition to use for stage information
|
|
41
|
+
|
|
42
|
+
### 3. Apply Filters
|
|
43
|
+
|
|
44
|
+
If `--unit` or `--intent` provided:
|
|
45
|
+
|
|
46
|
+
- Filter bolts to match the specified criteria
|
|
47
|
+
- Show "No bolts found" if none match
|
|
48
|
+
|
|
49
|
+
### 4. Calculate Progress
|
|
50
|
+
|
|
51
|
+
For each bolt, determine progress:
|
|
52
|
+
|
|
53
|
+
- **planned**: 0% - Not started
|
|
54
|
+
- **in-progress**: `stages_completed / total_stages`
|
|
55
|
+
- **completed**: 100%
|
|
56
|
+
- **blocked**: Show blocker reason
|
|
57
|
+
|
|
58
|
+
### 5. Display Results
|
|
59
|
+
|
|
60
|
+
Sort bolts by:
|
|
61
|
+
|
|
62
|
+
1. In-progress first (active work)
|
|
63
|
+
2. Planned (upcoming)
|
|
64
|
+
3. Blocked (needs attention)
|
|
65
|
+
4. Completed (historical)
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
69
|
+
## Output
|
|
70
|
+
|
|
71
|
+
```markdown
|
|
72
|
+
## Bolts Overview
|
|
73
|
+
|
|
74
|
+
### Active Bolts
|
|
75
|
+
|
|
76
|
+
- ⏳ **bolt-auth-2** (auth-service, {bolt-type}) - Stage: {current-stage}, 2/4 (50%) ← working
|
|
77
|
+
|
|
78
|
+
### Planned Bolts
|
|
79
|
+
|
|
80
|
+
- [ ] **bolt-auth-3** (auth-service) - Stories: 005-*, 006-* - Ready ✅
|
|
81
|
+
- [ ] **bolt-payments-1** (payment-api) - Stories: 001-*, 002-*, 003-* - Ready ✅
|
|
82
|
+
|
|
83
|
+
### Blocked Bolts
|
|
84
|
+
|
|
85
|
+
- 🚫 **bolt-api-1** - Waiting for auth (since 2024-12-04)
|
|
86
|
+
|
|
87
|
+
### Completed Bolts
|
|
88
|
+
|
|
89
|
+
- ✅ **bolt-auth-1** (auth-service) - Completed 2024-12-05 (4 hours)
|
|
90
|
+
|
|
91
|
+
### Summary
|
|
92
|
+
- **Total**: {n} bolts
|
|
93
|
+
- **In Progress**: {n}
|
|
94
|
+
- **Planned**: {n}
|
|
95
|
+
- **Completed**: {n}
|
|
96
|
+
- **Blocked**: {n}
|
|
97
|
+
|
|
98
|
+
### Actions
|
|
99
|
+
|
|
100
|
+
1 - **Continue active bolt**: Resume `bolt-auth-2`
|
|
101
|
+
2 - **Start planned bolt**: Begin `bolt-auth-3`
|
|
102
|
+
3 - **View bolt status**: Check detailed status
|
|
103
|
+
4 - **Plan new bolts**: Create additional bolts
|
|
104
|
+
|
|
105
|
+
**Type a number or bolt ID to continue.**
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
---
|
|
109
|
+
|
|
110
|
+
## Output (Filtered)
|
|
111
|
+
|
|
112
|
+
```markdown
|
|
113
|
+
## Bolts for Unit: {unit-name}
|
|
114
|
+
|
|
115
|
+
- ✅ **bolt-{unit}-1** ({bolt-type}) - Completed 100% - Stories: 001-*, 002-*
|
|
116
|
+
- ⏳ **bolt-{unit}-2** ({bolt-type}) - In progress 50% - Stories: 003-*, 004-* ← current
|
|
117
|
+
- [ ] **bolt-{unit}-3** ({bolt-type}) - Planned 0% - Stories: 005-*
|
|
118
|
+
|
|
119
|
+
### Quick Actions
|
|
120
|
+
|
|
121
|
+
1 - **Continue bolt-{unit}-2**: Resume current work
|
|
122
|
+
2 - **View bolt-{unit}-1 status**: Review completed bolt
|
|
123
|
+
|
|
124
|
+
**Type a number to continue.**
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
---
|
|
128
|
+
|
|
129
|
+
## Bolt Selection
|
|
130
|
+
|
|
131
|
+
**Checkpoint 1**: Ask user which bolt to work on:
|
|
132
|
+
|
|
133
|
+
```text
|
|
134
|
+
### Available Bolts
|
|
135
|
+
|
|
136
|
+
1 - bolt-{unit}-1 (planned) - Stories: 001-*, 002-*
|
|
137
|
+
2 - bolt-{unit}-2 (planned) - Stories: 003-*, 004-*
|
|
138
|
+
|
|
139
|
+
Which bolt would you like to work on?
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
**Wait for user response.**
|
|
143
|
+
|
|
144
|
+
**CRITICAL**: Never auto-select a bolt. Always ask which bolt.
|
|
145
|
+
|
|
146
|
+
---
|
|
147
|
+
|
|
148
|
+
## Transition
|
|
149
|
+
|
|
150
|
+
After user selects bolt at Checkpoint 1:
|
|
151
|
+
|
|
152
|
+
- → **Bolt Start** - execute selected bolt
|
|
153
|
+
|
|
154
|
+
---
|
|
155
|
+
|
|
156
|
+
## Test Contract
|
|
157
|
+
|
|
158
|
+
```yaml
|
|
159
|
+
input: Unit name or intent filter
|
|
160
|
+
output: List of bolts with status
|
|
161
|
+
checkpoints: 1
|
|
162
|
+
- Checkpoint 1: User selects which bolt to work on
|
|
163
|
+
```
|