@hegemonart/get-design-done 1.14.4 → 1.14.7

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 (45) hide show
  1. package/.claude-plugin/marketplace.json +7 -2
  2. package/.claude-plugin/plugin.json +6 -1
  3. package/CHANGELOG.md +106 -0
  4. package/README.md +17 -0
  5. package/agents/design-executor.md +41 -0
  6. package/agents/design-figma-writer.md +61 -1
  7. package/agents/design-verifier.md +2 -2
  8. package/connections/connections.md +2 -0
  9. package/connections/figma.md +10 -0
  10. package/connections/preview.md +9 -5
  11. package/hooks/budget-enforcer.js +2 -2
  12. package/hooks/gdd-bash-guard.js +49 -0
  13. package/hooks/gdd-decision-injector.js +196 -0
  14. package/hooks/gdd-mcp-circuit-breaker.js +140 -0
  15. package/hooks/gdd-protected-paths.js +114 -0
  16. package/hooks/hooks.json +36 -0
  17. package/package.json +1 -1
  18. package/reference/STATE-TEMPLATE.md +10 -1
  19. package/reference/config-schema.md +29 -0
  20. package/reference/cycle-handoff-preamble.md +22 -0
  21. package/reference/figma-sandbox.md +19 -0
  22. package/reference/mcp-budget.default.json +13 -0
  23. package/reference/meta-rules.md +66 -0
  24. package/reference/protected-paths.default.json +18 -0
  25. package/reference/registry.json +34 -0
  26. package/reference/registry.schema.json +52 -0
  27. package/reference/retrieval-contract.md +30 -0
  28. package/reference/schemas/mcp-budget.schema.json +21 -0
  29. package/reference/schemas/protected-paths.schema.json +19 -0
  30. package/reference/shared-preamble.md +6 -57
  31. package/scripts/aggregate-agent-metrics.js +9 -0
  32. package/scripts/build-intel.cjs +20 -0
  33. package/scripts/injection-patterns.cjs +42 -1
  34. package/scripts/lib/blast-radius.cjs +97 -0
  35. package/scripts/lib/dangerous-patterns.cjs +118 -0
  36. package/scripts/lib/glob-match.cjs +57 -0
  37. package/scripts/lib/reference-registry.cjs +101 -0
  38. package/skills/connections/SKILL.md +477 -0
  39. package/skills/new-project/SKILL.md +1 -1
  40. package/skills/pause/SKILL.md +3 -0
  41. package/skills/progress/SKILL.md +12 -0
  42. package/skills/reflect/SKILL.md +2 -0
  43. package/skills/resume/SKILL.md +3 -0
  44. package/skills/scan/SKILL.md +8 -0
  45. package/skills/verify/SKILL.md +4 -3
