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.
Files changed (83) hide show
  1. package/README.md +300 -0
  2. package/bin/cli.js +21 -0
  3. package/flows/aidlc/README.md +372 -0
  4. package/flows/aidlc/agents/construction-agent.md +81 -0
  5. package/flows/aidlc/agents/inception-agent.md +95 -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 +41 -0
  13. package/flows/aidlc/memory-bank.yaml +104 -0
  14. package/flows/aidlc/quick-start.md +315 -0
  15. package/flows/aidlc/skills/construction/bolt-list.md +163 -0
  16. package/flows/aidlc/skills/construction/bolt-replan.md +343 -0
  17. package/flows/aidlc/skills/construction/bolt-start.md +289 -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 +338 -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 +271 -0
  29. package/flows/aidlc/skills/master/analyze-context.md +132 -0
  30. package/flows/aidlc/skills/master/answer-question.md +141 -0
  31. package/flows/aidlc/skills/master/explain-flow.md +146 -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 +193 -0
  40. package/flows/aidlc/templates/construction/bolt-types/bdd-construction-bolt.md +250 -0
  41. package/flows/aidlc/templates/construction/bolt-types/ddd-construction-bolt/adr-template.md +49 -0
  42. package/flows/aidlc/templates/construction/bolt-types/ddd-construction-bolt/ddd-01-domain-model-template.md +55 -0
  43. package/flows/aidlc/templates/construction/bolt-types/ddd-construction-bolt/ddd-02-technical-design-template.md +67 -0
  44. package/flows/aidlc/templates/construction/bolt-types/ddd-construction-bolt/ddd-03-test-report-template.md +62 -0
  45. package/flows/aidlc/templates/construction/bolt-types/ddd-construction-bolt.md +528 -0
  46. package/flows/aidlc/templates/construction/bolt-types/simple-construction-bolt.md +273 -0
  47. package/flows/aidlc/templates/construction/bolt-types/spike-bolt.md +240 -0
  48. package/flows/aidlc/templates/construction/bolt-types/tdd-construction-bolt.md +259 -0
  49. package/flows/aidlc/templates/construction/construction-log-template.md +129 -0
  50. package/flows/aidlc/templates/construction/standards/coding-standards.md +29 -0
  51. package/flows/aidlc/templates/construction/standards/system-architecture.md +22 -0
  52. package/flows/aidlc/templates/construction/standards/tech-stack.md +19 -0
  53. package/flows/aidlc/templates/inception/inception-log-template.md +134 -0
  54. package/flows/aidlc/templates/inception/project/README.md +55 -0
  55. package/flows/aidlc/templates/inception/requirements-template.md +144 -0
  56. package/flows/aidlc/templates/inception/stories-template.md +38 -0
  57. package/flows/aidlc/templates/inception/story-template.md +147 -0
  58. package/flows/aidlc/templates/inception/system-context-template.md +29 -0
  59. package/flows/aidlc/templates/inception/unit-brief-template.md +177 -0
  60. package/flows/aidlc/templates/inception/units-template.md +52 -0
  61. package/flows/aidlc/templates/standards/catalog.yaml +345 -0
  62. package/flows/aidlc/templates/standards/coding-standards.guide.md +553 -0
  63. package/flows/aidlc/templates/standards/data-stack.guide.md +162 -0
  64. package/flows/aidlc/templates/standards/tech-stack.guide.md +280 -0
  65. package/lib/InstallerFactory.js +36 -0
  66. package/lib/cli-utils.js +372 -0
  67. package/lib/constants.js +31 -0
  68. package/lib/installer.js +314 -0
  69. package/lib/installers/AntigravityInstaller.js +22 -0
  70. package/lib/installers/ClaudeInstaller.js +85 -0
  71. package/lib/installers/ClineInstaller.js +21 -0
  72. package/lib/installers/CodexInstaller.js +21 -0
  73. package/lib/installers/CopilotInstaller.js +113 -0
  74. package/lib/installers/CursorInstaller.js +63 -0
  75. package/lib/installers/GeminiInstaller.js +75 -0
  76. package/lib/installers/KiroInstaller.js +22 -0
  77. package/lib/installers/OpenCodeInstaller.js +22 -0
  78. package/lib/installers/RooInstaller.js +22 -0
  79. package/lib/installers/ToolInstaller.js +73 -0
  80. package/lib/installers/WindsurfInstaller.js +76 -0
  81. package/lib/markdown-validator.ts +175 -0
  82. package/lib/yaml-validator.ts +99 -0
  83. package/package.json +65 -0
