project-iris 0.0.16 → 0.0.18

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 (42) hide show
  1. package/README.md +86 -15
  2. package/flows/aidlc/README.md +358 -214
  3. package/flows/aidlc/agents/README.md +154 -0
  4. package/flows/aidlc/agents/inception-agent.md +23 -12
  5. package/flows/aidlc/agents/master-agent.md +204 -24
  6. package/flows/aidlc/memory-bank.yaml +61 -10
  7. package/flows/aidlc/quick-start.md +7 -7
  8. package/flows/aidlc/skills/README.md +106 -0
  9. package/flows/aidlc/skills/construction/bolt-start.md +5 -1
  10. package/flows/aidlc/skills/construction/navigator.md +1 -1
  11. package/flows/aidlc/skills/inception/bolt-plan.md +3 -2
  12. package/flows/aidlc/skills/inception/context.md +2 -1
  13. package/flows/aidlc/skills/inception/intent-create.md +91 -2
  14. package/flows/aidlc/skills/inception/navigator.md +13 -8
  15. package/flows/aidlc/skills/inception/requirements.md +541 -95
  16. package/flows/aidlc/skills/inception/review.md +75 -11
  17. package/flows/aidlc/skills/inception/risks.md +541 -0
  18. package/flows/aidlc/skills/inception/story-create.md +2 -1
  19. package/flows/aidlc/skills/inception/units.md +2 -1
  20. package/flows/aidlc/skills/master/answer-question.md +1 -1
  21. package/flows/aidlc/skills/master/code-elevate.md +434 -0
  22. package/flows/aidlc/skills/master/explain-flow.md +6 -6
  23. package/flows/aidlc/skills/master/project-init.md +110 -12
  24. package/flows/aidlc/skills/operations/build.md +32 -4
  25. package/flows/aidlc/skills/operations/monitor.md +75 -14
  26. package/flows/aidlc/skills/operations/rollback.md +239 -0
  27. package/flows/aidlc/templates/README.md +128 -0
  28. package/flows/aidlc/templates/construction/bolt-template.md +5 -5
  29. package/flows/aidlc/templates/construction/bolt-types/ddd-construction-bolt/{ddd-02-technical-design-template.md → ddd-02-logical-design-template.md} +1 -1
  30. package/flows/aidlc/templates/construction/bolt-types/ddd-construction-bolt.md +123 -41
  31. package/flows/aidlc/templates/construction/bolt-types/simple-construction-bolt.md +6 -6
  32. package/flows/aidlc/templates/construction/construction-guide.md +244 -0
  33. package/flows/aidlc/templates/construction/construction-log-template.md +7 -6
  34. package/flows/aidlc/templates/construction/elevation-dynamic-model-template.md +265 -0
  35. package/flows/aidlc/templates/construction/elevation-static-model-template.md +204 -0
  36. package/flows/aidlc/templates/inception/prfaq-template.md +147 -0
  37. package/flows/aidlc/templates/inception/requirements-template.md +70 -5
  38. package/flows/aidlc/templates/inception/risks-template.md +214 -0
  39. package/flows/aidlc/templates/operations/deployment-unit-template.md +228 -0
  40. package/package.json +1 -1
  41. package/flows/aidlc/templates/inception/project/README.md +0 -55
  42. /package/flows/aidlc/templates/construction/bolt-types/ddd-construction-bolt/{ddd-01-domain-model-template.md → ddd-01-domain-design-template.md} +0 -0
