@hegemonart/get-design-done 1.59.3 → 1.59.4

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 (149) hide show
  1. package/.claude-plugin/marketplace.json +2 -2
  2. package/.claude-plugin/plugin.json +1 -1
  3. package/CHANGELOG.md +31 -0
  4. package/SKILL.md +2 -0
  5. package/figma-plugin/README.md +61 -0
  6. package/figma-plugin/code.ts +36 -0
  7. package/figma-plugin/manifest.json +12 -0
  8. package/figma-plugin/package-lock.json +35 -0
  9. package/figma-plugin/package.json +12 -0
  10. package/figma-plugin/src/export-variables.ts +144 -0
  11. package/figma-plugin/src/payload-schema.ts +250 -0
  12. package/figma-plugin/tsconfig.json +16 -0
  13. package/figma-plugin/ui.html +44 -0
  14. package/hooks/gdd-intel-trigger.js +3 -3
  15. package/package.json +6 -1
  16. package/reference/DEPRECATIONS.md +3 -3
  17. package/reference/live-mode-integration.md +1 -1
  18. package/reference/registry.json +1 -1
  19. package/reference/skill-metadata.md +4 -4
  20. package/reference/skill-placeholders.md +2 -2
  21. package/scripts/build-skills.cjs +146 -0
  22. package/scripts/generate-skill-frontmatter.cjs +243 -0
  23. package/scripts/lib/manifest/scaffolder.cjs +1 -1
  24. package/scripts/lib/manifest/schemas/skills.schema.json +1 -1
  25. package/scripts/lib/manifest/skills.json +1 -1
  26. package/scripts/lib/new-addendum.cjs +1 -1
  27. package/scripts/skill-templates/README.md +90 -0
  28. package/scripts/skill-templates/add-backlog/SKILL.md +48 -0
  29. package/scripts/skill-templates/analyze-dependencies/SKILL.md +95 -0
  30. package/scripts/skill-templates/apply-reflections/SKILL.md +109 -0
  31. package/scripts/skill-templates/apply-reflections/apply-reflections-procedure.md +170 -0
  32. package/scripts/skill-templates/audit/SKILL.md +79 -0
  33. package/scripts/skill-templates/bandit-reset/SKILL.md +91 -0
  34. package/scripts/skill-templates/bandit-status/SKILL.md +94 -0
  35. package/scripts/skill-templates/benchmark/SKILL.md +65 -0
  36. package/scripts/skill-templates/bootstrap-ds/SKILL.md +43 -0
  37. package/scripts/skill-templates/brief/SKILL.md +145 -0
  38. package/scripts/skill-templates/budget/SKILL.md +45 -0
  39. package/scripts/skill-templates/cache-manager/SKILL.md +66 -0
  40. package/scripts/skill-templates/cache-manager/cache-policy.md +126 -0
  41. package/scripts/skill-templates/check-update/SKILL.md +98 -0
  42. package/scripts/skill-templates/compare/SKILL.md +82 -0
  43. package/scripts/skill-templates/compare/compare-rubric.md +171 -0
  44. package/scripts/skill-templates/complete-cycle/SKILL.md +81 -0
  45. package/scripts/skill-templates/connections/SKILL.md +71 -0
  46. package/scripts/skill-templates/connections/connections-onboarding.md +608 -0
  47. package/scripts/skill-templates/context/SKILL.md +137 -0
  48. package/scripts/skill-templates/continue/SKILL.md +24 -0
  49. package/scripts/skill-templates/darkmode/SKILL.md +76 -0
  50. package/scripts/skill-templates/darkmode/darkmode-audit-procedure.md +258 -0
  51. package/scripts/skill-templates/debug/SKILL.md +41 -0
  52. package/scripts/skill-templates/debug/debug-feedback-loops.md +119 -0
  53. package/scripts/skill-templates/design/SKILL.md +118 -0
  54. package/scripts/skill-templates/design/design-procedure.md +304 -0
  55. package/scripts/skill-templates/discuss/SKILL.md +96 -0
  56. package/scripts/skill-templates/do/SKILL.md +45 -0
  57. package/scripts/skill-templates/explore/SKILL.md +118 -0
  58. package/scripts/skill-templates/explore/explore-procedure.md +267 -0
  59. package/scripts/skill-templates/export/SKILL.md +30 -0
  60. package/scripts/skill-templates/extract-learnings/SKILL.md +114 -0
  61. package/scripts/skill-templates/fast/SKILL.md +91 -0
  62. package/scripts/skill-templates/figma-extract/SKILL.md +64 -0
  63. package/scripts/skill-templates/figma-write/SKILL.md +50 -0
  64. package/scripts/skill-templates/graphify/SKILL.md +49 -0
  65. package/scripts/skill-templates/health/SKILL.md +99 -0
  66. package/scripts/skill-templates/health/health-mcp-detection.md +44 -0
  67. package/scripts/skill-templates/health/health-skill-length-report.md +69 -0
  68. package/scripts/skill-templates/help/SKILL.md +60 -0
  69. package/scripts/skill-templates/instinct/SKILL.md +111 -0
  70. package/scripts/skill-templates/list-assumptions/SKILL.md +61 -0
  71. package/scripts/skill-templates/list-pins/SKILL.md +27 -0
  72. package/scripts/skill-templates/live/SKILL.md +98 -0
  73. package/scripts/skill-templates/locale/SKILL.md +51 -0
  74. package/scripts/skill-templates/map/SKILL.md +89 -0
  75. package/scripts/skill-templates/migrate/SKILL.md +70 -0
  76. package/scripts/skill-templates/migrate-context/SKILL.md +123 -0
  77. package/scripts/skill-templates/new-addendum/SKILL.md +81 -0
  78. package/scripts/skill-templates/new-cycle/SKILL.md +37 -0
  79. package/scripts/skill-templates/new-project/SKILL.md +53 -0
  80. package/scripts/skill-templates/new-skill/SKILL.md +90 -0
  81. package/scripts/skill-templates/next/SKILL.md +68 -0
  82. package/scripts/skill-templates/note/SKILL.md +48 -0
  83. package/scripts/skill-templates/openrouter-status/SKILL.md +86 -0
  84. package/scripts/skill-templates/optimize/SKILL.md +97 -0
  85. package/scripts/skill-templates/override/SKILL.md +86 -0
  86. package/scripts/skill-templates/paper-write/SKILL.md +54 -0
  87. package/scripts/skill-templates/pause/SKILL.md +77 -0
  88. package/scripts/skill-templates/peer-cli-add/SKILL.md +88 -0
  89. package/scripts/skill-templates/peer-cli-add/peer-cli-protocol.md +161 -0
  90. package/scripts/skill-templates/peer-cli-customize/SKILL.md +89 -0
  91. package/scripts/skill-templates/peers/SKILL.md +96 -0
  92. package/scripts/skill-templates/pencil-write/SKILL.md +54 -0
  93. package/scripts/skill-templates/pin/SKILL.md +37 -0
  94. package/scripts/skill-templates/plan/SKILL.md +105 -0
  95. package/scripts/skill-templates/plan/plan-procedure.md +278 -0
  96. package/scripts/skill-templates/plant-seed/SKILL.md +48 -0
  97. package/scripts/skill-templates/pr-branch/SKILL.md +32 -0
  98. package/scripts/skill-templates/progress/SKILL.md +107 -0
  99. package/scripts/skill-templates/quality-gate/SKILL.md +90 -0
  100. package/scripts/skill-templates/quality-gate/threat-modeling.md +101 -0
  101. package/scripts/skill-templates/quick/SKILL.md +44 -0
  102. package/scripts/skill-templates/reapply-patches/SKILL.md +32 -0
  103. package/scripts/skill-templates/recall/SKILL.md +75 -0
  104. package/scripts/skill-templates/reflect/SKILL.md +85 -0
  105. package/scripts/skill-templates/reflect/procedures/capability-gap-scan.md +119 -0
  106. package/scripts/skill-templates/report-issue/SKILL.md +53 -0
  107. package/scripts/skill-templates/report-issue/report-issue-procedure.md +119 -0
  108. package/scripts/skill-templates/resume/SKILL.md +93 -0
  109. package/scripts/skill-templates/review-backlog/SKILL.md +46 -0
  110. package/scripts/skill-templates/review-decisions/SKILL.md +42 -0
  111. package/scripts/skill-templates/roi/SKILL.md +54 -0
  112. package/scripts/skill-templates/rollout-status/SKILL.md +35 -0
  113. package/scripts/skill-templates/router/SKILL.md +89 -0
  114. package/scripts/skill-templates/router/capability-gap-emitter.md +65 -0
  115. package/scripts/skill-templates/router/router-pick-emitter.md +78 -0
  116. package/scripts/skill-templates/router/router-rules.md +84 -0
  117. package/scripts/skill-templates/settings/SKILL.md +87 -0
  118. package/scripts/skill-templates/ship/SKILL.md +48 -0
  119. package/scripts/skill-templates/sketch/SKILL.md +78 -0
  120. package/scripts/skill-templates/sketch-wrap-up/SKILL.md +92 -0
  121. package/scripts/skill-templates/skill-manifest/SKILL.md +79 -0
  122. package/scripts/skill-templates/spike/SKILL.md +67 -0
  123. package/scripts/skill-templates/spike-wrap-up/SKILL.md +86 -0
  124. package/scripts/skill-templates/start/SKILL.md +67 -0
  125. package/scripts/skill-templates/start/start-procedure.md +115 -0
  126. package/scripts/skill-templates/state/SKILL.md +106 -0
  127. package/scripts/skill-templates/stats/SKILL.md +51 -0
  128. package/scripts/skill-templates/style/SKILL.md +71 -0
  129. package/scripts/skill-templates/style/style-doc-procedure.md +150 -0
  130. package/scripts/skill-templates/synthesize/SKILL.md +94 -0
  131. package/scripts/skill-templates/timeline/SKILL.md +66 -0
  132. package/scripts/skill-templates/todo/SKILL.md +64 -0
  133. package/scripts/skill-templates/turn-closeout/SKILL.md +95 -0
  134. package/scripts/skill-templates/undo/SKILL.md +31 -0
  135. package/scripts/skill-templates/unlock-decision/SKILL.md +54 -0
  136. package/scripts/skill-templates/unpin/SKILL.md +31 -0
  137. package/scripts/skill-templates/update/SKILL.md +56 -0
  138. package/scripts/skill-templates/using-gdd/SKILL.md +78 -0
  139. package/scripts/skill-templates/verify/SKILL.md +113 -0
  140. package/scripts/skill-templates/verify/verify-procedure.md +511 -0
  141. package/scripts/skill-templates/warm-cache/SKILL.md +81 -0
  142. package/scripts/skill-templates/watch-authorities/SKILL.md +82 -0
  143. package/scripts/skill-templates/zoom-out/SKILL.md +26 -0
  144. package/sdk/cli/commands/build.ts +2 -2
  145. package/sdk/cli/index.js +2 -2
  146. package/sdk/cli/index.ts +1 -1
  147. package/skills/README.md +22 -14
  148. package/skills/help/SKILL.md +28 -55
  149. package/skills/new-skill/SKILL.md +5 -5
