@99x-ai-dlc/idf-install 0.0.0-stage → 0.1.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 (49) hide show
  1. package/README.md +51 -2
  2. package/bin/idf-installer.js +185 -0
  3. package/package.json +22 -4
  4. package/repository-agents/process-diagnostic-agent/review-guide.md +669 -0
  5. package/repository-agents/process-diagnostic-agent/role-play.md +223 -0
  6. package/repository-agents/process-diagnostic-agent/skills/trend-analysis.md +113 -0
  7. package/repository-agents/process-estimation-agent/estimate.md +69 -0
  8. package/repository-agents/process-estimation-agent/estimation-guide.md +435 -0
  9. package/repository-agents/process-migration-agent/migrate.md +72 -0
  10. package/repository-agents/process-migration-agent/migration-guide.md +490 -0
  11. package/repository-agents/process-onboarding-agent/external-skills/README.md +189 -0
  12. package/repository-agents/process-onboarding-agent/external-skills/ux-os.md +92 -0
  13. package/repository-agents/process-onboarding-agent/onboard.md +214 -0
  14. package/repository-agents/process-onboarding-agent/ops/build/backlog.md +43 -0
  15. package/repository-agents/process-onboarding-agent/ops/build/bolts/_template.md +53 -0
  16. package/repository-agents/process-onboarding-agent/ops/build/units/_template.md +112 -0
  17. package/repository-agents/process-onboarding-agent/ops/inception/codebase-findings/README.md +22 -0
  18. package/repository-agents/process-onboarding-agent/ops/inception/codebase-findings/_template.md +34 -0
  19. package/repository-agents/process-onboarding-agent/ops/inception/dependency-map.md +47 -0
  20. package/repository-agents/process-onboarding-agent/ops/inception/elaborations/_template.md +46 -0
  21. package/repository-agents/process-onboarding-agent/ops/inception/intents/README.md +9 -0
  22. package/repository-agents/process-onboarding-agent/ops/inception/intents/_template.md +92 -0
  23. package/repository-agents/process-onboarding-agent/ops/operate/improvements/_template.md +51 -0
  24. package/repository-agents/process-onboarding-agent/ops/operate/incidents/_template.md +61 -0
  25. package/repository-agents/process-onboarding-agent/ops/operate/retros/_template.md +122 -0
  26. package/repository-agents/process-onboarding-agent/rules/engagement.md +70 -0
  27. package/repository-agents/process-onboarding-agent/setup-guide.md +1409 -0
  28. package/repository-agents/process-onboarding-agent/skills/ai-hub-metrics.md +341 -0
  29. package/repository-agents/process-onboarding-agent/skills/bolt-risk-assessment.md +208 -0
  30. package/repository-agents/process-onboarding-agent/skills/bug-bolt.md +105 -0
  31. package/repository-agents/process-onboarding-agent/skills/compact-docs.md +123 -0
  32. package/repository-agents/process-onboarding-agent/skills/dependency-audit.md +187 -0
  33. package/repository-agents/process-onboarding-agent/skills/design-session.md +230 -0
  34. package/repository-agents/process-onboarding-agent/skills/governance-map.md +212 -0
  35. package/repository-agents/process-onboarding-agent/skills/hotfix-bolt.md +102 -0
  36. package/repository-agents/process-onboarding-agent/skills/knowledge-promotion.md +188 -0
  37. package/repository-agents/process-onboarding-agent/skills/new-engineer-induction.md +303 -0
  38. package/repository-agents/process-onboarding-agent/skills/nfr-bolt.md +117 -0
  39. package/repository-agents/process-onboarding-agent/skills/notifications.md +456 -0
  40. package/repository-agents/process-onboarding-agent/skills/process-health.md +252 -0
  41. package/repository-agents/process-onboarding-agent/skills/process-visualization.md +157 -0
  42. package/repository-agents/process-onboarding-agent/skills/product-engineering-essentials.md +261 -0
  43. package/repository-agents/process-onboarding-agent/skills/progress-digest.md +184 -0
  44. package/repository-agents/process-onboarding-agent/skills/release-readiness-checklist.md +259 -0
  45. package/repository-agents/process-onboarding-agent/skills/root-cause-analysis.md +151 -0
  46. package/repository-agents/process-onboarding-agent/skills/solution-shaping.md +98 -0
  47. package/repository-agents/process-onboarding-agent/skills/uat.md +267 -0
  48. package/repository-agents/process-skills-agent/onboard.md +68 -0
  49. package/repository-agents/process-skills-agent/skills-guide.md +404 -0
