@99x-ai-dlc/idf-installer 0.0.0-stage → 0.2.8

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,212 @@
1
+ # Skill: Governance Map
2
+
3
+ **Purpose:** Draw a one-page map of how this project's installed framework governs delivery: which files form the governance layer, which steps each phase runs, which gates the engineer must sign off, which bolt variants exist, and where lessons feed back into the rules. The map is built from the project's actual master rule file, `rules/`, `guidelines/`, `skills/` and ops templates, not from the generic framework description. Two projects running the framework get two different maps.
4
+
5
+ The map answers "how does work get governed here?" in one picture. That helps a new engineer, a stakeholder who wants to see where humans stay in control, and a team checking that what it believes the process is matches what the files actually say.
6
+
7
+ This skill is distinct from `process-visualization.md`. Process visualization reconstructs what *happened* during one bolt. This skill draws what the framework *requires* for every bolt.
8
+
9
+ **Trigger:** Engineer-initiated at any time. Invoked by saying something like "draw the governance map", "show me how the framework governs delivery here", or "regenerate the governance map". Worth offering, never forcing, in two situations:
10
+ - At the end of `new-engineer-induction.md`, as a picture to keep alongside the quick-reference card.
11
+ - After the Post-Retro Improvement Workflow applies an improvement that adds, removes or changes a gate, a ceremony or a skill routing line, since the existing map is now out of date.
12
+
13
+ **Never run automatically.** The engineer decides when to generate or regenerate the map.
14
+
15
+ **Output:** Two files at the framework root, both overwritten on regeneration:
16
+ - `governance-map.md`: a Mermaid flowchart plus the two reference tables. It renders in GitHub, GitLab and most IDEs, and diffs cleanly in review.
17
+ - `governance-map.html`: a single self-contained blueprint page (inline SVG, inline CSS, no external scripts, fonts or images) for sharing and presenting.
18
+
19
+ ---
20
+
21
+ ## Step 1 — Locate the Framework and Confirm the Output
22
+
23
+ 1. Find the master rule file at the repo root: `CLAUDE.md`, `.cursor/rules/project-rules.mdc` (or any `.mdc` under `.cursor/rules/`), `.cursorrules` (legacy), or `.github/copilot-instructions.md`. If none exists, stop and tell the engineer:
24
+ > "I can't find a master rule file, so there is no installed framework to map. This skill needs the full framework. Run the onboarding agent first."
25
+ 2. Determine the framework root from the master rule file's Section 6 routing lines: the directory their skill paths point into (for example, `docs/process/intent-execution-framework/`). Do not assume a default path.
26
+ 3. If `governance-map.md` or `governance-map.html` already exists at the framework root, say so and ask:
27
+ > "A governance map already exists (generated [date from its header]). Should I regenerate it from the current files and overwrite both versions?"
28
+ 4. Ask:
29
+ > "Should I produce both the Markdown/Mermaid version and the HTML blueprint, or only one of them?"
30
+
31
+ Default to both if the engineer has no preference.
32
+
33
+ ---
34
+
35
+ ## Step 2 — Read the Governance Sources
36
+
37
+ Read all of the following before drawing anything. Do not ask for files one at a time, and do not start building the map while still reading.
38
+
39
+ | Source | What to extract |
40
+ |---|---|
41
+ | Master rule file, Section 1 (Project Identity) | Project name; the system boundaries stated as "never" rules |
42
+ | Master rule file, Sections 2–5 | Hard stops: anything the AI must refuse or stop on (e.g. the Sensitive Data Check, security never-rules, forbidden zones) |
43
+ | Master rule file, Section 6 (AI-DLC Workflow) | Session-start checks; the elaboration turn structure; every skill routing line with its trigger condition and whether it is mandatory, offered, or engineer-invoked |
44
+ | Master rule file, Section 7 (Review Behavior) | The review checklist routing |
45
+ | Master rule file, Section 9 (Process Configuration) | Archive threshold; `Next dependency audit` date |
46
+ | Master rule file, Sections 10–11 | Whether notifications and AI Hub metrics are enabled or disabled. Never copy a webhook URL, API key, endpoint or any other credential into the map |
47
+ | `{framework root}/rules/` | The file names, and the one-line purpose of each |
48
+ | `{framework root}/guidelines/` | The file names, and the one-line purpose of each |
49
+ | `{framework root}/skills/` | Every installed skill file, to cross-check against the Section 6 routing lines |
50
+ | `{framework root}/ops/**/_template.md` | The `Status:` vocabulary for intents, units, bolts and improvements, used for the phase status lines |
51
+ | `{framework root}/ops/operate/retros/_template.md` | The Post-Retro Improvement Workflow steps |
52
+
53
+ ---
54
+
55
+ ## Step 3 — Build the Map Model
56
+
57
+ Build the model as a table before rendering anything. Every element must name the file and section it came from. **An element with no source does not go on the map.** Do not fill gaps from the generic framework description or from memory of other projects.
58
+
59
+ | Element | Kind | Phase | Source (file § section) | Notes |
60
+ |---|---|---|---|---|
61
+ | [e.g. Bolt risk assessment] | AI step / Gate / Event-driven / Feedback loop / Variant | Governance / Inception / Build / Operate / Variant band / Scheduled | [path § section] | [trigger, owner, status transition] |
62
+
63
+ Apply these classification rules:
64
+
65
+ 1. **Gate:** a step that the master rule file or a skill says must not be skipped, needs an engineer sign-off, or blocks the next step ("No unit may begin execution without…", "A retro is not closed until…"). Label it with the wording the source uses: `SIGN-OFF` where the engineer approves something, `GATE` where a check must pass, `REQUIRED` where the step must happen but has no approval. Anything the sources describe as optional, offered or advisory is never drawn as a gate.
66
+ 2. **AI step:** work the AI drives that the engineer reviews but does not formally sign off.
67
+ 3. **Event-driven step:** a step triggered by something outside the normal flow, such as an incident, a production break or a due date, rather than by the previous step.
68
+ 4. **Feedback loop:** a path where an output rewrites an input. At minimum, look for: retro → improvement → edits to `rules/`, `skills/` or `guidelines/`; RCA → new intent; and the review checklist → regenerate loop inside a unit.
69
+ 5. **Bolt variant:** each bolt-type skill installed and routed in Section 6 (e.g. bug, hotfix, NFR). Record its trigger phrase from Section 6 and its steps in order, marking which of its steps are gates.
70
+ 6. **Scheduled and on-demand skills:** every routed skill that is not part of the main flow, with its cadence or trigger. Take dates and intervals from Section 9, not from defaults.
71
+ 7. **Engineer decisions:** every point where the engineer, not the AI, decides an outcome. Record what is decided and where.
72
+
73
+ Then run two consistency checks and record the results as **Map gaps**:
74
+ - A skill file exists in `skills/` with no routing line in Section 6 → "installed but not wired".
75
+ - A routing line in Section 6 points to a file that does not exist → "wired but missing".
76
+
77
+ Do not fix either kind of gap. Report it.
78
+
79
+ ---
80
+
81
+ ## Step 4 — Confirm the Model With the Engineer
82
+
83
+ Present a short summary before rendering anything:
84
+
85
+ > "Here is what the map will show, taken from your files:
86
+ > - Governance layer: [N] rules files, [N] guideline files, [N] hard stops
87
+ > - Inception: [steps, with gates marked]
88
+ > - Build: [steps, with gates marked]
89
+ > - Operate: [steps, with gates marked]
90
+ > - Bolt variants: [names]
91
+ > - Map gaps: [list, or 'none']
92
+ >
93
+ > Is anything missing or wrong? If the files don't say what you expected, that's worth knowing before we draw it."
94
+
95
+ Wait for the engineer to confirm. If they correct something, check the correction against the files:
96
+ - If the files support it, update the model.
97
+ - If the files don't support it, do not draw it. Record it in Map gaps as "described by the engineer, not in the framework files" and suggest raising an improvement so the files match how the team actually works.
98
+
99
+ ---
100
+
101
+ ## Step 5 — Render the Markdown Version
102
+
103
+ Write `{framework root}/governance-map.md` with this structure:
104
+
105
+ ````markdown
106
+ # Governance Map — [Project name]
107
+
108
+ Generated: YYYY-MM-DD from [master rule file name] and `[framework root]/`
109
+ Regenerate after any applied improvement that changes a gate, ceremony or skill routing.
110
+
111
+ ## How work is governed
112
+
113
+ ```mermaid
114
+ flowchart LR
115
+ subgraph GOV["Governance layer — read at session start and before every code response"]
116
+ ...
117
+ end
118
+ subgraph INC["Inception"]
119
+ ...
120
+ end
121
+ subgraph BLD["Build"]
122
+ ...
123
+ end
124
+ subgraph OPS["Operate"]
125
+ ...
126
+ end
127
+ GOV --> INC
128
+ GOV --> BLD
129
+ GOV --> OPS
130
+ ...
131
+ classDef gate fill:#fbefd9,stroke:#a8650f,stroke-width:2px
132
+ classDef event stroke-dasharray:5 4
133
+ class [gate node ids] gate
134
+ class [event node ids] event
135
+ ```
136
+
137
+ Legend: amber nodes are gates the engineer cannot skip. Dashed nodes are event-driven. Dotted arrows (`-.->`) are feedback loops.
138
+
139
+ ## Bolt variants
140
+
141
+ | Variant | Trigger phrase | Steps (gates in **bold**) |
142
+ |---|---|---|
143
+
144
+ ## What the engineer decides
145
+
146
+ | Decision | Where it happens |
147
+ |---|---|
148
+
149
+ ## Scheduled and on-demand skills
150
+
151
+ | Skill | When it runs |
152
+ |---|---|
153
+
154
+ ## Map gaps
155
+
156
+ [From Step 3 and Step 4, or "None found."]
157
+ ````
158
+
159
+ Mermaid rules:
160
+ - Use one `subgraph` per phase, in the order Governance, Inception, Build, Operate. Model the "for each unit" loop inside Build as a nested subgraph.
161
+ - Draw feedback loops with dotted arrows (`-.->`) and a short label, e.g. `-.->|lessons rewrite the rules|`.
162
+ - Keep node labels under about six words. Put file paths in the tables, not in the nodes.
163
+ - Quote any label that contains punctuation, e.g. `A["Retro (required)"]`.
164
+
165
+ ---
166
+
167
+ ## Step 6 — Render the HTML Blueprint
168
+
169
+ Write `{framework root}/governance-map.html` as one self-contained file: inline `<style>` and inline `<svg>`, with no `<script>`, no external fonts, stylesheets or images, and no network requests of any kind. It must open correctly from the file system with no connection.
170
+
171
+ **Page structure, top to bottom:**
172
+ 1. **Header:** a small monospace kicker (`[Project name] · [framework root]`), an `h1` stating what the page shows, and a two- or three-sentence lede summarising the loop and who decides at the gates. Write the lede from this project's model. Do not reuse generic wording.
173
+ 2. **Legend:** an AI-driven step, a gate, an event-driven step, a work-flow arrow and a feedback arrow.
174
+ 3. **Diagram:** one inline SVG in a horizontally scrollable container (`overflow-x: auto`, SVG `min-width` around 980px, `width: 100%`, a `viewBox` matching the content).
175
+ 4. **Two reference tables side by side** (stacking on narrow screens): "What the engineer decides" and "Scheduled and on-demand skills", with the same content as the Markdown version.
176
+ 5. **Map gaps**, only if any were found.
177
+
178
+ **Diagram layout:**
179
+ - **Governance band** across the top: the master rule file, `rules/` and `guidelines/` as three labelled columns, each with one or two lines naming its key contents. Short arrows down into each phase, labelled "every phase reads these first".
180
+ - **Three phase columns** (Inception, Build, Operate). Each column has an eyebrow (`PHASE 1`), a title, its ops folder path, and a status line taken from the templates' `Status:` vocabulary.
181
+ - **Inside each column**, the steps in order as rounded boxes. Each box has a title, a one-line description, and (where useful) the file path in monospace. Gate boxes use the gate colour and carry their label (`SIGN-OFF`, `GATE`, `REQUIRED`) right-aligned in the box. Event-driven boxes use a dashed border. The Build column draws the per-unit loop as a dashed container labelled `FOR EACH UNIT`, with a loop-back arrow from review to the start of the loop.
182
+ - **Connectors between columns:** Inception's last step → "Plan a bolt" (labelled e.g. "units ready → plan a bolt"), and Build's last step → the retro (labelled e.g. "bolt done → retro").
183
+ - **Feedback loops** as dashed arrows in the accent colour: the approved-improvement step back up into the governance band ("lessons rewrite the rules"), and the incident/RCA step back to the first Inception step ("root cause needs a redesign → new intent"). Give arrow labels a background halo (`paint-order: stroke`) so they stay readable where they cross lines.
184
+ - **Bolt variants band** across the bottom: one row per variant, with its name and trigger phrase on the left and its steps as a chain of chips separated by `›`. Gate steps use gate-coloured chips. Band heading: "Bolt variants · skip or compress elaboration, keep every gate", unless the files say otherwise.
185
+
186
+ **Styling rules:**
187
+ - Define all colours as CSS custom properties on `:root`: background, surface, sunk surface, ink, muted ink, line, accent, accent-soft, gate and gate-soft. Redefine them for dark mode under `@media (prefers-color-scheme: dark)`.
188
+ - Use system font stacks only: a sans-serif stack for text and a monospace stack for paths, tags and eyebrows.
189
+ - Apply colours inside the SVG through classes that use the custom properties, so the diagram follows dark mode too. Arrowheads are `<marker>` elements, one per arrow kind.
190
+ - Keep the page readable on a phone: a 16px side gutter, tables that stack, and only the diagram scrolling sideways.
191
+ - Plan box positions on a grid before writing any coordinates, so that no text overflows its box and no arrow passes through a box. Size each box from its longest line of text.
192
+
193
+ ---
194
+
195
+ ## Step 7 — Verify, Save and Report
196
+
197
+ Before telling the engineer the map is ready:
198
+
199
+ 1. Check every gate on the map against its source in the Step 3 table. Remove anything that has no source.
200
+ 2. Check that every routed skill in Section 6 appears somewhere: in a phase, in a variant row, or in the scheduled/on-demand table.
201
+ 3. Check that no credential, webhook URL, API key or personal data appears in either file.
202
+ 4. For the HTML: confirm it contains no `<script>` tag, no `<link>` tag, and no `src`, `href` or CSS `url()` pointing to an `http://` or `https://` address (the SVG `xmlns` namespace attribute is fine), and that every `marker-end` references a defined marker.
203
+
204
+ Then confirm:
205
+
206
+ > "Governance map saved:
207
+ > - `[framework root]/governance-map.md`, which renders in your Git host and IDE
208
+ > - `[framework root]/governance-map.html`, a self-contained page you can open directly or share
209
+ >
210
+ > Map gaps: [list, or 'none']. Regenerate it whenever an applied improvement changes a gate, a ceremony or a skill routing line."
211
+
212
+ If any Map gaps were found, offer once to file each one as an improvement using `{framework root}/ops/operate/improvements/_template.md`. Do not file them without the engineer's go-ahead.
@@ -0,0 +1,102 @@
1
+ # Skill: Hotfix Bolt
2
+
3
+ **Purpose:** An emergency bolt workflow for production issues that cannot wait for a full planning cycle. Prioritises speed over ceremony — elaboration is skipped entirely. A mandatory retro and RCA follow within 24 hours. Speed does not suspend quality gates: the review checklist and pre-generation checks still apply.
4
+
5
+ **Trigger:** Engineer says "hotfix", "production issue", "prod is down", "emergency fix for X", or "P1 in production". Routed from Section 6 of the master rule file. Load this skill immediately — do not begin elaboration or ask for intent files.
6
+
7
+ **Requires:** A fully onboarded AI-DLC project. The master rule file, quality gate (`rules/prompt-quality-gate.md`), review checklist (`skills/review-checklist.md`), incident template (`ops/operate/incidents/_template.md`), and retro template must all be in place. This skill is a bolt-type variant that operates within the framework — it is not a standalone incident-response runbook. If AI-DLC is not yet installed, start with `process-onboarding-agent/onboard.md` first.
8
+
9
+ **What this skill does not replace:** the retro (mandatory within 24 hours), RCA (`skills/root-cause-analysis.md`), incident file, or any quality gate step. A hotfix bolt compresses ceremony — it does not eliminate accountability.
10
+
11
+ ---
12
+
13
+ ## Step 1 — Hotfix Intake
14
+
15
+ Ask the engineer three questions immediately:
16
+
17
+ > "To move fast safely, I need three things:
18
+ > 1. **What is broken in production?** One sentence — symptom and user impact.
19
+ > 2. **How severe is it?** P1 (full outage or data loss risk) / P2 (degraded service, workaround exists) / P3 (minor defect, low user impact).
20
+ > 3. **Is a rollback available right now?** Yes / No / Partial."
21
+
22
+ Do not proceed until all three are answered.
23
+
24
+ If no rollback is available, state this explicitly before continuing:
25
+
26
+ > "No rollback is available. This fix is the only recovery path — proceed with extra care."
27
+
28
+ ---
29
+
30
+ ## Step 2 — Confirm the Blast Radius
31
+
32
+ Before writing any code, ask:
33
+
34
+ > "What is the blast radius of the proposed fix? Which components, services, or users are affected if the fix has an unintended side effect?"
35
+
36
+ Record the answer. If the blast radius is wide (multiple services, database schema change, shared API contract): slow down and consider whether a partial mitigation (feature flag, rate limit, traffic shift) is safer than a direct fix. State the trade-off to the engineer and wait for their decision.
37
+
38
+ ---
39
+
40
+ ## Step 3 — Create the Minimal Unit
41
+
42
+ Create a single unit with the minimum viable AC set:
43
+
44
+ **Context:** The production symptom, the root hypothesis, and the proposed change — three sentences maximum.
45
+
46
+ **Acceptance Criteria:**
47
+ ```
48
+ Given [the production state that caused the issue]
49
+ When [the fix is applied]
50
+ Then [the system returns to the expected behavior]
51
+
52
+ Given [normal production traffic after fix]
53
+ When [the fix is deployed]
54
+ Then [no new errors or regressions appear in monitoring]
55
+ ```
56
+
57
+ **Scope:**
58
+ - In scope: the specific change needed to restore service
59
+ - Out of scope: any improvement, refactoring, or "while we're here" addition — log these for the next bolt, do not act on them now
60
+
61
+ **Pre-generation checks:** Grep for the affected component. Confirm the fix does not touch unrelated code paths.
62
+
63
+ ---
64
+
65
+ ## Step 4 — Execute
66
+
67
+ Execute the unit. Review output using `process-onboarding-agent/skills/review-checklist.md`.
68
+
69
+ Speed does not suspend quality gates. If output fails review: do not retry blindly — state the failure and ask the engineer how to proceed.
70
+
71
+ ---
72
+
73
+ ## Step 5 — Verify Before Production
74
+
75
+ If a staging environment is available:
76
+
77
+ > "Before deploying to production, please verify the fix in staging against the reproduction steps."
78
+
79
+ If no staging environment exists: note this explicitly and ask the engineer to confirm acceptance of the risk before deploying.
80
+
81
+ ---
82
+
83
+ ## Step 6 — Create the Incident File
84
+
85
+ If an incident file does not already exist for this event, create one now at `ops/operate/incidents/YYYY-MM-DD-<unix_timestamp>-[slug].md`. Populate at minimum:
86
+
87
+ - Detection time and how it was detected
88
+ - Production impact: who was affected and for how long
89
+ - Root hypothesis: what caused it (even if unconfirmed)
90
+ - Rollback availability (from Step 1)
91
+ - Fix deployed timestamp
92
+
93
+ ---
94
+
95
+ ## Step 7 — Close and Schedule the Retro
96
+
97
+ 1. Mark unit Done. Mark bolt Done. Update the backlog.
98
+ 2. State clearly:
99
+
100
+ > "The hotfix is complete. A retro is mandatory within 24 hours — please schedule it now. The incident file is at [path]. Run `process-onboarding-agent/skills/root-cause-analysis.md` during or immediately after the retro."
101
+
102
+ 3. Do not run the retro now if the production event is still being monitored. Close this session and return when the system is stable.
@@ -0,0 +1,188 @@
1
+ # Skill: Knowledge Promotion
2
+
3
+ **Purpose:** Evaluate each applied improvement to determine whether it is generic enough to benefit all AI-DLC projects, and if so, draft the exact change needed in the base repository so the engineer can raise a PR. Turns the passive "open a PR if you remember" instruction into a deliberate, structured ceremony that runs after every retro.
4
+
5
+ **Trigger:** Runs automatically as Step 5 of the Post-Retro Improvement Workflow, immediately after all approved improvements are applied. Can also be invoked directly by the engineer against a specific improvement file: "run knowledge promotion for [improvement]."
6
+
7
+ **Context:** This skill operates inside a project repository. It cannot modify the base repository directly. Its output is a drafted change — the exact file path and text to add or replace in the base repo — which the engineer carries into a PR against `ai-dlc-base`. The promotion decision and draft are recorded in the improvement file so the context is never lost.
8
+
9
+ ---
10
+
11
+ ## Step 1 — Identify the Improvements to Evaluate
12
+
13
+ If triggered by the Post-Retro Improvement Workflow, evaluate every improvement that was marked Applied in the current retro session, in order.
14
+
15
+ If invoked directly, ask the engineer:
16
+
17
+ > "Which improvement file should I evaluate for knowledge promotion?"
18
+
19
+ Read the improvement file in full before beginning the evaluation.
20
+
21
+ ---
22
+
23
+ ## Step 1.5 — Ask Whether the Improvement Can Be a CHECK Rather Than a Sentence
24
+
25
+ Before classifying, ask of each improvement: **could this be enforced by something that runs, instead of something someone must remember?**
26
+
27
+ A retro's natural output is prose — a rule appended to the code standards, a bullet in a checklist. Prose is necessary (it carries the reasoning) and it is **not a mitigation**: it only fires if the next person reads it, recognises their situation in it, and acts. Where the invariant is mechanically decidable, the durable form is a **test, a lint rule, or a gate step**, with the prose kept as the explanation of why the check exists.
28
+
29
+ For each improvement, record one of:
30
+
31
+ - **Check landed** — name the test/lint rule/gate step, and confirm it has been seen to FAIL against the defect it prevents (a guard never observed red is not a guard).
32
+ - **Check possible, not landed** — say why (usually cost or scope), and raise it as an action so it is a decision rather than an omission.
33
+ - **Prose only — not mechanically decidable** — the honest answer for judgement-shaped lessons. Most process improvements land here, and that is fine; the point is to have asked.
34
+
35
+ A prose-only improvement whose invariant *was* mechanically decidable is the failure mode this step catches.
36
+
37
+ ---
38
+
39
+ ## Step 2 — Classify: Generic or Project-Specific
40
+
41
+ For each improvement, determine whether it is **generic** (beneficial to all AI-DLC projects) or **project-specific** (only relevant to this project's stack, domain, or conventions).
42
+
43
+ **Use the target file as the primary classification signal:**
44
+
45
+ | Target file type | Classification |
46
+ |---|---|
47
+ | Any file in `process-onboarding-agent/skills/` | Generic — skills are copied verbatim into every project |
48
+ | Any `_template.md` file in `process-onboarding-agent/ops/` | Generic — templates are shared across all projects |
49
+ | `process-onboarding-agent/rules/engagement.md` | Generic — copied verbatim into every project |
50
+ | `process-onboarding-agent/setup-guide.md` | Generic — the shared framework specification |
51
+ | `process-onboarding-agent/onboard.md` | Generic — the shared onboarding protocol |
52
+ | `process-onboarding-agent/rules/prompt-quality-gate.md` | Likely generic — evaluate content |
53
+ | `process-onboarding-agent/rules/code-standards.md` | Project-specific — encodes the project's tech stack |
54
+ | `process-onboarding-agent/rules/security.md` | Project-specific — unless the finding addresses a universal pattern |
55
+ | `process-onboarding-agent/rules/architecture.md` | Project-specific — encodes project ADRs |
56
+ | `process-onboarding-agent/guidelines/domain-glossary.md` | Project-specific |
57
+ | `process-onboarding-agent/guidelines/edge-cases.md` | Project-specific |
58
+ | `process-onboarding-agent/guidelines/forbidden-zones.md` | Project-specific |
59
+ | `process-onboarding-agent/guidelines/entry-points.md` | Project-specific |
60
+ | `process-onboarding-agent/guidelines/acceptance-patterns.md` | Likely generic — evaluate content |
61
+ | `CLAUDE.md` / `.cursor/rules/project-rules.mdc` (or any `.mdc` under `.cursor/rules/`) / `.cursorrules` (legacy) / `copilot-instructions.md` | Project-specific |
62
+ | New file being created | Evaluate by content |
63
+
64
+ **For ambiguous cases, apply the content test:**
65
+
66
+ Ask: *If this improvement were applied to a completely different project — different tech stack, different domain, different team size — would it still be an improvement?*
67
+
68
+ - Yes, the process or ceremony would be better regardless of context → **Generic**
69
+ - No, it relies on knowledge of this project's domain, stack, or specific patterns → **Project-specific**
70
+
71
+ ---
72
+
73
+ ## Step 3 — Handle Project-Specific Improvements
74
+
75
+ If the improvement is project-specific:
76
+
77
+ Update the `Knowledge Promotion` field in the improvement file to:
78
+
79
+ ```
80
+ **Knowledge promotion:** Project-specific — [one-sentence reason why it does not generalise]
81
+ ```
82
+
83
+ State the outcome to the engineer:
84
+
85
+ > "[Improvement title] is project-specific ([reason]). No base repo change needed."
86
+
87
+ Proceed to the next improvement.
88
+
89
+ ---
90
+
91
+ ## Step 4 — Handle Generic Improvements
92
+
93
+ If the improvement is generic, determine the corresponding file in the base repository:
94
+
95
+ | Project file changed | Base repo file to change |
96
+ |---|---|
97
+ | `process-onboarding-agent/skills/[skill].md` | `process-onboarding-agent/skills/[skill].md` |
98
+ | `process-onboarding-agent/ops/[path]/_template.md` | `process-onboarding-agent/ops/[path]/_template.md` |
99
+ | `process-onboarding-agent/rules/engagement.md` | `process-onboarding-agent/rules/engagement.md` |
100
+ | `process-onboarding-agent/rules/prompt-quality-gate.md` | `process-onboarding-agent/rules/prompt-quality-gate.md` |
101
+ | `process-onboarding-agent/setup-guide.md` | `process-onboarding-agent/setup-guide.md` |
102
+ | `process-onboarding-agent/onboard.md` | `process-onboarding-agent/onboard.md` |
103
+ | New skill or guideline file | New file at the same relative path |
104
+
105
+ Draft the exact change needed in the base repo. Be precise — draft the exact text to replace and the exact replacement, the same format used in the improvement file itself:
106
+
107
+ ```
108
+ Base repo change draft
109
+ ──────────────────────────────────────────────
110
+ File: [relative path in base repo]
111
+
112
+ Current text (or "New addition"):
113
+ [exact text that exists in the base repo file, or "N/A — new addition"]
114
+
115
+ Proposed replacement:
116
+ [exact text to replace it with]
117
+
118
+ Why this improves all AI-DLC projects:
119
+ [one or two sentences — the reason this generalises beyond this project]
120
+ ──────────────────────────────────────────────
121
+ ```
122
+
123
+ Present the draft to the engineer and ask:
124
+
125
+ > "This improvement appears to apply to all AI-DLC projects. I've drafted the change for the base repository above. Would you like to promote it?
126
+ > - **Yes** — I'll record the draft in the improvement file. Raise a PR against `ai-dlc-base` with this content, noting this project and retro as the source.
127
+ > - **Revise** — Adjust the draft before recording.
128
+ > - **No** — Record as declined with a reason."
129
+
130
+ Wait for the engineer's response.
131
+
132
+ ---
133
+
134
+ ## Step 5 — Record the Decision
135
+
136
+ **If promoted:**
137
+
138
+ Update the improvement file's `Knowledge Promotion` field:
139
+
140
+ ```
141
+ **Knowledge promotion:** Promoted — PR to be raised against `ai-dlc-base`
142
+
143
+ ### Base Repo Change Draft
144
+
145
+ **File:** [relative path in base repo]
146
+
147
+ **Current text:**
148
+ [exact current text or "N/A — new addition"]
149
+
150
+ **Proposed replacement:**
151
+ [exact proposed text]
152
+
153
+ **Why this generalises:**
154
+ [reason]
155
+
156
+ **Source:** [project name], retro [retro file link]
157
+ ```
158
+
159
+ Remind the engineer:
160
+
161
+ > "The draft is recorded in the improvement file. When you raise the PR against `ai-dlc-base`, copy the draft above into the PR body and link back to this improvement file as the source."
162
+
163
+ **If declined:**
164
+
165
+ Update the improvement file's `Knowledge Promotion` field:
166
+
167
+ ```
168
+ **Knowledge promotion:** Declined — [reason the engineer gave]
169
+ ```
170
+
171
+ ---
172
+
173
+ ## Step 6 — Summary
174
+
175
+ After evaluating all improvements in the batch, present a summary:
176
+
177
+ ```
178
+ Knowledge Promotion complete.
179
+
180
+ Improvements evaluated: [N]
181
+ Generic — promoted: [N] [list titles]
182
+ Generic — declined: [N] [list titles with reason]
183
+ Project-specific: [N] [list titles]
184
+
185
+ [If any promoted:]
186
+ Next step: raise a PR against ai-dlc-base for each promoted improvement.
187
+ Include the draft text from the improvement file and link back to this project's retro as the source.
188
+ ```