@@ -0,0 +1,106 @@
1
+ # AI-DLC Skills
2
+
3
+ Skills are focused capabilities that agents execute to perform specific tasks. Each skill follows a consistent structure with mandatory output rules, success metrics, and failure modes.
4
+
5
+ ## Directory Structure
6
+
7
+ ```text
8
+ skills/
9
+ ├── master/ # Master Agent skills (6)
10
+ │ ├── project-init.md # Initialize project with standards
11
+ │ ├── code-elevate.md # Brownfield code elevation
12
+ │ ├── analyze-context.md # Analyze current project state
13
+ │ ├── route-request.md # Route to appropriate agent
14
+ │ ├── explain-flow.md # Explain AI-DLC methodology
15
+ │ └── answer-question.md # Answer user questions
16
+
17
+ ├── inception/ # Inception Agent skills (10)
18
+ │ ├── navigator.md # Navigate inception workflow
19
+ │ ├── intent-create.md # Create new intent
20
+ │ ├── intent-list.md # List all intents
21
+ │ ├── requirements.md # Gather requirements
22
+ │ ├── risks.md # Define risks
23
+ │ ├── context.md # Define system context
24
+ │ ├── units.md # Decompose into units
25
+ │ ├── story-create.md # Create user stories
26
+ │ ├── bolt-plan.md # Plan bolts for stories
27
+ │ └── review.md # Review inception artifacts
28
+
29
+ ├── construction/ # Construction Agent skills (5)
30
+ │ ├── navigator.md # Navigate construction workflow
31
+ │ ├── bolt-list.md # List all bolts
32
+ │ ├── bolt-start.md # Start/continue bolt execution
33
+ │ ├── bolt-status.md # Check bolt progress
34
+ │ └── bolt-replan.md # Replan bolts if needed
35
+
36
+ └── operations/ # Operations Agent skills (6)
37
+ ├── navigator.md # Navigate operations workflow
38
+ ├── build.md # Build deployment artifacts
39
+ ├── deploy.md # Deploy to environment
40
+ ├── verify.md # Verify deployment
41
+ ├── monitor.md # Setup monitoring
42
+ └── rollback.md # Rollback deployment
43
+ ```
44
+
45
+ ## Skill Structure
46
+
47
+ Every skill file follows this structure:
48
+
49
+ ```markdown
50
+ # Skill: {Name}
51
+
52
+ ## Mandatory Output Rules (READ FIRST)
53
+ - Output formatting rules that MUST be followed
54
+
55
+ ## Success Metrics
56
+ - Criteria for successful skill execution
57
+
58
+ ## Failure Modes
59
+ - Common mistakes to avoid
60
+
61
+ ## Goal
62
+ - What this skill accomplishes
63
+
64
+ ## Input
65
+ - Required and optional parameters
66
+
67
+ ## Process
68
+ - Step-by-step execution guide
69
+
70
+ ## Output
71
+ - Expected output format
72
+
73
+ ## Checkpoints
74
+ - Human validation points (if any)
75
+
76
+ ## Transition
77
+ - Next skills/actions after completion
78
+
79
+ ## Test Contract
80
+ - Input/output specification for validation
81
+ ```
82
+
83
+ ## Key Principles
84
+
85
+ ### 1. Mandatory Output Rules
86
+ Every skill starts with formatting rules to ensure consistent output:
87
+ - Never use ASCII tables (they break at different terminal widths)
88
+ - Always use numbered list format for options
89
+ - Always use status indicators (✅ ⏳ [ ] 🚫)
90
+
91
+ ### 2. Human Checkpoints
92
+ Skills that make significant decisions include checkpoints where the AI pauses for human validation before proceeding.
93
+
94
+ ### 3. Artifact Creation
95
+ Skills that create artifacts reference templates from `../templates/` and follow the schema defined in `../memory-bank.yaml`.
96
+
97
+ ### 4. Context Loading
98
+ Skills load context as defined in `../context-config.yaml` to ensure consistent information access.
99
+
100
+ ## Adding New Skills
101
+
102
+ 1. Create a new `.md` file in the appropriate agent folder
103
+ 2. Follow the standard skill structure
104
+ 3. Include Mandatory Output Rules section
105
+ 4. Define clear success metrics and failure modes
106
+ 5. Register the skill in the agent's skill list (in `../agents/{agent}-agent.md`)
@@ -19,6 +19,8 @@
19
19
  - ✅ Activities listed with completion status
20
20
  - ✅ Artifacts created listed with paths
21
21
  - ✅ Checkpoint prompts clear and actionable
22
+ - ✅ Code references stories (comments: `// Story: S-XXX`)
23
+ - ✅ Tests reference acceptance criteria they verify
22
24
 
23
25
  ## Failure Modes
24
26
 
@@ -26,6 +28,8 @@
26
28
  - ❌ Starting stage work without updating bolt file status
27
29
  - ❌ Skipping checkpoints defined by bolt type
