project-iris 0.0.12 → 0.0.14

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 (189) hide show
  1. package/README.md +214 -323
  2. package/bin/cli.js +21 -0
  3. package/flows/aidlc/README.md +372 -0
  4. package/flows/aidlc/agents/construction-agent.md +79 -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 +442 -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 +372 -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/{dist/iris_bundle/frameworks/iris-core → flows/aidlc}/templates/construction/bolt-types/ddd-construction-bolt.md +3 -3
  40. package/{dist → flows/aidlc}/templates/construction/bolt-types/spike-bolt.md +2 -2
  41. package/flows/aidlc/templates/construction/construction-log-template.md +129 -0
  42. package/flows/aidlc/templates/construction/standards/coding-standards.md +29 -0
  43. package/flows/aidlc/templates/construction/standards/system-architecture.md +22 -0
  44. package/flows/aidlc/templates/construction/standards/tech-stack.md +19 -0
  45. package/flows/aidlc/templates/inception/inception-log-template.md +134 -0
  46. package/flows/aidlc/templates/inception/project/README.md +55 -0
  47. package/flows/aidlc/templates/standards/catalog.yaml +345 -0
  48. package/flows/aidlc/templates/standards/coding-standards.guide.md +553 -0
  49. package/flows/aidlc/templates/standards/data-stack.guide.md +162 -0
  50. package/flows/aidlc/templates/standards/tech-stack.guide.md +280 -0
  51. package/lib/InstallerFactory.js +36 -0
  52. package/lib/analytics/env-detector.js +92 -0
  53. package/lib/analytics/index.js +22 -0
  54. package/lib/analytics/machine-id.js +33 -0
  55. package/lib/analytics/tracker.js +232 -0
  56. package/lib/cli-utils.js +342 -0
  57. package/lib/constants.js +32 -0
  58. package/lib/installer.js +402 -0
  59. package/lib/installers/AntigravityInstaller.js +22 -0
  60. package/lib/installers/ClaudeInstaller.js +85 -0
  61. package/lib/installers/ClineInstaller.js +21 -0
  62. package/lib/installers/CodexInstaller.js +21 -0
  63. package/lib/installers/CopilotInstaller.js +113 -0
  64. package/lib/installers/CursorInstaller.js +63 -0
  65. package/lib/installers/GeminiInstaller.js +75 -0
  66. package/lib/installers/KiroInstaller.js +22 -0
  67. package/lib/installers/OpenCodeInstaller.js +22 -0
  68. package/lib/installers/RooInstaller.js +22 -0
  69. package/lib/installers/ToolInstaller.js +73 -0
  70. package/lib/installers/WindsurfInstaller.js +22 -0
  71. package/lib/markdown-validator.ts +175 -0
  72. package/lib/yaml-validator.ts +99 -0
  73. package/package.json +105 -32
  74. package/scripts/artifact-validator.js +594 -0
  75. package/scripts/bolt-complete.js +606 -0
  76. package/scripts/status-integrity.js +598 -0
  77. package/dist/bridge/agent-runner.js +0 -190
  78. package/dist/bridge/connector-factory.js +0 -31
  79. package/dist/bridge/connectors/antigravity-connector.js +0 -18
  80. package/dist/bridge/connectors/cursor-connector.js +0 -31
  81. package/dist/bridge/connectors/in-process-connector.js +0 -29
  82. package/dist/bridge/connectors/vscode-connector.js +0 -31
  83. package/dist/bridge/connectors/windsurf-connector.js +0 -23
  84. package/dist/bridge/filesystem-connector.js +0 -110
  85. package/dist/bridge/helper.js +0 -203
  86. package/dist/bridge/types.js +0 -10
  87. package/dist/cli.js +0 -40
  88. package/dist/commands/ask.js +0 -259
  89. package/dist/commands/bridge.js +0 -88
  90. package/dist/commands/create.js +0 -25
  91. package/dist/commands/develop.js +0 -141
  92. package/dist/commands/doctor.js +0 -102
  93. package/dist/commands/flow.js +0 -301
  94. package/dist/commands/framework.js +0 -273
  95. package/dist/commands/generate.js +0 -59
  96. package/dist/commands/install.js +0 -100
  97. package/dist/commands/pack.js +0 -33
  98. package/dist/commands/phase.js +0 -38
  99. package/dist/commands/run.js +0 -199
  100. package/dist/commands/status.js +0 -114
  101. package/dist/commands/uninstall.js +0 -14
  102. package/dist/commands/use.js +0 -20
  103. package/dist/commands/validate.js +0 -102
  104. package/dist/framework/framework-loader.js +0 -97
  105. package/dist/framework/framework-paths.js +0 -48
  106. package/dist/framework/framework-types.js +0 -15
  107. package/dist/iris/artifact-checker.js +0 -78
  108. package/dist/iris/artifacts/config.js +0 -68
  109. package/dist/iris/artifacts/generator.js +0 -88
  110. package/dist/iris/artifacts/types.js +0 -1
  111. package/dist/iris/bundle.js +0 -44
  112. package/dist/iris/doctrine/collector.js +0 -124
  113. package/dist/iris/fixer.js +0 -149
  114. package/dist/iris/flows/manifest.js +0 -124
  115. package/dist/iris/framework-context.js +0 -49
  116. package/dist/iris/framework-manager.js +0 -215
  117. package/dist/iris/fs/atomic.js +0 -22
  118. package/dist/iris/guard.js +0 -38
  119. package/dist/iris/importers/index.js +0 -9
  120. package/dist/iris/importers/types.js +0 -8
  121. package/dist/iris/importers/writer.js +0 -139
  122. package/dist/iris/include.js +0 -49
  123. package/dist/iris/installer.js +0 -334
  124. package/dist/iris/interactive/env.js +0 -21
  125. package/dist/iris/interactive/intent-interview.js +0 -345
  126. package/dist/iris/interactive/intent-schema.js +0 -28
  127. package/dist/iris/interactive/interview-io.js +0 -22
  128. package/dist/iris/interview/config.js +0 -71
  129. package/dist/iris/interview/types.js +0 -16
  130. package/dist/iris/interview/utils.js +0 -38
  131. package/dist/iris/manifest.js +0 -54
  132. package/dist/iris/packer.js +0 -325
  133. package/dist/iris/parsers/unit-parser.js +0 -43
  134. package/dist/iris/paths.js +0 -18
  135. package/dist/iris/policy.js +0 -133
  136. package/dist/iris/proc.js +0 -56
  137. package/dist/iris/report.js +0 -53
  138. package/dist/iris/resolver.js +0 -66
  139. package/dist/iris/router.js +0 -114
  140. package/dist/iris/routes.js +0 -189
  141. package/dist/iris/run-state.js +0 -146
  142. package/dist/iris/state.js +0 -113
  143. package/dist/iris/templates.js +0 -70
  144. package/dist/iris/tmp.js +0 -24
  145. package/dist/iris/uninstaller.js +0 -181
  146. package/dist/iris/utils/interpolate.js +0 -42
  147. package/dist/iris/validator.js +0 -391
  148. package/dist/iris/workflow/config.js +0 -51
  149. package/dist/iris/workflow/engine.js +0 -129
  150. package/dist/iris/workflow/steps.js +0 -448
  151. package/dist/iris/workflow/types.js +0 -1
  152. package/dist/iris_bundle/frameworks/iris-core/framework.yaml +0 -9
  153. package/dist/iris_bundle/frameworks/iris-core/memory/memory-bank.yaml +0 -1
  154. package/dist/iris_bundle/frameworks/iris-core/policy.yaml +0 -7
  155. package/dist/iris_bundle/frameworks/iris-core/templates/config/memory-bank.yaml +0 -1
  156. package/dist/iris_bundle/frameworks/iris-core/templates/construction/bolt-types/spike-bolt.md +0 -240
  157. package/dist/lib.js +0 -96
  158. package/dist/templates/construction/bolt-template.md +0 -226
  159. package/dist/templates/construction/bolt-types/ddd-construction-bolt/adr-template.md +0 -49
  160. package/dist/templates/construction/bolt-types/ddd-construction-bolt/ddd-01-domain-model-template.md +0 -55
  161. package/dist/templates/construction/bolt-types/ddd-construction-bolt/ddd-02-technical-design-template.md +0 -67
  162. package/dist/templates/construction/bolt-types/ddd-construction-bolt/ddd-03-test-report-template.md +0 -62
  163. package/dist/templates/construction/bolt-types/ddd-construction-bolt.md +0 -528
  164. package/dist/templates/construction/bolt-types/simple-construction-bolt.md +0 -347
  165. package/dist/templates/inception/requirements-template.md +0 -144
  166. package/dist/templates/inception/stories-template.md +0 -38
  167. package/dist/templates/inception/story-template.md +0 -147
  168. package/dist/templates/inception/system-context-template.md +0 -29
  169. package/dist/templates/inception/unit-brief-template.md +0 -177
  170. package/dist/templates/inception/units-template.md +0 -52
  171. package/dist/utils/exit-codes.js +0 -7
  172. package/dist/utils/logo.js +0 -17
  173. package/dist/workflows/bolt-execution.js +0 -238
  174. package/dist/workflows/bolt-plan.js +0 -221
  175. package/dist/workflows/intent-inception.js +0 -285
  176. package/dist/workflows/memory-bank-generator.js +0 -180
  177. package/dist/workflows/reporting.js +0 -74
  178. /package/{dist/iris_bundle/frameworks/iris-core → flows/aidlc}/templates/construction/bolt-template.md +0 -0
  179. /package/{dist/iris_bundle/frameworks/iris-core → flows/aidlc}/templates/construction/bolt-types/ddd-construction-bolt/adr-template.md +0 -0
  180. /package/{dist/iris_bundle/frameworks/iris-core → flows/aidlc}/templates/construction/bolt-types/ddd-construction-bolt/ddd-01-domain-model-template.md +0 -0
  181. /package/{dist/iris_bundle/frameworks/iris-core → flows/aidlc}/templates/construction/bolt-types/ddd-construction-bolt/ddd-02-technical-design-template.md +0 -0
  182. /package/{dist/iris_bundle/frameworks/iris-core → flows/aidlc}/templates/construction/bolt-types/ddd-construction-bolt/ddd-03-test-report-template.md +0 -0
  183. /package/{dist/iris_bundle/frameworks/iris-core → flows/aidlc}/templates/construction/bolt-types/simple-construction-bolt.md +0 -0
  184. /package/{dist/iris_bundle/frameworks/iris-core → flows/aidlc}/templates/inception/requirements-template.md +0 -0
  185. /package/{dist/iris_bundle/frameworks/iris-core → flows/aidlc}/templates/inception/stories-template.md +0 -0
  186. /package/{dist/iris_bundle/frameworks/iris-core → flows/aidlc}/templates/inception/story-template.md +0 -0
  187. /package/{dist/iris_bundle/frameworks/iris-core → flows/aidlc}/templates/inception/system-context-template.md +0 -0
  188. /package/{dist/iris_bundle/frameworks/iris-core → flows/aidlc}/templates/inception/unit-brief-template.md +0 -0
  189. /package/{dist/iris_bundle/frameworks/iris-core → flows/aidlc}/templates/inception/units-template.md +0 -0
