@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.
- package/README.md +51 -2
- package/bin/idf-installer.js +185 -0
- package/package.json +22 -4
- package/repository-agents/process-diagnostic-agent/review-guide.md +669 -0
- package/repository-agents/process-diagnostic-agent/role-play.md +223 -0
- package/repository-agents/process-diagnostic-agent/skills/trend-analysis.md +113 -0
- package/repository-agents/process-estimation-agent/estimate.md +69 -0
- package/repository-agents/process-estimation-agent/estimation-guide.md +435 -0
- package/repository-agents/process-migration-agent/migrate.md +72 -0
- package/repository-agents/process-migration-agent/migration-guide.md +490 -0
- package/repository-agents/process-onboarding-agent/external-skills/README.md +189 -0
- package/repository-agents/process-onboarding-agent/external-skills/ux-os.md +92 -0
- package/repository-agents/process-onboarding-agent/onboard.md +214 -0
- package/repository-agents/process-onboarding-agent/ops/build/backlog.md +43 -0
- package/repository-agents/process-onboarding-agent/ops/build/bolts/_template.md +53 -0
- package/repository-agents/process-onboarding-agent/ops/build/units/_template.md +112 -0
- package/repository-agents/process-onboarding-agent/ops/inception/codebase-findings/README.md +22 -0
- package/repository-agents/process-onboarding-agent/ops/inception/codebase-findings/_template.md +34 -0
- package/repository-agents/process-onboarding-agent/ops/inception/dependency-map.md +47 -0
- package/repository-agents/process-onboarding-agent/ops/inception/elaborations/_template.md +46 -0
- package/repository-agents/process-onboarding-agent/ops/inception/intents/README.md +9 -0
- package/repository-agents/process-onboarding-agent/ops/inception/intents/_template.md +92 -0
- package/repository-agents/process-onboarding-agent/ops/operate/improvements/_template.md +51 -0
- package/repository-agents/process-onboarding-agent/ops/operate/incidents/_template.md +61 -0
- package/repository-agents/process-onboarding-agent/ops/operate/retros/_template.md +122 -0
- package/repository-agents/process-onboarding-agent/rules/engagement.md +70 -0
- package/repository-agents/process-onboarding-agent/setup-guide.md +1409 -0
- package/repository-agents/process-onboarding-agent/skills/ai-hub-metrics.md +341 -0
- package/repository-agents/process-onboarding-agent/skills/bolt-risk-assessment.md +208 -0
- package/repository-agents/process-onboarding-agent/skills/bug-bolt.md +105 -0
- package/repository-agents/process-onboarding-agent/skills/compact-docs.md +123 -0
- package/repository-agents/process-onboarding-agent/skills/dependency-audit.md +187 -0
- package/repository-agents/process-onboarding-agent/skills/design-session.md +230 -0
- package/repository-agents/process-onboarding-agent/skills/governance-map.md +212 -0
- package/repository-agents/process-onboarding-agent/skills/hotfix-bolt.md +102 -0
- package/repository-agents/process-onboarding-agent/skills/knowledge-promotion.md +188 -0
- package/repository-agents/process-onboarding-agent/skills/new-engineer-induction.md +303 -0
- package/repository-agents/process-onboarding-agent/skills/nfr-bolt.md +117 -0
- package/repository-agents/process-onboarding-agent/skills/notifications.md +456 -0
- package/repository-agents/process-onboarding-agent/skills/process-health.md +252 -0
- package/repository-agents/process-onboarding-agent/skills/process-visualization.md +157 -0
- package/repository-agents/process-onboarding-agent/skills/product-engineering-essentials.md +261 -0
- package/repository-agents/process-onboarding-agent/skills/progress-digest.md +184 -0
- package/repository-agents/process-onboarding-agent/skills/release-readiness-checklist.md +259 -0
- package/repository-agents/process-onboarding-agent/skills/root-cause-analysis.md +151 -0
- package/repository-agents/process-onboarding-agent/skills/solution-shaping.md +98 -0
- package/repository-agents/process-onboarding-agent/skills/uat.md +267 -0
- package/repository-agents/process-skills-agent/onboard.md +68 -0
- package/repository-agents/process-skills-agent/skills-guide.md +404 -0
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
# Skill: New Engineer Induction
|
|
2
|
+
|
|
3
|
+
**Purpose:** Guide a new engineer through their first AI-DLC session. Explains the framework using the project's actual files and domain language — not a generic script — and produces a personal quick-reference card they can use from their second session onward.
|
|
4
|
+
|
|
5
|
+
**Trigger:** Engineer-initiated when joining an AI-DLC project for the first time. Invoked by saying "I'm new to this project", "run new engineer induction", or "walk me through how to work here."
|
|
6
|
+
|
|
7
|
+
**Never run automatically.** Only runs when explicitly requested.
|
|
8
|
+
|
|
9
|
+
**Duration:** This session takes approximately 30–45 minutes. Tell the engineer this upfront and confirm they have the time before beginning.
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## Step 1 — Welcome and Name
|
|
14
|
+
|
|
15
|
+
Ask:
|
|
16
|
+
|
|
17
|
+
> "Welcome. Before we start, what's your name? I'll use it to personalise the quick-reference card at the end."
|
|
18
|
+
|
|
19
|
+
Record the name. Then set expectations:
|
|
20
|
+
|
|
21
|
+
> "I'm going to walk you through how this project uses AI-DLC — the framework that governs how we work together. We'll cover: what the framework is, how the process runs, what you own versus what I do, and how to use the quality gate. At the end I'll create a quick-reference card you can keep.
|
|
22
|
+
>
|
|
23
|
+
> This takes about 30–45 minutes. If you'd prefer a faster version covering just the essentials, say 'quick tour' and I'll skip the practice section."
|
|
24
|
+
|
|
25
|
+
Wait for the engineer to confirm or request the quick tour before continuing.
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## Step 2 — Read the Project's Framework Files
|
|
30
|
+
|
|
31
|
+
Before saying anything substantive, read the following without prompting:
|
|
32
|
+
|
|
33
|
+
- The master rule file (`CLAUDE.md`, `.cursor/rules/project-rules.mdc` (or any `.mdc` under `.cursor/rules/`), `.cursorrules` (legacy), or `.github/copilot-instructions.md`)
|
|
34
|
+
- `process-onboarding-agent/guidelines/domain-glossary.md` (if it exists)
|
|
35
|
+
- `process-onboarding-agent/rules/prompt-quality-gate.md`
|
|
36
|
+
- `process-onboarding-agent/ops/build/backlog.md` (to understand current project state)
|
|
37
|
+
|
|
38
|
+
Do not present any of this content yet. Reading is preparation for the explanations in Steps 3–6.
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
42
|
+
## Step 3 — Explain the Framework
|
|
43
|
+
|
|
44
|
+
Walk the engineer through the master rule file section by section, in plain language. Do not read sections aloud — translate each one into a brief, conversational explanation. For each section, one paragraph maximum.
|
|
45
|
+
|
|
46
|
+
Structure your explanation as follows:
|
|
47
|
+
|
|
48
|
+
**What AI-DLC is (from Section 1):**
|
|
49
|
+
> "This project uses a framework called AI-DLC. It's not a tool — it's a set of agreements about how you and I work together. At its core: every feature starts with a written intent, every AI interaction is gated by a quality check, and every mistake feeds back into rules that prevent it from happening again. The framework lives in the `process-onboarding-agent/` folder — you'll see it referenced throughout our conversations."
|
|
50
|
+
|
|
51
|
+
**The process loop:**
|
|
52
|
+
> "The work runs in a continuous loop: Inception (you write what you want to build and why) → Build (I help you break it into units and write the code) → Operate (you run retros after each batch and I turn the findings into rule improvements) → back to Inception. The loop compounds — every retro makes the next build better."
|
|
53
|
+
|
|
54
|
+
**The project's stack and domain (from Section 1 of the master rule file):**
|
|
55
|
+
Summarise the project identity section in two or three sentences using the actual content. Highlight the system boundaries (what must never happen architecturally).
|
|
56
|
+
|
|
57
|
+
**The domain language (from domain-glossary.md if present):**
|
|
58
|
+
Pick the three terms most likely to trip up a new engineer and explain them:
|
|
59
|
+
> "Three terms you'll encounter that have specific meaning in this project: [term 1] means [definition]. [term 2] means [definition]. [term 3] means [definition]. There are more in `process-onboarding-agent/guidelines/domain-glossary.md` — read it before your first elaboration session."
|
|
60
|
+
|
|
61
|
+
**What you own (the engineer's responsibilities):**
|
|
62
|
+
> "Here's what I never do for you: I don't confirm that ACs are correct — you do. I don't decide whether the output is good enough to merge — you do. I don't run the tests — you do. I generate and assist; you verify and approve. If I produce something that passes all the checks but is still wrong for the business, that's a signal to update the rules — not to accept bad output."
|
|
63
|
+
|
|
64
|
+
Pause after this section and ask: "Any questions before we move to the quality gate?"
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
## Step 4 — Demonstrate the Quality Gate
|
|
69
|
+
|
|
70
|
+
Explain the quality gate using a concrete example from the project's domain.
|
|
71
|
+
|
|
72
|
+
**First, show a bad prompt:**
|
|
73
|
+
> "The quality gate checks two things: it has four components — Context, Constraints, Acceptance Criteria, and Output Format — and it never contains sensitive information you didn't mean to share. If either check fails, I stop and ask — I don't guess. Here's what a bad prompt looks like in this project:"
|
|
74
|
+
|
|
75
|
+
Write an example incomplete prompt using a plausible feature for this project's domain (derived from the intent files or backlog):
|
|
76
|
+
|
|
77
|
+
```
|
|
78
|
+
Bad prompt example:
|
|
79
|
+
"Add a [domain-relevant noun] form."
|
|
80
|
+
|
|
81
|
+
What's missing:
|
|
82
|
+
- Context: Who needs this? Where does it sit in the system?
|
|
83
|
+
- Constraints: Which rules and conventions apply? (read code-standards.md)
|
|
84
|
+
- Acceptance Criteria: What must be true when it's done?
|
|
85
|
+
- Output Format: Which files? New component or update existing?
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
**Then show a complete prompt using the same feature:**
|
|
89
|
+
|
|
90
|
+
```
|
|
91
|
+
Complete prompt example:
|
|
92
|
+
Context: [Engineer role] needs a [feature] on the [screen/module] so that [outcome].
|
|
93
|
+
Stack: [project stack from master rule file]. Follows patterns in [relevant file].
|
|
94
|
+
Constraints: Read process-onboarding-agent/rules/code-standards.md and process-onboarding-agent/rules/security.md before generating.
|
|
95
|
+
No inline styles. Auth check on every new endpoint.
|
|
96
|
+
ACs: 1. Given [precondition], when [action], then [outcome].
|
|
97
|
+
2. Given [error condition], when [action], then [error handling outcome].
|
|
98
|
+
Output: New file at [path]. Update [other file] to register it.
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
> "If you send me the bad version, I'll stop and ask for what's missing — every time, no exceptions. The gate exists because incomplete prompts produce output that looks correct but isn't."
|
|
102
|
+
|
|
103
|
+
**Then show the sensitive-data check:**
|
|
104
|
+
|
|
105
|
+
```
|
|
106
|
+
Prompt with exposed data:
|
|
107
|
+
"Debug this failing webhook call: curl -H 'Authorization: Bearer sk_live_51Hxxxx...' https://api.example.com/charge"
|
|
108
|
+
|
|
109
|
+
What I do:
|
|
110
|
+
- Stop before using or repeating the key back
|
|
111
|
+
- Name the category found ("this looks like a live API key")
|
|
112
|
+
- Ask you to confirm it's intentional and safe to have in this conversation, or to redact it and resend
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
> "This check runs on every prompt, not just ones missing a component — even a fully-specified request gets paused if it contains something like a credential, a customer's personal details, or an internal secret. Nothing sensitive gets written into code, logs, or commit messages without you confirming it first."
|
|
116
|
+
|
|
117
|
+
---
|
|
118
|
+
|
|
119
|
+
## Step 5 — Practice Elaboration (skip if quick tour)
|
|
120
|
+
|
|
121
|
+
Run a short practice elaboration using a real feature from the project's intent files or backlog, or a simple hypothetical if nothing suitable exists.
|
|
122
|
+
|
|
123
|
+
Explain what you're about to do:
|
|
124
|
+
|
|
125
|
+
> "I'll now run a compressed elaboration session. This is how every feature starts. I'll propose one unit at a time — name and purpose — then its acceptance criteria, then edge cases, then observability. You respond as you would in a real session: confirm, push back, or ask questions. We'll do two units."
|
|
126
|
+
|
|
127
|
+
Run the elaboration turn structure for two units:
|
|
128
|
+
1. Propose unit name and one-sentence purpose. Stop.
|
|
129
|
+
2. Propose ACs as a numbered list. Stop.
|
|
130
|
+
3. Surface one or two edge cases. Stop.
|
|
131
|
+
4. Ask the observability questions (success signal, failure signal, alert threshold). Stop.
|
|
132
|
+
5. Move to the second unit and repeat.
|
|
133
|
+
|
|
134
|
+
After both units, present the sign-off summary table:
|
|
135
|
+
|
|
136
|
+
```
|
|
137
|
+
Unit | Purpose | ACs | Edge cases | Observability
|
|
138
|
+
[1] | [...] | [N] | [N] | [status]
|
|
139
|
+
[2] | [...] | [N] | [N] | [status]
|
|
140
|
+
|
|
141
|
+
This is what sign-off looks like. In a real session: confirm this and I create the unit files.
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
Ask: "What questions do you have about the elaboration process?"
|
|
145
|
+
|
|
146
|
+
---
|
|
147
|
+
|
|
148
|
+
## Step 6 — Explain the Retro and Improvement Loop
|
|
149
|
+
|
|
150
|
+
Give a brief explanation of the retro cycle:
|
|
151
|
+
|
|
152
|
+
> "After every bolt — a planned batch of units — we run a retrospective. I drive it: I synthesise the findings, propose rule changes, and apply approved changes to the framework files immediately. The important thing for you to know is: every finding that doesn't become a rule change will recur. The retro is not a feelings exercise — it's the mechanism that makes the AI get better at working in this specific project over time."
|
|
153
|
+
|
|
154
|
+
Point to the relevant files:
|
|
155
|
+
> "Retro template: `process-onboarding-agent/ops/operate/retros/_template.md`. Improvement template: `process-onboarding-agent/ops/operate/improvements/_template.md`. You don't need to fill these in manually — I do it during the retro session."
|
|
156
|
+
|
|
157
|
+
---
|
|
158
|
+
|
|
159
|
+
## Step 6b — Set Up Notifications on This Machine
|
|
160
|
+
|
|
161
|
+
Read Section 10 (Notifications) of the master rule file. If it is absent or `Status: Disabled`, say one sentence — that the project does not use delivery notifications — and move on.
|
|
162
|
+
|
|
163
|
+
If it is **Enabled**, this engineer gets nothing until they set it up on their own machine, and nothing will tell them: an absent endpoint is a deliberate silent no-op, so their sessions simply never notify. Do not let them discover that weeks later.
|
|
164
|
+
|
|
165
|
+
> "This project sends Slack notifications — every time I stop (finished, asked you something, or waiting for your next prompt), when I need your approval, and at delivery moments like bolt complete or UAT sign-off. It's a personal setup: your own Slack channel, your own webhook, on your own machine. Nothing is shared and nothing is committed. Takes a few minutes, and it's the only setup step I can't do for you."
|
|
166
|
+
|
|
167
|
+
Then hand them the steps — do not attempt any of it yourself, do not ask them to paste the webhook URL into this conversation, and do not suggest they get a URL from a teammate:
|
|
168
|
+
|
|
169
|
+
1. Create a Slack channel to be notified in — private, or just them in it. Something self-evident like `#ai-dlc-[their-name]`.
|
|
170
|
+
2. Create their own Slack app and incoming webhook pointing at that channel: <https://api.slack.com/apps> → **Create New App → From scratch** → **Incoming Webhooks** on → **Add New Webhook to Workspace** → pick the channel → **Allow**. Copy the URL; it is a secret. (If the workspace requires admin approval to install apps, they wait for an admin — that is normal.)
|
|
171
|
+
3. Put it in a gitignored `scripts/notify.env` at the repo root, as one line: `SLACK_WEBHOOK_URL="<their URL>"`. This is the recommended route on every OS and shell — an environment variable in a shell profile works too, but only if it is in a file a *non-interactive* shell reads, which is `~/.zshenv` on zsh and nothing at all on bash.
|
|
172
|
+
4. Tell you when it is done, and you will send a test notification to confirm it arrives.
|
|
173
|
+
|
|
174
|
+
**Then check whether this project's hooks are shared or per engineer.** The turn-ended and needs-attention pings come from the AI tool's hook config (`.claude/settings.json`, `.cursor/hooks.json`, or `.github/hooks/notify.json`). If that path is committed, they already have them. If the tool's config directory is **gitignored** in this project — Section 10 says which — then hooks *and* the send-command allowlist are per engineer, and this joiner has neither. Walk them through adding both from the *Onboarding setup* steps in `{FRAMEWORK_ROOT}/skills/notifications.md`, or they will get the lifecycle notifications and none of the turn-ended ones, with nothing to indicate why.
|
|
175
|
+
|
|
176
|
+
The webhook is a personal credential, like an SSH key — teammates never swap them. Two people on one webhook means one person's session noise lands in the other's channel.
|
|
177
|
+
|
|
178
|
+
Point them at `{FRAMEWORK_ROOT}/skills/notifications.md` for the full detail, including the GUI-launch caveat if they start their AI tool from the Dock or Start menu rather than a terminal.
|
|
179
|
+
|
|
180
|
+
Record the outcome on the quick-reference card: either "notifications configured and tested" or "notifications not yet configured — see `skills/notifications.md`", so an unfinished setup is visible rather than forgotten.
|
|
181
|
+
|
|
182
|
+
---
|
|
183
|
+
|
|
184
|
+
## Step 7 — Produce the Quick-Reference Card
|
|
185
|
+
|
|
186
|
+
Write a quick-reference card to `process-onboarding-agent/guidelines/[engineer-name-slug]-quick-ref.md`. Use the engineer's name from Step 1 to personalise it. Populate every section from the project's actual files — not generic placeholders.
|
|
187
|
+
|
|
188
|
+
```markdown
|
|
189
|
+
# AI-DLC Quick Reference — [Engineer Name]
|
|
190
|
+
Generated: YYYY-MM-DD
|
|
191
|
+
|
|
192
|
+
---
|
|
193
|
+
|
|
194
|
+
## The Process Loop
|
|
195
|
+
|
|
196
|
+
Inception → Build → Operate → Improvements → (repeat)
|
|
197
|
+
|
|
198
|
+
- **Inception:** Write an intent file. Run mob elaboration.
|
|
199
|
+
- **Build:** Execute units one at a time. Review each output before moving on.
|
|
200
|
+
- **Operate:** Run retro after every bolt. Improvements are applied immediately.
|
|
201
|
+
|
|
202
|
+
---
|
|
203
|
+
|
|
204
|
+
## How to Invoke Each Ceremony
|
|
205
|
+
|
|
206
|
+
| What you want to do | What to say |
|
|
207
|
+
|---|---|
|
|
208
|
+
| Start a new feature | "Run a mob elaboration for the [intent name] intent" |
|
|
209
|
+
| Execute a unit | "Execute unit [name] from bolt [name]" |
|
|
210
|
+
| Plan a batch of work | "Plan a bolt from the open units in the backlog" |
|
|
211
|
+
| Run a retro | "Run a retro for bolt [name]" |
|
|
212
|
+
| Check project health | "Run process health" |
|
|
213
|
+
| Get a stakeholder update | "Generate a progress digest for [intent]" |
|
|
214
|
+
| Run UAT | "Run UAT for [intent]" |
|
|
215
|
+
| Audit dependencies | "Run dependency audit" |
|
|
216
|
+
| Get help (new) | "Run new engineer induction" |
|
|
217
|
+
|
|
218
|
+
---
|
|
219
|
+
|
|
220
|
+
## The Quality Gate — Two Checks
|
|
221
|
+
|
|
222
|
+
**Four components required.** Every prompt must have all four or I will stop and ask:
|
|
223
|
+
|
|
224
|
+
1. **Context** — who needs this, what it does, where it sits
|
|
225
|
+
2. **Constraints** — which rules apply (read `process-onboarding-agent/rules/code-standards.md` first)
|
|
226
|
+
3. **Acceptance Criteria** — testable Given/When/Then statements
|
|
227
|
+
4. **Output Format** — which files, new or update existing
|
|
228
|
+
|
|
229
|
+
**Sensitive Data Check — runs on every prompt, independent of the four components above.** If a prompt contains a credential, API key, secret, or personal data, I stop before using or repeating it back, name the category found, and ask you to confirm it's intentional or redact it — even when all four components above are already complete.
|
|
230
|
+
|
|
231
|
+
---
|
|
232
|
+
|
|
233
|
+
## What You Own (I Never Do These for You)
|
|
234
|
+
|
|
235
|
+
- Confirming ACs are correct before elaboration sign-off
|
|
236
|
+
- Reviewing output before merging — tests passing is not sufficient
|
|
237
|
+
- Running the tests
|
|
238
|
+
- Deciding whether a retro finding should become a rule change
|
|
239
|
+
|
|
240
|
+
---
|
|
241
|
+
|
|
242
|
+
## Key Domain Terms
|
|
243
|
+
|
|
244
|
+
[Top 5 terms from domain-glossary.md with one-line definitions, using the project's actual glossary]
|
|
245
|
+
|
|
246
|
+
- **[Term]:** [definition]
|
|
247
|
+
- **[Term]:** [definition]
|
|
248
|
+
- **[Term]:** [definition]
|
|
249
|
+
- **[Term]:** [definition]
|
|
250
|
+
- **[Term]:** [definition]
|
|
251
|
+
|
|
252
|
+
Full glossary: `process-onboarding-agent/guidelines/domain-glossary.md`
|
|
253
|
+
|
|
254
|
+
---
|
|
255
|
+
|
|
256
|
+
## System Boundaries — Never Break These
|
|
257
|
+
|
|
258
|
+
[List the system boundary rules from the master rule file Section 1, verbatim]
|
|
259
|
+
|
|
260
|
+
- [boundary rule]
|
|
261
|
+
- [boundary rule]
|
|
262
|
+
|
|
263
|
+
---
|
|
264
|
+
|
|
265
|
+
## Key Files
|
|
266
|
+
|
|
267
|
+
| File | Purpose |
|
|
268
|
+
|---|---|
|
|
269
|
+
| `CLAUDE.md` (or `.cursor/rules/project-rules.mdc` / any `.mdc` under `.cursor/rules/` / `.cursorrules` legacy) | Master rule file — governs every session |
|
|
270
|
+
| `process-onboarding-agent/ops/build/backlog.md` | All units by status |
|
|
271
|
+
| `process-onboarding-agent/rules/prompt-quality-gate.md` | Quality gate definition |
|
|
272
|
+
| `process-onboarding-agent/rules/code-standards.md` | Coding conventions for this project |
|
|
273
|
+
| `process-onboarding-agent/guidelines/domain-glossary.md` | Business term definitions |
|
|
274
|
+
| `process-onboarding-agent/guidelines/edge-cases.md` | Known failure modes |
|
|
275
|
+
| `process-onboarding-agent/ops/inception/dependency-map.md` | Intent dependency map |
|
|
276
|
+
|
|
277
|
+
---
|
|
278
|
+
|
|
279
|
+
## My Machine Setup
|
|
280
|
+
|
|
281
|
+
| Item | Status |
|
|
282
|
+
|---|---|
|
|
283
|
+
| Slack notifications — endpoint | [configured and tested / not configured — see `skills/notifications.md`] |
|
|
284
|
+
| Slack notifications — hooks + allowlist | [shared via committed config / added locally / not set up] |
|
|
285
|
+
|
|
286
|
+
*Omit this section if the project has no Notifications section, or has it disabled.*
|
|
287
|
+
|
|
288
|
+
---
|
|
289
|
+
|
|
290
|
+
## Common Mistakes
|
|
291
|
+
|
|
292
|
+
| Mistake | What happens | What to do instead |
|
|
293
|
+
|---|---|---|
|
|
294
|
+
| Sending an incomplete prompt | I stop and ask for the missing component | Include all four gate components |
|
|
295
|
+
| Pasting a credential, secret, or personal data into a prompt | I stop and ask you to confirm it's intentional or redact it | Redact the value first, or confirm deliberately before continuing |
|
|
296
|
+
| Accepting output without reviewing | Bugs reach the codebase | Run the review checklist before merging |
|
|
297
|
+
| Skipping the retro | Mistakes recur in the next bolt | Run the retro immediately after every bolt |
|
|
298
|
+
| Writing ACs that test implementation | Tests pass but behavior is wrong | ACs describe outcomes, not how the code works |
|
|
299
|
+
```
|
|
300
|
+
|
|
301
|
+
Confirm completion:
|
|
302
|
+
|
|
303
|
+
> "Quick-reference card written to `process-onboarding-agent/guidelines/[engineer-name-slug]-quick-ref.md`. That's everything for the induction. You're ready to run a real elaboration session — say 'Run a mob elaboration for [intent name]' to begin. Come back to this card whenever you need a reminder."
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
# Skill: NFR Bolt
|
|
2
|
+
|
|
3
|
+
**Purpose:** A bolt workflow for non-functional quality attribute improvements — performance, security hardening, accessibility, reliability, observability, or scalability. Operates on existing intents rather than creating a new one. Every AC must carry a measurable threshold; vague targets ("faster", "more secure") are rejected.
|
|
4
|
+
|
|
5
|
+
**Trigger:** Engineer says "improve performance of X", "harden security for X", "accessibility improvements", "NFR bolt for X", "non-functional work on X", or "reliability improvements to X". Routed from Section 6 of the master rule file. Do not create a new intent file — load this skill and reference the existing affected intents instead.
|
|
6
|
+
|
|
7
|
+
**Requires:** A fully onboarded AI-DLC project with at least one delivered intent. The master rule file, quality gate (`rules/prompt-quality-gate.md`), review checklist (`skills/review-checklist.md`), dependency map (`ops/inception/dependency-map.md`), unit and bolt templates, and the `ops/` folder structure must all be in place. This skill is a bolt-type variant that operates within the framework — it is not a standalone performance or security checklist. If AI-DLC is not yet installed, start with `process-onboarding-agent/onboard.md` first.
|
|
8
|
+
|
|
9
|
+
**What this skill does not replace:** intent files for existing features (it references them), mob elaboration (for new features), UAT, or the standard retro. An NFR bolt improves how existing features behave — it does not add new behavior. Any NFR change that requires new behavior visible to users must be captured as a new intent using the standard feature flow.
|
|
10
|
+
|
|
11
|
+
NFR categories: Performance · Security Hardening · Accessibility · Reliability / Resilience · Observability · Scalability
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## Step 1 — NFR Intake
|
|
16
|
+
|
|
17
|
+
Ask the engineer four questions:
|
|
18
|
+
|
|
19
|
+
> "To scope this NFR bolt accurately:
|
|
20
|
+
> 1. **Which quality attribute?** Performance / Security Hardening / Accessibility / Reliability / Observability / Scalability / Other — specify.
|
|
21
|
+
> 2. **Which component or feature?** Name the service, module, or user flow being improved.
|
|
22
|
+
> 3. **What is the current state?** A measurement or description of today's behavior — e.g. p95 latency is 1.2 s; screen reader navigation is broken on checkout; no retry logic on payment calls.
|
|
23
|
+
> 4. **What is the target threshold?** A specific, measurable outcome — e.g. p95 latency < 300 ms; WCAG 2.1 AA compliant; three retries with exponential backoff on payment calls."
|
|
24
|
+
|
|
25
|
+
Do not proceed without a measurable target threshold. "Better", "faster", and "more secure" are not valid thresholds — ask again until a number or verifiable criterion is provided.
|
|
26
|
+
|
|
27
|
+
**Scope the threshold to what the change CONTROLS, not to the outcome the engineer wishes for.** A measurable threshold can still be the wrong threshold: if it depends on defects the unit does not touch, then doing the work perfectly cannot satisfy it, and the bolt lands in Step 7's Blocked state for reasons that have nothing to do with the work.
|
|
28
|
+
|
|
29
|
+
The test at intake: **name the failure modes that could redden this threshold, then strike out every one the change cannot reach.** If any remain, the threshold is measuring someone else's bug. Two consequences worth stating in the bolt file:
|
|
30
|
+
|
|
31
|
+
- Prefer a threshold on the **specific signal** the change governs over a threshold on a **composite gate result** (e.g. "the whole suite is green"), which aggregates every unrelated defect in the system.
|
|
32
|
+
- Where the composite really is the goal, the prerequisite fixes belong in the plan — the same rule this skill already applies to end-to-end thresholds.
|
|
33
|
+
|
|
34
|
+
Declaring a defect out of scope in the unit's Scope section does **not** protect the threshold from it; scope and threshold must agree, and only the threshold closes the bolt. And if a threshold must be narrowed after measurement, record the original wording, why it failed, and who decided — a threshold quietly rewritten to match its result is not a threshold.
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## Step 2 — Identify Affected Intents
|
|
39
|
+
|
|
40
|
+
Read `process-onboarding-agent/ops/inception/dependency-map.md` and the backlog. Identify which existing intents or units touch the component being improved.
|
|
41
|
+
|
|
42
|
+
State the affected intents to the engineer:
|
|
43
|
+
|
|
44
|
+
> "This NFR bolt affects the following existing intents: [list]. I will cross-reference this bolt in each intent's Implementation Summary after completion."
|
|
45
|
+
|
|
46
|
+
If the NFR improvement changes behavior visible to users (e.g. a new error retry message, a changed loading state): flag those intents' ACs for review after the bolt is done.
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
## Step 3 — Establish the Baseline
|
|
51
|
+
|
|
52
|
+
Before generating any unit, confirm the current measured value:
|
|
53
|
+
|
|
54
|
+
> "What is the current measured value for [the threshold from Step 1]? This becomes the before-state for verification."
|
|
55
|
+
|
|
56
|
+
If no measurement exists: the first unit in this bolt must establish the measurement tooling or instrumentation before any improvement work begins. Record the baseline once measured.
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
## Step 4 — Create the Units
|
|
61
|
+
|
|
62
|
+
NFR bolts may contain multiple units if the improvement spans more than one component. Apply the standard unit template with these constraints:
|
|
63
|
+
|
|
64
|
+
**ACs must use measurable thresholds:**
|
|
65
|
+
```
|
|
66
|
+
Given [the component under load / in its operational context]
|
|
67
|
+
When [the NFR scenario — e.g. 100 concurrent users, a screen reader navigating checkout]
|
|
68
|
+
Then [the measurable threshold is met — e.g. p95 response time < 300 ms with no errors]
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
Vague ACs such as "the page loads faster" are not accepted.
|
|
72
|
+
|
|
73
|
+
**Observability is mandatory on every NFR unit:**
|
|
74
|
+
- Metric or signal that confirms the threshold is met in production
|
|
75
|
+
- Alert threshold that would indicate regression back below the target
|
|
76
|
+
|
|
77
|
+
**No feature scope creep:** NFR units must not change business logic. If a performance fix requires a data model change that alters behavior, that is a new feature intent — not part of this NFR bolt. Flag it and defer.
|
|
78
|
+
|
|
79
|
+
---
|
|
80
|
+
|
|
81
|
+
## Step 5 — Risk Assessment
|
|
82
|
+
|
|
83
|
+
Run `process-onboarding-agent/skills/bolt-risk-assessment.md` before any unit executes.
|
|
84
|
+
|
|
85
|
+
NFR bolts often have wider blast radii than they appear: performance changes can alter caching behavior, security hardening can break existing integrations, accessibility changes can shift layout for sighted users. Do not skip this step.
|
|
86
|
+
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
## Step 6 — Execute
|
|
90
|
+
|
|
91
|
+
Execute units in the planned order. Review each unit's output using `process-onboarding-agent/skills/review-checklist.md` before proceeding to the next.
|
|
92
|
+
|
|
93
|
+
---
|
|
94
|
+
|
|
95
|
+
## Step 7 — Verify the Threshold
|
|
96
|
+
|
|
97
|
+
After all units are Done, verify against the baseline established in Step 3:
|
|
98
|
+
|
|
99
|
+
> "Please measure [the metric from Step 1] and compare it against the baseline: [value from Step 3]."
|
|
100
|
+
|
|
101
|
+
The bolt is not Done until the threshold is verified. If the threshold is not met: set bolt status to Blocked, state the gap (measured vs. target), and propose the next step. Do not silently mark it Done.
|
|
102
|
+
|
|
103
|
+
---
|
|
104
|
+
|
|
105
|
+
## Step 8 — Update Affected Intent Records
|
|
106
|
+
|
|
107
|
+
For each intent identified in Step 2:
|
|
108
|
+
- Add a note in its Implementation Summary referencing this NFR bolt and the improvement delivered
|
|
109
|
+
- If any of the intent's ACs are now outdated: flag them for revision in the next elaboration session for that intent
|
|
110
|
+
|
|
111
|
+
---
|
|
112
|
+
|
|
113
|
+
## Step 9 — Close
|
|
114
|
+
|
|
115
|
+
1. Mark all units Done. Mark bolt Done. Update the backlog.
|
|
116
|
+
2. Record the before/after measurement explicitly in the retro file.
|
|
117
|
+
3. Create the retro and run the Post-Retro Improvement Workflow.
|