28
30
  - ❌ Not reading bolt type definition first
31
+ - ❌ Code without story traceability comments
32
+ - ❌ Tests without acceptance criteria references
29
33
 
30
34
  ---
31
35
 
@@ -141,7 +145,7 @@ When transitioning from `planned` to `in-progress`:
141
145
  ---
142
146
  status: in-progress # was: planned
143
147
  started: {ISO-8601-timestamp} # was: null
144
- current_stage: {first-stage} # was: null (e.g., "domain-model")
148
+ current_stage: {first-stage} # was: null (e.g., "domain-design")
145
149
  ---
146
150
  ```
147
151
 
@@ -8,7 +8,7 @@
8
8
  - ✅ **ALWAYS** use numbered list format: `N - **Option**: Description`
9
9
  - ✅ **ALWAYS** use status indicators: ✅ (done) ⏳ (current) [ ] (pending) 🚫 (blocked)
10
10
  - ✅ **ALWAYS** show active bolt context prominently at top
11
- - ✅ **ALWAYS** display stage progress (e.g., "Stage 2/4: Technical Design")
11
+ - ✅ **ALWAYS** display stage progress (e.g., "Stage 2/4: Logical Design")
12
12
  - ✅ **ALWAYS** end with suggested next step and call-to-action
13
13
 
14
14
  ## Success Metrics
@@ -36,12 +36,13 @@ Show at start of this skill:
36
36
  ### Inception Progress
37
37
  - [x] Intent created
38
38
  - [x] Requirements gathered
39
+ - [x] Risks defined
39
40
  - [ ] Generating artifacts... ← current
40
41
  - [x] System Context
41
42
  - [x] Units
42
43
  - [x] Stories
43
44
  - [ ] Bolt Plan ← this skill
44
- - [ ] Artifacts reviewed (Checkpoint 3)
45
+ - [ ] Artifacts reviewed (Checkpoint 4)
45
46
  - [ ] Ready for Construction
46
47
  ```
47
48
 
@@ -254,7 +255,7 @@ Establish execution order based on dependencies:
254
255
  └── {stage-artifacts} ← Created during construction (varies by bolt type)
255
256
  ```
256
257
 
257
- *Note: Artifact names depend on bolt type (e.g., DDD bolts create `ddd-01-domain-model.md`, simple bolts create `implementation-plan.md`).*
258
+ *Note: Artifact names depend on bolt type (e.g., DDD bolts create `ddd-01-domain-design.md`, simple bolts create `implementation-plan.md`).*
258
259
 
259
260
  4. **Bolt File Structure** (CRITICAL: Include all dependencies in frontmatter):
260
261
 
@@ -35,12 +35,13 @@ Show at start of this skill:
35
35
  ### Inception Progress
36
36
  - [x] Intent created
37
37
  - [x] Requirements gathered
38
+ - [x] Risks defined
38
39
  - [ ] Generating artifacts... ← current
39
40
  - [ ] System Context ← this skill
40
41
  - [ ] Units
41
42
  - [ ] Stories
42
43
  - [ ] Bolt Plan
43
- - [ ] Artifacts reviewed (Checkpoint 3)
44
+ - [ ] Artifacts reviewed (Checkpoint 4)
44
45
  - [ ] Ready for Construction
45
46
  ```
46
47
 
@@ -10,11 +10,13 @@
10
10
  - ✅ **ALWAYS** show files created with paths
11
11
  - ✅ **ALWAYS** end with numbered actions and suggested next step
12
12
  - 📖 **ALWAYS** read project.yaml for context-aware suggestions
13
+ - ✅ **ALWAYS** offer PRFAQ generation after intent creation
13
14
 
14
15
  ## Success Metrics
15
16
 
16
17
  - ✅ Intent directory created with correct naming ({NNN}-{name})
17
18
  - ✅ requirements.md and inception-log.md initialized
19
+ - ✅ PRFAQ offered (optional but recommended per AI-DLC spec)
18
20
  - ✅ Confirmation shows created files with paths
19
21
  - ✅ Clear next step suggestion
20
22
 
@@ -24,6 +26,7 @@
24
26
  - ❌ Missing numeric prefix on intent name
25
27
  - ❌ Not reading existing intents for context