@@ -0,0 +1,477 @@
1
+ ---
2
+ name: gdd-connections
3
+ description: "Onboarding wizard for external integrations. Probes all 12 connections, recommends based on project type, walks the user through setup (auto-run MCP install or copy-command fallback), writes results to STATE.md <connections>. Re-runnable anytime — not tied to project init. Invoke after /gdd:new-project, or whenever you want to add, inspect, or skip a connection."
4
+ argument-hint: "[list | <connection-name> | --auto]"
5
+ user-invocable: true
6
+ tools: Read, Write, Bash, Glob, Grep, AskUserQuestion, ToolSearch
7
+ ---
8
+
9
+ # /gdd:connections
10
+
11
+ Interactive onboarding for the 12 external integrations the pipeline supports. Replaces "probe silently at scan entry and hope the user noticed" with an explicit "here is what can plug in, here is how."
12
+
13
+ Canonical connection specs live in `connections/*.md`. The capability matrix and probe-pattern spec live in `connections/connections.md`. This skill is the **user-facing front end** for those specs.
14
+
15
+ ---
16
+
17
+ ## Invocation Modes
18
+
19
+ | Command | Behavior |
20
+ |---|---|
21
+ | `/gdd:connections` | Interactive wizard (default). Probes all, shows summary, asks what to configure. |
22
+ | `/gdd:connections list` | Read-only table. Probes all, writes STATE.md, no prompts, exits. |
23
+ | `/gdd:connections <name>` | Jump straight to setup for one connection (e.g. `/gdd:connections figma`). |
24
+ | `/gdd:connections --auto` | CI mode. Probes, writes STATE.md, no prompts, no install attempts. |
25
+
26
+ ---
27
+
28
+ ## State Integration
29
+
30
+ 1. Read `.design/STATE.md` — if missing, that's fine; this skill does not require a pipeline run to be in progress.
31
+ 2. Read `.design/config.json` — if missing, use defaults. If `connections_onboarding` block is present with `pending_verification`, this is a resume — see Step 6.
32
+ 3. Read `connections.skip[]` from config — never re-prompt for skipped connections (user opted out).
33
+ 4. Update `last_checkpoint` in STATE.md at skill exit if STATE.md exists.
34
+
35
+ ---
36
+
37
+ ## Step 1 — Probe all 12 connections
38
+
39
+ Run every probe below in order. MCP probes call `ToolSearch` first (deferred tools fail silently without it). Write every result to `STATE.md <connections>` when done.
40
+
41
+ ### MCP-based probes
42
+
43
+ **figma:**
44
+ ```
45
+ ToolSearch({ query: "select:mcp__figma__get_metadata", max_results: 1 })
46
+ → Empty → figma: not_configured
47
+ → Non-empty → call mcp__figma__get_metadata
48
+ Success → figma: available
49
+ Error → figma: unavailable
50
+ ```
51
+
52
+ **refero:**
53
+ ```
54
+ ToolSearch({ query: "refero", max_results: 5 })
55
+ → Empty → refero: not_configured
56
+ → Non-empty → refero: available
57
+ ```
58
+
59
+ **preview:**
60
+ ```
61
+ ToolSearch({ query: "Claude_Preview", max_results: 5 })
62
+ → Empty → preview: not_configured
63
+ → Non-empty → call mcp__Claude_Preview__preview_list
64
+ Success → preview: available
65
+ Error → preview: unavailable
66
+ ```
67
+
68
+ **pinterest:**
69
+ ```
70
+ ToolSearch({ query: "mcp-pinterest", max_results: 5 })
71
+ → Empty → pinterest: not_configured
72
+ → Non-empty → pinterest: available
73
+ ```
74
+
75
+ **paper-design:**
76
+ ```
77
+ ToolSearch({ query: "mcp__paper", max_results: 5 })
78
+ → Empty → paper_design: not_configured
79
+ → Non-empty → paper_design: available
80
+ ```
81
+
82
+ **21st-dev:**
83
+ ```
84
+ ToolSearch({ query: "mcp__21st", max_results: 5 })
85
+ → Empty → twenty_first: not_configured
86
+ → Non-empty → twenty_first: available
87
+ ```
88
+
89
+ **magic-patterns:**
90
+ ```
91
+ ToolSearch({ query: "mcp__magic_patterns", max_results: 5 })
92
+ → Empty → magic_patterns: not_configured
93
+ → Non-empty → magic_patterns: available
94
+ ```
95
+
96
+ ### Non-MCP probes
97
+
98
+ **storybook** (HTTP):
99
+ ```
100
+ Bash: curl -sf http://localhost:6006/index.json 2>/dev/null
101
+ → Success → storybook: available
102
+ → Fail → curl -sf http://localhost:6006/stories.json 2>/dev/null
103
+ Success → storybook: available
104
+ Fail → storybook: not_configured
105
+ ```
106
+
107
+ **chromatic** (CLI + env):
108
+ ```
109
+ Bash: command -v chromatic >/dev/null 2>&1 || npx --yes chromatic --version 2>/dev/null
110
+ → Fail (non-zero) → chromatic: not_configured
111
+ → Success → check env CHROMATIC_PROJECT_TOKEN
112
+ Empty → chromatic: unavailable
113
+ Set → chromatic: available
114
+ ```
115
+
116
+ **graphify** (CLI + file):
117
+ ```
118
+ Bash: node "$HOME/.claude/get-shit-done/bin/gsd-tools.cjs" graphify status 2>/dev/null
119
+ → Error or enabled:false → graphify: not_configured
120
+ → enabled:true → check graphify-out/graph.json exists
121
+ Absent → graphify: unavailable
122
+ Present → graphify: available
123
+ ```
124
+
125
+ **pencil-dev** (file probe):
126
+ ```
127
+ Bash: find . -name "*.pen" -not -path "*/node_modules/*" -not -path "*/.git/*" 2>/dev/null | head -1
128
+ → Empty → pencil_dev: not_configured
129
+ → Non-empty → pencil_dev: available
130
+ ```
131
+
132
+ **claude-design** (file probe — handoff bundle):
133
+ ```
134
+ Bash: ls .design/handoff/ 2>/dev/null || find . -maxdepth 3 \
135
+ \( -name "*.claude-design.html" -o -name "*.claude-design.zip" \
136
+ -o -name "claude-design-*.html" \) 2>/dev/null | head -1
137
+ → Empty → claude_design: not_configured
138
+ → Non-empty → claude_design: available
139
+ ```
140
+
141
+ After all 12 probes complete, merge results into STATE.md `<connections>`. Preserve the three-value schema verbatim (`available | unavailable | not_configured`). Do not add new values.
142
+
143
+ ---
144
+
145
+ ## Step 2 — Categorize and build summary
146
+
147
+ For each probe result, assign to one of four buckets:
148
+
149
+ ### Project-hint detection
150
+
151
+ Run once, cache in-memory:
152
+
153
+ ```bash
154
+ # Framework / stack hints
155
+ HAS_TAILWIND=$( ls tailwind.config.* 2>/dev/null | head -1 )
156
+ HAS_STORYBOOK_DIR=$( test -d .storybook && echo yes )
157
+ HAS_PEN_FILES=$( find . -name "*.pen" -not -path "*/node_modules/*" 2>/dev/null | head -1 )
158
+ HAS_REACT=$( grep -l '"react"' package.json 2>/dev/null )
159
+ HAS_FIGMA_HINT=$( grep -r "figma\.com/file" -l . --include="*.md" 2>/dev/null | head -1 )
160
+ ```
161
+
162
+ ### Bucketing rules
163
+
164
+ | Bucket | Criteria |
165
+ |---|---|
166
+ | **available** | probe returned `available` |
167
+ | **recommended** | probe returned `not_configured` AND matches a project hint below |
168
+ | **optional** | probe returned `not_configured` AND no project hint match |
169
+ | **skipped** | name appears in `config.json connections.skip[]` |
170
+ | **unavailable** | probe returned `unavailable` (configured but broken — needs attention) |
171
+
172
+ ### Recommendation mapping
173
+
174
+ | Project hint | Recommend |
175
+ |---|---|
176
+ | `HAS_TAILWIND` or `HAS_FIGMA_HINT` | figma |
177
+ | `HAS_STORYBOOK_DIR` or storybook available | storybook, chromatic |
178
+ | `HAS_PEN_FILES` | pencil-dev |
179
+ | `HAS_REACT` | 21st-dev, magic-patterns |
180
+ | Always | refero, preview |
181
+
182
+ ---
183
+
184
+ ## Step 3 — Print summary table
185
+
186
+ ```
187
+ ━━━ Connections ━━━━━━━━━━━━━━━━━━━━━━━━━━━
188
+ Available (<N>)
189
+ ✓ <name> <one-line detail from probe>
190
+ ...
191
+
192
+ Unavailable (<N>) — configured but not responding
193
+ ✗ <name> <reason>
194
+ ...
195
+
196
+ Recommended for this project (<N>)
197
+ ○ <name> <one-line value prop>
198
+ ...
199
+
200
+ Optional (<N>)
201
+ ○ <name> <one-line value prop>
202
+ ...
203
+
204
+ Skipped by you (<N>)
205
+ — <name> (re-enable: /gdd:connections <name>)
206
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
207
+ ```
208
+
209
+ One-line value props (use verbatim):
210
+
211
+ | Name | Value prop |
212
+ |---|---|
213
+ | figma | design-token extraction, annotations, Code Connect |
214
+ | refero | design reference search for discover stage |
215
+ | preview | live browser screenshots for verify visual checks |
216
+ | storybook | component inventory + per-story a11y |
217
+ | chromatic | visual regression against your Storybook baseline |
218
+ | graphify | knowledge-graph queries over component↔token↔decision |
219
+ | pinterest | visual inspiration collection |
220
+ | claude-design | Claude Design handoff bundle ingestion |
221
+ | paper-design | bidirectional canvas (free tier: 100 calls/week) |
222
+ | pencil-dev | `.pen` spec files as canonical design source |
223
+ | 21st-dev | AI component generator (marketplace search) |
224
+ | magic-patterns | AI component generator (DS-aware) |
225
+
226
+ ---
227
+
228
+ ## Step 4 — Route by mode
229
+
230
+ ### Mode: `list` or `--auto`
231
+
232
+ After printing the summary, write STATE.md, append one-line hint: `Run /gdd:connections to configure.` Emit `## CONNECTIONS COMPLETE`. Exit.
233
+
234
+ ### Mode: `<connection-name>`
235
+
236
+ Skip the top-level AskUserQuestion. Jump directly to Step 5 for that single connection.
237
+
238
+ ### Mode: interactive (default)
239
+
240
+ AskUserQuestion:
241
+
242
+ ```
243
+ question: "What would you like to do?"
244
+ options:
245
+ - "Configure recommended (<N>)" → loop Step 5 over recommended bucket
246
+ - "Pick one by one" → loop Step 5 over all not_configured
247
+ - "Configure all optional" → loop Step 5 over optional bucket
248
+ - "Re-check a specific connection" → prompt for name, run Step 1 for it only
249
+ - "Exit" → emit ## CONNECTIONS COMPLETE, exit
250
+ ```
251
+
252
+ If recommended bucket is empty, swap that option for "Show all 12 and pick."
253
+
254
+ ---
255
+
256
+ ## Step 5 — Per-connection setup screen
257
+
258
+ For each target connection:
259
+
260
+ ### 5.1 Read the spec
261
+
262
+ Read `connections/<name>.md`. Extract:
263
+ - The "Setup" section (prerequisites + install command)
264
+ - The "Contributes at" row from the capability matrix (stages affected)
265
+
266
+ ### 5.2 Present the screen
267
+
268
+ Print:
269
+
270
+ ```
271
+ ┌─ <name> ──────────────────────────────────────
272
+ │ Status: <current probe result>
273
+ │ Contributes: <one-line value prop from Step 3>
274
+ │ Stages affected: <list from capability matrix>
275
+ │ Requires: <prereqs line from spec>
276
+
277
+ │ Setup command:
278
+ │ <install command from spec>
279
+ └───────────────────────────────────────────────
280
+ ```
281
+
282
+ ### 5.3 AskUserQuestion
283
+
284
+ ```
285
+ question: "Install <name>?"
286
+ options:
287
+ - "Run install command now" → 5.4a (auto-run path)
288
+ - "Copy command — I'll run it" → 5.4b (manual path)
289
+ - "Skip for now" → 5.4c (no config change)
290
+ - "Never ask again" → 5.4d (add to skip list)
291
+ ```
292
+
293
+ ### 5.4 Auto-run eligibility matrix
294
+
295
+ **Only auto-run if the install command is reversible.** The matrix:
296
+
297
+ | Connection | Install kind | Auto-run? | Rationale |
298
+ |---|---|---|---|
299
+ | figma | `claude mcp add` (remote MCP) | ✓ yes | Reversible via `claude mcp remove` |
300
+ | preview | built-in, no install | — | Already present or not — no command to run |
301
+ | paper-design | `claude mcp add` | ✓ yes | Reversible |
302
+ | magic-patterns | `claude mcp add` | ✓ yes | Reversible |
303
+ | pinterest | `npx -y @smithery/cli install` | ✓ yes | Smithery CLI manages entry |
304
+ | refero | vendor-specific install | ✗ no | Vendor doesn't document a stable CLI — print link only |
305
+ | storybook | `npx storybook init` | ✗ no | Mutates repo files — force manual |
306
+ | chromatic | `npm install --save-dev chromatic` + env var | ✗ no | Writes package.json + needs `CHROMATIC_PROJECT_TOKEN` — force manual |
307
+ | graphify | `pip install` + `gsd-tools config-set` | ✗ no | Python install + cross-tool config — force manual |
308
+ | 21st-dev | `npx @21st-dev/magic init` + env var | ✗ no | Env var required — force manual |
309
+ | pencil-dev | VS Code extension | ✗ no | IDE-level install — force manual |
310
+ | claude-design | handoff bundle drop | ✗ no | User-driven file drop — force manual |
311
+
312
+ For non-auto-run connections, hide the "Run install command now" option entirely in 5.3. Only show the three remaining options.
313
+
314
+ ### 5.4a — Auto-run path
315
+
316
+ Bash the install command. On success:
317
+ - Print stdout.
318
+ - Print: `"Installed. Session restart required before <name> is usable."`
319
+ - Append `<name>` to `.design/config.json > connections_onboarding.pending_verification[]`.
320
+
321
+ On failure:
322
+ - Print stderr.
323
+ - Print: `"Install failed. Copy the command and run it manually, then rerun /gdd:connections <name> to verify."`
324
+ - Do not record pending_verification.
325
+
326
+ ### 5.4b — Manual path
327
+
328
+ Print the install command inside a fenced code block for easy copy:
329
+
330
+ ````
331
+ ```bash
332
+ <install command>
333
+ ```
334
+ ````
335
+
336
+ Print: `"After installing, restart the session and run /gdd:connections <name> to verify."`
337
+
338
+ Append `<name>` to `connections_onboarding.pending_verification[]`.
339
+
340
+ ### 5.4c — Skip for now
341
+
342
+ No config change. Continue loop.
343
+
344
+ ### 5.4d — Never ask again
345
+
346
+ Read `.design/config.json`. Ensure `connections.skip` is an array. Append `<name>` if not present. Write back.
347
+
348
+ ### 5.5 After every per-connection screen
349
+
350
+ If mode is `<connection-name>` (single-target invocation), skip straight to Step 6. Otherwise continue the loop.
351
+
352
+ ---
353
+
354
+ ## Step 6 — Verification pass
355
+
356
+ Re-probe every connection whose name appears in `connections_onboarding.pending_verification[]`. For each:
357
+
358
+ - Now `available` → remove from `pending_verification[]`. Update STATE.md.
359
+ - Still `not_configured` → leave in `pending_verification[]`. User probably needs a session restart.
360
+ - Now `unavailable` → leave in `pending_verification[]`, print: `"<name> installed but probe errored — OAuth or auth may be required."`
361
+
362
+ Write STATE.md `<connections>` and `.design/config.json`.
363
+
364
+ ### Print summary
365
+
366
+ ```
367
+ ━━━ Setup complete ━━━
368
+ Newly available: <list>
369
+ Still pending (needs session restart): <list>
370
+ Skipped permanently: <list>
371
+ ━━━━━━━━━━━━━━━━━━━━━
372
+ ```
373
+
374
+ If any pending remain, print: `"After restarting the session, run /gdd:connections to verify remaining."`
375
+
376
+ If no pending remain and at least one install happened, print: `"Run /gdd:scan to start your first cycle, or /gdd:brief to capture a design problem."`
377
+
378
+ ---
379
+
380
+ ## Resumability
381
+
382
+ If `.design/config.json > connections_onboarding.pending_verification[]` is non-empty at entry, this is a resumed session (most likely after a restart for a just-installed MCP):
383
+
384
+ 1. Print: `"Resuming — <N> connections pending verification: <list>"`
385
+ 2. Run Step 6 (verification pass) immediately.
386
+ 3. If resumption completes cleanly (empty pending list), emit `## CONNECTIONS COMPLETE` and exit — do not re-enter the wizard.
387
+ 4. Otherwise, fall through to Step 3 (summary) with the still-pending connections visible as `unavailable`.
388
+
389
+ ---
390
+
391
+ ## Config file writes
392
+
393
+ ### `.design/config.json > connections.skip[]`
394
+
395
+ Pattern: read whole file, merge one field, write back (matches `/gdd:settings` pattern).
396
+
397
+ ```json
398
+ {
399
+ "model_profile": "balanced",
400
+ "parallelism": { ... },
401
+ "connections": {
402
+ "skip": ["pinterest", "graphify"]
403
+ }
404
+ }
405
+ ```
406
+
407
+ ### `.design/config.json > connections_onboarding` (scratch block)
408
+
409
+ Deleted automatically when empty after a verification pass:
410
+
411
+ ```json
412
+ {
413
+ "connections_onboarding": {
414
+ "started_at": "<ISO 8601>",
415
+ "pending_verification": ["figma", "chromatic"]
416
+ }
417
+ }
418
+ ```
419
+
420
+ ### `STATE.md <connections>` write
421
+
422
+ Always merge, never replace — other stages may have written entries this skill did not probe. Example merge:
423
+
424
+ Before:
425
+ ```xml
426
+ <connections>
427
+ figma: not_configured
428
+ refero: not_configured
429
+ </connections>
430
+ ```
431
+
432
+ After running this skill with figma install succeeded:
433
+ ```xml
434
+ <connections>
435
+ figma: available
436
+ refero: not_configured
437
+ pinterest: not_configured
438
+ preview: available
439
+ storybook: available
440
+ chromatic: not_configured
441
+ graphify: not_configured
442
+ claude_design: not_configured
443
+ paper_design: not_configured
444
+ pencil_dev: not_configured
445
+ twenty_first: not_configured
446
+ magic_patterns: not_configured
447
+ </connections>
448
+ ```
449
+
450
+ Key normalization:
451
+ - `21st-dev` → `twenty_first` in STATE.md (no leading digit in XML-ish key).
452
+ - `magic-patterns` → `magic_patterns`.
453
+ - `paper-design` → `paper_design`.
454
+ - `pencil-dev` → `pencil_dev`.
455
+ - `claude-design` → `claude_design`.
456
+ - All other names map 1:1.
457
+
458
+ ---
459
+
460
+ ## Do Not
461
+
462
+ - Never run `npm install -g` globals automatically. Always force manual path for globals.
463
+ - Never write to `~/.bashrc`, `~/.zshrc`, or shell RC files. Env-var setup is always manual.
464
+ - Never run `claude mcp add` without explicit `"Run install command now"` confirmation.
465
+ - Never auto-restart the Claude Code session. Print the instruction and let the user act.
466
+ - Never re-prompt for names in `connections.skip[]`. If the user wants to re-enable, they invoke `/gdd:connections <name>` explicitly.
467
+ - Never overwrite existing `<connections>` entries that this skill did not probe. Merge only.
468
+
469
+ ---
470
+
471
+ ## Output
472
+
473
+ End every invocation with:
474
+
475
+ ```
476
+ ## CONNECTIONS COMPLETE
477
+ ```
@@ -43,7 +43,7 @@ One-time project initialization. Replaces "run scan cold" by gathering context u
43
43
  Files named `design-*-conventions.md` are read by explore/plan/design.