@@ -0,0 +1,490 @@
1
+ # AI-DLC Migration Guide
2
+
3
+ This document is the protocol for the AI-DLC Migration Agent. It migrates a project from the old AI-DLC structure to the new one across all three agents: Onboarding, Experience, and Diagnostic.
4
+
5
+ ---
6
+
7
+ ## Background — What Changed
8
+
9
+ ### Old structure (per project repo)
10
+
11
+ In the old methodology, a single `ai-dlc/` folder served as both the bootstrap agent and the installed framework. Everything lived there:
12
+
13
+ ```
14
+ project-root/
15
+ CLAUDE.md (or .cursor/rules/*.mdc / .cursorrules / .github/copilot-instructions.md)
16
+ ai-dlc/
17
+ onboard.md ← bootstrap trigger
18
+ setup-guide.md ← onboarding protocol
19
+ rules/
20
+ engagement.md ← template (pre-built)
21
+ prompt-quality-gate.md ← GENERATED — project-specific
22
+ code-standards.md ← GENERATED — project-specific
23
+ security.md ← GENERATED — project-specific
24
+ architecture.md ← GENERATED — project-specific
25
+ skills/
26
+ compact-docs.md ← template (pre-built)
27
+ root-cause-analysis.md ← template (pre-built)
28
+ solution-shaping.md ← template (pre-built)
29
+ design-session.md ← template (pre-built)
30
+ bolt-risk-assessment.md ← template (pre-built)
31
+ progress-digest.md ← template (pre-built)
32
+ uat.md ← template (pre-built)
33
+ release-readiness-checklist.md ← template (pre-built)
34
+ process-health.md ← template (pre-built)
35
+ dependency-audit.md ← template (pre-built)
36
+ knowledge-promotion.md ← template (pre-built)
37
+ ai-hub-metrics.md ← template (pre-built)
38
+ process-visualization.md ← template (pre-built)
39
+ governance-map.md ← template (pre-built)
40
+ notifications.md ← template (pre-built)
41
+ new-engineer-induction.md ← template (pre-built)
42
+ bug-bolt.md ← template (pre-built)
43
+ hotfix-bolt.md ← template (pre-built)
44
+ nfr-bolt.md ← template (pre-built)
45
+ product-engineering-essentials.md ← template (pre-built)
46
+ mob-elab-prompts.md ← GENERATED — project-specific
47
+ review-checklist.md ← GENERATED — project-specific
48
+ guidelines/
49
+ domain-glossary.md ← GENERATED — project-specific
50
+ edge-cases.md ← GENERATED — project-specific
51
+ acceptance-patterns.md ← GENERATED — project-specific
52
+ dev-setup.md ← GENERATED — project-specific
53
+ team-rollout.md ← GENERATED — project-specific
54
+ forbidden-zones.md ← GENERATED — mature projects only
55
+ entry-points.md ← GENERATED — mature projects only
56
+ ops/
57
+ inception/intents/ ← operational data — must be preserved
58
+ inception/elaborations/ ← operational data — must be preserved
59
+ inception/dependency-map.md ← operational data — must be preserved
60
+ build/backlog.md ← operational data — must be preserved
61
+ build/units/ ← operational data — must be preserved
62
+ build/bolts/ ← operational data — must be preserved
63
+ operate/retros/ ← operational data — must be preserved
64
+ operate/incidents/ ← operational data — must be preserved
65
+ operate/improvements/ ← operational data — must be preserved
66
+ Instructions2FDE.md ← GENERATED — project-specific
67
+ README.md ← GENERATED — project-specific
68
+ ai-dlc-reviewer/
69
+ role-play.md ← diagnostic bootstrap trigger
70
+ review-guide.md ← diagnostic protocol
71
+ ```
72
+
73
+ The master rule file (e.g. `CLAUDE.md`) referenced paths like:
74
+ - `ai-dlc/rules/prompt-quality-gate.md`
75
+ - `ai-dlc/skills/mob-elab-prompts.md`
76
+ - `ai-dlc/guidelines/domain-glossary.md`
77
+ - `ai-dlc/ops/inception/intents/`
78
+
79
+ ### New structure
80
+
81
+ In the new methodology, the bootstrap agents and the installed framework are separated:
82
+
83
+ ```
84
+ project-root/
85
+ CLAUDE.md (or .cursor/rules/project-rules.mdc / .github/copilot-instructions.md)
86
+ process-onboarding-agent/ ← bootstrap only; delete after use
87
+ process-diagnostic-agent/ ← periodic audits; keep for duration of project
88
+ {docs-folder}/
89
+ intent-execution-framework/
90
+ rules/ ← generated + template rules
91
+ skills/ ← generated + template skills
92
+ guidelines/ ← generated guidelines
93
+ ops/ ← all operational data
94
+ Instructions2FDE.md
95
+ README.md
96
+ ```
97
+
98
+ The master rule file references the new paths:
99
+ - `{docs-folder}/intent-execution-framework/rules/prompt-quality-gate.md`
100
+ - `{docs-folder}/intent-execution-framework/skills/mob-elab-prompts.md`
101
+ - etc.
102
+
103
+ ---
104
+
105
+ ## File Classification
106
+
107
+ Before migrating, understand which files are which:
108
+
109
+ **Generated (project-specific) — move, do not overwrite:**
110
+ - `ai-dlc/rules/prompt-quality-gate.md`
111
+ - `ai-dlc/rules/code-standards.md`
112
+ - `ai-dlc/rules/security.md`
113
+ - `ai-dlc/rules/architecture.md`
114
+ - `ai-dlc/skills/mob-elab-prompts.md`
115
+ - `ai-dlc/skills/review-checklist.md`
116
+ - `ai-dlc/guidelines/` (all files)
117
+ - `ai-dlc/Instructions2FDE.md`
118
+ - `ai-dlc/README.md` (the project's own README inside ai-dlc)
119
+ - `ai-dlc/ops/` (all operational data — intents, units, bolts, retros, etc.)
120
+
121
+ **Template (pre-built) — move, then refresh from new `process-onboarding-agent/`:**
122
+ - `ai-dlc/rules/engagement.md`
123
+ - `ai-dlc/skills/compact-docs.md`
124
+ - `ai-dlc/skills/root-cause-analysis.md`
125
+ - `ai-dlc/skills/solution-shaping.md`
126
+ - `ai-dlc/skills/design-session.md`
127
+ - `ai-dlc/skills/bolt-risk-assessment.md`
128
+ - `ai-dlc/skills/progress-digest.md`
129
+ - `ai-dlc/skills/uat.md`
130
+ - `ai-dlc/skills/release-readiness-checklist.md`
131
+ - `ai-dlc/skills/process-health.md`
132
+ - `ai-dlc/skills/dependency-audit.md`
133
+ - `ai-dlc/skills/knowledge-promotion.md`
134
+ - `ai-dlc/skills/ai-hub-metrics.md`
135
+ - `ai-dlc/skills/process-visualization.md`
136
+ - `ai-dlc/skills/notifications.md`
137
+ - `ai-dlc/skills/new-engineer-induction.md`
138
+ - `ai-dlc/skills/bug-bolt.md`
139
+ - `ai-dlc/skills/hotfix-bolt.md`
140
+ - `ai-dlc/skills/nfr-bolt.md`
141
+ - `ai-dlc/skills/product-engineering-essentials.md`
142
+
143
+ **Bootstrap-only — do not migrate (replaced by new `process-onboarding-agent/`):**
144
+ - `ai-dlc/onboard.md`
145
+ - `ai-dlc/setup-guide.md`
146
+
147
+ **Diagnostic bootstrap — do not migrate (replaced by new `process-diagnostic-agent/`):**
148
+ - `ai-dlc-reviewer/role-play.md`
149
+ - `ai-dlc-reviewer/review-guide.md`
150
+
151
+ ---
152
+
153
+ ## Pre-Flight Scan
154
+
155
+ Before asking any questions or making any changes, scan the repository and report findings to the engineer.
156
+
157
+ ### What to look for
158
+
159
+ **1. Old-structure indicators (confirm migration is needed):**
160
+ - `ai-dlc/onboard.md` or `ai-dlc/setup-guide.md` — confirms old bootstrap agent is present
161
+ - `ai-dlc/rules/prompt-quality-gate.md` — confirms old framework was installed
162
+ - `ai-dlc-reviewer/role-play.md` — confirms old diagnostic agent is present
163
+
164
+ **2. New-structure indicators (check for partial migration):**
165
+ - `process-onboarding-agent/` folder — already copied from base repo
166
+ - `process-diagnostic-agent/` folder — already copied from base repo
167
+ - Any `intent-execution-framework/` folder anywhere in the repo
168
+
169
+ **3. Master rule file:**
170
+ - Look for `CLAUDE.md`, `.cursor/rules/project-rules.mdc` (or any `.mdc` under `.cursor/rules/`), `.cursorrules` (legacy), or `.github/copilot-instructions.md` at the repo root
171
+ - Scan it for path patterns — confirm it contains `ai-dlc/rules/`, `ai-dlc/skills/`, `ai-dlc/guidelines/` references
172
+
173
+ **4. Operational data:**
174
+ - `ai-dlc/ops/inception/intents/` — count files (excluding `_template.md`)
175
+ - `ai-dlc/ops/build/units/` — count files (excluding `_template.md`)
176
+ - `ai-dlc/ops/build/bolts/` — count files (excluding `_template.md`)
177
+ - `ai-dlc/ops/operate/retros/` — count files (excluding `_template.md`)
178
+ - Report counts to the engineer so they can verify nothing is lost
179
+
180
+ ### Pre-flight report format
181
+
182
+ Present findings in this format before asking any questions:
183
+
184
+ ```
185
+ Pre-Flight Scan Results
186
+ ──────────────────────────────────────────
187
+ Old-structure files found:
188
+ ✓ ai-dlc/onboard.md
189
+ ✓ ai-dlc/setup-guide.md
190
+ ✓ ai-dlc/rules/prompt-quality-gate.md
191
+ ✓ ai-dlc-reviewer/role-play.md
192
+ [list others found]
193
+
194
+ Master rule file: CLAUDE.md [or whichever was found]
195
+ Confirmed: references ai-dlc/ paths
196
+
197
+ Operational data (will be preserved):
198
+ Intents: [N] files
199
+ Units: [N] files
200
+ Bolts: [N] files
201
+ Retros: [N] files
202
+
203
+ New agent folders already present:
204
+ [list any of process-onboarding-agent/, process-diagnostic-agent/ already present]
205
+ [or "None — both will need to be set up" if absent]
206
+
207
+ Migration status: Ready to proceed / Partially migrated / Issues found
208
+ ──────────────────────────────────────────
209
+ ```
210
+
211
+ If `process-onboarding-agent/` or `process-diagnostic-agent/` are absent, stop and tell the engineer:
212
+
213
+ > "Before we can proceed, copy `repository-agents/process-onboarding-agent/` and `repository-agents/process-diagnostic-agent/` from the AI-DLC base repo into this project root. Then restart this session."
214
+
215
+ ---
216
+
217
+ ## Step 1 — Confirm the New Framework Location
218
+
219
+ Ask the engineer:
220
+
221
+ > "Where do you want your process documentation to live? This is the new home for all your framework files — rules, skills, guidelines, and ops data.
222
+ >
223
+ > Common choices:
224
+ > - `docs/process/intent-execution-framework/` (recommended if you don't have a docs folder yet)
225
+ > - `{your-existing-docs-folder}/intent-execution-framework/`
226
+ >
227
+ > All your existing data will be moved there. The master rule file will be updated with the new paths."
228
+
229
+ Record the answer. Set **`NEW_FRAMEWORK_ROOT`** to the path the engineer provides (e.g. `docs/process/intent-execution-framework`).
230
+
231
+ Do not proceed until this is confirmed.
232
+
233
+ ---
234
+
235
+ ## Step 2 — Migrate the Onboarding Agent
236
+
237
+ **What this step does:** Moves all generated and operational content from `ai-dlc/` into the new `intent-execution-framework/` location, refreshes template skill files, and discards the old bootstrap files.
238
+
239
+ ### 2a — Create the new framework folder structure
240
+
241
+ Create the following folder structure at `{NEW_FRAMEWORK_ROOT}`:
242
+
243
+ ```
244
+ {NEW_FRAMEWORK_ROOT}/
245
+ rules/
246
+ skills/
247
+ guidelines/
248
+ prompts/
249
+ ops/
250
+ inception/
251
+ intents/
252
+ elaborations/
253
+ build/
254
+ units/
255
+ bolts/
256
+ operate/
257
+ retros/
258
+ incidents/
259
+ improvements/
260
+ ```
261
+
262
+ ### 2b — Move generated files
263
+
264
+ Copy each generated file from its old location to the new location. Do not modify content during the move.
265
+
266
+ | Source (old) | Destination (new) |
267
+ |---|---|
268
+ | `ai-dlc/rules/prompt-quality-gate.md` | `{NEW_FRAMEWORK_ROOT}/rules/prompt-quality-gate.md` |
269
+ | `ai-dlc/rules/code-standards.md` | `{NEW_FRAMEWORK_ROOT}/rules/code-standards.md` |
270
+ | `ai-dlc/rules/security.md` | `{NEW_FRAMEWORK_ROOT}/rules/security.md` |
271
+ | `ai-dlc/rules/architecture.md` | `{NEW_FRAMEWORK_ROOT}/rules/architecture.md` |
272
+ | `ai-dlc/skills/mob-elab-prompts.md` | `{NEW_FRAMEWORK_ROOT}/skills/mob-elab-prompts.md` |
273
+ | `ai-dlc/skills/review-checklist.md` | `{NEW_FRAMEWORK_ROOT}/skills/review-checklist.md` |
274
+ | `ai-dlc/guidelines/` (all files) | `{NEW_FRAMEWORK_ROOT}/guidelines/` (same filenames) |
275
+ | `ai-dlc/Instructions2FDE.md` | `{NEW_FRAMEWORK_ROOT}/Instructions2FDE.md` |
276
+ | `ai-dlc/README.md` | `{NEW_FRAMEWORK_ROOT}/README.md` |
277
+
278
+ Only move a file if it exists at the source. If a file is absent (e.g. `forbidden-zones.md` only exists in mature projects), skip it without error.
279
+
280
+ ### 2c — Move all operational data
281
+
282
+ Move all operational data. Preserve the complete folder structure, including any `archive/` subfolders. Do not modify file contents.
283
+
284
+ | Source (old) | Destination (new) |
285
+ |---|---|
286
+ | `ai-dlc/ops/inception/intents/` | `{NEW_FRAMEWORK_ROOT}/ops/inception/intents/` |
287
+ | `ai-dlc/ops/inception/elaborations/` | `{NEW_FRAMEWORK_ROOT}/ops/inception/elaborations/` |
288
+ | `ai-dlc/ops/inception/dependency-map.md` | `{NEW_FRAMEWORK_ROOT}/ops/inception/dependency-map.md` |
289
+ | `ai-dlc/ops/build/backlog.md` | `{NEW_FRAMEWORK_ROOT}/ops/build/backlog.md` |
290
+ | `ai-dlc/ops/build/units/` | `{NEW_FRAMEWORK_ROOT}/ops/build/units/` |
291
+ | `ai-dlc/ops/build/bolts/` | `{NEW_FRAMEWORK_ROOT}/ops/build/bolts/` |
292
+ | `ai-dlc/ops/operate/retros/` | `{NEW_FRAMEWORK_ROOT}/ops/operate/retros/` |
293
+ | `ai-dlc/ops/operate/incidents/` | `{NEW_FRAMEWORK_ROOT}/ops/operate/incidents/` |
294
+ | `ai-dlc/ops/operate/improvements/` | `{NEW_FRAMEWORK_ROOT}/ops/operate/improvements/` |
295
+
296
+ **Critical:** After moving ops files, verify that the file counts match. Report any discrepancy before proceeding.
297
+
298
+ ### 2d — Refresh template skill files
299
+
300
+ Replace the old template skill files in `{NEW_FRAMEWORK_ROOT}/skills/` with the latest versions from `process-onboarding-agent/skills/`. Copy each file verbatim.
301
+
302
+ Files to refresh:
303
+
304
+ | Source (new base) | Destination |
305
+ |---|---|
306
+ | `process-onboarding-agent/skills/compact-docs.md` | `{NEW_FRAMEWORK_ROOT}/skills/compact-docs.md` |
307
+ | `process-onboarding-agent/skills/root-cause-analysis.md` | `{NEW_FRAMEWORK_ROOT}/skills/root-cause-analysis.md` |
308
+ | `process-onboarding-agent/skills/solution-shaping.md` | `{NEW_FRAMEWORK_ROOT}/skills/solution-shaping.md` |
309
+ | `process-onboarding-agent/skills/design-session.md` | `{NEW_FRAMEWORK_ROOT}/skills/design-session.md` |
310
+ | `process-onboarding-agent/skills/bolt-risk-assessment.md` | `{NEW_FRAMEWORK_ROOT}/skills/bolt-risk-assessment.md` |
311
+ | `process-onboarding-agent/skills/progress-digest.md` | `{NEW_FRAMEWORK_ROOT}/skills/progress-digest.md` |
312
+ | `process-onboarding-agent/skills/uat.md` | `{NEW_FRAMEWORK_ROOT}/skills/uat.md` |
313
+ | `process-onboarding-agent/skills/release-readiness-checklist.md` | `{NEW_FRAMEWORK_ROOT}/skills/release-readiness-checklist.md` |
314
+ | `process-onboarding-agent/skills/process-health.md` | `{NEW_FRAMEWORK_ROOT}/skills/process-health.md` |
315
+ | `process-onboarding-agent/skills/dependency-audit.md` | `{NEW_FRAMEWORK_ROOT}/skills/dependency-audit.md` |
316
+ | `process-onboarding-agent/skills/knowledge-promotion.md` | `{NEW_FRAMEWORK_ROOT}/skills/knowledge-promotion.md` |
317
+ | `process-onboarding-agent/skills/ai-hub-metrics.md` | `{NEW_FRAMEWORK_ROOT}/skills/ai-hub-metrics.md` |
318
+ | `process-onboarding-agent/skills/process-visualization.md` | `{NEW_FRAMEWORK_ROOT}/skills/process-visualization.md` |
319
+ | `process-onboarding-agent/skills/governance-map.md` | `{NEW_FRAMEWORK_ROOT}/skills/governance-map.md` |
320
+ | `process-onboarding-agent/skills/notifications.md` | `{NEW_FRAMEWORK_ROOT}/skills/notifications.md` |
321
+ | `process-onboarding-agent/skills/new-engineer-induction.md` | `{NEW_FRAMEWORK_ROOT}/skills/new-engineer-induction.md` |
322
+ | `process-onboarding-agent/skills/bug-bolt.md` | `{NEW_FRAMEWORK_ROOT}/skills/bug-bolt.md` |
323
+ | `process-onboarding-agent/skills/hotfix-bolt.md` | `{NEW_FRAMEWORK_ROOT}/skills/hotfix-bolt.md` |
324
+ | `process-onboarding-agent/skills/nfr-bolt.md` | `{NEW_FRAMEWORK_ROOT}/skills/nfr-bolt.md` |
325
+ | `process-onboarding-agent/skills/product-engineering-essentials.md` | `{NEW_FRAMEWORK_ROOT}/skills/product-engineering-essentials.md` |
326
+
327
+ The table above lists the pre-built skills as of this guide's last update. Treat it as a checklist, not a closed set: refresh **every** `*.md` under `process-onboarding-agent/skills/` in the new base repo. If the base repo contains a skill the table does not mention, copy it across anyway and note it in the migration report — the base repo is the source of truth, not this list.
328
+
329
+ **Skills that need a setup conversation, not just a file copy.** Copying a skill file installs the *file*, not the configuration. After refreshing, check for skills whose behaviour is driven by a master rule file section that a migrated project will not have. Currently that means two skills, each gated on its own section being present:
330
+
331
+ - **notifications** — if the project's master rule file has no Section 10, offer to run the *Onboarding setup* steps inside `{NEW_FRAMEWORK_ROOT}/skills/notifications.md` and write Section 10 from the answers. If the engineer declines, write Section 10 with `Status: Disabled` — or leave it absent, which is treated as disabled — and note it in the migration report so it is a visible choice rather than an oversight.
332
+ - **ai-hub-metrics** — if the project's master rule file has no Section 11, this project predates the skill entirely (it is a newer addition to the base repo than notifications). Offer to run the *Onboarding setup* steps inside `{NEW_FRAMEWORK_ROOT}/skills/ai-hub-metrics.md` and write Section 11 from the answers — the skill's own setup ends by showing the engineer a status summary card, which doubles as their confirmation that the integration is live. If the engineer declines or is not ready (it needs a Workflow modeled in AI Hub first), write Section 11 with `Status: Disabled` — or leave it absent — and note it in the migration report.
333
+
334
+ Both sections are project-level switchboards (whether events fire at all), not project-specific data, so writing them from scratch during migration is correct — there is nothing in the old structure to preserve for either. They differ in who the credential belongs to: notifications is per-engineer (each teammate sets their own `SLACK_WEBHOOK_URL`, so Section 10 being `Enabled` gets a migrated teammate nothing until they personally configure it), while ai-hub-metrics is project-wide (one shared credential covers everyone once Section 11 is `Enabled`). Also add the Section 6 routing line for each skill if it is missing from the migrated master rule file (compare against the templates in `process-onboarding-agent/setup-guide.md` Section 6) — an old master rule file predating a skill will not have its routing line, and a copied skill file with no routing line never fires.
335
+
336
+ Also refresh the engagement rule:
337
+
338
+ | Source (new base) | Destination |
339
+ |---|---|
340
+ | `process-onboarding-agent/rules/engagement.md` | `{NEW_FRAMEWORK_ROOT}/rules/engagement.md` |
341
+
342
+ ### 2e — Refresh ops templates
343
+
344
+ Update the `_template.md` files in the ops folder with the latest versions. Do not touch any non-template files (operational records).
345
+
346
+ | Source (new base) | Destination |
347
+ |---|---|
348
+ | `process-onboarding-agent/ops/inception/intents/_template.md` | `{NEW_FRAMEWORK_ROOT}/ops/inception/intents/_template.md` |
349
+ | `process-onboarding-agent/ops/inception/elaborations/_template.md` | `{NEW_FRAMEWORK_ROOT}/ops/inception/elaborations/_template.md` |
350
+ | `process-onboarding-agent/ops/build/units/_template.md` | `{NEW_FRAMEWORK_ROOT}/ops/build/units/_template.md` |
351
+ | `process-onboarding-agent/ops/build/bolts/_template.md` | `{NEW_FRAMEWORK_ROOT}/ops/build/bolts/_template.md` |
352
+ | `process-onboarding-agent/ops/operate/retros/_template.md` | `{NEW_FRAMEWORK_ROOT}/ops/operate/retros/_template.md` |
353
+ | `process-onboarding-agent/ops/operate/incidents/_template.md` | `{NEW_FRAMEWORK_ROOT}/ops/operate/incidents/_template.md` |
354
+ | `process-onboarding-agent/ops/operate/improvements/_template.md` | `{NEW_FRAMEWORK_ROOT}/ops/operate/improvements/_template.md` |
355
+ | `process-onboarding-agent/ops/inception/dependency-map.md` | Only if no dependency-map.md was moved in 2c |
356
+
357
+ ---
358
+
359
+ ## Step 3 — Migrate the Experience Agent
360
+
361
+ **What this step does:** Updates every path reference in the master rule file from the old `ai-dlc/` paths to the new `{NEW_FRAMEWORK_ROOT}` paths.
362
+
363
+ ### 3a — Read the master rule file
364
+
365
+ Read the full master rule file (`CLAUDE.md`, `.cursor/rules/project-rules.mdc` (or any `.mdc` under `.cursor/rules/`), `.cursorrules` (legacy), or `.github/copilot-instructions.md`). Identify every line that references an `ai-dlc/` path.
366
+
367
+ Patterns to find and replace:
368
+
369
+ | Old pattern | New pattern |
370
+ |---|---|
371
+ | `ai-dlc/rules/` | `{NEW_FRAMEWORK_ROOT}/rules/` |
372
+ | `ai-dlc/skills/` | `{NEW_FRAMEWORK_ROOT}/skills/` |
373
+ | `ai-dlc/guidelines/` | `{NEW_FRAMEWORK_ROOT}/guidelines/` |
374
+ | `ai-dlc/ops/` | `{NEW_FRAMEWORK_ROOT}/ops/` |
375
+ | `ai-dlc/Instructions2FDE.md` | `{NEW_FRAMEWORK_ROOT}/Instructions2FDE.md` |
376
+ | `../ai-dlc/` (GitHub Copilot variant) | `../{NEW_FRAMEWORK_ROOT}/` |
377
+
378
+ Replace all occurrences throughout the file. **Do not modify any other content** — only the path strings.
379
+
380
+ ### 3b — Verify the update
381
+
382
+ After writing the updated master rule file, count how many path references were changed and report the count to the engineer. Scan once more to confirm no `ai-dlc/` references remain.
383
+
384
+ ---
385
+
386
+ ## Step 4 — Migrate the Diagnostic Agent
387
+
388
+ **What this step does:** The new `process-diagnostic-agent/` folder (already copied to the project root) replaces `ai-dlc-reviewer/`. No content from `ai-dlc-reviewer/` needs to be preserved — it was entirely template-based.
389
+
390
+ There is nothing to move. The new `process-diagnostic-agent/` folder is already present from the prerequisite copy step.
391
+
392
+ The key capability addition is `process-diagnostic-agent/skills/trend-analysis.md` — this enables the diagnostic agent to compare reviews over time and report on practice trends. The `role-play.md` in the new agent already calls this skill in Step 3.
393
+
394
+ Confirm `process-diagnostic-agent/skills/trend-analysis.md` exists. If it is absent, the prerequisite copy was incomplete — alert the engineer before proceeding.
395
+
396
+ ---
397
+
398
+ ## Step 5 — Clean Up
399
+
400
+ **Before removing any old folder, verify:**
401
+ 1. All generated files from Step 2b are confirmed present at their new location.
402
+ 2. All operational data from Step 2c is confirmed present at the new location, with matching file counts.
403
+ 3. The master rule file has been updated and contains no remaining `ai-dlc/` references.
404
+
405
+ Only after all three conditions are met, proceed with cleanup:
406
+
407
+ 1. Remove `ai-dlc/` from the project root.
408
+ 2. Remove `ai-dlc-reviewer/` from the project root (if present).
409
+
410
+ If any condition is unmet, stop and report to the engineer before removing anything.
411
+
412
+ ---
413
+
414
+ ## Step 6 — Deliver the Migration Report
415
+
416
+ Present a report in this format:
417
+
418
+ ```
419
+ AI-DLC Migration Report
420
+ ──────────────────────────────────────────────────────
421
+ Migration completed: [date]
422
+
423
+ AGENT 1 — ONBOARDING AGENT
424
+ Framework relocated to: {NEW_FRAMEWORK_ROOT}
425
+ Generated files moved: [list each file]
426
+ Operational data moved: [N] intents, [N] units, [N] bolts, [N] retros, ...
427
+ Template skills refreshed: [list each skill]
428
+ Notifications (Section 10): Enabled / Disabled — [set up this session / already configured / declined]
429
+ AI Hub Metrics (Section 11): Enabled / Disabled — [set up this session / already configured / declined]
430
+ Old bootstrap removed: ai-dlc/ ✓
431
+
432
+ AGENT 2 — EXPERIENCE AGENT
433
+ Master rule file updated: [filename]
434
+ Path references changed: [N]
435
+ No remaining ai-dlc/ references: ✓
436
+
437
+ AGENT 3 — DIAGNOSTIC AGENT
438
+ New agent installed: process-diagnostic-agent/ ✓
439
+ Trend Analysis capability: present ✓
440
+ Old diagnostic removed: ai-dlc-reviewer/ ✓
441
+
442
+ ITEMS REQUIRING YOUR REVIEW
443
+ [List any files or sections that need engineer attention]
444
+ [If none: "None — migration is complete and ready to use."]
445
+
446
+ NEXT STEPS
447
+ 1. Open a new session in this repository. Your AI tool will load the master rule
448
+ file automatically — the experience agent is live.
449
+ 2. To run the diagnostic agent: say "Read process-diagnostic-agent/role-play.md
450
+ and follow the instructions inside it."
451
+ 3. If you ever need to re-run onboarding for a new AI tool: copy
452
+ process-onboarding-agent/ from the AI-DLC base repo and follow onboard.md.
453
+ ──────────────────────────────────────────────────────
454
+ ```
455
+
456
+ After presenting the report, add this note:
457
+
458
+ > "The migration is complete. Close this session and open a new one — your master rule file will load automatically and the experience agent will be ready. The `process-migration-agent/` folder can be deleted from your project root; it is no longer needed."
459
+
460
+ ---
461
+
462
+ ## Edge Cases
463
+
464
+ ### The engineer already deleted `ai-dlc/` after the initial onboarding
465
+
466
+ Some engineers follow the old guidance (which did not recommend deletion) and some may have deleted it anyway. If `ai-dlc/` is absent but the master rule file still references `ai-dlc/` paths:
467
+
468
+ 1. Check whether the installed framework files are at a non-standard location. Ask the engineer: "I can see the master rule file but `ai-dlc/` is absent. Do you know where your rules and skills files are currently stored?"
469
+ 2. If found: treat that location as the source for the move.
470
+ 3. If genuinely absent: the template skill files can be recovered from `process-onboarding-agent/skills/`. The generated files (rules, guidelines, mob-elab-prompts, review-checklist) cannot be auto-recovered — flag these individually as "requires engineer to recreate".
471
+
472
+ ### The `ai-dlc/` folder is present but `ai-dlc-reviewer/` is absent
473
+
474
+ This is normal — some teams never used the diagnostic agent. Skip Step 4's cleanup for `ai-dlc-reviewer/` and note in the report that `process-diagnostic-agent/` has been added as a new capability.
475
+
476
+ ### The engineer has already moved some files manually
477
+
478
+ Check for any existing `intent-execution-framework/` folder. If found:
479
+ 1. Report what is already there.
480
+ 2. Do not overwrite files that are already in place.
481
+ 3. Only move files that are still at their old `ai-dlc/` location.
482
+ 4. Flag any conflicts to the engineer.
483
+
484
+ ### The master rule file uses `../ai-dlc/` paths (GitHub Copilot variant)
485
+
486
+ The Copilot master rule file lives at `.github/copilot-instructions.md` and uses `../ai-dlc/` as the path prefix. Replace with `../{NEW_FRAMEWORK_ROOT}/` (e.g. `../docs/process/intent-execution-framework/`).
487
+
488
+ ### ops/build/backlog.md contains Reference Link Registry entries with old paths
489
+
490
+ The backlog file uses reference-style Markdown links that include file paths. After moving ops data, scan `{NEW_FRAMEWORK_ROOT}/ops/build/backlog.md` for any `ai-dlc/ops/` path references in the Reference Link Registry section and update them to `{NEW_FRAMEWORK_ROOT}/ops/`.