26
28
  - ❌ Multiple action lists in output
29
+ - ❌ Skipping PRFAQ offer without user choice
27
30
 
28
31
  ---
29
32
 
@@ -195,9 +198,64 @@ Once confirmed, perform these file operations:
195
198
  - Initialize with intent metadata and empty sections
196
199
  - Track progress, decisions, and scope changes
197
200
 
201
+ ### 4. Offer PRFAQ Generation (AI-DLC Spec Requirement)
202
+
203
+ **Per AI-DLC specification, PRFAQ is an optional but recommended Inception output.**
204
+
205
+ After initializing the intent, offer PRFAQ generation:
206
+
207
+ ```markdown
208
+ ## PRFAQ Document (Optional but Recommended)
209
+
210
+ A PRFAQ (Press Release / FAQ) helps clarify the business value before diving into requirements.
211
+
212
+ **Benefits:**
213
+ - Forces customer-centric thinking
214
+ - Surfaces scope questions early
215
+ - Aligns stakeholders on the "why"
216
+ - Defines success metrics upfront
217
+
218
+ Would you like to generate a PRFAQ for this intent?
219
+
220
+ 1 - **Yes**: Generate PRFAQ now (takes ~2 minutes of Q&A)
221
+ 2 - **Skip**: Proceed directly to requirements
222
+ ```
223
+
224
+ **If user chooses "Yes":**
225
+
226
+ Ask these questions to generate the PRFAQ:
227
+
228
+ ```markdown
229
+ ## PRFAQ Quick Questions
230
+
231
+ 1. **Headline**: In one sentence, what would the announcement say?
232
+ (e.g., "Company X launches feature Y, enabling users to Z")
233
+
234
+ 2. **Problem**: What user pain point does this solve?
235
+
236
+ 3. **Key Benefits**: What are the top 3 outcomes users will experience?
237
+
238
+ 4. **Success Metric**: How will you know this feature is successful?
239
+ (e.g., "50% reduction in time to complete X" or "10K daily active users")
240
+ ```
241
+
242
+ **After receiving answers:**
243
+
244
+ 1. Generate PRFAQ using template: `.iris/aidlc/templates/inception/prfaq-template.md`
245
+ 2. Save to: `{intent-path}/prfaq.md`
246
+ 3. Update inception-log.md with PRFAQ status
247
+
248
+ **If user chooses "Skip":**
249
+
250
+ Note in inception-log.md: "PRFAQ: Skipped by user"
251
+
252
+ Proceed to confirmation step.
253
+
198
254
  ### 5. Confirm Creation
199
255
 
200
- Show confirmation with **exactly ONE action list** - no workflow overview, no extra lists:
256
+ Show confirmation with **exactly ONE action list** - no workflow overview, no extra lists.
257
+
258
+ **If PRFAQ was generated:**
201
259
 
202
260
  ```markdown
203
261
  ## Intent Created: `{intent-name}`
@@ -209,6 +267,7 @@ Show confirmation with **exactly ONE action list** - no workflow overview, no ex
209
267
  Files created:
210
268
  - `requirements.md` (draft)
211
269
  - `inception-log.md` (progress tracker)
270
+ - `prfaq.md` (business value summary)
212
271
 
213
272
  1 - **requirements**: [Recommended] Gather detailed requirements
214
273
  2 - **context**: Define system context and boundaries
@@ -217,6 +276,29 @@ Files created:
217
276
  **Type a number to continue.**
218
277
  ```
219
278
 
279
+ **If PRFAQ was skipped:**
280
+
281
+ ```markdown
282
+ ## Intent Created: `{intent-name}`
283
+
284
+ **Goal**: {user's stated goal}
285
+ **Type**: {intent type}
286
+ **Location**: `{intent-path}/`
287
+
288
+ Files created:
289
+ - `requirements.md` (draft)
290
+ - `inception-log.md` (progress tracker)
291
+
292
+ > Note: PRFAQ skipped. You can generate it later with the `prfaq` action.
293
+
294
+ 1 - **requirements**: [Recommended] Gather detailed requirements
295
+ 2 - **prfaq**: Generate PRFAQ document
296
+ 3 - **context**: Define system context and boundaries
297
+ 4 - **menu**: Return to inception menu
298
+
299
+ **Type a number to continue.**
300
+ ```
301
+
220
302
  ---