44
44
  Populated by `/gdd:sketch-wrap-up` and manual edits.
45
45
  ```
46
- 10. Print: "Project initialized. Run `/gdd:brief` to capture your design problem, or `/gdd:explore` to scan directly."
46
+ 10. Print: "Project initialized. Run `/gdd:brief` to capture your design problem, or `/gdd:explore` to scan directly. Run `/gdd:connections` to wire up optional integrations (Figma, Storybook, Chromatic, etc.)."
47
47
 
48
48
  ## Do Not
49
49
 
@@ -5,6 +5,9 @@ argument-hint: "[context note]"
5
5
  tools: Read, Write, AskUserQuestion
6
6
  ---
7
7
 
8
+ @reference/retrieval-contract.md
9
+ @reference/cycle-handoff-preamble.md
10
+
8
11
  # /gdd:pause
9
12
 
10
13
  Captures enough state that a killed or stopped session can resume cleanly via `/gdd:resume`.
@@ -5,6 +5,8 @@ argument-hint: "[--forensic]"
5
5
  tools: Read, Bash, Grep, Glob
6
6
  ---
7
7
 
8
+ @reference/retrieval-contract.md
9
+
8
10
  # /gdd:progress
9
11
 
10
12
  **Role:** Show current position in the pipeline and recommend the next action. With `--forensic`, run a 6-check integrity audit.
@@ -31,6 +33,16 @@ Next: /gdd:<next-stage>
31
33
 
32
34
  Recommend next stage via the same logic as `/gdd:next` (route by which artifacts exist).
33
35
 
36
+ ### First-run connection nudge
37
+
38
+ After the pipeline state block, check STATE.md `<connections>`. If every entry is `not_configured` AND `.design/config.json > connections_onboarding` is absent (user has never run the wizard), append once:
39
+
40
+ ```
41
+ Tip: run /gdd:connections to see what integrations can plug in (Figma, Storybook, Chromatic, etc.).
42
+ ```
43
+
44
+ Suppress the nudge on subsequent invocations in the same session (track via a transient marker file `.design/.connections-nudge-shown` written at first emit, deleted on next session start by no mechanism — so effectively once per session).
45
+
34
46
  ## Step 3 — Forensic audit (only if `--forensic`)
35
47
 
36
48
  Run these six checks and print PASS/WARN/FAIL per check:
@@ -5,6 +5,8 @@ argument-hint: "[--dry-run] [--cycle <slug>]"
5
5
  tools: Read, Write, Task
6
6
  ---
7
7
 
8
+ @reference/retrieval-contract.md
9
+
8
10
  # /gdd:reflect
9
11
 
10
12
  Run `design-reflector` on demand against the current (or specified) cycle. Produces `.design/reflections/<cycle-slug>.md` with numbered improvement proposals. Every proposal requires explicit user review — nothing is auto-applied.
@@ -5,6 +5,9 @@ argument-hint: ""
5
5
  tools: Read, Write, Bash, Glob
6
6
  ---
7
7
 
8
+ @reference/retrieval-contract.md
9
+ @reference/cycle-handoff-preamble.md
10
+
8
11
  # /gdd:resume
9
12
 
10
13
  Inverse of `/gdd:pause`. Reads the handoff file, prints a clear "you were here" summary, and routes to the next command.
@@ -150,6 +150,14 @@ Write: graphify: <status> to STATE.md <connections>
150
150
 
151
151
  After all 4 probes, STATE.md `<connections>` contains all 4 status entries (plus the Wave A `figma:` and `refero:` probes = 6 total entries). Downstream plans (08-02 through 08-05) read these values without re-probing.
152
152
 
153
+ **First-run connection nudge:** after writing STATE.md, check whether every probed connection came back `not_configured` AND `.design/config.json > connections_onboarding` is absent. If so, print once at the end of scan output:
154
+
155
+ ```
156
+ Tip: run /gdd:connections to walk through setup for Figma, Storybook, Chromatic, and 9 other integrations.
157
+ ```
158
+
159
+ Suppress the nudge if any probe returned `available` or `unavailable`, or if the user has already run `/gdd:connections` (marker: `connections_onboarding` block present or previously drained).
160
+
153
161
  ### Write STATE.md
154
162
 
155
163
  Update `.design/STATE.md` with probe results:
@@ -28,13 +28,14 @@ Run at stage entry, after reading STATE.md:
28
28
  ```
29
29
  Step P1 — ToolSearch check:
30
30
  ToolSearch({ query: "Claude_Preview", max_results: 5 })
31
- → Empty result → preview: not_configured (skip all Preview steps in this stage)
31
+ → Empty result → preview: not_loaded (MCP not registered — skip all Preview steps in this stage)
32
32
  → Non-empty result → proceed to Step P2
33
33
 
34
34
  Step P2 — Live tool call:
35
35
  call mcp__Claude_Preview__preview_list
36
- → Success → preview: available
37
- → Error → preview: unavailable
36
+ → Success → preview: available
37
+ → Error containing "permission"/blocked → preview: permission_denied
38
+ → Any other error → preview: unreachable
38
39
 
39
40
  Write preview status to .design/STATE.md <connections>.
40
41
  ```