@hegemonart/get-design-done 1.18.0 → 1.19.5

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 (63) hide show
  1. package/.claude-plugin/marketplace.json +11 -5
  2. package/.claude-plugin/plugin.json +10 -4
  3. package/CHANGELOG.md +51 -0
  4. package/README.md +7 -0
  5. package/SKILL.md +10 -4
  6. package/agents/README.md +53 -0
  7. package/agents/a11y-mapper.md +10 -0
  8. package/agents/component-benchmark-harvester.md +11 -0
  9. package/agents/component-benchmark-synthesizer.md +11 -0
  10. package/agents/component-taxonomy-mapper.md +10 -0
  11. package/agents/design-advisor.md +10 -0
  12. package/agents/design-assumptions-analyzer.md +10 -0
  13. package/agents/design-auditor.md +15 -0
  14. package/agents/design-authority-watcher.md +10 -0
  15. package/agents/design-component-generator.md +10 -0
  16. package/agents/design-context-builder.md +6 -1
  17. package/agents/design-context-checker-gate.md +10 -0
  18. package/agents/design-context-checker.md +10 -0
  19. package/agents/design-discussant.md +10 -0
  20. package/agents/design-doc-writer.md +12 -0
  21. package/agents/design-executor.md +11 -1
  22. package/agents/design-figma-writer.md +10 -0
  23. package/agents/design-fixer.md +10 -0
  24. package/agents/design-integration-checker-gate.md +10 -0
  25. package/agents/design-integration-checker.md +10 -0
  26. package/agents/design-paper-writer.md +10 -0
  27. package/agents/design-pattern-mapper.md +11 -0
  28. package/agents/design-pencil-writer.md +10 -0
  29. package/agents/design-phase-researcher.md +11 -1
  30. package/agents/design-plan-checker.md +10 -0
  31. package/agents/design-planner.md +10 -0
  32. package/agents/design-reflector.md +10 -0
  33. package/agents/design-research-synthesizer.md +10 -0
  34. package/agents/design-start-writer.md +10 -0
  35. package/agents/design-update-checker.md +10 -0
  36. package/agents/design-verifier-gate.md +10 -0
  37. package/agents/design-verifier.md +11 -0
  38. package/agents/gdd-graphify-sync.md +10 -0
  39. package/agents/gdd-intel-updater.md +10 -0
  40. package/agents/gdd-learnings-extractor.md +10 -0
  41. package/agents/motion-mapper.md +10 -0
  42. package/agents/token-mapper.md +10 -0
  43. package/agents/visual-hierarchy-mapper.md +10 -0
  44. package/hooks/gdd-decision-injector.js +30 -8
  45. package/package.json +16 -3
  46. package/reference/data-visualization.md +333 -0
  47. package/reference/form-patterns.md +245 -0
  48. package/reference/information-architecture.md +255 -0
  49. package/reference/onboarding-progressive-disclosure.md +250 -0
  50. package/reference/platforms.md +346 -0
  51. package/reference/registry.json +409 -360
  52. package/reference/rtl-cjk-cultural.md +353 -0
  53. package/reference/schemas/insight-line.schema.json +37 -0
  54. package/reference/user-research.md +360 -0
  55. package/scripts/lib/design-search.cjs +206 -0
  56. package/scripts/lib/probe-optional.cjs +29 -0
  57. package/scripts/lib/relevance-counter.cjs +121 -0
  58. package/skills/complete-cycle/SKILL.md +40 -2
  59. package/skills/continue/SKILL.md +23 -0
  60. package/skills/pause/SKILL.md +40 -14
  61. package/skills/recall/SKILL.md +74 -0
  62. package/skills/resume/SKILL.md +34 -16
  63. package/skills/timeline/SKILL.md +65 -0
@@ -5,14 +5,14 @@
5
5
  },
6
6
  "metadata": {
7
7
  "description": "Get Design Done — 5-stage agent-orchestrated design pipeline with 9 connections, handoff-first workflow, bidirectional Figma write-back, 22+ specialized agents, queryable knowledge layer (intel store, dependency analysis, learnings extraction), and a self-improvement loop (reflector, frontmatter + budget feedback, global-skills layer). Ships with a full CI/CD pipeline (Node 22/24 × Linux/macOS/Windows) and release automation (auto-tag + GitHub Release + release-time smoke test).",
8
- "version": "1.18.0"
8
+ "version": "1.19.5"
9
9
  },
10
10
  "plugins": [
11
11
  {
12
12
  "name": "get-design-done",
13
13
  "source": "./",
14
- "description": "Agent-orchestrated 5-stage design pipeline: Brief → Explore → Plan → Design → Verify. 22+ specialized agents, 9 connections (Figma, Refero, Preview, Storybook, Chromatic, Figma Writer, Graphify, Pinterest, Claude Design), Claude Design handoff, bidirectional Figma write-back, and a queryable intel store (.design/intel/) for dependency and learnings queries. Standalone commands: style, darkmode, compare, figma-write, graphify, handoff, analyze-dependencies, skill-manifest, extract-learnings. Ships 35-component benchmark corpus with pipeline integration (auditor conformance, executor pre-flight, doc-writer scaffold, pattern-mapper convergence). Embeds NNG heuristics, WCAG thresholds, typographic systems, motion framework, variable-font loading, image optimization, CSS Grid + container queries, advanced motion vocabulary, and anti-pattern catalog. Ships with a full CI/CD pipeline (Node 22/24 × Linux/macOS/Windows) and release automation. Optimization layer (v1.0.4.1, retroactive): gdd-router + gdd-cache-manager skills, PreToolUse budget-enforcer hook, tier-aware agent frontmatter, lazy checker gates, streaming synthesizer, /gdd:warm-cache + /gdd:optimize commands, and cost telemetry at .design/telemetry/costs.jsonl — targeting 50-70% per-task token-cost reduction with no quality-floor regression.",
15
- "version": "1.18.0",
14
+ "description": "Agent-orchestrated 5-stage design pipeline: Brief → Explore → Plan → Design → Verify. 22+ specialized agents, 9 connections (Figma, Refero, Preview, Storybook, Chromatic, Figma Writer, Graphify, Pinterest, Claude Design), Claude Design handoff, bidirectional Figma write-back, and a queryable intel store (.design/intel/) for dependency and learnings queries. Standalone commands: style, darkmode, compare, figma-write, graphify, handoff, analyze-dependencies, skill-manifest, extract-learnings. Ships 35-component benchmark corpus with pipeline integration (auditor conformance, executor pre-flight, doc-writer scaffold, pattern-mapper convergence). Embeds NNG heuristics, WCAG thresholds, typographic systems, motion framework, variable-font loading, image optimization, CSS Grid + container queries, advanced motion vocabulary, platform design patterns (iOS/Android/web/visionOS), RTL/CJK/cultural adaptations, IA catalog, form UX patterns, data-visualization matrix, and user-research methodology, and anti-pattern catalog. Ships with a full CI/CD pipeline (Node 22/24 × Linux/macOS/Windows) and release automation. Optimization layer (v1.0.4.1, retroactive): gdd-router + gdd-cache-manager skills, PreToolUse budget-enforcer hook, tier-aware agent frontmatter, lazy checker gates, streaming synthesizer, /gdd:warm-cache + /gdd:optimize commands, and cost telemetry at .design/telemetry/costs.jsonl — targeting 50-70% per-task token-cost reduction with no quality-floor regression.",
15
+ "version": "1.19.5",
16
16
  "author": {
17
17
  "name": "hegemonart"
18
18
  },
@@ -65,8 +65,14 @@
65
65
  "component-specs",
66
66
  "design-system-benchmarks",
67
67
  "component-conformance",
68
- "convergence-detector"
68
+ "convergence-detector",
69
+ "i18n",
70
+ "user-research",
71
+ "information-architecture",
72
+ "form-patterns",
73
+ "data-viz",
74
+ "platforms"
69
75
  ]
70
76
  }