221
303
 
222
304
  ## Transition
@@ -224,6 +306,7 @@ Files created:
224
306
  After intent created:
225
307
 
226
308
  - → **requirements** - begin checkpoint workflow at Checkpoint 1
309
+ - → **prfaq** (optional) - generate PRFAQ if skipped earlier
227
310
 
228
311
  ---
229
312
 
@@ -231,6 +314,12 @@ After intent created:
231
314
 
232
315
  ```yaml
233
316
  input: User's feature idea
234
- output: Intent directory with requirements.md and inception-log.md
317
+ output: Intent directory with requirements.md, inception-log.md, and optionally prfaq.md
235
318
  checkpoints: 0 (prerequisite to workflow)
319
+ artifacts:
320
+ required:
321
+ - requirements.md
322
+ - inception-log.md
323
+ optional:
324
+ - prfaq.md (AI-DLC recommended, user choice)
236
325
  ```
@@ -68,11 +68,12 @@ Scan artifacts **in order** - first missing item is the suggested next step:
68
68
 
69
69
  1. No intent folder exists → **Create Intent**
70
70
  2. `requirements.md` missing → **Gather Requirements**
71
- 3. `system-context.md` missing → **Define Context**
72
- 4. `units.md` missing → **Decompose Units**
73
- 5. `story-index.md` missing → **Create Stories**
74
- 6. `bolt-plan.md` missing → **Plan Bolts**
75
- 7. All complete → **Review & Complete**
71
+ 3. `risks.md` missing → **Define Risks**
72
+ 4. `system-context.md` missing → **Define Context**
73
+ 5. `units.md` missing → **Decompose Units**
74
+ 6. `story-index.md` missing → **Create Stories**
75
+ 7. `bolt-plan.md` missing → **Plan Bolts**
76
+ 8. All complete → **Review & Complete**
76
77
 
77
78
  **CRITICAL**: The suggested step becomes **Option 1** in the menu.
78
79
 
@@ -121,6 +122,7 @@ When user selects an option:
121
122
 
122
123
  ### Progress
123
124
  - {✅ or [ ]} Requirements gathered {← current if next step}
125
+ - {✅ or [ ]} Risks defined {← current if next step}
124
126
  - {✅ or [ ]} System context defined {← current if next step}
125
127
  - {✅ or [ ]} Units decomposed {← current if next step}
126
128
  - {✅ or [ ]} Stories created {← current if next step}
@@ -145,7 +147,7 @@ When user selects an option:
145
147
  **Type 1 to continue, or a number for other actions.**
146
148
  ```
147
149
 
148
- **Example: Requirements done, context missing**
150
+ **Example: Requirements done, risks missing**
149
151
 
150
152
  ```markdown
151
153
  ## Inception Agent
@@ -155,7 +157,8 @@ When user selects an option:
155
157
 
156
158
  ### Progress
157
159
  - ✅ Requirements gathered
158
- - [ ] System context defined ← current
160
+ - [ ] Risks defined ← current
161
+ - [ ] System context defined
159
162
  - [ ] Units decomposed
160
163
  - [ ] Stories created
161
164
  - [ ] Bolts planned
@@ -165,7 +168,7 @@ When user selects an option:
165
168
 
166
169
  ### Continue This Intent
167
170
 
168
- 1 - **Define Context** ← Next step
171
+ 1 - **Define Risks** ← Next step
169
172
  2 - Revisit Requirements
170
173
 
171
174
  ### Other Actions
@@ -191,6 +194,7 @@ When user selects an option:
191
194
  All inception artifacts have been created:
192
195
 
193
196
  - ✅ Requirements gathered
197
+ - ✅ Risks defined
194
198
  - ✅ System context defined
195
199
  - ✅ Units decomposed
196
200
  - ✅ Stories created
@@ -198,6 +202,7 @@ All inception artifacts have been created:
198
202
  - ✅ Review complete
199
203
 
200
204
  ### Summary
205
+ - Risks identified: {n}
201
206
  - Units defined: {n}
202
207
  - Stories created: {n}
203
208
  - Bolts planned: {n}