package/README.md ADDED
@@ -0,0 +1,300 @@
1
+ # specsmd
2
+
3
+ **AI-native software development with multi-agent orchestration.**
4
+
5
+ specsmd implements the [AI-Driven Development Lifecycle (AI-DLC)](https://aws.amazon.com/blogs/devops/ai-driven-development-life-cycle/) methodology as a set of markdown-based agents that work with your favorite AI coding tools.
6
+
7
+ [![npm version](https://img.shields.io/npm/v/specsmd)](https://www.npmjs.com/package/specsmd)
8
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
9
+
10
+ ---
11
+
12
+ ## What is AI-DLC?
13
+
14
+ AI-DLC is a reimagined software development methodology where **AI drives the conversation** and humans validate. Unlike traditional Agile where iterations span weeks, AI-DLC operates in **Bolts** - rapid iterations measured in hours or days.
15
+
16
+ > "Traditional development methods were built for human-driven, long-running processes. AI-DLC reimagines the development lifecycle with AI as a central collaborator, enabling rapid cycles measured in hours or days rather than weeks."
17
+
18
+ ### AI-DLC vs Traditional Methods
19
+
20
+ | Aspect | Agile/Scrum | AI-DLC |
21
+ |--------|-------------|--------|
22
+ | Iteration duration | Weeks (Sprints) | Hours/days (Bolts) |
23
+ | Who drives | Human-driven, AI assists | AI-driven, human-validated |
24
+ | Design techniques | Out of scope | Integrated (DDD, TDD, BDD) |
25
+ | Task decomposition | Manual | AI-powered |
26
+ | Phases | Repeating sprints | Rapid three-phase cycles (Inception → Construction → Operations) |
27
+ | Rituals | Daily standups, retrospectives | Mob Elaboration, Mob Construction |
28
+
29
+ ---
30
+
31
+ ## How It Works
32
+
33
+ specsmd provides four specialized agents that guide you through the entire development lifecycle:
34
+
35
+ ```
36
+ ┌─────────────────┐
37
+ │ Master Agent │ Orchestrates & navigates
38
+ └────────┬────────┘
39
+
40
+ ┌────────────────────┼────────────────────┐
41
+ ▼ ▼ ▼
42
+ ┌───────────────┐ ┌───────────────┐ ┌───────────────┐
43
+ │ Inception │ → │ Construction │ → │ Operations │
44
+ │ Agent │ │ Agent │ │ Agent │
45
+ └───────────────┘ └───────────────┘ └───────────────┘
46
+ Capture intent Execute bolts Deploy & monitor
47
+ Define units Build & test Verify & scale
48
+ Plan stories Validate stages
49
+ ```
50
+
51
+ ### The Three Phases
52
+
53
+ | Phase | Agent | Purpose | Key Outputs |
54
+ |-------|-------|---------|-------------|
55
+ | **Inception** | Inception Agent | Capture intents, elaborate requirements, decompose into units | User stories, NFRs, Unit definitions, Bolt plans |
56
+ | **Construction** | Construction Agent | Execute bolts through domain design → logical design → code → test | Domain models, Technical designs, Code, Tests |
57
+ | **Operations** | Operations Agent | Deploy, verify, and monitor | Deployment units, Monitoring, Runbooks |
58
+
59
+ ---
60
+
61
+ ## Quick Start
62
+
63
+ ### Installation
64
+
65
+ ```bash
66
+ npx specsmd install
67
+ ```
68
+
69
+ The installer detects your AI coding tools (Claude Code, Cursor, GitHub Copilot) and sets up:
70
+ - Agent definitions and skills
71
+ - Memory bank structure for context persistence
72
+ - Slash commands for easy agent invocation
73
+
74
+ ### Initialize Your Project
75
+
76
+ ```bash
77
+ # Start the Master Agent
78
+ /specsmd-master-agent
79
+
80
+ # Then type:
81
+ project-init
82
+ ```
83
+
84
+ This guides you through establishing:
85
+ - **Tech Stack** - Languages, frameworks, databases, infrastructure
86
+ - **Coding Standards** - Formatting, linting, naming, testing strategy
87
+ - **System Architecture** - Architecture style, API design, state management
88
+ - **UX Guide** - Design system, styling, accessibility (optional)
89
+ - **API Conventions** - API style, versioning, response formats (optional)
90
+
91
+ ### Create Your First Intent
92
+
93
+ ```bash
94
+ /specsmd-inception-agent intent-create
95
+ ```
96
+
97
+ An **Intent** is your high-level goal:
98
+ - "User authentication system"
99
+ - "Product catalog with search"
100
+ - "Payment processing integration"
101
+
102
+ The agent will:
103
+ 1. Ask clarifying questions to minimize ambiguity
104
+ 2. Elaborate into user stories and NFRs
105
+ 3. Define system context
106
+ 4. Decompose into loosely-coupled units
107
+
108
+ ### Plan and Execute Bolts
109
+
110
+ ```bash
111
+ # Plan bolts for your stories
112
+ /specsmd-inception-agent bolt-plan
113
+
114
+ # Execute a bolt
115
+ /specsmd-construction-agent bolt-start
116
+ ```
117
+
118
+ Each bolt goes through validated stages:
119
+ 1. **Domain Model** - Model business logic using DDD principles
120
+ 2. **Technical Design** - Apply patterns and make architecture decisions
121
+ 3. **ADR Analysis** - Document significant decisions (optional)
122
+ 4. **Implement** - Generate production code
123
+ 5. **Test** - Verify correctness with automated tests
124
+
125
+ **Human validation happens at each stage gate.**
126
+
127
+ ---
128
+
129
+ ## Key Concepts
130
+
131
+ ### Intent
132
+ A high-level statement of purpose that encapsulates what needs to be achieved - whether a business goal, feature, or technical outcome. It serves as the starting point for AI-driven decomposition.
133
+
134
+ ### Unit
135
+ A cohesive, self-contained work element derived from an Intent. Units are loosely coupled and can be developed independently. Analogous to a Subdomain (DDD) or Epic (Scrum).
136
+
137
+ ### Bolt
138
+ The smallest iteration in AI-DLC, designed for rapid implementation. Unlike Sprints (weeks), Bolts are **hours to days**. Each bolt encapsulates a well-defined scope of work.
139
+
140
+ | Type | Best For | Stages |
141
+ |------|----------|--------|
142
+ | **DDD Construction** | Complex business logic, domain modeling | Model → Design → ADR → Implement → Test |
143
+ | **TDD Construction** | Well-defined interfaces, test-first | Test → Implement → Refactor |
144
+ | **BDD Construction** | User-facing features, acceptance criteria | Scenario → Implement → Verify |
145
+ | **Spike** | Research, exploration, unknowns | Explore → Document |
146
+
147
+ ### Memory Bank
148
+ File-based storage for all project artifacts. Maintains context across agent sessions and provides traceability between artifacts.
149
+
150
+ ### Standards
151
+ Project decisions that inform AI code generation. Standards ensure consistency across all generated code and documentation.
152
+
153
+ ---
154
+
155
+ ## Project Structure
156
+
157
+ After installation:
158
+
159
+ ```
160
+ .specsmd/
161
+ ├── manifest.yaml # Installation manifest
162
+ └── aidlc/ # AI-DLC flow
163
+ ├── agents/ # Agent definitions
164
+ ├── skills/ # Agent capabilities
165
+ ├── templates/ # Artifact templates
166
+ │ └── standards/ # Standards facilitation guides
167
+ └── memory-bank.yaml # Memory bank schema
168
+
169
+ memory-bank/ # Created after project-init
170
+ ├── intents/ # Your captured intents
171
+ │ └── {intent-name}/
172
+ │ ├── requirements.md
173
+ │ ├── system-context.md
174
+ │ └── units/
175
+ ├── bolts/ # Bolt execution records
176
+ ├── standards/ # Project standards
177
+ │ ├── tech-stack.md
178
+ │ ├── coding-standards.md
179
+ │ └── ...
180
+ └── operations/ # Deployment context
181
+ ```
182
+
183
+ ---
184
+
185
+ ## Agent Commands
186
+
187
+ ### Master Agent
188
+ ```bash
189
+ /specsmd-master-agent
190
+ ```
191
+ | Command | Purpose |
192
+ |---------|---------|
193
+ | `project-init` | Initialize project with standards |
194
+ | `analyze-context` | View current project state |
195
+ | `route-request` | Get directed to the right agent |
196
+ | `explain-flow` | Learn about AI-DLC methodology |
197
+ | `answer-question` | Get help with any specsmd question |
198
+
199
+ ### Inception Agent
200
+ ```bash
201
+ /specsmd-inception-agent
202
+ ```
203
+ | Command | Purpose |
204
+ |---------|---------|
205
+ | `intent-create` | Create a new intent |
206
+ | `intent-list` | List all intents |
207
+ | `requirements` | Elaborate intent requirements |
208
+ | `context` | Define system context |
209
+ | `units` | Decompose into units |
210
+ | `story-create` | Create stories for a unit |
211
+ | `bolt-plan` | Plan bolts for stories |
212
+ | `review` | Review inception artifacts |
213
+
214
+ ### Construction Agent
215
+ ```bash
216
+ /specsmd-construction-agent
217
+ ```
218
+ | Command | Purpose |
219
+ |---------|---------|
220
+ | `bolt-start` | Start/continue executing a bolt |
221
+ | `bolt-status` | Check bolt progress |
222
+ | `bolt-list` | List all bolts |
223
+ | `bolt-replan` | Replan bolts if needed |
224
+
225
+ ### Operations Agent
226
+ ```bash
227
+ /specsmd-operations-agent
228
+ ```
229
+ | Command | Purpose |
230
+ |---------|---------|
231
+ | `build` | Build the project |
232
+ | `deploy` | Deploy to environment |
233
+ | `verify` | Verify deployment |
234
+ | `monitor` | Set up monitoring |
235
+
236
+ ---
237
+
238
+ ## Why specsmd?
239
+
240
+ ### AI-Native, Not AI-Retrofitted
241
+ Built from the ground up for AI-driven development. AI-DLC is a reimagination based on first principles, not a retrofit of existing methods.
242
+
243
+ ### Human Oversight as Loss Function
244
+ Validation at each stage catches errors early before they cascade downstream. Each validation transforms artifacts into rich context for subsequent stages.
245
+
246
+ ### Design Techniques Built-In
247
+ DDD, TDD, and BDD are integral to the methodology - not optional add-ons. This addresses the "whitespace" in Agile that has led to quality issues.
248
+
249
+ ### Tool Agnostic
250
+ Works with Claude Code, Cursor, GitHub Copilot, and other AI coding assistants. Markdown-based agents work anywhere.
251
+
252
+ ### Context Persistence
253
+ Memory bank ensures AI agents have full project context across sessions. All artifacts are linked for backward and forward traceability.
254
+
255
+ ---
256
+
257
+ ## Supported Tools
258
+
259
+ | Tool | Status | Installation |
260
+ |------|--------|--------------|
261
+ | **Claude Code** | Full support | Slash commands in `.claude/commands/` |
262
+ | **Cursor** | Full support | Rules in `.cursor/rules/` (`.mdc` format) |
263
+ | **GitHub Copilot** | Full support | Agents in `.github/agents/` (`.agent.md` format) |
264
+ | **Google Antigravity** | Full support | Agents in `.agent/agents/` |
265
+
266
+ ---
267
+
268
+ ## FAQ
269
+
270
+ **Q: Agents don't seem to remember previous context?**
271
+ Each agent invocation starts fresh. Agents read context from the Memory Bank at startup. Ensure artifacts are saved after each step.
272
+
273
+ **Q: How do I reset project state?**
274
+ Clear the `memory-bank/` directory to reset all artifacts. To remove specsmd entirely, delete the `.specsmd/` directory and tool-specific command files.
275
+
276
+ **Q: Can I use specsmd with existing Agile workflows?**
277
+ AI-DLC is designed as a reimagination, not a retrofit. However, familiar concepts (user stories, acceptance criteria) are retained to ease transition.
278
+
279
+ **Q: What project types is this suited for?**
280
+ specsmd is designed for building complex systems that demand architectural complexity, trade-off management, and scalability. Simpler systems may be better suited for low-code/no-code approaches.
281
+
282
+ ---
283
+
284
+ ## Resources
285
+
286
+ - [AI-DLC Specification (AWS)](https://aws.amazon.com/blogs/devops/ai-driven-development-life-cycle/)
287
+ - [specs.md](https://specs.md)
288
+
289
+
290
+ ---
291
+
292
+ ## License
293
+
294
+ MIT License - see [LICENSE](LICENSE) for details.
295
+
296
+ ---
297
+
298
+ <p align="center">
299
+ Built with AWS' AI-DLC methodology by the <a href="https://specs.md">specs.md</a> team.
300
+ </p>
package/bin/cli.js ADDED
@@ -0,0 +1,21 @@
1
+ #!/usr/bin/env node
2
+
3
+ const { program } = require('commander');
4
+ const installer = require('../lib/installer');
5
+ const packageJson = require('../package.json');
6
+
7
+ program
8
+ .version(packageJson.version)
9
+ .description(packageJson.description);
10
+
11
+ program
12
+ .command('install')
13
+ .description('Interactively install a specsmd flow')
14
+ .action(installer.install);
15
+
16
+ program
17
+ .command('uninstall')
18
+ .description('Uninstall specsmd from the current project')
19
+ .action(installer.uninstall);
20
+
21
+ program.parse(process.argv);
@@ -0,0 +1,372 @@
1
+ # AI-DLC Flow - specsmd
2
+
3
+ Welcome to the **AI-DLC (AI-Driven Development Life Cycle)** flow for specsmd!
4
+
5
+ ## What is AI-DLC?
6
+
7
+ AI-DLC is an **AWS methodology** for AI-native software development that optimizes for how AI agents work best. Unlike traditional methodologies, AI-DLC:
8
+
9
+ - Uses **concentrated rapid planning** (Mob Elaboration) that "condenses weeks into hours"
10
+ - Works in **focused bolt sessions** (hours or days, not fixed sprints)
11
+ - Follows **DDD (Domain-Driven Design)** principles
12
+ - Maintains **persistent context** across sessions through memory bank
13
+ - Operates in **three sequential phases**: Inception → Construction → Operations
14
+
15
+ ## Three Phases
16
+
17
+ ### 1. Inception Phase
18
+
19
+ **Goal**: Complete planning and design before construction begins
20
+
21
+ **Activities**:
22
+
23
+ - Gather requirements
24
+ - Create user stories
25
+ - Design architecture
26
+ - Decompose into Units of Work
27
+ - Plan Bolt instances
28
+
29
+ **Command**: `/specsmd-inception-agent --intent="intent-name"`
30
+
31
+ **Output**:
32
+
33
+ - Requirements documented
34
+ - Stories created
35
+ - Architecture designed
36
+ - Units decomposed
37
+ - Bolts planned
38
+
39
+ ### 2. Construction Phase
40
+
41
+ **Goal**: Build working software through iterative bolt execution
42
+
43
+ **Activities**:
44
+
45
+ - Execute bolts through DDD stages:
46
+ 1. **domain-design** - Model business logic
47
+ 2. **logical-design** - Apply NFRs and patterns
48
+ 3. **code-generation** - Implement code
49
+ 4. **testing** - Automated testing
50
+
51
+ **Command**: `/specsmd-construction-agent --unit="unit-name"`
52
+
53
+ **Output**:
54
+
55
+ - Domain models
56
+ - Logical designs
57
+ - Implementation code
58
+ - Comprehensive tests
59
+
60
+ ### 3. Operations Phase
61
+
62
+ **Goal**: Deploy and operate the system
63
+
64
+ **Activities**:
65
+
66
+ - Build deployment artifacts
67
+ - Deploy to environments
68
+ - Verify deployments
69
+ - Setup monitoring
70
+
71
+ **Command**: `/specsmd-operations-agent --unit="unit-name"`
72
+
73
+ **Output**:
74
+
75
+ - Deployed services
76
+ - Monitoring dashboards
77
+ - Deployment documentation
78
+
79
+ ## Artifact Ownership Matrix
80
+
81
+ | Phase / Agent | Primary Output Artifacts | Description |
82
+ |--------------|-------------------------|-------------|
83
+ | **Inception** | **Requirements** | Functional & Non-functional requirements |
84
+ | | **Stories** | User stories scoped to a Unit |
85
+ | | **System Context** | High-level boundaries & actors |
86
+ | | **Unit Decomposition** | Identification of independent units |
87
+ | | **Bolt Plans** | Planned work sessions |
88
+ | **Construction** | **Domain Design** | Entities, Aggregates, Value Objects |
89
+ | | **Logical Design** | APIs, Schemas, Cloud Resources |
90
+ | | **Code** | Source code implementation |
91
+ | | **Tests** | Unit, Integration, & E2E tests |
92
+ | **Operations** | **Build Artifacts** | Docker images, binaries, bundles |
93
+ | | **Infrastructure** | Terraform/CloudFormation/CDK |
94
+ | | **Documentation** | Runbooks, API docs |
95
+
96
+ ## Decomposition Hierarchy
97
+
98
+ AI-DLC distinguishes between the **Data Hierarchy** (what we build) and **Execution** (how we build it).
99
+
100
+ ### Data Hierarchy (Structural)
101
+
102
+ ```text
103
+ Intent (feature/capability)
104
+ └── Unit (independently deployable component)
105
+ └── Story (individual user story or task)
106
+ ```
107
+
108
+ ### Execution (Process)
109
+
110
+ **Bolts** are time-boxed execution sessions scoped to a **Unit**. A Unit may require multiple Bolts to complete all its Stories.
111
+
112
+ **Example**:
113
+
114
+ - **Intent**: User Authentication
115
+ - **Unit**: Auth Service
116
+ - **Story 1**: User Registration
117
+ - **Story 2**: Login
118
+ - **Bolt 1**: Implement Registration (executes Story 1)
119
+ - **Bolt 2**: Implement Login (executes Story 2)
120
+
121
+ ## Agent Capabilities & Slash Commands
122
+
123
+ ### Core Agent Commands (Slash Commands)
124
+
125
+ These are the primary entry points defined in `.cursor/commands` (or your agentic coding tool's equivalent), mapping to `src/flows/aidlc/commands/`:
126
+
127
+ - `/specsmd-master-agent` - **Start Here**. The Master Orchestrator that routes you to the right place.
128
+ - `/specsmd-inception-agent` - Start Inception phase
129
+ - `/specsmd-construction-agent` - Start Construction phase
130
+ - `/specsmd-operations-agent` - Start Operations phase
131
+
132
+ ### Agent Skills (Internal)
133
+
134
+ Agents execute these skills internally. You generally don't run these directly as slash commands, but the agents use them to perform work.
135
+
136
+ - **Inception**: Gather Requirements, Create Stories, Define Context, Decompose Units
137
+ - **Construction**: Plan Bolts, Start Bolts, Manage Bolt Status
138
+ - **Operations**: Build, Deploy, Verify
139
+
140
+ ## Memory Bank Structure
141
+
142
+ > **Note**: The structure below is an **example**. The authoritative source of truth for the memory bank schema is `.specsmd/aidlc/memory-bank.yaml`. Agents read that file to determine where to place artifacts.
143
+
144
+ All artifacts are stored in the `memory-bank/` directory:
145
+
146
+ ```text
147
+ memory-bank/
148
+ ├── intents/ # Feature intents
149
+ │ └── {intent-name}/
150
+ │ ├── requirements.md # Functional & non-functional requirements
151
+ │ ├── system-context.md # High-level boundaries & actors
152
+ │ ├── units.md # Unit decomposition overview
153
+ │ └── units/
154
+ │ └── {unit-name}/
155
+ │ ├── unit-brief.md # Unit scope and details
156
+ │ └── stories/
157
+ │ ├── 001-{title}.md
158
+ │ └── 002-{title}.md
159
+ ├── bolts/ # Bolt execution records
160
+ │ └── {bolt-id}/
161
+ │ ├── bolt.md # Bolt instance metadata
162
+ │ ├── ddd-01-domain-model.md # Stage 1: Domain modeling
163
+ │ ├── ddd-02-technical-design.md # Stage 2: Technical design
164
+ │ └── ddd-03-test-report.md # Stage 5: Test report
165
+ ├── standards/ # Project standards
166
+ │ ├── tech-stack.md
167
+ │ ├── coding-standards.md
168
+ │ └── system-architecture.md
169
+ └── operations/ # Deployment context
170
+ ```
171
+
172
+ ## Quick Start Guide
173
+
174
+ ### 1. Create Your First Intent
175
+
176
+ Open your AI coding tool (Claude Code, Cursor, etc.) and type:
177
+
178
+ ```text
179
+ /specsmd-master-agent
180
+ ```
181
+
182
+ Then type `intent-create` to create your intent (e.g., "user-authentication").
183
+
184
+ ### 2. Run Inception Phase
185
+
186
+ ```text
187
+ /specsmd-inception-agent --intent="user-authentication"
188
+ ```
189
+
190
+ Work through the Inception menu:
191
+
192
+ 1. Gather Requirements
193
+ 2. Create Stories
194
+ 3. Design Architecture
195
+ 4. Decompose into Units
196
+ 5. Plan Bolts
197
+ 6. Review & Complete
198
+
199
+ ### 3. Execute Construction
200
+
201
+ ```text
202
+ /specsmd-construction-agent --unit="auth-service"
203
+ ```
204
+
205
+ Start your first bolt and work through the DDD stages:
206
+
207
+ 1. Domain Design
208
+ 2. Logical Design
209
+ 3. Code Generation
210
+ 4. Testing
211
+
212
+ ### 4. Deploy with Operations
213
+
214
+ ```text
215
+ /specsmd-operations-agent --unit="auth-service"
216
+ ```
217
+
218
+ Deploy your unit:
219
+
220
+ 1. Build Deployment Artifacts
221
+ 2. Deploy to Environment
222
+ 3. Verify Deployment
223
+ 4. Setup Monitoring
224
+
225
+ ## Key Principles
226
+
227
+ ### 1. Mob Elaboration (Rapid Planning)
228
+
229
+ AI-DLC uses **concentrated rapid planning** during Inception. Instead of distributing planning across multiple sprints, you complete all planning in hours (not weeks) to give AI complete cross-unit context.
230
+
231
+ ### 2. AI Plans, Human Validates
232
+
233
+ The AI suggests decompositions and designs, but humans review and approve all decisions.
234
+
235
+ ### 3. Bolts are Flexible
236
+
237
+ Bolts take "hours or days" depending on complexity - they're not fixed-duration like sprints.
238
+
239
+ ### 4. DDD Focus
240
+
241
+ Domain-Driven Design principles guide the entire Construction phase.
242
+
243
+ ### 5. Persistent Context
244
+
245
+ Everything is stored in the memory bank so context is never lost between sessions.
246
+
247
+ ## Workflow Example
248
+
249
+ Here's a complete workflow for building a feature:
250
+
251
+ 1. **Create Intent**
252
+
253
+ ```text
254
+ /specsmd-master-agent
255
+ # Then type: intent-create
256
+ # Create "user-authentication" intent
257
+ ```
258
+
259
+ 2. **Inception Phase**
260
+
261
+ ```text
262
+ /specsmd-inception-agent --intent="user-authentication"
263
+ # Complete all inception activities
264
+ # Result: 2 units planned with 3 bolts total
265
+ ```
266
+
267
+ 3. **Construction - Unit 1**
268
+
269
+ ```text
270
+ /specsmd-construction-agent --unit="auth-service"
271
+ # Execute auth-service-bolt-1 through all stages
272
+ # Execute auth-service-bolt-2 through all stages
273
+ # Result: Auth service fully implemented and tested
274
+ ```
275
+
276
+ 4. **Construction - Unit 2**
277
+
278
+ ```text
279
+ /specsmd-construction-agent --unit="email-service"
280
+ # Execute email-service-bolt-1
281
+ # Result: Email service implemented
282
+ ```
283
+
284
+ 5. **Operations**
285
+
286
+ ```text
287
+ /specsmd-operations-agent --unit="auth-service"
288
+ # Build, deploy, verify
289
+ # Result: Auth service running in production
290
+
291
+ /specsmd-operations-agent --unit="email-service"
292
+ # Build, deploy, verify
293
+ # Result: Email service running in production
294
+ ```
295
+
296
+ ## Tips for Success
297
+
298
+ ### Planning
299
+
300
+ - Be thorough in Inception - it pays off during Construction
301
+ - Document NFRs clearly - they affect logical design
302
+ - Group related stories into the same bolt
303
+
304
+ ### Construction
305
+
306
+ - Follow the DDD stages in order
307
+ - Don't skip testing
308
+ - Keep bolts focused (5-8 stories max)
309
+ - Update memory bank artifacts as you progress
310
+
311
+ ### Operations
312
+
313
+ - Always deploy to staging first
314
+ - Run smoke tests after every deployment
315
+ - Setup monitoring from the start
316
+ - Document runbooks for on-call engineers
317
+
318
+ ## Agents
319
+
320
+ Three specialized agents guide you through AI-DLC:
321
+
322
+ 1. **Master Orchestrator** (`agents/master-agent.md`)
323
+ - Central entry point
324
+ - Workflow routing
325
+ - State analysis
326
+
327
+ 2. **Inception Agent** (`agents/inception-agent.md`)
328
+ - Requirements gathering
329
+ - Story creation
330
+ - Architecture design
331
+ - System Context definition
332
+ - Unit decomposition
333
+ - Bolt planning
334
+
335
+ 3. **Construction Agent** (`agents/construction-agent.md`)
336
+ - Bolt execution
337
+ - DDD stage guidance
338
+ - Code generation
339
+ - Testing
340
+
341
+ 4. **Operations Agent** (`agents/operations-agent.md`)
342
+ - Build artifacts
343
+ - Deployment
344
+ - Verification
345
+ - Monitoring
346
+
347
+ ## Learn More
348
+
349
+ - **Official AI-DLC Documentation**: See `/resource/aidlc-pdf-dump.txt` in the specsmd repository
350
+ - **Methodology Notes**: See `specs/flows/aidlc/methodology-notes.md`
351
+ - **Agent Details**: Read the agent files in `.specsmd/aidlc/agents/`
352
+
353
+ ## Getting Help
354
+
355
+ If you get stuck:
356
+
357
+ 1. **Ask the Agent**: Just ask the Master or any agent your question. They can read the memory bank directly.
358
+
359
+ ## Customization
360
+
361
+ You can customize this flow by editing:
362
+
363
+ - `.specsmd/aidlc/memory-bank.yaml` - Memory bank structure
364
+ - `agents/*-agent.md` - Agent directives and behaviors
365
+ - `commands/*.md` - Slash command definitions
366
+ - `.specsmd/aidlc/templates/` - Templates used by agents
367
+
368
+ ---
369
+
370
+ **Happy building with AI-DLC!** 🚀
371
+
372
+ *This is the official AI-DLC implementation by specsmd, following the AWS AI-DLC methodology.*