71
77
  ]
72
- }
78
+ }
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "get-design-done",
3
3
  "short_name": "gdd",
4
- "version": "1.18.0",
5
- "description": "Agent-orchestrated 5-stage design pipeline: Brief → Explore → Plan → Design → Verify. 22+ specialized agents, 9 connections (Figma, Refero, Preview, Storybook, Chromatic, Figma Writer, Graphify, Pinterest, Claude Design), handoff-first workflow via Claude Design bundles, bidirectional Figma write-back (annotations, Code Connect), queryable intel store (`.design/intel/`) for O(1) design surface lookups, and self-improvement loop (reflector agent, frontmatter + budget feedback, global-skills layer at `~/.claude/gdd/global-skills/`). Standalone commands: style, darkmode, compare, figma-write, graphify, handoff, analyze-dependencies, skill-manifest, extract-learnings, reflect, apply-reflections. Ships 35-component benchmark corpus (Waves 1–5) with pipeline integration: auditor conformance scoring, executor spec pre-flight, doc-writer scaffold, pattern-mapper convergence detector. Embeds NNG heuristics, WCAG thresholds, typographic systems, motion framework, variable-font loading, image optimization, CSS Grid + container queries, advanced motion vocabulary (RN MIT easings/spring/interpolate + hyperframes transition taxonomy), and anti-pattern catalog. Ships with a full CI/CD pipeline (Node 22/24 × Linux/macOS/Windows, lint + schema + frontmatter + stale-ref + shellcheck + gitleaks + injection-scan + blocking size-budget) and release automation (auto-tag + GitHub Release + release-time smoke test). Optimization layer (v1.0.4.1, retroactive): gdd-router + gdd-cache-manager skills, PreToolUse budget-enforcer hook, tier-aware agent frontmatter, lazy checker gates, streaming synthesizer, /gdd:warm-cache + /gdd:optimize commands, and cost telemetry at .design/telemetry/costs.jsonl — targeting 50-70% per-task token-cost reduction with no quality-floor regression.",
4
+ "version": "1.19.5",
5
+ "description": "Agent-orchestrated 5-stage design pipeline: Brief → Explore → Plan → Design → Verify. 22+ specialized agents, 9 connections (Figma, Refero, Preview, Storybook, Chromatic, Figma Writer, Graphify, Pinterest, Claude Design), handoff-first workflow via Claude Design bundles, bidirectional Figma write-back (annotations, Code Connect), queryable intel store (`.design/intel/`) for O(1) design surface lookups, and self-improvement loop (reflector agent, frontmatter + budget feedback, global-skills layer at `~/.claude/gdd/global-skills/`). Standalone commands: style, darkmode, compare, figma-write, graphify, handoff, analyze-dependencies, skill-manifest, extract-learnings, reflect, apply-reflections. Ships 35-component benchmark corpus (Waves 1–5) with pipeline integration: auditor conformance scoring, executor spec pre-flight, doc-writer scaffold, pattern-mapper convergence detector. Embeds NNG heuristics, WCAG thresholds, typographic systems, motion framework, variable-font loading, image optimization, CSS Grid + container queries, advanced motion vocabulary (RN MIT easings/spring/interpolate + hyperframes transition taxonomy), platform design patterns (iOS/Android/web/visionOS), RTL/CJK/cultural adaptations, information architecture catalog, form UX patterns (Wroblewski label research), data-visualization matrix (25 chart types, Okabe-Ito palette), and user-research methodology, and anti-pattern catalog. Ships with a full CI/CD pipeline (Node 22/24 × Linux/macOS/Windows, lint + schema + frontmatter + stale-ref + shellcheck + gitleaks + injection-scan + blocking size-budget) and release automation (auto-tag + GitHub Release + release-time smoke test). Optimization layer (v1.0.4.1, retroactive): gdd-router + gdd-cache-manager skills, PreToolUse budget-enforcer hook, tier-aware agent frontmatter, lazy checker gates, streaming synthesizer, /gdd:warm-cache + /gdd:optimize commands, and cost telemetry at .design/telemetry/costs.jsonl — targeting 50-70% per-task token-cost reduction with no quality-floor regression.",
6
6
  "author": {
7
7
  "name": "hegemonart",
8
8
  "url": "https://github.com/hegemonart"
@@ -76,9 +76,15 @@
76
76
  "component-specs",
77
77
  "design-system-benchmarks",
78
78
  "component-conformance",
79
- "convergence-detector"
79
+ "convergence-detector",
80
+ "i18n",
81
+ "user-research",
82
+ "information-architecture",
83
+ "form-patterns",
84
+ "data-viz",
85
+ "platforms"
80
86
  ],
81
87
  "skills": [
82
88
  "./skills/"
83
89
  ]