@@ -0,0 +1,239 @@
1
+ # Skill: Analyze Context
2
+
3
+ ---
4
+
5
+ ## Role
6
+
7
+ Diagnostic skill to determine current project state by inspecting memory bank artifacts.
8
+
9
+ **NO Checkpoint** - Analysis is informational, not a decision point.
10
+
11
+ ---
12
+
13
+ ## Goal
14
+
15
+ Deduce the current project state and recommend the logical next step by inspecting the memory bank artifacts.
16
+
17
+ ---
18
+
19
+ ## Input
20
+
21
+ - **Required**: `.iris/aidlc/memory-bank.yaml` - artifact schema
22
+ - **Required**: Project artifacts at paths defined in schema
23
+
24
+ ---
25
+
26
+ ## Process
27
+
28
+ ### 1. Load Schema
29
+
30
+ Read `.iris/aidlc/memory-bank.yaml` to understand artifact paths:
31
+
32
+ - `schema.intents` - where intents are stored
33
+ - `schema.units` - where units are stored
34
+ - `schema.bolts` - where bolts are stored
35
+
36
+ ### 2. Inspect Intents
37
+
38
+ List contents of `schema.intents` directory:
39
+
40
+ - Are there any intent directories?
41
+ - For each intent, what artifacts exist?
42
+
43
+ ### 3. Inspect Units (if intents exist)
44
+
45
+ For recent/active intents:
46
+
47
+ - Does `units.md` exist?
48
+ - Does `units/` directory have content?
49
+ - For each unit, are there stories in `stories/`?
50
+
51
+ ### 4. Inspect Bolts (if units exist)
52
+
53
+ Check `schema.bolts` directory:
54
+
55
+ - Are there bolt instance files?
56
+ - What is their status? (planned, in-progress, completed)
57
+ - What stage are in-progress bolts at?
58
+
59
+ ### 5. Determine Phase
60
+
61
+ Based on evidence found:
62
+
63
+ - **No intents** → Pre-Inception → Create first intent
64
+ - **Intent exists, no requirements.md** → Early Inception → Gather requirements
65
+ - **Requirements exist, no units.md** → Mid Inception → Decompose into units
66
+ - **Units exist, no stories** → Late Inception → Create stories
67
+ - **Stories exist, no bolts** → Inception Complete → Plan bolts
68
+ - **Bolts planned** → Ready for Construction → Start first bolt
69
+ - **Bolts in-progress** → Construction → Continue current bolt
70
+ - **All bolts completed** → Ready for Operations → Deploy unit
71
+ - **Deployed to production** → Operations → Monitor and maintain
72
+
73
+ ### 6. Validate Status Integrity
74
+
75
+ Check for status inconsistencies across the artifact hierarchy. Status must cascade correctly:
76
+
77
+ ```text
78
+ Bolt complete → Stories complete → Unit complete (if all bolts done) → Intent complete (if all units done)
79
+ ```
80
+
81
+ #### 6.1 Story Status Check
82
+
83
+ For each completed bolt:
84
+
85
+ - Read bolt's `stories` array
86
+ - Check each story file's `status` field
87
+ - **Inconsistency**: Bolt complete but story has `status: draft` or `status: in-progress`
88
+
89
+ #### 6.2 Unit Status Check
90
+
91
+ For each unit:
92
+
93
+ - Find all bolts for unit: `memory-bank/bolts/bolt-{unit}-*/bolt.md`
94
+ - Determine expected status:
95
+ - If ANY bolt `in-progress` → unit should be `in-progress`
96
+ - If ALL bolts `complete` → unit should be `complete`
97
+ - If ALL bolts `planned` and at least one story defined → unit should be `stories-defined`
98
+ - If NO bolts exist but stories exist → unit should be `stories-defined`
99
+ - **Inconsistency**: Unit status doesn't match expected based on bolt states
100
+
101
+ #### 6.3 Intent Status Check
102
+
103
+ For each intent:
104
+
105
+ - Read all unit-briefs: `{intent}/units/*/unit-brief.md`
106
+ - Determine expected status:
107
+ - If ANY unit `in-progress` → intent should be `construction`
108
+ - If ALL units `complete` → intent should be `complete`
109
+ - If units defined but none started → intent should be `units-defined`
110
+ - **Inconsistency**: Intent status doesn't match expected based on unit states
111
+
112
+ #### 6.4 Report Inconsistencies
113
+
114
+ If inconsistencies found, report them:
115
+
116
+ ```markdown
117
+ ## ⚠️ Status Inconsistencies Detected
118
+
119
+ | Artifact | Current Status | Expected Status | Reason |
120
+ |----------|----------------|-----------------|--------|
121
+ | unit-brief: file-watcher | draft | complete | All bolts complete |
122
+ | requirements: 011-vscode-extension | units-defined | construction | Has in-progress units |
123
+
124
+ ### Actions
125
+ 1 - **fix**: Update all statuses to expected values
126
+ 2 - **skip**: Continue without fixing
127
+ 3 - **review**: Show details for each inconsistency
128
+
129
+ **Type 1 to fix inconsistencies, or 2 to skip.**
130
+ ```
131
+
132
+ #### 6.5 Auto-Fix (On User Confirmation)
133
+
134
+ If user confirms fix:
135
+
136
+ - Update each artifact's frontmatter `status` field
137
+ - Update `updated` timestamp to current date
138
+ - Log changes to `memory-bank/maintenance-log.md`
139
+ - Report changes made
140
+
141
+ #### 6.6 Log to Maintenance Log
142
+
143
+ Append entry to `memory-bank/maintenance-log.md` (create if doesn't exist):
144
+
145
+ ```markdown
146
+ ## {ISO-8601-timestamp} - Status Sync
147
+
148
+ **Triggered by**: analyze-context integrity check
149
+
150
+ | Artifact | Old Status | New Status | Reason |
151
+ |----------|------------|------------|--------|
152
+ | {path} | {old} | {new} | {reason} |
153
+
154
+ ---
155
+ ```
156
+
157
+ **Example**:
158
+
159
+ ```markdown
160
+ ## 2025-12-26T15:30:00Z - Status Sync
161
+
162
+ **Triggered by**: analyze-context integrity check
163
+
164
+ | Artifact | Old Status | New Status | Reason |
165
+ |----------|------------|------------|--------|
166
+ | 011-vscode-extension/units/file-watcher/unit-brief.md | draft | complete | All bolts complete (1/1) |
167
+ | 011-vscode-extension/units/extension-core/unit-brief.md | draft | complete | All bolts complete (1/1) |
168
+ | 011-vscode-extension/requirements.md | units-defined | construction | Has in-progress units |
169
+
170
+ ---
171
+ ```
172
+
173
+ ---
174
+
175
+ ## Output
176
+
177
+ Provide a structured analysis:
178
+
179
+ ```markdown
180
+ ## Project State Analysis
181
+
182
+ ### Summary
183
+ - **Phase**: {current phase}
184
+ - **Active Intent**: {name or "None"}
185
+ - **Active Unit**: {name or "None"}
186
+ - **Active Bolt**: {id or "None"}
187
+
188
+ ### Evidence
189
+ - Intents found: {count} ({list names})
190
+ - Units found: {count} for {intent}
191
+ - Stories found: {count} for {unit}
192
+ - Bolts found: {count} ({status breakdown})
193
+
194
+ ### Status Integrity
195
+ - ✅ All statuses consistent (or)
196
+ - ⚠️ {N} inconsistencies found (see details below)
197
+
198
+ ### Current State Details
199
+ {Specific details about what exists and what's missing}
200
+
201
+ {If inconsistencies found, include the inconsistency table here}
202
+
203
+ ### Actions
204
+
205
+ 1 - **proceed**: Execute suggested action
206
+ 2 - **explain**: Learn more about current phase
207
+ 3 - **different**: Work on something else
208
+ {If inconsistencies: 4 - **fix**: Fix status inconsistencies}
209
+
210
+ ### Suggested Next Step
211
+ → **proceed** - {Specific command to run}
212
+
213
+ **Type a number or press Enter for suggested action.**
214
+ ```
215
+
216
+ ---
217
+
218
+ ## Human Validation Point
219
+
220
+ > "Based on my analysis, you're in the {phase} phase. Does this match your understanding? If not, tell me what you're trying to accomplish."
221
+
222
+ ---
223
+
224
+ ## Transition
225
+
226
+ After analysis, either:
227
+
228
+ - → **Route Request** (`.iris/skills/master/route-request.md`) - to direct user to specialist agent
229
+ - → **Answer Question** (`.iris/skills/master/answer-question.md`) - if user has questions about state
230
+
231
+ ---
232
+
233
+ ## Test Contract
234
+
235
+ ```yaml
236
+ input: Memory bank schema and artifacts
237
+ output: Project state analysis with phase, evidence, and suggested next step
238
+ checkpoints: 0 (informational only)
239
+ ```
@@ -0,0 +1,141 @@
1
+ # Skill: Answer Question
2
+
3
+ ---
4
+
5
+ ## Role
6
+
7
+ Knowledge retrieval skill to answer questions by querying memory bank artifacts.
8
+
9
+ **NO Checkpoint** - Answering questions is informational, not a decision point.
10
+
11
+ ---
12
+
13
+ ## Goal
14
+
15
+ Answer user questions about the project by querying the Memory Bank artifacts.
16
+
17
+ ---
18
+
19
+ ## Input
20
+
21
+ - **Required**: User's question
22
+ - **Required**: `.iris/aidlc/memory-bank.yaml` - artifact schema
23
+
24
+ ---
25
+
26
+ ## Process
27
+
28
+ ### 1. Parse the Question
29
+
30
+ Identify what type of information is being requested:
31
+
32
+ - **Status of intent/unit/bolt** → Check respective artifact files
33
+ - **Configuration/settings** → `{schema.standards}/`
34
+ - **Requirements** → `{intent}/requirements.md`
35
+ - **Architecture decisions** → `{unit}/ddd-02-technical-design.md` or `standards/system-architecture.md`
36
+ - **Deployment info** → `{unit}/deployment/`
37
+ - **Story details** → `{unit}/stories/`
38
+
39
+ ### 2. Search Logic
40
+
41
+ 1. **Extract keywords** from the question
42
+ 2. **Locate artifacts** using schema paths from `.iris/aidlc/memory-bank.yaml`
43
+ 3. **Read relevant files** to find the answer
44
+ 4. **Cite sources** in your response
45
+
46
+ ### 3. Formulate Answer
47
+
48
+ **If found**:
49
+
50
+ ```markdown
51
+ ## Answer
52
+
53
+ {Direct answer to the question}
54
+
55
+ **Source**: `{path/to/file.md}`
56
+ ```
57
+
58
+ **If not found**:
59
+
60
+ ```markdown
61
+ ## Answer
62
+
63
+ I couldn't find information about "{topic}" in the memory bank.
64
+
65
+ **Searched**:
66
+ - `{path1}` - not found
67
+ - `{path2}` - not found
68
+
69
+ **Suggestions**:
70
+ - Would you like to create this artifact?
71
+ - Is this information stored elsewhere?
72
+ ```
73
+
74
+ ---
75
+
76
+ ## Common Questions & Sources
77
+
78
+ - **"What is the status of {bolt}?"** → `{schema.bolts}` - check `status` field
79
+ - **"What requirements do we have?"** → `{schema.intents}/{intent}/requirements.md`
80
+ - **"What units are in {intent}?"** → `{schema.intents}/{intent}/units.md`
81
+ - **"What stories are in {unit}?"** → `{schema.stories}` directory
82
+ - **"What's the tech stack?"** → `{schema.standards}/tech-stack.md`
83
+ - **"What are our coding standards?"** → `{schema.standards}/coding-standards.md`
84
+ - **"What's the system architecture?"** → `{schema.standards}/system-architecture.md`
85
+ - **"When was {unit} deployed?"** → `{schema.units}/{unit}/deployment/history.md`
86
+
87
+ ---
88
+
89
+ ## Output
90
+
91
+ ```markdown
92
+ ## {Question Rephrased}
93
+
94
+ {Clear, direct answer}
95
+
96
+ ### Details
97
+ {Supporting information if relevant}
98
+
99
+ ### Source
100
+ - `{path/to/source/file.md}`
101
+
102
+ ### Related Information
103
+ - {Other relevant artifacts if any}
104
+
105
+ ### Actions
106
+
107
+ 1 - **more**: Get more details
108
+ 2 - **action**: Take action based on this information
109
+ 3 - **another**: Ask another question
110
+
111
+ ### Suggested Next Step
112
+ → **more** - Learn more about {specific aspect}
113
+
114
+ **Type a number or press Enter for suggested action.**
115
+ ```
116
+
117
+ ---
118
+
119
+ ## Human Validation Point
120
+
121
+ > "Does this answer your question? Would you like more details about {specific aspect}?"
122
+
123
+ ---
124
+
125
+ ## Transition
126
+
127
+ After answering:
128
+
129
+ - → **Route Request** (`.iris/skills/master/route-request.md`) - if user wants to take action
130
+ - → **Analyze Context** (`.iris/skills/master/analyze-context.md`) - if user wants overall status
131
+ - → Stay in Q&A mode if user has more questions
132
+
133
+ ---
134
+
135
+ ## Test Contract
136
+
137
+ ```yaml
138
+ input: User question
139
+ output: Answer with source citations or acknowledgment of not found
140
+ checkpoints: 0 (informational only)
141
+ ```
@@ -0,0 +1,158 @@
1
+ # Skill: Explain Flow
2
+
3
+ ---
4
+
5
+ ## Role
6
+
7
+ Educational skill to explain AI-DLC methodology and help users understand their position in the workflow.
8
+
9
+ **NO Checkpoint** - Explanation is educational, not a decision point.
10
+
11
+ ---
12
+
13
+ ## Goal
14
+
15
+ Explain the AI-DLC methodology and help the user understand where they are in the process.
16
+
17
+ ---
18
+
19
+ ## Input
20
+
21
+ - **Required**: User's question about the flow
22
+ - **Optional**: Current project state (from `analyze-context.md`)
23
+
24
+ ---
25
+
26
+ ## Process
27
+
28
+ ### 1. Provide Overview
29
+
30
+ ```markdown
31
+ ## AI-DLC: AI-Driven Development Lifecycle
32
+
33
+ AI-DLC is a reimagined development methodology where AI drives the workflow and humans validate at key decision points.
34
+
35
+ ### The Three Phases
36
+
37
+ 1. **Inception** → Planning & Design
38
+ - Capture intents (high-level goals)
39
+ - Elaborate into requirements, units, and stories
40
+ - Plan bolts for construction
41
+ - Output: Complete implementation plan
42
+
43
+ 2. **Construction** → Building & Testing
44
+ - Execute bolts through their stages (stages vary by bolt type)
45
+ - AI generates designs, code, and tests
46
+ - Human validates at each stage
47
+ - Output: Tested, working code
48
+
49
+ **DDD Bolt** (for domain-heavy business logic):
50
+ - Stage 1: Domain Model → AI models entities, aggregates, events
51
+ - Stage 2: Technical Design → AI architects layers, APIs, data
52
+ - Stage 3: ADR Analysis → Capture architectural decisions (optional)
53
+ - Stage 4: Implement → AI generates code from designs
54
+ - Stage 5: Test → AI writes and runs tests
55
+
56
+ **Simple Bolt** (for straightforward tasks):
57
+ - Stage 1: Plan → Define what to build
58
+ - Stage 2: Implement → AI generates code
59
+ - Stage 3: Test → AI writes and runs tests
60
+
61
+ 3. **Operations** → Deploy & Monitor
62
+ - Package deployment units
63
+ - Deploy through environments (Dev → Staging → Prod)
64
+ - Setup monitoring and observability
65
+ - Output: Running production system
66
+
67
+ ### Key Concepts
68
+
69
+ - **Intent**: High-level goal or feature request
70
+ - **Unit**: Independently deployable component (like a bounded context)
71
+ - **Story**: User story with acceptance criteria
72
+ - **Bolt**: Time-boxed execution session (hours/days, not weeks)
73
+ - **Bolt Type**: Methodology template (DDD or Simple)
74
+
75
+ ### Core Principles
76
+
77
+ - **AI Drives, Human Validates**: AI proposes, humans approve
78
+ - **Human Oversight as Loss Function**: Catch errors early before they compound
79
+ - **Semantically Rich Context**: Each step builds context for the next
80
+ - **Rapid Iteration**: Bolts are hours/days, not weeks
81
+ ```
82
+
83
+ ### 2. Show Current Position (if known)
84
+
85
+ ```markdown
86
+ ### Where You Are Now
87
+
88
+ Inception ──────► Construction ──────► Operations
89
+ │ │ │
90
+ ▼ ▼ ▼
91
+ [CURRENT] ───────► [Planned] ────────► [Future]
92
+
93
+ You are in the **{phase}** phase, working on **{intent/unit/bolt}**.
94
+
95
+ Next step: {specific action}
96
+
97
+ ```
98
+
99
+ ### 3. Answer Specific Questions
100
+
101
+ - **"What is a bolt?"** → Explain bolt concept with analogy to sprints
102
+ - **"How long does inception take?"** → Hours, not weeks - it's intensive but fast
103
+ - **"When do I move to construction?"** → When all stories are defined and bolts planned
104
+ - **"What's the difference from Agile?"** → AI-DLC is AI-native, rapid iterations, integrated design
105
+
106
+ ---
107
+
108
+ ## Output
109
+
110
+ Provide a tailored explanation based on the user's question:
111
+
112
+ ```markdown
113
+ ## {Topic} Explained
114
+
115
+ {Clear, concise explanation}
116
+
117
+ ### Your Current Context
118
+ {Where user is in the flow, if known}
119
+
120
+ ### What This Means For You
121
+ {Practical implications}
122
+
123
+ ### Actions
124
+
125
+ 1 - **proceed**: Execute recommended action
126
+ 2 - **more**: Learn more about this topic
127
+ 3 - **different**: Ask about something else
128
+
129
+ ### Suggested Next Step
130
+ → **proceed** - {Recommended action}
131
+
132
+ **Type a number or press Enter for suggested action.**
133
+ ```
134
+
135
+ ---
136
+
137
+ ## Human Validation Point
138
+
139
+ > "Does this explanation help? Would you like me to elaborate on any part, or are you ready to proceed with {next action}?"
140
+
141
+ ---
142
+
143
+ ## Transition
144
+
145
+ After explanation:
146
+
147
+ - → **Route Request** (`.iris/skills/master/route-request.md`) - if user wants to proceed
148
+ - → **Answer Question** (`.iris/skills/master/answer-question.md`) - if user has more questions
149
+
150
+ ---
151
+
152
+ ## Test Contract
153
+
154
+ ```yaml
155
+ input: User question about AI-DLC flow
156
+ output: Tailored explanation with current position highlighted
157
+ checkpoints: 0 (educational only)
158
+ ```