@@ -0,0 +1,126 @@
1
+ ---
2
+ name: cache-policy
3
+ type: heuristic
4
+ version: 1.0.0
5
+ phase: 28.5
6
+ tags: [cache, layer-a, layer-b, sha-256, ttl, warm-cache, cache-manager, anthropic-prompt-cache]
7
+ last_updated: 2026-05-18
8
+ ---
9
+
10
+ # Cache Policy (Layer A + Layer B)
11
+
12
+ Extracted from `skills/cache-manager/SKILL.md` and `skills/warm-cache/SKILL.md` per Phase 28.5
13
+ D-10 (extract-then-link, never delete content). The two skills keep their orchestration
14
+ contracts and step-by-step flows; the deeper algorithmic and operational detail moves here
15
+ so the SKILLs stay under the 100-line cap.
16
+
17
+ The two layers (D-08):
18
+
19
+ - **Layer A** - Anthropic's 5-min prompt cache (owned by `warm-cache`). Keyed on shared-preamble-first prompt prefix. No project-local state.
20
+ - **Layer B** - explicit `.design/cache-manifest.json` (owned by `gdd-cache-manager`). Keyed on deterministic SHA-256 of `(agent-path, sorted-input-file-paths, input-content-hashes)`. Per-repo state.
21
+
22
+ ## Deterministic Input-Hash Algorithm (Layer B)
23
+
24
+ The canonical reference implementation (the single source of truth; `hooks/budget-enforcer.ts` imports the same primitive via a shared helper):
25
+
26
+ ```js
27
+ // Deterministic cache-key primitive (reference implementation)
28
+ // hash = SHA-256(
29
+ // agent_path + "\n" +
30
+ // sorted(input_file_paths).join("\n") + "\n" +
31
+ // sorted(input_file_paths)
32
+ // .map(p => sha256(readFileSync(p, "utf8")))
33
+ // .join("\n")
34
+ // )
35
+ const crypto = require('crypto');
36
+ const fs = require('fs');
37
+
38
+ function sha256Hex(s) {
39
+ return crypto.createHash('sha256').update(s, 'utf8').digest('hex');
40
+ }
41
+
42
+ function computeInputHash(agentPath, inputFilePaths) {
43
+ const sortedPaths = [...inputFilePaths].sort();
44
+ const contentHashes = sortedPaths.map(p => {
45
+ try { return sha256Hex(fs.readFileSync(p, 'utf8')); }
46
+ catch { return 'MISSING'; }
47
+ });
48
+ const canonical = [
49
+ agentPath,
50
+ sortedPaths.join('\n'),
51
+ contentHashes.join('\n')
52
+ ].join('\n');
53
+ return sha256Hex(canonical);
54
+ }
55
+ ```
56
+
57
+ Notes for maintainers:
58
+
59
+ - **Sorted-unique paths** - ordering must be stable; caller is expected to de-duplicate. If the same path appears twice the hash still matches as long as caller pre-dedupes before invoking.
60
+ - **Missing file** - the string `MISSING` is used in place of the content hash so a missing dependency doesn't silently collide with an empty file (empty file's SHA-256 is `e3b0c44...`). Missing-file hashes naturally miss on the next read because the real file has a different content hash.
61
+ - **Agent-path** - agents changing their own body (role, tools, output contract) invalidate all their cache entries automatically because the agent file's content is not hashed; but the `agent_path` string is concatenated. Upgrading agents between versions naturally busts the cache only when the path changes. Plan 10.1-04 (shared preamble extraction) is expected to slightly adjust agent bodies - consumers should treat the first post-10.1 run as a full cache miss, which is the intended behavior.
62
+
63
+ ## Manifest Shape (Layer B)
64
+
65
+ See `./config-schema.md` §.design/cache-manifest.json Schema (Phase 10.1) for the authoritative schema. Keyed object, flat SHA-256 hex keys. Example:
66
+
67
+ ```json
68
+ {
69
+ "a3f1e...": {
70
+ "agent": "design-verifier",
71
+ "result": "<base64-or-path>",
72
+ "written_at": "2026-04-18T12:00:00Z",
73
+ "ttl_seconds": 3600,
74
+ "expires_at": "2026-04-18T13:00:00Z"
75
+ }
76
+ }
77
+ ```
78
+
79
+ ## TTL Semantics (Layer B)
80
+
81
+ - Default `ttl_seconds` = `.design/budget.json.cache_ttl_seconds` = 3600s (1 hour) per D-10.
82
+ - `expires_at` is computed at write time and stored; readers do not recompute.
83
+ - Lazy cleanup: stale entries are not actively deleted on read (overhead for no benefit in normal operation). A separate reaper is optional and out of v1 scope.
84
+
85
+ ## Concrete Warm-Cache Command Examples (Layer A)
86
+
87
+ Full invocation:
88
+
89
+ ```
90
+ $ {{command_prefix}}warm-cache
91
+
92
+ Warming Anthropic prompt cache for 14 agents (5 min TTL)...
93
+ [1/14] design-verifier ... ok (0.3s)
94
+ [2/14] design-planner ... ok (0.3s)
95
+ [3/14] design-integration-checker ... ok (0.3s)
96
+ ...
97
+ [14/14] design-reflector ... ok (0.3s)
98
+
99
+ ## Warm-cache complete
100
+ - Agents warmed: 14
101
+ - Skipped (no shared preamble import): 3 (agents/README.md not an agent; 2 agents not yet migrated to shared preamble)
102
+ - Duration: 4.2s
103
+ - Next 5 min: repeated spawns of these agents pay cached_input_per_1m rate
104
+ ```
105
+
106
+ Filtered invocation:
107
+
108
+ ```
109
+ $ {{command_prefix}}warm-cache --agents design-verifier,design-planner
110
+
111
+ Warming Anthropic prompt cache for 2 agents (filtered from 14)...
112
+ [1/2] design-verifier ... ok (0.3s)
113
+ [2/2] design-planner ... ok (0.3s)
114
+
115
+ ## Warm-cache complete
116
+ - Agents warmed: 2
117
+ - Filtered out by --agents: 12
118
+ - Duration: 0.7s
119
+ ```
120
+
121
+ ## Cost Model (Layer A)
122
+
123
+ - Each no-op Haiku ping: ~50 input tokens (shared preamble + "No-op warm: acknowledge..." system+user) + ~5 output tokens ("ok").
124
+ - At Haiku rates (`./model-prices.md`): `(50 / 1e6) * 1.00 + (5 / 1e6) * 5.00 = $0.00005 + $0.000025 = $0.000075` per agent.
125
+ - 14 agents × $0.000075 = **$0.00105** total for a full warm-cache invocation.
126
+ - Payback: a single subsequent Opus spawn with 40k cached input tokens saves `(40000/1e6) * (15.00 - 1.50) = $0.54`. Warm-cache pays for itself ~500× over on the first repeated planner spawn.
@@ -0,0 +1,98 @@
1
+ ---
2
+ name: gdd-check-update
3
+ description: "Manual plugin-update check. Shows cached state by default; --refresh bypasses the 24h TTL; --dismiss hides the nudge until a newer release ships; --prompt spawns design-update-checker for a richer summary."
4
+ argument-hint: "[--refresh] [--dismiss] [--prompt]"
5
+ tools: Read, Write, Bash, Task
6
+ ---
7
+
8
+ # {{command_prefix}}check-update
9
+
10
+ **Role:** Manual entry point for the plugin-update checker. The SessionStart hook (`hooks/update-check.sh`) already runs on its own 24h cadence and writes `.design/update-cache.json` + `.design/update-available.md`. This command lets the user inspect / force / dismiss / enrich that state on demand. See `./reference/heuristics.md` §"Version-cadence" for the off-cadence / preview-suffix handling background.
11
+
12
+ ## Flags
13
+
14
+ | Flag | Effect |
15
+ |------|--------|
16
+ | *(none)* | Print cached state. If cache is older than 24h, trigger `--refresh` implicitly. |
17
+ | `--refresh` | Invoke `hooks/update-check.sh --refresh` - bypasses the 24h TTL and re-fetches immediately. |
18
+ | `--dismiss` | Write `update_dismissed: "<latest_tag>"` to `.design/config.json` atomically and delete `.design/update-available.md`. Sticky until a newer release ships. |
19
+ | `--prompt` | Spawn `design-update-checker` agent (Haiku) to produce a 3–5-line "what this release changes for you" summary. Does not alter the banner or cache. |
20
+
21
+ Flags combine: `--refresh --prompt` is valid (re-fetch, then enrich). `--dismiss` is the only flag that mutates `.design/config.json`.
22
+
23
+ ## Steps
24
+
25
+ 1. **Parse flags.** Detect `--refresh`, `--dismiss`, `--prompt` in `$ARGUMENTS`. Unknown flag → `Unknown flag: <flag>` and exit.
26
+
27
+ 2. **`--refresh` path** (if set):
28
+
29
+ ```bash
30
+ bash "${CLAUDE_PLUGIN_ROOT:-$(pwd)}/hooks/update-check.sh" --refresh
31
+ ```
32
+
33
+ This re-fetches `/releases/latest`, rewrites `.design/update-cache.json`, and re-renders `.design/update-available.md` subject to state/dismissal gates.
34
+
35
+ 3. **Read cache.** After any optional refresh, read `.design/update-cache.json`. If missing: print `No cache. Network may be unreachable or the hook has not run yet. Try {{command_prefix}}check-update --refresh.` and exit.
36
+
37
+ 4. **`--dismiss` path** (if set): Compute new config contents and write atomically via the env-prefix Python heredoc pattern below. The pattern is essential - passing variables as trailing `KEY=VALUE` argv treats them as `sys.argv`, not `os.environ`. Use env-prefix form only.
38
+
39
+ ```bash
40
+ CONFIG_PATH=".design/config.json"
41
+ LATEST_TAG="$(grep -E '"latest_tag"' .design/update-cache.json | head -n1 | sed -E 's/.*"latest_tag"[[:space:]]*:[[:space:]]*"([^"]+)".*/\1/')"
42
+ [ -n "$LATEST_TAG" ] || { echo 'No latest_tag in cache — nothing to dismiss.'; exit 0; }
43
+ mkdir -p .design
44
+ CONFIG_PATH="$CONFIG_PATH" LATEST_TAG="$LATEST_TAG" python3 <<'PY'
45
+ import json, os, sys, tempfile
46
+ config_path = os.environ['CONFIG_PATH']
47
+ latest_tag = os.environ['LATEST_TAG']
48
+ try:
49
+ with open(config_path, 'r', encoding='utf-8') as f:
50
+ data = json.load(f)
51
+ if not isinstance(data, dict): data = {}
52
+ except (FileNotFoundError, json.JSONDecodeError): data = {}
53
+ data['update_dismissed'] = latest_tag
54
+ target_dir = os.path.dirname(config_path) or '.'
55
+ fd, tmp_path = tempfile.mkstemp(prefix='config.', suffix='.tmp', dir=target_dir)
56
+ try:
57
+ with os.fdopen(fd, 'w', encoding='utf-8') as f:
58
+ json.dump(data, f, indent=2); f.write('\n')
59
+ os.replace(tmp_path, config_path)
60
+ except Exception:
61
+ try: os.unlink(tmp_path)
62
+ except OSError: pass
63
+ sys.exit(1)
64
+ PY
65
+ rm -f .design/update-available.md
66
+ echo "Dismissed $LATEST_TAG. The nudge will return when a newer release ships."
67
+ ```
68
+
69
+ D-14 atomic-write invariant: `os.replace()` (POSIX `rename(2)`) is atomic on the same filesystem. The `json.load → set single key → json.dump` round-trip preserves every unknown top-level key (e.g. `model_profile`, `parallelism`) verbatim.
70
+
71
+ 5. **Print default state** (always, unless exited early):
72
+
73
+ ```
74
+ ━━━ {{command_prefix}}check-update ━━━
75
+ Current: v<X.Y.Z>
76
+ Latest: v<A.B.C> (delta: <major|minor|patch|off-cadence|none>)
77
+ Newer: <true|false>
78
+ Checked: <ISO time of checked_at>
79
+ Dismissed: <tag or "no">
80
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━
81
+ ```
82
+
83
+ Parse fields from `.design/update-cache.json` via `grep + sed` (no jq dep). Read dismissal from `.design/config.json` via the same pattern as `hooks/update-check.sh`.
84
+
85
+ 6. **`--prompt` path** (if set): Spawn `design-update-checker` via Task tool with context `{current_tag, latest_tag, delta, release_body}`. Display response verbatim below the banner. Agent ends with `## UPDATE-CHECKER COMPLETE`.
86
+
87
+ ## Do Not
88
+
89
+ - Do not fetch from GitHub directly - always go through `hooks/update-check.sh --refresh` so caching + state-guard + dismissal logic stays in one place.
90
+ - Do not modify `.design/update-available.md` except to delete on `--dismiss`.
91
+ - Do not rewrite `.design/config.json` wholesale - the atomic Python rewrite preserves every unknown key (D-14).
92
+ - Do not pass variables to the Python heredoc via trailing `KEY=VALUE` argv - env-prefix form only.
93
+
94
+ ## Completion marker
95
+
96
+ ```
97
+ ## CHECK-UPDATE COMPLETE
98
+ ```
@@ -0,0 +1,82 @@
1
+ ---
2
+ name: gdd-compare
3
+ description: "Compute the delta between the `DESIGN.md` baseline (from explore) and the `DESIGN-VERIFICATION.md` result (from verify), reporting per-category score delta, anti-pattern delta (resolved vs new), must-have pass/fail change, and design drift (regressions without covering tasks in `DESIGN-PLAN.md`). Use after `verify` to measure whether a design pipeline cycle actually improved the design. Writes `.design/COMPARE-REPORT.md`. Activates for requests involving diffing a design baseline against verification output, or a before-after design delta."
4
+ argument-hint: ""
5
+ user-invocable: true
6
+ ---
7
+
8
+ # gdd-compare - Baseline vs Result Delta
9
+
10
+ Standalone delta command. Computes the difference between the scan baseline (`DESIGN.md`) and the verification result (`DESIGN-VERIFICATION.md`), and flags design drift for any regression not covered by an explicit task in `DESIGN-PLAN.md`. Writes one artifact: `.design/COMPARE-REPORT.md`.
11
+
12
+ For the full step-by-step methodology (score parsing, set arithmetic for anti-patterns, drift-coverage map, screenshot-delta probe, and `COMPARE-REPORT.md` template), see `./compare-rubric.md`. For the cross-skill output discipline (artifact prefix, completion marker, MUST-NOT-write list, connection-probe pattern), see `../../reference/shared-preamble.md#output-contract-reminders` and `../../reference/shared-preamble.md#connection-handshake-summary`. For the underlying 0–10 category-scoring rubric the delta is computed against, see `../../reference/audit-scoring.md`.
13
+
14
+ ---
15
+
16
+ ## Scope
17
+
18
+ This command is **standalone** - not a pipeline stage:
19
+
20
+ - Scoped strictly to delta between two existing files (COMP-02): `DESIGN.md` (baseline, from scan) and `DESIGN-VERIFICATION.md` (result, from verify).
21
+ - Does NOT require or implement a snapshot mechanism - multi-run history is deferred to V2-06.
22
+ - Does NOT mutate any pipeline artifact (`DESIGN.md`, `DESIGN-VERIFICATION.md`, `DESIGN-SUMMARY.md`, `DESIGN-CONTEXT.md`, `DESIGN-PLAN.md`, `.design/STATE.md`).
23
+ - Writes exactly ONE file: `.design/COMPARE-REPORT.md`.
24
+ - Output artifact prefix `COMPARE-REPORT` is distinct from the pipeline namespace (`DESIGN-*.md`). No naming conflict.
25
+
26
+ ---
27
+
28
+ ## Pre-Flight Checks (Pitfall 3)
29
+
30
+ Required files - abort if either is missing:
31
+
32
+ - `.design/DESIGN.md` missing → `"No baseline found. Run /get-design-done scan first."`
33
+ - `.design/DESIGN-VERIFICATION.md` missing → `"No verification result found. Run /get-design-done verify first to produce DESIGN-VERIFICATION.md."`
34
+
35
+ **Optional files (graceful degradation if absent):**
36
+
37
+ - `.design/DESIGN-CONTEXT.md` - used for must-have delta. If missing, skip the Must-Have Status section and emit note: `"Must-have delta skipped: DESIGN-CONTEXT.md not found."`
38
+ - `.design/DESIGN-PLAN.md` - used for drift detection. If missing, skip DRIFT flagging and emit note: `"Drift detection skipped: no DESIGN-PLAN.md."`
39
+
40
+ Confirm `.design/` directory exists. If absent: `mkdir -p .design/`.
41
+
42
+ Probe `preview` connection per `../../reference/shared-preamble.md#connection-handshake-summary` (ToolSearch → live call → STATE.md write). Result drives Step 5B (screenshot delta).
43
+
44
+ ---
45
+
46
+ ## Workflow
47
+
48
+ 1. **Parse Category Scores** - extract baseline + result score tables, normalize names, flag unmatched. Detail: `./compare-rubric.md#step-1--parse-category-scores`.
49
+ 2. **Compute Score Delta** - `delta = result - baseline`, classify (`improvement`/`no_change`/`regression`). Detail: `./compare-rubric.md#step-2--compute-score-delta-comp-03`.
50
+ 3. **Anti-Pattern Delta** - set arithmetic on baseline vs result anti-pattern sets (resolved / new / unchanged). Detail: `./compare-rubric.md#step-3--anti-pattern-delta`.
51
+ 4. **Must-Have Pass/Fail Change** - read `<must_haves>` from `DESIGN-CONTEXT.md`, status from `DESIGN-VERIFICATION.md`. Detail: `./compare-rubric.md#step-4--must-have-passfail-change`.
52
+ 5. **Design Drift Detection (COMP-04)** - build coverage map from `DESIGN-PLAN.md` `Type:` fields; for each `regression` not in coverage_map → emit `DRIFT: [category] ...`. Detail: `./compare-rubric.md#step-5--design-drift-detection-comp-04`.
53
+ 6. **Screenshot Delta (preview: available only)** - capture per-route screenshots to `.design/screenshots/{before,after}/<route>.png`. Detail: `./compare-rubric.md#step-5b--screenshot-delta-when-preview-available`.
54
+ 7. **Write `.design/COMPARE-REPORT.md`** - full template at `./compare-rubric.md#step-6--compare-reportmd-template`.
55
+
56
+ ---
57
+
58
+ ## Constraints
59
+
60
+ This command MUST NOT (per `../../reference/shared-preamble.md#output-contract-reminders`):
61
+
62
+ - Write to `DESIGN.md`, `DESIGN-VERIFICATION.md`, `DESIGN-SUMMARY.md`, `DESIGN-CONTEXT.md`, `DESIGN-PLAN.md`, or `.design/STATE.md`.
63
+ - Require or implement a snapshot system (V2-06 deferred).
64
+ - Reinterpret or silently normalize category names that do not match between files - report mismatches in the Notes section.
65
+ - Invoke `design-auditor` or any other pipeline agent.
66
+ - Produce more than one output file: `.design/COMPARE-REPORT.md`.
67
+
68
+ Must abort with a clear actionable error message if either input file (`DESIGN.md` baseline, `DESIGN-VERIFICATION.md` result) is missing.
69
+
70
+ ---
71
+
72
+ ## Completion
73
+
74
+ After writing `.design/COMPARE-REPORT.md`, print a summary:
75
+
76
+ ```
77
+ Compare complete. Improvements: N. Regressions: M. Drift flags: K. See .design/COMPARE-REPORT.md.
78
+ ```
79
+
80
+ Where `N` = improvement count, `M` = regression count, `K` = DRIFT-flag count (0 if drift detection was skipped or no regressions). Do not summarize individual issues - the file contains the full detail.
81
+
82
+ ## COMPARE COMPLETE
@@ -0,0 +1,171 @@
1
+ ---
2
+ name: compare-rubric
3
+ type: heuristic
4
+ version: 1.0.0
5
+ phase: 28.5
6
+ tags: [compare, delta, drift, scoring, rubric, extracted]
7
+ last_updated: 2026-05-18
8
+ ---
9
+
10
+ Source: extracted from `skills/compare/SKILL.md` (Phase 28.5 rework - D-10 extract-then-link).
11
+ The skill's essential workflow stays in `../skills/compare/SKILL.md`; this file holds the
12
+ delta-computation methodology, anti-pattern set arithmetic, drift-detection coverage map,
13
+ and the `COMPARE-REPORT.md` template the skill writes.
14
+
15
+ # Compare Rubric - Baseline vs Result Delta Methodology
16
+
17
+ Detailed methodology for the `gdd-compare` standalone command - companion to
18
+ `../skills/compare/SKILL.md`. Read this file when executing a specific compare step (score
19
+ delta math, anti-pattern set arithmetic, drift coverage map, report layout). The SKILL.md
20
+ keeps the essential pre-flight checks + step routing; this file holds the deep methodology.
21
+
22
+ See `./shared-preamble.md#output-contract-reminders` for the per-skill output discipline and
23
+ `./audit-scoring.md` for the 0–10 category-scoring rubric the delta is computed against.
24
+
25
+ ---
26
+
27
+ ## Step 1 - Parse Category Scores
28
+
29
+ **Extract baseline scores from `.design/DESIGN.md`:** locate the category score table (rows like `| Accessibility | 6/10 | ... |`). Parse each row: extract category name + numeric score. Store as `baseline_scores` map.
30
+
31
+ **Extract result scores from `.design/DESIGN-VERIFICATION.md`:** locate the same table in the Phase 1 output section. Store as `result_scores` map.
32
+
33
+ **Normalize category names:**
34
+ - Strip leading/trailing whitespace.
35
+ - Apply title-case normalization (e.g., `anti-patterns` → `Anti-Patterns`).
36
+ - Match categories case-insensitively between the two tables.
37
+
38
+ **Unmatched categories:**
39
+ - Baseline-only → flag `[UNMATCHED-BASELINE]`, exclude from score delta.
40
+ - Result-only → flag `[UNMATCHED-RESULT]`, exclude from score delta.
41
+ - Report all unmatched categories in the Notes section. Do NOT silently paper over mismatches.
42
+
43
+ ## Step 2 - Compute Score Delta (COMP-03)
44
+
45
+ For each matched category: `delta = result_scores[category] - baseline_scores[category]`.
46
+
47
+ Classify:
48
+ - `improvement` - delta > 0
49
+ - `no_change` - delta == 0
50
+ - `regression` - delta < 0
51
+
52
+ Record per category: name, baseline score, result score, signed delta, classification. Collect regressed categories for drift detection in Step 5.
53
+
54
+ ## Step 3 - Anti-Pattern Delta
55
+
56
+ Enumerate anti-patterns in both files (entries identified by BAN-*, SLOP-*, or labeled as anti-patterns). Collect identifiers or descriptions as sets.
57
+
58
+ Compute set arithmetic:
59
+
60
+ ```
61
+ resolved = baseline_anti_patterns - result_anti_patterns
62
+ (present in baseline, absent in result — fixed)
63
+
64
+ new = result_anti_patterns - baseline_anti_patterns
65
+ (absent in baseline, present in result — introduced)
66
+
67
+ unchanged = intersection of both sets
68
+ (still present in both)
69
+ ```
70
+
71
+ Report all three groups in the output report.
72
+
73
+ ## Step 4 - Must-Have Pass/Fail Change
74
+
75
+ **Skip condition:** if `.design/DESIGN-CONTEXT.md` is absent → emit note and skip this section.
76
+
77
+ Read `<must_haves>` from `DESIGN-CONTEXT.md` (each must-have has ID + description). Read pass/fail status from `DESIGN-VERIFICATION.md` (must-have status table). For each must-have: record `pass`, `fail`, or `not-evaluated`. If `DESIGN.md` contained a prior must-have status section, compute the change (`pass→fail`, `fail→pass`); otherwise report current status only.
78
+
79
+ ## Step 5 - Design Drift Detection (COMP-04)
80
+
81
+ **Skip condition:** if `.design/DESIGN-PLAN.md` is absent → emit `"Drift detection skipped: DESIGN-PLAN.md not found."` in the Drift section.
82
+
83
+ **Coverage map:** read `DESIGN-PLAN.md` and extract the `Type:` field from each task. Build a map of which design categories have at least one task of matching Type:
84
+
85
+ ```
86
+ Type: accessibility → covers "Accessibility" category
87
+ Type: color → covers "Color" category
88
+ Type: typography → covers "Typography" category
89
+ Type: visual-hierarchy → covers "Visual Hierarchy" category
90
+ ```
91
+
92
+ Category-to-Type matching is case-insensitive and normalized.
93
+
94
+ **Drift check:** for each category classified as `regression` in Step 2: if category NOT in coverage_map → emit `DRIFT: [category] regressed from <baseline> to <result> without a design task of Type:<category>`.
95
+
96
+ Emit `"No drift detected. All regressed categories are covered by tasks in DESIGN-PLAN.md."` if all regressed categories are covered. Emit `"No drift detected. No score regressions found."` if no regressions in Step 2.
97
+
98
+ ## Step 5B - Screenshot Delta (when preview: available)
99
+
100
+ Check `preview` status from `.design/STATE.md <connections>` (written by the probe at stage entry - see `./shared-preamble.md#connection-handshake-summary`).
101
+
102
+ **If `preview: available`:**
103
+
104
+ 1. `preview_start` if no session is already running.
105
+ 2. For each route inferred from `DESIGN-PLAN.md` tasks or `src/app/` / `src/pages/` file structure:
106
+ a. `preview_navigate` to route URL (e.g., `http://localhost:3000/<route>`).
107
+ b. `preview_screenshot` → save to `.design/screenshots/before/<route>.png` (only if a prior baseline exists at this path) and `.design/screenshots/after/<route>.png` (current render).
108
+ c. Record reference paths (NOT base64) for embedding in the `## Screenshot Delta` section.
109
+ 3. `preview_stop` when all routes are captured.
110
+
111
+ **If `preview: unavailable` or `preview: not_configured`:** emit exactly `Screenshot delta skipped — preview not configured.`
112
+
113
+ ## Step 6 - COMPARE-REPORT.md Template
114
+
115
+ Output path: `.design/COMPARE-REPORT.md`. This file MUST NOT be written to any pipeline-reserved path.
116
+
117
+ ```markdown
118
+ # Compare Report: Baseline vs Result
119
+
120
+ **Generated:** <ISO 8601 date>
121
+ **Baseline:** .design/DESIGN.md
122
+ **Result:** .design/DESIGN-VERIFICATION.md
123
+
124
+ ## Score Delta by Category
125
+
126
+ | Category | Baseline | Result | Delta | Status |
127
+ |----------|----------|--------|-------|--------|
128
+ | Accessibility | 6 | 8 | +2 | improvement |
129
+ | Visual Hierarchy | 5 | 5 | 0 | no_change |
130
+ | Anti-Patterns | 4 | 3 | -1 | regression |
131
+
132
+ ## Anti-Pattern Delta
133
+
134
+ **Resolved** (present in baseline, absent in result):
135
+ - <anti-pattern id or description>
136
+
137
+ **New** (absent in baseline, present in result):
138
+ - <anti-pattern id or description>
139
+
140
+ **Unchanged:**
141
+ - <anti-pattern id or description>
142
+
143
+ ## Must-Have Status
144
+
145
+ | Must-Have | Status |
146
+ |-----------|--------|
147
+ | <id / description> | pass |
148
+ | <id / description> | fail |
149
+ | <id / description> | not-evaluated |
150
+
151
+ ## Design Drift
152
+
153
+ <One of: "No drift detected. ..." | "DRIFT: [Category] regressed ..." | "Drift detection skipped: DESIGN-PLAN.md not found.">
154
+
155
+ ## Screenshot Delta
156
+
157
+ <Per-route screenshot pairs OR "Screenshot delta skipped — preview not configured.">
158
+
159
+ ## Notes
160
+
161
+ Scope: delta between two existing artifacts (.design/DESIGN.md → .design/DESIGN-VERIFICATION.md).
162
+ No snapshot mechanism — multi-snapshot compare deferred to V2-06.
163
+ This report does not modify DESIGN.md, DESIGN-VERIFICATION.md, or any other pipeline artifact.
164
+ <List any UNMATCHED-BASELINE or UNMATCHED-RESULT categories here, if any.>
165
+ ```
166
+
167
+ If a section has no items (e.g., no anti-patterns in baseline), write "None."
168
+
169
+ ---
170
+
171
+ *Imported by: `../skills/compare/SKILL.md`. Maintained as part of Phase 28.5 (Bucket 2 rework - D-10).*
@@ -0,0 +1,81 @@
1
+ ---
2
+ name: gdd-complete-cycle
3
+ description: "Cycle closeout command that marks CYCLES.md entry complete, archives pipeline artifacts to .design/archive/cycle-N/, generates EXPERIENCE.md, rebuilds the search index, and resets STATE.md. Use when a design cycle has shipped and you're ready to start the next one."
4
+ argument-hint: "[<retrospective note>]"
5
+ tools: Read, Write, Bash, AskUserQuestion
6
+ ---
7
+
8
+ # {{command_prefix}}complete-cycle
9
+
10
+ Closes the current cycle: marks CYCLES.md entry complete, archives pipeline artifacts, and clears STATE.md for the next cycle.
11
+
12
+ ## Steps
13
+
14
+ 1. **Load state**: Read `.design/STATE.md` for the active `cycle:` ID. If empty/missing, error: "No active cycle - nothing to complete."
15
+ 2. **Retrospective**: If no argument was passed, ask (AskUserQuestion): "Is cycle <N> complete? Briefly describe what was achieved." Capture for CYCLES.md.
16
+ 3. **Update CYCLES.md**: Find the current cycle entry, change `**Status**: active` to `**Status**: complete`, append a `**Retrospective**: <note>` line and `**Ended**: <date>`.
17
+ 4. **Archive artifacts**: Create `.design/archive/cycle-N/` via Bash `mkdir -p`. Copy these files into it (if present):
18
+ - `DESIGN.md`
19
+ - `DESIGN-PLAN.md`
20
+ - `DESIGN-CONTEXT.md`
21
+ - `DESIGN-VERIFICATION.md`
22
+ - `DESIGN-AUDIT.md`
23
+ - `DESIGN-SUMMARY.md`
24
+ Mark originals with a `<!-- archived to .design/archive/cycle-N/ -->` note at top (do not delete - next cycle will overwrite).
25
+ 5. **Generate EXPERIENCE.md** (Haiku-tier writer step): Read cycle STATE decisions + `.design/DESIGN-VERIFICATION.md` (if present) + any `.design/reflections/*.md` from this cycle. Write `.design/archive/cycle-N/EXPERIENCE.md` using this structure (~100–200 lines, declarative-fact framing, prepend `reference/cycle-handoff-preamble.md` content):
26
+
27
+ ```markdown
28
+ <!-- archived cycle experience — reference, not current requests -->
29
+ # Cycle N — Experience
30
+
31
+ **Goal**: <one-line goal from STATE.md or CYCLES.md>
32
+ **Opened**: <start date>
33
+ **Ended**: <today>
34
+
35
+ ## Decisions Made
36
+
37
+ <list all D-XX decisions from STATE.md <decisions> block — one per line>
38
+
39
+ ## Learnings Graduated
40
+
41
+ <list all L-NN learnings surfaced or promoted this cycle>
42
+
43
+ ## What Died
44
+
45
+ <designs, approaches, or tasks that were started but abandoned — and why>
46
+
47
+ ## Surprises
48
+
49
+ <what was unexpected during this cycle>
50
+
51
+ ## Handoff to Next Cycle
52
+
53
+ <what the next cycle should know: active sketches, deferred tasks, unresolved questions>
54
+ ```
55
+
56
+ This file becomes the highest-priority source for the decision-injector hook in future sessions.
57
+
58
+ 6. **Trigger reindex**: if `.design/search.db` exists, rebuild the search index:
59
+ ```bash
60
+ node -e "require('./scripts/lib/design-search.cjs').reindex(process.cwd())" 2>/dev/null || true
61
+ ```
62
+
63
+ 7. **Clear STATE.md**: Set `cycle:` to empty string, reset `<decisions>` to a fresh empty section, reset `stage:` to `brief`.
64
+ 8. Print: "Cycle <N> archived. Run `{{command_prefix}}new-cycle` to start the next cycle."
65
+
66
+ ## Do Not
67
+
68
+ - Do not delete source files in `src/` - only archive `.design/` artifacts.
69
+ - Do not auto-start a new cycle - user invokes `{{command_prefix}}new-cycle` explicitly.
70
+
71
+ ## Step 6 - Update notice (post-closeout surface)
72
+
73
+ After the archive has been written and STATE.md has been cleared for the next cycle, emit the plugin-update banner if one is present:
74
+
75
+ ```bash
76
+ [ -f .design/update-available.md ] && cat .design/update-available.md
77
+ ```
78
+
79
+ Written by `hooks/update-check.sh`; suppressed mid-pipeline and when the latest release is dismissed.
80
+
81
+ ## COMPLETE-CYCLE COMPLETE
@@ -0,0 +1,71 @@
1
+ ---
2
+ name: gdd-connections
3
+ description: "Interactive onboarding wizard for the 33 external integrations the pipeline supports - probes all (`figma`, `refero`, `preview`, `storybook`, `chromatic`, `graphify`, `pinterest`, `claude-design`, `paper-design`, `pencil-dev`, `21st-dev`, `magic-patterns`, `lazyweb`, `mobbin`, `slack`, `discord`, `linear`, `jira`, `notion`, `lottie`, `rive`, `framer`, `penpot`, `webflow`, `v0-dev`, `plasmic`, `builder-io`, `launchdarkly`, `statsig`, `growthbook`, `usertesting`, `maze`, `hotjar`), recommends based on project type, walks the user through setup (auto-run MCP install or copy-command fallback), writes results to `STATE.md <connections>`. Use after `{{command_prefix}}new-project` or whenever the user wants to add, inspect, or skip a connection. Re-runnable anytime. Activates for requests involving setting up external integrations, probing Figma or preview or storybook, or onboarding tools."
4
+ argument-hint: "[list | <connection-name> | --auto]"
5
+ user-invocable: true
6
+ tools: Read, Write, Bash, Glob, Grep, AskUserQuestion, ToolSearch
7
+ ---
8
+
9
+ # {{command_prefix}}connections
10
+
11
+ Interactive onboarding for the 33 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 per-connection specs live in `../../connections/<name>.md` (one file per integration). The capability matrix + probe-pattern spec live in `../../connections/connections.md`. This skill is the **user-facing front end** for those specs.
14
+
15
+ For the 33 probe scripts (MCP + HTTP + CLI + file probes), bucket categorization, per-connection setup screen, auto-run eligibility matrix, value-prop one-liners, and STATE.md / config.json write contracts, see `./connections-onboarding.md`. For the cross-skill probe pattern + connection-handshake summary, see `../../reference/shared-preamble.md#connection-handshake-summary`. For the cross-skill output discipline, see `../../reference/shared-preamble.md#output-contract-reminders`.
16
+
17
+ ---
18
+
19
+ ## Invocation Modes
20
+
21
+ | Command | Behavior |
22
+ |---|---|
23
+ | `{{command_prefix}}connections` | Interactive wizard (default). Probes all, shows summary, asks what to configure. |
24
+ | `{{command_prefix}}connections list` | Read-only table. Probes all, writes STATE.md, no prompts, exits. |
25
+ | `{{command_prefix}}connections <name>` | Jump straight to setup for one connection (e.g. `{{command_prefix}}connections figma`). |
26
+ | `{{command_prefix}}connections --auto` | CI mode. Probes, writes STATE.md, no prompts, no install attempts. |
27
+
28
+ ---
29
+
30
+ ## State Integration
31
+
32
+ 1. Read `.design/STATE.md` - if missing, that's fine; this skill does not require a pipeline run.
33
+ 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.
34
+ 3. Read `connections.skip[]` from config - never re-prompt for skipped connections.
35
+ 4. Update `last_checkpoint` in STATE.md at skill exit if STATE.md exists.
36
+
37
+ ---
38
+
39
+ ## Workflow
40
+
41
+ 1. **Probe all 33 connections** - run every probe script per `./connections-onboarding.md#step-1--probe-all-33-connections`. MCP probes use `ToolSearch` first; HTTP / CLI / file probes follow non-MCP patterns. Merge results into `STATE.md <connections>` with the three-value schema (`available | unavailable | not_configured`) - never add new values.
42
+ 2. **Categorize + build summary** - bucket each probe result (available / recommended / optional / skipped / unavailable) using project-hint detection. Detail + recommendation mapping: `./connections-onboarding.md#step-2--bucket-categorization`.
43
+ 3. **Print summary table** - show buckets + value-prop one-liners (verbatim from `./connections-onboarding.md#step-3--summary-table`).
44
+ 4. **Route by mode** - `list` / `--auto` exits after summary; `<name>` jumps straight to Step 5; default mode opens an AskUserQuestion (configure recommended / pick one by one / configure all optional / re-check specific / exit). Routing detail: `./connections-onboarding.md#step-4--route-by-mode`.
45
+ 5. **Per-connection setup screen** - for each target: read `connections/<name>.md`, present the setup screen, AskUserQuestion (run now / copy-paste / skip / never ask). Auto-run only if reversible (see eligibility matrix). On success: append name to `connections_onboarding.pending_verification[]`. Detail: `./connections-onboarding.md#step-5--per-connection-setup-screen`.
46
+ 6. **Verification pass** - re-probe every name in `pending_verification[]`. Available → remove. `not_configured` → leave (needs session restart). `unavailable` → leave + note OAuth needed. Print "Setup complete" summary. Detail: `./connections-onboarding.md#step-6--verification-pass`.
47
+
48
+ If `.design/config.json > connections_onboarding.pending_verification[]` is non-empty at entry → enter **resume flow**: run Step 6 immediately; if clean, exit; otherwise fall through to Step 3. Detail: `./connections-onboarding.md#resumability`.
49
+
50
+ ---
51
+
52
+ ## Do Not
53
+
54
+ Per `./connections-onboarding.md#do-not`:
55
+
56
+ - Never run `npm install -g` globals automatically.
57
+ - Never write to `~/.bashrc`, `~/.zshrc`, or shell RC files.
58
+ - Never run `claude mcp add` without explicit `"Run install command now"` confirmation.
59
+ - Never auto-restart the Claude Code session.
60
+ - Never re-prompt for names in `connections.skip[]`.
61
+ - Never overwrite existing `<connections>` entries that this skill did not probe - merge only.
62
+
63
+ ---
64
+
65
+ ## Output
66
+
67
+ End every invocation with:
68
+
69
+ ```
70
+ ## CONNECTIONS COMPLETE
71
+ ```