84
- }
90
+ }
package/CHANGELOG.md CHANGED
@@ -4,6 +4,57 @@ All notable changes to get-design-done are documented here. Versions follow [sem
4
4
 
5
5
  ---
6
6
 
7
+ ## [1.19.5] — 2026-04-24
8
+
9
+ ### Added — Cross-Cycle Memory: Recall, Checkpoints, Experience Archive
10
+
11
+ Turns write-only learnings and reflections into a queryable, ranked, self-pruning memory layer.
12
+
13
+ **Search backend (`scripts/lib/design-search.cjs`):** Priority chain — FTS5 via `better-sqlite3` (optional dep, runtime-probed) → ripgrep → Node fs scan. `/gdd:recall --reindex` rebuilds the index. `scripts/lib/probe-optional.cjs` wraps optional native deps for future reuse.
14
+
15
+ **Cross-cycle recall (`/gdd:recall <query>`):** `skills/recall/SKILL.md` — searches `.design/archive/`, `.design/learnings/LEARNINGS.md`, `.design/CYCLES.md`, and STATE.md decision blocks; signals `surfaced` for matched L-NN IDs via `relevance-counter.cjs`.
16
+
17
+ **Numbered checkpoints (pause/resume rewrite):** `skills/pause/SKILL.md` atomic-appends to `.design/checkpoints/NN-<stage>-<ISO-date>.md` instead of clobbering `HANDOFF.md`; `HANDOFF.md` becomes a pointer to the latest checkpoint. `skills/resume/SKILL.md` gains listing mode with `AskUserQuestion` picker when no arg; `/gdd:resume N` restores checkpoint N. `skills/continue/SKILL.md` — alias for `/gdd:resume` (discoverability).
18
+
19
+ **Per-cycle EXPERIENCE.md:** `skills/complete-cycle/SKILL.md` extended — Haiku-tier writer reads cycle STATE + DESIGN-VERIFICATION + reflections, emits `.design/archive/cycle-N/EXPERIENCE.md` (~100–200 lines, declarative-fact framing: Goal / Decisions made / Learnings graduated / What died / Surprises / Handoff to next cycle). Highest-priority source for decision-injector.
20
+
21
+ **Timeline retrospective (`/gdd:timeline`):** `skills/timeline/SKILL.md` — narrative view across EXPERIENCE.md files + git log; sections Opened with / Key decisions / Surprises / What we'd do differently.
22
+
23
+ **Relevance counter (`scripts/lib/relevance-counter.cjs`):** `record(id, signal, designDir)` under atomic-write + `.lock`; signals: `cited`, `surfaced`, `dismissed`. `shouldPromote` at 8+ cites; `shouldPrune` at 0 cites + 4 cycles.
24
+
25
+ **Decision-injector FTS5 upgrade:** `hooks/gdd-decision-injector.js` backend-swaps to FTS5 transparently when `design-search.cjs` is available — zero surface-level output change, backend label shown in footer.
26
+
27
+ **Record contract (mandatory for all agents):** `agents/README.md` authoring template gains mandatory `## Record` step — every agent appends one JSONL line to `.design/intel/insights.jsonl`. `reference/schemas/insight-line.schema.json` — schema with 6 required fields (`ts`, `agent`, `cycle`, `stage`, `one_line_insight`, `artifacts_written`). `tests/record-contract.test.cjs` enforces presence of `## Record` section in every `agents/*.md`. All 36 existing agents updated with stub Record sections.
28
+
29
+ ---
30
+
31
+ ## [1.19.0] — 2026-04-24
32
+
33
+ ### Added — Platform, Inclusive Design & UX Research References (knowledge-layer complete)
34
+
35
+ This release closes the final reference gaps identified in the 2026-04-18 knowledge audit. The plugin now ships 18 reference files covering every major design-knowledge domain.
36
+
37
+ #### 7 new reference files
38
+
39
+ - **`reference/platforms.md`** — iOS/Android/web/visionOS/watchOS conventions: nav patterns, safe areas, gesture vocabularies, native typography, haptic feedback. Wired into `design-context-builder` + `design-phase-researcher`.
40
+ - **`reference/rtl-cjk-cultural.md`** — RTL logical CSS properties, CJK typography (line-height 1.5–1.8, font-fallback stacks), Arabic/Hebrew, Devanagari/Tamil/Thai, cultural color meanings table, `Intl.*` formatting. Wired into `design-context-builder` + `design-auditor`.
41
+ - **`reference/onboarding-progressive-disclosure.md`** — First-run pattern matrix, feature discovery, Aha-moment mapping, activation vs. habituation metrics, anti-patterns. Wired into `design-executor` + `design-auditor`.
42
+ - **`reference/user-research.md`** — Research method matrix, card sort/tree test/A/B benchmarks, synthesis techniques, research ethics. Wired into `design-phase-researcher`.
43
+ - **`reference/information-architecture.md`** — Nav pattern catalog (hub-and-spoke/nested/faceted/flat/mega-menu), tree-test benchmarks, wayfinding ARIA conventions. Wired into `design-context-builder` + `design-pattern-mapper`.
44
+ - **`reference/form-patterns.md`** — Label position (Wroblewski research), on-blur validation default, full `autocomplete` taxonomy, `inputmode`/`enterkeyhint`, password UX (paste-allowed), CAPTCHA ethics. Wired into `design-auditor` (forms pillar) + `design-executor` (new `type:forms`).
45
+ - **`reference/data-visualization.md`** — Chart-choice matrix, 25 chart types (decision-tree prose, UUPM `charts.csv` MIT), Okabe-Ito/viridis/cividis palettes, axis conventions, dashboard patterns. Wired into `design-auditor` + `design-executor`.
46
+
47
+ #### Agent wiring
48
+ - `design-context-builder` — Area 2 locale detection; Area 6 platform note; `canonical_refs` extended with 3 conditional references.
49
+ - `design-auditor` — Required reading extended: form-patterns, onboarding, data-visualization, rtl-cjk-cultural, information-architecture.
50
+ - `design-executor` — New `type:forms` task type (7-step checklist); `type:layout` reads data-viz for dashboards; `type:copy` reads onboarding for first-run flows.
51
+ - `design-phase-researcher` — reads user-research.md + platforms.md.
52
+ - `design-pattern-mapper` — reads information-architecture.md for nav classification.
53
+
54
+ All 7 files registered in `reference/registry.json`. Regression baseline at `test-fixture/baselines/phase-19/`.
55
+
56
+ ---
57
+
7
58
  ## [1.18.0] — 2026-04-24
8
59
 
9
60
  ### Added — Advanced Craft References + Motion Vocabulary
package/README.md CHANGED
@@ -76,6 +76,13 @@ You don't need to be a designer. The pipeline carries the design expertise so yo
76
76
 
77
77
  Built-in quality gates catch real problems: Handoff Faithfulness scoring on Claude Design bundles, contrast audits across the full palette × surface matrix, anti-pattern detection from the NNG catalog, dark-mode architecture verification, and motion-system consistency checks.
78
78
 
79
+ ### v1.19.0 Highlights — Full Knowledge Coverage (18 reference files)
80
+
81
+ - **Knowledge-layer complete** — The plugin now ships **18 reference files** covering every major design-knowledge domain identified in the 2026-04-18 coverage audit. Agents have authoritative answers on platform conventions, internationalization, research methodology, information architecture, form design, and data visualization — in addition to the foundational knowledge from v1.15.0.
82
+ - **7 new Phase 19 references** — `platforms.md` (iOS/Android/web/visionOS/watchOS), `rtl-cjk-cultural.md` (RTL + CJK + cultural color), `onboarding-progressive-disclosure.md`, `user-research.md` (method matrix, A/B, ethics), `information-architecture.md` (nav patterns, tree-test benchmarks), `form-patterns.md` (Wroblewski label research, autocomplete taxonomy, CAPTCHA ethics), `data-visualization.md` (25 chart types, Okabe-Ito palette, dashboard patterns — UUPM MIT).
83
+ - **New `type:forms` executor task type** — `design-executor` now has a dedicated 7-step checklist for form audits: label position, validation timing, autocomplete tokens, inputmode hints, password UX, multi-step state, and CAPTCHA compliance.
84
+ - **Platform + locale detection in context-builder** — `design-context-builder` now explicitly prompts for locale/RTL/CJK requirements (Area 2) and device targets with platform references (Area 6), ensuring downstream agents receive the full platform context.
85
+
79
86
  ### v1.18.0 Highlights — Advanced Craft References + Motion Vocabulary
80
87
 
81
88
  - **4 advanced craft references** — `variable-fonts-loading.md` (variable axes, font-display trade-offs, WOFF2 subsetting, fallback metric overrides, GRAD axis for dark mode), `image-optimization.md` (WebP/AVIF/JPEG XL matrix, srcset math, LQIP/BlurHash, CDN transforms, image budgets), `css-grid-layout.md` (subgrid, container queries, fluid `clamp()` typography, logical properties, safe areas, anchor positioning), `motion-advanced.md` (spring physics, FLIP, View Transitions API, gesture/drag mechanics, clip-path animations, blur crossfades, Framer Motion hardware-accel gotcha, motion cohesion, next-day review).
package/SKILL.md CHANGED
@@ -2,7 +2,7 @@
2
2
  name: get-design-done
3
3
  short_name: gdd
4
4
  description: "Master design pipeline for Claude Code. 5-stage workflow: Brief → Explore → Plan → Design → Verify. Run 'brief' first in any new project to capture the design problem, then 'explore' to inventory the codebase and interview for context. Invoke without arguments for status and auto-routing."
5
- argument-hint: "[brief|explore|plan|design|verify|handoff|map|next|help|status|style|darkmode|compare|figma-write|graphify|discuss|list-assumptions|progress|health|todo|stats|note|plant-seed|add-backlog|review-backlog|scan|discover|settings|update|reapply-patches|audit|pause|resume|new-cycle|debug|quick|new-project|complete-cycle|fast|do|ship|undo|pr-branch|sketch|sketch-wrap-up|spike|spike-wrap-up|reflect|apply-reflections|analyze-dependencies|extract-learnings|skill-manifest|warm-cache|optimize|cache-manager|watch-authorities|check-update|benchmark]"
5
+ argument-hint: "[brief|explore|plan|design|verify|handoff|map|next|help|status|style|darkmode|compare|figma-write|graphify|discuss|list-assumptions|progress|health|todo|stats|note|plant-seed|add-backlog|review-backlog|scan|discover|settings|update|reapply-patches|audit|pause|resume|new-cycle|debug|quick|new-project|complete-cycle|fast|do|ship|undo|pr-branch|sketch|sketch-wrap-up|spike|spike-wrap-up|reflect|apply-reflections|analyze-dependencies|extract-learnings|skill-manifest|warm-cache|optimize|cache-manager|watch-authorities|check-update|benchmark|recall|timeline|continue]"
6
6
  user-invocable: true
7
7
  ---
8
8
 
@@ -42,8 +42,11 @@ Each stage produces artifacts in `.design/` inside the current project.
42
42
  | `audit [--retroactive] [--quick] [--no-reflect]` | `get-design-done:gdd-audit` | Wraps design-verifier + design-auditor + design-reflector; `--retroactive` audits full cycle scope |
43
43
  | `reflect [--dry-run] [--cycle <slug>]` | `get-design-done:gdd-reflect` | On-demand reflection — reads cycle data, produces improvement proposals → `.design/reflections/<slug>.md` |
44
44
  | `apply-reflections [--filter <type>] [--dry-run]` | `get-design-done:gdd-apply-reflections` | Review + selectively apply reflection proposals (FRONTMATTER/REFERENCE/BUDGET/QUESTION/GLOBAL-SKILL) |
45
- | `pause [context]` | `get-design-done:gdd-pause` | Write session handoff to `.design/HANDOFF.md` |
46
- | `resume` | `get-design-done:gdd-resume` | Restore session context from `.design/HANDOFF.md` and route to next step |
45
+ | `pause [context]` | `get-design-done:gdd-pause` | Write numbered checkpoint to `.design/checkpoints/NN-*.md` |
46
+ | `resume [N]` | `get-design-done:gdd-resume` | Restore session from checkpoint N (or list checkpoints if no arg) |
47
+ | `continue [N]` | `get-design-done:gdd-continue` | Alias for `/gdd:resume` |
48
+ | `recall <query>` | `get-design-done:gdd-recall` | Search cross-cycle memory (decisions, learnings, experience archives) |
49
+ | `timeline [N\|N-M\|all]` | `get-design-done:gdd-timeline` | Narrative retrospective across completed cycles |
47
50
  | **Lifecycle** | | |
48
51
  | `start [--budget <t>] [--skip-interview] [--dismiss-nudge]` | `get-design-done:start` | First-Run Proof Path — scans UI code, returns one concrete first fix. No STATE.md writes. |
49
52
  | `new-project [--name <n>]` | `get-design-done:gdd-new-project` | Initialize project — PROJECT.md + STATE.md + cycle-1 |
@@ -207,7 +210,10 @@ If `$ARGUMENTS` is a stage or command name — invoke it directly, no state chec
207
210
  /gdd:watch-authorities → Skill("get-design-done:gdd-watch-authorities")
208
211
  /gdd:benchmark → Skill("get-design-done:gdd-benchmark")
209
212
  /gdd:pause → Skill("get-design-done:gdd-pause")
210
- /gdd:resume → Skill("get-design-done:gdd-resume")
213
+ /gdd:resume → Skill("get-design-done:gdd-resume")
214
+ /gdd:continue → Skill("get-design-done:gdd-continue")
215
+ /gdd:recall → Skill("get-design-done:gdd-recall")
216
+ /gdd:timeline → Skill("get-design-done:gdd-timeline")
211
217
  # --- Lifecycle ---
212
218
  /gdd:start → Skill("get-design-done:start") # leaf command, no STATE.md
213
219
  /gdd:new-project → Skill("get-design-done:gdd-new-project")
package/agents/README.md CHANGED
@@ -188,6 +188,59 @@ Constraints: do not modify any file other than .design/example-output.md.
188
188
 
189
189
  ---
190
190
 
191
+ ## Mandatory Record Step (Phase 19.5)
192
+
193
+ Every agent **must** end its run by appending one JSONL line to `.design/intel/insights.jsonl`. This feeds `/gdd:reflect`, `/gdd:extract-learnings`, and the decision-injector relevance counter.
194
+
195
+ ### Format
196
+
197
+ ```json
198
+ {"ts":"2026-01-15T14:23:00.000Z","agent":"design-planner","cycle":"cycle-1","stage":"plan","one_line_insight":"Produced 7-task DESIGN-PLAN.md targeting typography and spacing","artifacts_written":[".design/DESIGN-PLAN.md"]}
199
+ ```
200
+
201
+ ### Schema
202
+
203
+ `reference/schemas/insight-line.schema.json` — all six fields are required.
204
+
205
+ | Field | Type | Notes |
206
+ |-------|------|-------|
207
+ | `ts` | ISO 8601 string | Current UTC time |
208
+ | `agent` | string | Must match frontmatter `name` field |
209
+ | `cycle` | string | From `STATE.md cycle:` — empty string if no active cycle |
210
+ | `stage` | string | From `STATE.md stage:` |
211
+ | `one_line_insight` | string ≤200 chars | Declarative fact: what was produced or learned |
212
+ | `artifacts_written` | string[] | Relative paths written; `[]` for read-only agents |
213
+
214
+ ### Implementation pattern
215
+
216
+ At the very end of your run (after all writes, before emitting the COMPLETE marker):
217
+
218
+ ```bash
219
+ echo '{"ts":"...","agent":"...","cycle":"...","stage":"...","one_line_insight":"...","artifacts_written":[...]}' >> .design/intel/insights.jsonl
220
+ ```
221
+
222
+ Or via Bash + `node -e` when quoting is complex. Always append (>>), never overwrite. Create `.design/intel/` with `mkdir -p` first.
223
+
224
+ ### Authoring template
225
+
226
+ Every new agent body must include a `## Record` section before the `## <NAME> COMPLETE` footer:
227
+
228
+ ```markdown
229
+ ## Record
230
+
231
+ At run-end, append one JSONL line to `.design/intel/insights.jsonl`:
232
+
233
+ \`\`\`json
234
+ {"ts":"<ISO-8601>","agent":"<name>","cycle":"<cycle>","stage":"<stage>","one_line_insight":"<what was produced>","artifacts_written":["<files>"]}
235
+ \`\`\`
236
+
237
+ Schema: `reference/schemas/insight-line.schema.json`.
238
+ ```
239
+
240
+ `tests/record-contract.test.cjs` enforces this section is present in every `agents/*.md` file.
241
+
242
+ ---
243
+
191
244
  ## Size Budgets
192
245
 
193
246
  Agents should be kept small — long instruction bodies burn context at every spawn and drift from their single-responsibility role. Per-tier soft limits:
@@ -141,3 +141,13 @@ Total: N findings. (0 = clean)
141
141
  No modifications outside `.design/map/`. No live browser. No git. No agent spawning.
142
142
 
143
143
  ## A11Y MAP COMPLETE
144
+
145
+ ## Record
146
+
147
+ At run-end, append one JSONL line to `.design/intel/insights.jsonl`:
148
+
149
+ ```json
150
+ {"ts":"<ISO-8601>","agent":"<name>","cycle":"<cycle from STATE.md>","stage":"<stage from STATE.md>","one_line_insight":"<what was produced or learned>","artifacts_written":["<files written>"]}
151
+ ```
152
+
153
+ Schema: `reference/schemas/insight-line.schema.json`. Use an empty `artifacts_written` array for read-only agents.
@@ -105,6 +105,17 @@ This pre-analysis seeds the synthesizer's convergence analysis.
105
105
  End your response with:
106
106
 
107
107
  ```
108
+
109
+ ## Record
110
+
111
+ At run-end, append one JSONL line to `.design/intel/insights.jsonl`:
112
+
113
+ ```json
114
+ {"ts":"<ISO-8601>","agent":"<name>","cycle":"<cycle from STATE.md>","stage":"<stage from STATE.md>","one_line_insight":"<what was produced or learned>","artifacts_written":["<files written>"]}
115
+ ```
116
+
117
+ Schema: `reference/schemas/insight-line.schema.json`. Use an empty `artifacts_written` array for read-only agents.
118
+
108
119
  ## HARVEST COMPLETE
109
120
  Component: <name>
110
121
  Sources harvested: <N>
@@ -80,6 +80,17 @@ Update `reference/components/README.md`:
80
80
  End your response with:
81
81
 
82
82
  ```
83
+
84
+ ## Record
85
+
86
+ At run-end, append one JSONL line to `.design/intel/insights.jsonl`:
87
+
88
+ ```json
89
+ {"ts":"<ISO-8601>","agent":"<name>","cycle":"<cycle from STATE.md>","stage":"<stage from STATE.md>","one_line_insight":"<what was produced or learned>","artifacts_written":["<files written>"]}
90
+ ```
91
+
92
+ Schema: `reference/schemas/insight-line.schema.json`. Use an empty `artifacts_written` array for read-only agents.
93
+
83
94
  ## SYNTHESIS COMPLETE
84
95
  Component: <name>
85
96
  Spec: reference/components/<name>.md
@@ -85,4 +85,14 @@ dominant_styling: [CSS Modules | Tailwind | styled-components | mixed]
85
85
 
86
86
  Do not modify anything outside `.design/map/`. No git. No agent spawning.
87
87
 
88
+ ## Record
89
+
90
+ At run-end, append one JSONL line to `.design/intel/insights.jsonl`:
91
+
92
+ ```json
93
+ {"ts":"<ISO-8601>","agent":"<name>","cycle":"<cycle from STATE.md>","stage":"<stage from STATE.md>","one_line_insight":"<what was produced or learned>","artifacts_written":["<files written>"]}
94
+ ```
95
+
96
+ Schema: `reference/schemas/insight-line.schema.json`. Use an empty `artifacts_written` array for read-only agents.
97
+
88
98
  ## COMPONENT MAP COMPLETE
@@ -136,4 +136,14 @@ You MUST NOT:
136
136
 
137
137
  ---
138
138
 
139
+ ## Record
140
+
141
+ At run-end, append one JSONL line to `.design/intel/insights.jsonl`:
142
+
143
+ ```json
144
+ {"ts":"<ISO-8601>","agent":"<name>","cycle":"<cycle from STATE.md>","stage":"<stage from STATE.md>","one_line_insight":"<what was produced or learned>","artifacts_written":["<files written>"]}
145
+ ```
146
+
147
+ Schema: `reference/schemas/insight-line.schema.json`. Use an empty `artifacts_written` array for read-only agents.
148
+
139
149
  ## ADVICE COMPLETE
@@ -168,4 +168,14 @@ You MUST NOT:
168
168
 
169
169
  ---
170
170
 
171
+ ## Record
172
+
173
+ At run-end, append one JSONL line to `.design/intel/insights.jsonl`:
174
+
175
+ ```json
176
+ {"ts":"<ISO-8601>","agent":"<name>","cycle":"<cycle from STATE.md>","stage":"<stage from STATE.md>","one_line_insight":"<what was produced or learned>","artifacts_written":["<files written>"]}
177
+ ```
178
+
179
+ Schema: `reference/schemas/insight-line.schema.json`. Use an empty `artifacts_written` array for read-only agents.
180
+
171
181
  ## ANALYSIS COMPLETE
@@ -57,6 +57,11 @@ Minimum expected files:
57
57
  - `reference/image-optimization.md` (if present) — format matrix, srcset/sizes, LQIP/BlurHash, CDN transforms, image budgets; use when auditing Pillar 5 (Layout & Spacing) for image-heavy UIs
58
58
  - `reference/css-grid-layout.md` (if present) — subgrid, container queries, fluid clamp() typography, logical properties; use when auditing Pillar 5 (Layout & Spacing)
59
59
  - `reference/motion-advanced.md` (if present) — advanced motion patterns; score gesture/drag mechanics, clip-path animations, blur crossfades as "advanced craft" signal (positive, not a penalty) in Pillar 7 (Micro-Polish)
60
+ - `reference/form-patterns.md` — label position, validation timing, autofill tokens, password UX (use for forms-pillar checks)
61
+ - `reference/onboarding-progressive-disclosure.md` — first-run patterns, feature discovery, anti-patterns (use when onboarding flows are in scope)
62
+ - `reference/data-visualization.md` — chart-choice matrix, color-blind palettes, axis conventions (use for chart-heavy projects)
63
+ - `reference/rtl-cjk-cultural.md` — RTL mirroring, CJK typography, cultural color meanings (use when i18n or multi-locale is in scope)
64
+ - `reference/information-architecture.md` — nav pattern catalog, menu-depth rules, wayfinding (use when nav structure is in scope)
60
65
 
61
66
  ---
62
67
 
@@ -523,4 +528,14 @@ If `reference/components/` does not exist or contains no specs, skip this sectio
523
528
 
524
529
  ---
525
530
 
531
+ ## Record
532
+
533
+ At run-end, append one JSONL line to `.design/intel/insights.jsonl`:
534
+
535
+ ```json
536
+ {"ts":"<ISO-8601>","agent":"<name>","cycle":"<cycle from STATE.md>","stage":"<stage from STATE.md>","one_line_insight":"<what was produced or learned>","artifacts_written":["<files written>"]}
537
+ ```
538
+
539
+ Schema: `reference/schemas/insight-line.schema.json`. Use an empty `artifacts_written` array for read-only agents.
540
+
526
541
  ## AUDIT COMPLETE
@@ -205,4 +205,14 @@ On contract violation (schema mismatch, hash format violation, over-200 entries)
205
205
 
206
206
  Terminate every response with:
207
207
 
208
+ ## Record
209
+
210
+ At run-end, append one JSONL line to `.design/intel/insights.jsonl`:
211
+
212
+ ```json
213
+ {"ts":"<ISO-8601>","agent":"<name>","cycle":"<cycle from STATE.md>","stage":"<stage from STATE.md>","one_line_insight":"<what was produced or learned>","artifacts_written":["<files written>"]}
214
+ ```
215
+
216
+ Schema: `reference/schemas/insight-line.schema.json`. Use an empty `artifacts_written` array for read-only agents.
217
+
208
218
  ## WATCH COMPLETE
@@ -219,3 +219,13 @@ Written: src/components/<ComponentName>.tsx
219
219
  DS: <design_system>
220
220
  [Preview: <preview_url>]
221
221
  ```
222
+
223
+ ## Record
224
+
225
+ At run-end, append one JSONL line to `.design/intel/insights.jsonl`:
226
+
227
+ ```json
228
+ {"ts":"<ISO-8601>","agent":"<name>","cycle":"<cycle from STATE.md>","stage":"<stage from STATE.md>","one_line_insight":"<what was produced or learned>","artifacts_written":["<files written>"]}
229
+ ```
230
+
231
+ Schema: `reference/schemas/insight-line.schema.json`. Use an empty `artifacts_written` array for read-only agents.
@@ -317,6 +317,8 @@ Examples:
317
317
 
318
318
  If inferred from README, state the inference and ask for correction.
319
319
 
320
+ Also capture: locale/language targets. If the product serves RTL locales (Arabic, Hebrew) or CJK audiences (Chinese, Japanese, Korean), note this in the context file and read `reference/rtl-cjk-cultural.md` before writing layout and typography decisions.
321
+
320
322
  ### Area 3 — Goals (Observable Outcomes)
321
323
 
322
324
  > What does success look like? Name 1–3 observable, measurable outcomes.
@@ -398,7 +400,7 @@ Note: Refero tool name may differ — always verify via ToolSearch. Two or more
398
400
  - Framework / CSS approach (already inferred — confirm)
399
401
  - Existing design tokens that cannot change
400
402
  - Accessibility level (WCAG AA minimum by default — AAA if specified)
401
- - Device targets (desktop-primary, mobile-first, or responsive equal priority)
403
+ - Device targets (desktop-primary, mobile-first, or responsive equal priority) — if mobile or native-app target, read `reference/platforms.md` for safe-area, gesture, and nav-pattern constraints
402
404
  - Browser support requirements
403
405
  - Performance constraints (animation budget, bundle size)
404
406
  - Deadline
@@ -578,6 +580,9 @@ C-04: [other constraints]
578
580
  - ${CLAUDE_PLUGIN_ROOT}/reference/heuristics.md
579
581
  - ${CLAUDE_PLUGIN_ROOT}/reference/iconography.md
580
582
  - ${CLAUDE_PLUGIN_ROOT}/reference/performance.md
583
+ - ${CLAUDE_PLUGIN_ROOT}/reference/platforms.md (read when project targets mobile or cross-platform — iOS, Android, visionOS, watchOS)
584
+ - ${CLAUDE_PLUGIN_ROOT}/reference/rtl-cjk-cultural.md (read when project serves non-Latin locales or has explicit i18n requirement)
585
+ - ${CLAUDE_PLUGIN_ROOT}/reference/information-architecture.md (read when nav complexity or IA decisions are in scope)
581
586
  </canonical_refs>
582
587
 
583
588
  <baseline_audit>
@@ -87,4 +87,14 @@ You MAY:
87
87
 
88
88
  Per 10.1-CONTEXT decision **D-21** (Lazy Checker Spawning): "Cheap Haiku gate agents at `agents/*-gate.md` decide whether to spawn full checker. If false, skip full checker, log as `lazy_skipped: true` in telemetry." This gate is the context-checker-specific instance of that pattern — the full `design-context-checker` runs a 6-dimension rubric against `.design/DESIGN-CONTEXT.md`. If the builder made no changes to that file in this phase (a no-op re-run of discover, for example), the prior verdict still holds and the spawn is wasted cost.
89
89
 
90
+ ## Record
91
+
92
+ At run-end, append one JSONL line to `.design/intel/insights.jsonl`:
93
+
94
+ ```json
95
+ {"ts":"<ISO-8601>","agent":"<name>","cycle":"<cycle from STATE.md>","stage":"<stage from STATE.md>","one_line_insight":"<what was produced or learned>","artifacts_written":["<files written>"]}
96
+ ```
97
+
98
+ Schema: `reference/schemas/insight-line.schema.json`. Use an empty `artifacts_written` array for read-only agents.
99
+
90
100
  ## GATE COMPLETE
@@ -257,4 +257,14 @@ You MUST NOT:
257
257
 
258
258
  ---
259
259
 
260
+ ## Record
261
+
262
+ At run-end, append one JSONL line to `.design/intel/insights.jsonl`:
263
+
264
+ ```json
265
+ {"ts":"<ISO-8601>","agent":"<name>","cycle":"<cycle from STATE.md>","stage":"<stage from STATE.md>","one_line_insight":"<what was produced or learned>","artifacts_written":["<files written>"]}
266
+ ```
267
+
268
+ Schema: `reference/schemas/insight-line.schema.json`. Use an empty `artifacts_written` array for read-only agents.
269
+
260
270
  ## CONTEXT CHECK COMPLETE
@@ -95,4 +95,14 @@ Write quality log after every exchange. This data feeds `design-reflector`'s que
95
95
  - Never grep or glob the codebase — you are a discussant, not a detector.
96
96
  - Never spawn other agents.
97
97
 
98
+ ## Record
99
+
100
+ At run-end, append one JSONL line to `.design/intel/insights.jsonl`:
101
+
102
+ ```json
103
+ {"ts":"<ISO-8601>","agent":"<name>","cycle":"<cycle from STATE.md>","stage":"<stage from STATE.md>","one_line_insight":"<what was produced or learned>","artifacts_written":["<files written>"]}
104
+ ```
105
+
106
+ Schema: `reference/schemas/insight-line.schema.json`. Use an empty `artifacts_written` array for read-only agents.
107
+
98
108
  ## DISCUSS COMPLETE
@@ -6,6 +6,8 @@ color: yellow
6
6
  model: sonnet
7
7
  default-tier: sonnet
8
8
  tier-rationale: "Produces polished prose documentation; Sonnet's style quality is sufficient"
9
+ size_budget: XL
10
+ size_budget_rationale: "Phase 19.5 Record contract added ~11 lines; base doc-writer body is 250-line tier"
9
11
  parallel-safe: always
10
12
  typical-duration-seconds: 45
11
13
  reads-only: false
@@ -247,4 +249,14 @@ This agent MUST NOT:
247
249
 
248
250
  ---
249
251
 
252
+ ## Record
253
+
254
+ At run-end, append one JSONL line to `.design/intel/insights.jsonl`:
255
+
256
+ ```json
257
+ {"ts":"<ISO-8601>","agent":"<name>","cycle":"<cycle from STATE.md>","stage":"<stage from STATE.md>","one_line_insight":"<what was produced or learned>","artifacts_written":["<files written>"]}
258
+ ```
259
+
260
+ Schema: `reference/schemas/insight-line.schema.json`. Use an empty `artifacts_written` array for read-only agents.
261
+
250
262
  ## DOC COMPLETE
@@ -178,7 +178,7 @@ before committing final values.
178
178
 
179
179
  ### Type: layout
180
180
 
181
- Read `reference/layout.md` (if present) and relevant DESIGN-CONTEXT.md decisions before starting. If `reference/css-grid-layout.md` is present, also read it — apply modern Grid patterns (subgrid, container queries with `@container`, fluid `clamp()` typography, logical properties, safe-area insets, anchor positioning). If `reference/image-optimization.md` is present, apply it to any image-related layout decisions (format choice, srcset/sizes, lazy-loading, CDN transforms, image budget enforcement).
181
+ Read `reference/layout.md` (if present) and relevant DESIGN-CONTEXT.md decisions before starting. If `reference/css-grid-layout.md` is present, also read it — apply modern Grid patterns (subgrid, container queries with `@container`, fluid `clamp()` typography, logical properties, safe-area insets, anchor positioning). If `reference/image-optimization.md` is present, apply it to any image-related layout decisions (format choice, srcset/sizes, lazy-loading, CDN transforms, image budget enforcement). If the layout task involves charts, dashboards, or data display, also read `reference/data-visualization.md` for chart-choice and dashboard-pattern guidance.
182
182
 
183
183
  1. **Inventory layout structure**: identify all grid, flex, and positioning patterns in scope files.
184
184
  2. **Check spacing consistency**: grep for magic spacing values (px or rem) not from a spacing scale. Map to nearest scale step.
@@ -511,4 +511,14 @@ This agent MUST NOT:
511
511
  @.design/intel/tokens.json (if present)
512
512
  @.design/intel/decisions.json (if present)
513
513
 
514
+ ## Record
515
+
516
+ At run-end, append one JSONL line to `.design/intel/insights.jsonl`:
517
+
518
+ ```json
519
+ {"ts":"<ISO-8601>","agent":"<name>","cycle":"<cycle from STATE.md>","stage":"<stage from STATE.md>","one_line_insight":"<what was produced or learned>","artifacts_written":["<files written>"]}
520
+ ```
521
+
522
+ Schema: `reference/schemas/insight-line.schema.json`. Use an empty `artifacts_written` array for read-only agents.
523
+
514
524
  ## EXECUTION COMPLETE
@@ -361,3 +361,13 @@ Annotations applied: N/N_total
361
361
  Code Connect mappings registered: M/M_total
362
362
  Failed: <list any failed operations>
363
363
  ```
364
+
365
+ ## Record
366
+
367
+ At run-end, append one JSONL line to `.design/intel/insights.jsonl`:
368
+
369
+ ```json
370
+ {"ts":"<ISO-8601>","agent":"<name>","cycle":"<cycle from STATE.md>","stage":"<stage from STATE.md>","one_line_insight":"<what was produced or learned>","artifacts_written":["<files written>"]}
371
+ ```
372
+
373
+ Schema: `reference/schemas/insight-line.schema.json`. Use an empty `artifacts_written` array for read-only agents.
@@ -177,4 +177,14 @@ The stage reads the inline summary to determine how many gaps were fixed before
177
177
 
178
178
  ---
179
179
 
180
+ ## Record
181
+
182
+ At run-end, append one JSONL line to `.design/intel/insights.jsonl`:
183
+
184
+ ```json
185
+ {"ts":"<ISO-8601>","agent":"<name>","cycle":"<cycle from STATE.md>","stage":"<stage from STATE.md>","one_line_insight":"<what was produced or learned>","artifacts_written":["<files written>"]}
186
+ ```
187
+
188
+ Schema: `reference/schemas/insight-line.schema.json`. Use an empty `artifacts_written` array for read-only agents.
189
+
180
190
  ## FIX COMPLETE
@@ -90,4 +90,14 @@ You MAY:
90
90
 
91
91
  Per 10.1-CONTEXT decision **D-21** (Lazy Checker Spawning): "Cheap Haiku gate agents at `agents/*-gate.md` decide whether to spawn full checker. If false, skip full checker, log as `lazy_skipped: true` in telemetry." This gate is the integration-checker-specific instance of that pattern — the full `design-integration-checker` is a LARGE-size post-verification spawn that grep-walks the codebase for D-XX decision application. If no decision or anchor doc moved in the diff, the wiring result is unchanged from the last verify and the spawn is wasted cost.
92
92
 
93
+ ## Record
94
+
95
+ At run-end, append one JSONL line to `.design/intel/insights.jsonl`:
96
+
97
+ ```json
98
+ {"ts":"<ISO-8601>","agent":"<name>","cycle":"<cycle from STATE.md>","stage":"<stage from STATE.md>","one_line_insight":"<what was produced or learned>","artifacts_written":["<files written>"]}
99
+ ```
100
+
101
+ Schema: `reference/schemas/insight-line.schema.json`. Use an empty `artifacts_written` array for read-only agents.
102
+
93
103
  ## GATE COMPLETE
@@ -323,4 +323,14 @@ Document any ambiguous cases in the per-decision "Notes" field.
323
323
 
324
324
  ---
325
325
 
326
+ ## Record
327
+
328
+ At run-end, append one JSONL line to `.design/intel/insights.jsonl`:
329
+
330
+ ```json
331
+ {"ts":"<ISO-8601>","agent":"<name>","cycle":"<cycle from STATE.md>","stage":"<stage from STATE.md>","one_line_insight":"<what was produced or learned>","artifacts_written":["<files written>"]}
332
+ ```
333
+
334
+ Schema: `reference/schemas/insight-line.schema.json`. Use an empty `artifacts_written` array for read-only agents.
335
+
326
336
  ## INTEGRATION CHECK COMPLETE
@@ -129,3 +129,13 @@ Applied: N/M operations succeeded
129
129
  Budget used: N/100 (this session)
130
130
  Failed: <list failed operations or "none">
131
131
  ```
132
+
133
+ ## Record
134
+
135
+ At run-end, append one JSONL line to `.design/intel/insights.jsonl`:
136
+
137
+ ```json
138
+ {"ts":"<ISO-8601>","agent":"<name>","cycle":"<cycle from STATE.md>","stage":"<stage from STATE.md>","one_line_insight":"<what was produced or learned>","artifacts_written":["<files written>"]}
139
+ ```
140
+
141
+ Schema: `reference/schemas/insight-line.schema.json`. Use an empty `artifacts_written` array for read-only agents.