@hegemonart/get-design-done 1.16.0 → 1.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +7 -5
- package/.claude-plugin/plugin.json +17 -5
- package/CHANGELOG.md +84 -0
- package/README.md +20 -2
- package/agents/design-auditor.md +60 -1
- package/agents/design-doc-writer.md +21 -0
- package/agents/design-executor.md +22 -4
- package/agents/design-pattern-mapper.md +61 -0
- package/agents/motion-mapper.md +74 -9
- package/agents/token-mapper.md +8 -0
- package/package.json +10 -2
- package/reference/components/README.md +27 -23
- package/reference/components/alert.md +198 -0
- package/reference/components/badge.md +202 -0
- package/reference/components/breadcrumbs.md +198 -0
- package/reference/components/chip.md +209 -0
- package/reference/components/command-palette.md +228 -0
- package/reference/components/date-picker.md +227 -0
- package/reference/components/file-upload.md +219 -0
- package/reference/components/list.md +217 -0
- package/reference/components/menu.md +212 -0
- package/reference/components/navbar.md +211 -0
- package/reference/components/pagination.md +205 -0
- package/reference/components/progress.md +210 -0
- package/reference/components/rich-text-editor.md +226 -0
- package/reference/components/sidebar.md +211 -0
- package/reference/components/skeleton.md +197 -0
- package/reference/components/slider.md +208 -0
- package/reference/components/stepper.md +220 -0
- package/reference/components/table.md +229 -0
- package/reference/components/toast.md +200 -0
- package/reference/components/tree.md +225 -0
- package/reference/css-grid-layout.md +835 -0
- package/reference/external/NOTICE.hyperframes +28 -0
- package/reference/image-optimization.md +582 -0
- package/reference/motion-advanced.md +754 -0
- package/reference/motion-easings.md +381 -0
- package/reference/motion-interpolate.md +282 -0
- package/reference/motion-spring.md +234 -0
- package/reference/motion-transition-taxonomy.md +155 -0
- package/reference/motion.md +20 -0
- package/reference/output-contracts/motion-map.schema.json +135 -0
- package/reference/registry.json +183 -0
- package/reference/registry.schema.json +4 -0
- package/reference/variable-fonts-loading.md +532 -0
- package/scripts/lib/easings.cjs +280 -0
- package/scripts/lib/parse-contract.cjs +220 -0
- package/scripts/lib/spring.cjs +160 -0
- package/scripts/tests/test-motion-provenance.sh +64 -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.
|
|
8
|
+
"version": "1.18.0"
|
|
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. Embeds NNG heuristics, WCAG thresholds, typographic systems, motion framework, 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.
|
|
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",
|
|
16
16
|
"author": {
|
|
17
17
|
"name": "hegemonart"
|
|
18
18
|
},
|
|
@@ -63,8 +63,10 @@
|
|
|
63
63
|
"cache-aware",
|
|
64
64
|
"budget",
|
|
65
65
|
"component-specs",
|
|
66
|
-
"design-system-benchmarks"
|
|
66
|
+
"design-system-benchmarks",
|
|
67
|
+
"component-conformance",
|
|
68
|
+
"convergence-detector"
|
|
67
69
|
]
|
|
68
70
|
}
|
|
69
71
|
]
|
|
70
|
-
}
|
|
72
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "get-design-done",
|
|
3
3
|
"short_name": "gdd",
|
|
4
|
-
"version": "1.
|
|
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. Embeds NNG heuristics, WCAG thresholds, typographic systems, motion framework, 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.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.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "hegemonart",
|
|
8
8
|
"url": "https://github.com/hegemonart"
|
|
@@ -65,8 +65,20 @@
|
|
|
65
65
|
"style-vocabulary",
|
|
66
66
|
"industry-palettes",
|
|
67
67
|
"ui-style-vocabulary",
|
|
68
|
+
"variable-fonts",
|
|
69
|
+
"container-queries",
|
|
70
|
+
"view-transitions",
|
|
71
|
+
"motion-vocabulary",
|
|
72
|
+
"motion-easings",
|
|
73
|
+
"transition-taxonomy",
|
|
74
|
+
"gesture-mechanics",
|
|
75
|
+
"clip-path-animation",
|
|
68
76
|
"component-specs",
|
|
69
|
-
"design-system-benchmarks"
|
|
77
|
+
"design-system-benchmarks",
|
|
78
|
+
"component-conformance",
|
|
79
|
+
"convergence-detector"
|
|
70
80
|
],
|
|
71
|
-
"skills": [
|
|
72
|
-
|
|
81
|
+
"skills": [
|
|
82
|
+
"./skills/"
|
|
83
|
+
]
|
|
84
|
+
}
|
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,90 @@ All notable changes to get-design-done are documented here. Versions follow [sem
|
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
+
## [1.18.0] — 2026-04-24
|
|
8
|
+
|
|
9
|
+
### Added — Advanced Craft References + Motion Vocabulary
|
|
10
|
+
|
|
11
|
+
**Wave A — Craft references (4 new files):**
|
|
12
|
+
|
|
13
|
+
- `reference/variable-fonts-loading.md` — Variable font axes (wght/ital/opsz/slnt/GRAD/custom), `@font-face` range declarations, `font-display` trade-offs (swap/fallback/optional), WOFF2 subsetting with `unicode-range`, FOIT vs FOUT, fallback metric overrides (`size-adjust`, `ascent-override`, `descent-override`, `line-gap-override`), GRAD axis for dark-mode weight compensation without layout reflow, system font stacks per platform (REF-14)
|
|
14
|
+
- `reference/image-optimization.md` — WebP/AVIF/JPEG XL choice matrix, `srcset`+`sizes` math by breakpoint, responsive art direction with `<picture>`, LQIP/BlurHash/ThumbHash placeholder strategies, lazy-loading + `decoding="async"` + `fetchpriority="high"`, CDN transform patterns (Cloudinary/imgix/Vercel Image), image budget enforcement (REF-15)
|
|
15
|
+
- `reference/css-grid-layout.md` — CSS Grid template patterns (holy grail, bento, masonry), `subgrid`, container queries (`@container` + `container-type`), fluid typography with `clamp()` (utopia.fyi math), intrinsic sizing, logical properties, safe-area insets, `aspect-ratio`/`object-fit`, anchor positioning progressive enhancement (REF-16)
|
|
16
|
+
- `reference/motion-advanced.md` — Spring physics, stagger patterns, scroll-driven animation (`animation-timeline`), FLIP, View Transitions API, route orchestration, gesture/drag mechanics (velocity threshold ≈0.11, boundary damping, pointer capture, multi-touch protection), clip-path animation patterns (hold-to-delete, scroll reveals, tab masks, comparison sliders), blur-to-mask crossfades (<20px Safari cap), CSS transitions vs keyframes for interruptible UI, WAAPI, Framer Motion hardware-accel gotcha (`x`/`y` shorthand vs GPU `transform` string), motion cohesion & personality, next-day slow-motion review process; Disney's 12 Principles UX mapping stub (fills at Phase 19.6 closeout) (REF-17)
|
|
17
|
+
|
|
18
|
+
**Wave B — Motion vocabulary (RN MIT + hyperframes Apache-2.0):**
|
|
19
|
+
|
|
20
|
+
- `reference/motion-easings.md` — 12 canonical curve presets (linear/quad/cubic/poly/sin/circle/exp/elastic/back/bounce/bezier + in/out/inOut wrappers) from React Native MIT upstream; `--ease-*` CSS custom property token catalog; 60fps settle-times for spring/bounce/elastic variants (MOT-01)
|
|
21
|
+
- `reference/motion-interpolate.md` — Input→output range model + 4 extrapolation modes (extend/identity/clamp/wrap) from RN MIT; taxonomy of progress-linked/scroll-linked/gesture-linked/time-linked animations (MOT-02)
|
|
22
|
+
- `reference/motion-spring.md` — Stiffness/damping/mass triad + 4 canonical presets (gentle/wobbly/stiff/slow) with 60fps settle-times; Framer Motion + React Spring syntax; CSS `linear()` approximation pattern (MOT-05)
|
|
23
|
+
- `reference/motion-transition-taxonomy.md` — 8 controlled transition families from hyperframes Apache-2.0: 3d, blur, cover, destruction, dissolve, distortion, grid, light — each with definition, canonical examples, when-to-use heuristics (MOT-03)
|
|
24
|
+
- `reference/external/NOTICE.hyperframes` — Apache-2.0 attribution for hyperframes transition taxonomy
|
|
25
|
+
|
|
26
|
+
**Wave B — Output contract + tooling:**
|
|
27
|
+
|
|
28
|
+
- `reference/output-contracts/motion-map.schema.json` — JSON schema requiring each animation binding to declare easing (canonical or custom+justification), transition family (optional), duration class (instant/quick/standard/slow/narrative), and trigger type (user-gesture/state-change/scroll-progress/time/loop) (MOT-04)
|
|
29
|
+
- `scripts/lib/parse-contract.cjs` — Shared validation helper: extracts JSON block from agent markdown output, validates against motion-map contract, returns structured data or actionable error
|
|
30
|
+
- `scripts/lib/easings.cjs` — Closed-form easing math helper (RN MIT): all 12 presets + in/out/inOut HOFs, cubic-bezier Newton-Raphson solver
|
|
31
|
+
- `scripts/lib/spring.cjs` — Spring simulation helper (RN MIT): PRESETS, criticalDamping(), settleTime(), step()
|
|
32
|
+
- `scripts/tests/test-motion-provenance.sh` — Provenance test: asserts RN-MIT attribution in all motion-vocabulary files; asserts no Remotion/ path citations
|
|
33
|
+
|
|
34
|
+
**Agent integrations:**
|
|
35
|
+
|
|
36
|
+
- `agents/motion-mapper.md` — Reads motion-advanced + easings + interpolate + transition-taxonomy + spring; emits structured JSON block (conforming to motion-map schema) before prose; advanced scan patterns for gesture/drag, clip-path, FLIP, View Transitions, scroll-driven, WAAPI
|
|
37
|
+
- `agents/design-executor.md` — type:typography reads `variable-fonts-loading.md`; type:layout reads `css-grid-layout.md` + `image-optimization.md`; type:motion reads `motion-advanced.md` + `motion-easings.md` + `motion-spring.md`
|
|
38
|
+
- `agents/design-auditor.md` — Required Reading extended with 4 Phase 18 references; gesture/clip-path/blur-crossfade patterns scored as "advanced craft" signal (positive) in Pillar 7
|
|
39
|
+
- `agents/token-mapper.md` — Micro-polish finding #5: easing token consolidation (raw `cubic-bezier()` → `--ease-*` canonical tokens)
|
|
40
|
+
- `reference/motion.md` — Cross-links added pointing to all 4 Phase 18 motion references
|
|
41
|
+
- `reference/registry.json` — 9 new entries: REF-14 through REF-17 + MOT-01 through MOT-05
|
|
42
|
+
|
|
43
|
+
**Phase 18 keywords added to package.json:** `variable-fonts`, `container-queries`, `view-transitions`, `motion-vocabulary`, `motion-easings`, `transition-taxonomy`, `gesture-mechanics`, `clip-path-animation`
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
## [1.17.0] — 2026-04-24
|
|
48
|
+
|
|
49
|
+
### Added — Component Benchmark Corpus: Waves 3–5 (20 specs) + Pipeline Integration
|
|
50
|
+
|
|
51
|
+
Completes the 35-spec component benchmark corpus and wires it into the design pipeline so agents actively consume per-component benchmarks during audit, execution, documentation, and pattern analysis.
|
|
52
|
+
|
|
53
|
+
#### Wave 3 — Feedback (6 specs)
|
|
54
|
+
|
|
55
|
+
- **`reference/components/toast.md`** — transient notification (4–8s auto-dismiss, configurable); `role="status"` (info/success) vs `role="alert"` (warning/error); entry/exit slide+fade animation; optional action; stacking with 8px gap (max 3 visible); UUPM app-interface dashboard/settings-save context (MIT attribution).
|
|
56
|
+
- **`reference/components/alert.md`** — inline persistent message; info/success/warning/error variants; `role="alert"` (assertive) vs `role="status"` (polite); icon reinforces variant — never color as sole differentiator (WCAG 1.4.1).
|
|
57
|
+
- **`reference/components/progress.md`** — linear + circular variants; determinate (`aria-valuenow`) vs indeterminate (`aria-valuetext`); `role="progressbar"`; `aria-label` required; 4px minimum track height.
|
|
58
|
+
- **`reference/components/skeleton.md`** — content-layout mirror; shimmer (left-to-right gradient, 1.5s loop); `aria-hidden="true"` on skeleton elements; `aria-busy="true"` + `aria-label` on container; 60–90% width variation.
|
|
59
|
+
- **`reference/components/badge.md`** — count/dot/icon variants; `99+` overflow pattern; decorative (no keyboard interaction); count surfaced via `aria-label` on parent element.
|
|
60
|
+
- **`reference/components/chip.md`** — filter/input/suggestion/display variants; independent `aria-label` on remove button; `aria-pressed` on toggle; `role="option"` in listbox context; UUPM app-interface filter/tag-input context (MIT attribution).
|
|
61
|
+
|
|
62
|
+
#### Wave 4 — Navigation & Data (9 specs)
|
|
63
|
+
|
|
64
|
+
- **`reference/components/menu.md`** — `role="menu"` + `role="menuitem"`; arrow-key navigation; click-only open (no hover trigger); sub-menus on ArrowRight; focus returns to trigger on close.
|
|
65
|
+
- **`reference/components/navbar.md`** — `role="banner"` + `role="navigation"` + `aria-label="Primary"`; skip-to-main link; `aria-current="page"`; hamburger `aria-expanded`; UUPM dashboard/settings/profile context (MIT attribution).
|
|
66
|
+
- **`reference/components/sidebar.md`** — `aria-label="Secondary"`; icon+label vs icon-only collapsed; `aria-expanded` on collapsible sections; UUPM settings-nav + dashboard-nav variants (MIT attribution).
|
|
67
|
+
- **`reference/components/breadcrumbs.md`** — `role="navigation"` + `aria-label="Breadcrumb"`; `aria-current="page"` on last item; `aria-hidden` on separators; truncate middle not ends.
|
|
68
|
+
- **`reference/components/pagination.md`** — `aria-label="Pagination"`; `aria-current="page"` on active page; per-page `<select>` with visible label; UUPM list-view context (MIT attribution).
|
|
69
|
+
- **`reference/components/table.md`** — `scope="col"` on all `<th>`; `aria-sort` on sortable headers; `aria-selected` on rows; `role="grid"` vs `role="table"`; virtualise >200 rows; UUPM list/detail + master-detail + dashboard context (MIT attribution).
|
|
70
|
+
- **`reference/components/list.md`** — display (`<ul>/<li>`) vs interactive (`role="listbox"` + `role="option"`); `aria-multiselectable`; virtualise >100 items; UUPM list/detail left-panel context (MIT attribution).
|
|
71
|
+
- **`reference/components/tree.md`** — `role="tree"` + `role="treeitem"` + `role="group"`; `aria-expanded`; `aria-level`; `aria-busy` on lazy-load nodes; full WAI-ARIA APG keyboard contract.
|
|
72
|
+
- **`reference/components/command-palette.md`** — `role="dialog"` + `aria-modal`; focus trap; `role="combobox"` + `aria-controls` → `role="listbox"`; Cmd/Ctrl+K trigger; UUPM global-search context (MIT attribution).
|
|
73
|
+
|
|
74
|
+
#### Wave 5 — Advanced (5 specs)
|
|
75
|
+
|
|
76
|
+
- **`reference/components/date-picker.md`** — input + range variants; calendar `role="dialog"`; day cells `role="gridcell"` + `role="button"`; full arrow-key navigation; native `<input type="date">` mobile fallback.
|
|
77
|
+
- **`reference/components/slider.md`** — single + range; `role="slider"` + `aria-valuenow/min/max/valuetext`; 44px thumb touch target via `::before` trick; Page Up/Down ±10%.
|
|
78
|
+
- **`reference/components/file-upload.md`** — drop-zone + picker; `<input type="file">` never `display:none` (keyboard/AT fallback); `aria-label="Remove [filename]"` on remove buttons; upload errors via `aria-live="assertive"`.
|
|
79
|
+
- **`reference/components/rich-text-editor.md`** — `contenteditable` + `role="textbox"` + `aria-multiline="true"`; toolbar `role="toolbar"`; toggle buttons `aria-pressed`; placeholder via CSS `::before`; mention trigger pattern.
|
|
80
|
+
- **`reference/components/stepper.md`** — `role="list"` (not `role="tablist"`); `aria-current="step"` on active step; UUPM wizard/onboarding/checkout flow context (MIT attribution).
|
|
81
|
+
|
|
82
|
+
#### Pipeline Integration
|
|
83
|
+
|
|
84
|
+
- **`agents/design-auditor.md`** — new **Component Conformance** addendum: discovers specs, runs grep signatures against codebase, scores state/variant/a11y coverage per component, emits conformance table as informational addendum (does not change /28 pillar score).
|
|
85
|
+
- **`agents/design-executor.md`** — **Benchmark Spec Pre-Flight** for `type:components` tasks: reads matching `reference/components/<name>.md`, applies anatomy/states/a11y contract before building — no re-discovering ARIA roles or keyboard patterns already benchmarked.
|
|
86
|
+
- **`agents/design-doc-writer.md`** — **Component Spec Scaffold**: pre-fills DESIGN-STYLE doc structure from benchmark spec's Purpose/Anatomy/Variants/States when a spec exists; includes "Benchmarked against" citation; falls back to from-scratch generation gracefully.
|
|
87
|
+
- **`agents/design-pattern-mapper.md`** — **Component Convergence Detector**: writes `.design/map/component-convergence.md` with matched/absent component table and per-component convergence %; runs after pattern extraction.
|
|
88
|
+
|
|
89
|
+
---
|
|
90
|
+
|
|
7
91
|
## [1.16.0] — 2026-04-24
|
|
8
92
|
|
|
9
93
|
### Added — Component Benchmark Corpus: Tooling + Waves 1–2 (15 specs)
|
package/README.md
CHANGED
|
@@ -76,6 +76,14 @@ 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.18.0 Highlights — Advanced Craft References + Motion Vocabulary
|
|
80
|
+
|
|
81
|
+
- **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).
|
|
82
|
+
- **Motion vocabulary (RN MIT upstream)** — `motion-easings.md` (12 canonical curve presets, `--ease-*` token catalog), `motion-interpolate.md` (input→output range + 4 extrapolation modes: extend/identity/clamp/wrap), `motion-spring.md` (gentle/wobbly/stiff/slow presets with 60fps settle-times). Optional math helpers at `scripts/lib/easings.cjs` and `scripts/lib/spring.cjs`.
|
|
83
|
+
- **Transition taxonomy (hyperframes Apache-2.0)** — `motion-transition-taxonomy.md` names 8 controlled families (3d, blur, cover, destruction, dissolve, distortion, grid, light) so motion-mapper output diffs cleanly cycle-over-cycle.
|
|
84
|
+
- **Structured motion-map output** — `motion-mapper` now emits a JSON block at the top of `.design/map/motion.md` conforming to `reference/output-contracts/motion-map.schema.json`. Every animation binding declares easing (canonical or custom+justification), transition family, duration class, and trigger type. `scripts/lib/parse-contract.cjs` validates and returns structured data or actionable error.
|
|
85
|
+
- **Agent wiring** — `token-mapper` gains easing consolidation (raw `cubic-bezier()` → `--ease-*` token recommendations); `design-executor` reads craft references per task type; `design-auditor` scores gesture patterns and clip-path animations as advanced-craft signal (positive, not a penalty).
|
|
86
|
+
|
|
79
87
|
### v1.15.0 Highlights — Design Knowledge Expansion
|
|
80
88
|
|
|
81
89
|
- **10 new foundational references** — `iconography.md`, `performance.md`, `brand-voice.md`, `visual-hierarchy-layout.md`, `gestalt.md`, `design-system-guidance.md`, `design-systems-catalog.md`, `framer-motion-patterns.md`, `palette-catalog.md`, `style-vocabulary.md`. Agents now have authoritative answers on icon sizing, Web Vitals budgets, brand voice axes, Gestalt principles, DS governance, and 40+ industry-vertical color palettes.
|
|
@@ -397,9 +405,19 @@ Per-component design specifications harvested from 18 major design systems and s
|
|
|
397
405
|
|
|
398
406
|
**Wave 2 — Containers (v1.16.0)**: Card · Modal/Dialog · Drawer/Sheet · Popover · Tooltip · Accordion · Tabs
|
|
399
407
|
|
|
400
|
-
**Wave 3
|
|
408
|
+
**Wave 3 — Feedback (v1.17.0)**: Toast · Alert · Progress · Skeleton · Badge · Chip
|
|
409
|
+
|
|
410
|
+
**Wave 4 — Navigation & Data (v1.17.0)**: Menu · Navbar · Sidebar · Breadcrumbs · Pagination · Table · List · Tree · Command-palette
|
|
411
|
+
|
|
412
|
+
**Wave 5 — Advanced (v1.17.0)**: Date-picker · Slider · File-upload · Rich-text editor · Stepper
|
|
413
|
+
|
|
414
|
+
**Total: 35 specs** across 5 waves. Each spec: WAI-ARIA keyboard contracts (verbatim), NORM/DIVERGE convergence analysis, grep signatures for `design-auditor` conformance scoring, and a failing-example block.
|
|
401
415
|
|
|
402
|
-
|
|
416
|
+
**Pipeline integration (v1.17.0):**
|
|
417
|
+
- `design-auditor` — detects component implementations via grep signatures, scores conformance against specs, emits Component Conformance addendum
|
|
418
|
+
- `design-executor` — reads matching spec as pre-flight contract for `type:components` tasks
|
|
419
|
+
- `design-doc-writer` — scaffolds handoff docs from spec anatomy/variants when a benchmark spec exists
|
|
420
|
+
- `design-pattern-mapper` — writes `.design/map/component-convergence.md` (matched/absent components + convergence %)
|
|
403
421
|
|
|
404
422
|
```bash
|
|
405
423
|
/gdd:benchmark button # harvest + synthesize a single spec
|
package/agents/design-auditor.md
CHANGED
|
@@ -6,7 +6,8 @@ color: green
|
|
|
6
6
|
model: inherit
|
|
7
7
|
default-tier: sonnet
|
|
8
8
|
tier-rationale: "Emits structured findings from code inspection; Sonnet balances depth with cost"
|
|
9
|
-
size_budget:
|
|
9
|
+
size_budget: XXL
|
|
10
|
+
size_budget_rationale: "Phase 17 added Component Conformance addendum (+54 lines for spec-grep detection + conformance scoring algorithm)"
|
|
10
11
|
parallel-safe: always
|
|
11
12
|
typical-duration-seconds: 45
|
|
12
13
|
reads-only: false
|
|
@@ -52,6 +53,10 @@ Minimum expected files:
|
|
|
52
53
|
- `reference/performance.md` — Core Web Vitals budgets, JS/font/image budgets, React runtime performance
|
|
53
54
|
- `reference/style-vocabulary.md` — UI aesthetic catalog; use when scoring Pillar 3 (Color) style-coherence sub-check and Pillar 2 (Visual Hierarchy) signature-effects verification
|
|
54
55
|
- `reference/design-systems-catalog.md` — 18-system index for identifying pattern precedents and system alignment
|
|
56
|
+
- `reference/variable-fonts-loading.md` (if present) — variable font axes, font-display trade-offs, fallback metric overrides; use when auditing Pillar 4 (Typography)
|
|
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
|
+
- `reference/css-grid-layout.md` (if present) — subgrid, container queries, fluid clamp() typography, logical properties; use when auditing Pillar 5 (Layout & Spacing)
|
|
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)
|
|
55
60
|
|
|
56
61
|
---
|
|
57
62
|
|
|
@@ -447,6 +452,60 @@ If framer-motion is in use and neither `reducedMotion="user"` in `MotionConfig`
|
|
|
447
452
|
|
|
448
453
|
---
|
|
449
454
|
|
|
455
|
+
## Component Conformance Addendum
|
|
456
|
+
|
|
457
|
+
After the 7-pillar scoring is complete, run this addendum to detect component implementations and score their conformance against `reference/components/` benchmark specs. Findings appear in `.design/DESIGN-AUDIT.md` as an informational section after the pillar scores — they do not affect the /28 total.
|
|
458
|
+
|
|
459
|
+
### Step 1: Discover available specs
|
|
460
|
+
|
|
461
|
+
```bash
|
|
462
|
+
ls reference/components/*.md | grep -v TEMPLATE | grep -v README
|
|
463
|
+
```
|
|
464
|
+
|
|
465
|
+
### Step 2: Detect implementations in codebase
|
|
466
|
+
|
|
467
|
+
For each spec, run its **Grep Signatures** against the source root (from `STATE.md source_roots`, default `src/`). A component is "detected" if ≥1 grep signature pattern matches. Examples:
|
|
468
|
+
|
|
469
|
+
```bash
|
|
470
|
+
# Check for Button implementation
|
|
471
|
+
grep -rn "role=\"button\"\|<button\b\|Button\b" src/ --include="*.tsx" --include="*.jsx" | head -5
|
|
472
|
+
|
|
473
|
+
# Check for Toast implementation
|
|
474
|
+
grep -rn "role=\"status\"\|role=\"alert\"\|toast\|Toast\b" src/ --include="*.tsx" --include="*.jsx" | head -5
|
|
475
|
+
```
|
|
476
|
+
|
|
477
|
+
### Step 3: Score conformance per detected component
|
|
478
|
+
|
|
479
|
+
For each detected component, check:
|
|
480
|
+
- **States covered**: count how many States from the spec are implemented (look for aria states, visual states)
|
|
481
|
+
- **Variants covered**: count how many spec Variants exist in the codebase
|
|
482
|
+
- **A11y contract**: spot-check 2–3 WAI-ARIA items from the Keyboard & Accessibility section
|
|
483
|
+
|
|
484
|
+
Score = (implemented items) / (total spec items checked) × 100. Round to nearest 10%.
|
|
485
|
+
|
|
486
|
+
### Step 4: Emit in DESIGN-AUDIT.md
|
|
487
|
+
|
|
488
|
+
Add after the Priority Fix List:
|
|
489
|
+
|
|
490
|
+
```markdown
|
|
491
|
+
## Component Conformance
|
|
492
|
+
|
|
493
|
+
> Informational addendum — does not affect /28 pillar score.
|
|
494
|
+
> Specs from `reference/components/` benchmarked against codebase.
|
|
495
|
+
|
|
496
|
+
| Component | Detected | Conformance | Key Gaps |
|
|
497
|
+
|-----------|----------|-------------|----------|
|
|
498
|
+
| Button | ✓ | 80% | Missing `aria-busy` on loading state |
|
|
499
|
+
| Toast | ✓ | 60% | Missing `role="alert"` on error variant |
|
|
500
|
+
| Table | ✗ | — | No implementation found |
|
|
501
|
+
|
|
502
|
+
**Summary**: N/M specs detected in codebase; average conformance X%.
|
|
503
|
+
```
|
|
504
|
+
|
|
505
|
+
If `reference/components/` does not exist or contains no specs, skip this section entirely (graceful degradation).
|
|
506
|
+
|
|
507
|
+
---
|
|
508
|
+
|
|
450
509
|
## Constraints
|
|
451
510
|
|
|
452
511
|
**MUST NOT:**
|
|
@@ -61,6 +61,27 @@ The orchestrating stage (style command) supplies a `<required_reading>` block in
|
|
|
61
61
|
|
|
62
62
|
---
|
|
63
63
|
|
|
64
|
+
## Component Spec Scaffold
|
|
65
|
+
|
|
66
|
+
Before Step 1, check whether a benchmark spec exists for this component:
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
# component_name is title-cased (e.g., "Button") → convert to kebab-case for file lookup
|
|
70
|
+
# e.g., "CommandPalette" → "command-palette", "RichTextEditor" → "rich-text-editor"
|
|
71
|
+
ls reference/components/<kebab-name>.md 2>/dev/null
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
**If the spec exists**, read its **Purpose**, **Anatomy**, **Variants**, and **States** sections. Use them to:
|
|
75
|
+
1. Pre-fill the DESIGN-STYLE doc's structure with the benchmark section headers and variant table
|
|
76
|
+
2. Pull the "Benchmark Citations" entry from the spec and include: `> Benchmarked against: [systems list]`
|
|
77
|
+
3. Fill in project-specific values from DESIGN-CONTEXT.md on top of the scaffold (brand tokens, chosen variants, etc.)
|
|
78
|
+
|
|
79
|
+
**If no spec exists**, generate the DESIGN-STYLE doc from scratch as before — no change to existing behaviour.
|
|
80
|
+
|
|
81
|
+
This step runs for both `pipeline_complete: true` and `pipeline_complete: false` modes.
|
|
82
|
+
|
|
83
|
+
---
|
|
84
|
+
|
|
64
85
|
## Work
|
|
65
86
|
|
|
66
87
|
### Common Step 1 — Extract Design Tokens from Source File
|
|
@@ -5,7 +5,8 @@ tools: Read, Write, Edit, Bash, Grep, Glob
|
|
|
5
5
|
color: yellow
|
|
6
6
|
default-tier: sonnet
|
|
7
7
|
tier-rationale: "Follows an Opus-authored plan; executes rather than plans"
|
|
8
|
-
size_budget:
|
|
8
|
+
size_budget: XXL
|
|
9
|
+
size_budget_rationale: "Phase 17 added Benchmark Spec Pre-Flight section for type:components (+17 lines)"
|
|
9
10
|
parallel-safe: conditional-on-touches
|
|
10
11
|
typical-duration-seconds: 60
|
|
11
12
|
reads-only: false
|
|
@@ -128,7 +129,7 @@ For `audit` tasks: grep the codebase using patterns from `reference/anti-pattern
|
|
|
128
129
|
|
|
129
130
|
### Type: typography
|
|
130
131
|
|
|
131
|
-
Read `reference/typography.md` before starting.
|
|
132
|
+
Read `reference/typography.md` before starting. If `reference/variable-fonts-loading.md` is present, also read it — apply variable font axis guidance, font-display trade-offs, fallback metric overrides (size-adjust, ascent-override), and FOIT/FOUT rules to any web font or @font-face decisions in this task.
|
|
132
133
|
|
|
133
134
|
1. **Identify current state**: grep all font-size values in the codebase. List every unique value.
|
|
134
135
|
2. **Design the target scale**: from the `<decisions>` in DESIGN-CONTEXT.md, pick the modular ratio (default: 1.25, base 16px). Compute: 12/14/16/20/24/30/36/48px (or `text-xs` through `text-5xl` in Tailwind).
|
|
@@ -177,7 +178,7 @@ before committing final values.
|
|
|
177
178
|
|
|
178
179
|
### Type: layout
|
|
179
180
|
|
|
180
|
-
Read `reference/layout.md` (if present) and relevant DESIGN-CONTEXT.md decisions before starting.
|
|
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
182
|
|
|
182
183
|
1. **Inventory layout structure**: identify all grid, flex, and positioning patterns in scope files.
|
|
183
184
|
2. **Check spacing consistency**: grep for magic spacing values (px or rem) not from a spacing scale. Map to nearest scale step.
|
|
@@ -220,7 +221,7 @@ Work through the accessibility checklist:
|
|
|
220
221
|
|
|
221
222
|
### Type: motion
|
|
222
223
|
|
|
223
|
-
Read `reference/motion.md` and `reference/framer-motion-patterns.md` before starting.
|
|
224
|
+
Read `reference/motion.md` and `reference/framer-motion-patterns.md` before starting. If `reference/motion-advanced.md` is present, also read it — apply advanced patterns (gesture/drag mechanics, clip-path animations, blur-to-mask crossfades, CSS transitions vs keyframes for interruptible UI, WAAPI, Framer Motion hardware-accel gotcha, motion cohesion rules, next-day review process). If `reference/motion-easings.md` is present, use canonical `--ease-*` tokens rather than raw cubic-bezier strings. If `reference/motion-spring.md` is present, use named presets (gentle/wobbly/stiff/slow) for spring configurations.
|
|
224
225
|
|
|
225
226
|
`reference/framer-motion-patterns.md` contains Framer Motion-specific implementation patterns that complement the framework-agnostic rules in `reference/motion.md`. When the codebase uses Framer Motion (detectable by `framer-motion` imports), apply the patterns from that file: spring/tween configuration, `AnimatePresence` with `initial={false}`, layout animations, variants with `staggerChildren`, gesture props (`whileHover`, `whileTap` at scale 0.96), `useReducedMotion` or `MotionConfig reducedMotion="user"` for a11y, and the hard constraint that `bounce: 0` for all micro-interactions.
|
|
226
227
|
|
|
@@ -288,6 +289,23 @@ Read `reference/anti-patterns.md`, `reference/design-system-guidance.md`, and DE
|
|
|
288
289
|
|
|
289
290
|
Read all relevant reference files for this component's concerns (typography, color, accessibility, motion) before starting.
|
|
290
291
|
|
|
292
|
+
#### Benchmark Spec Pre-Flight
|
|
293
|
+
|
|
294
|
+
Before executing the task, check for a benchmark spec:
|
|
295
|
+
|
|
296
|
+
```bash
|
|
297
|
+
# Extract component name from task description (PascalCase → kebab-case)
|
|
298
|
+
ls reference/components/<name>.md 2>/dev/null
|
|
299
|
+
```
|
|
300
|
+
|
|
301
|
+
If `reference/components/<name>.md` exists:
|
|
302
|
+
1. Read the spec's **Anatomy**, **States**, **Variants**, and **Keyboard & Accessibility** sections
|
|
303
|
+
2. Use these as the authoritative contract for the implementation — do not re-discover naming conventions, ARIA roles, or keyboard patterns that the spec already defines
|
|
304
|
+
3. In the task output file (`task-NN.md`), add a line: `Spec pre-flight: reference/components/<name>.md — [N] states, [M] variants, WAI-ARIA contract applied`
|
|
305
|
+
4. Flag any deviation between the task instructions and the spec in the `## Deviations` section
|
|
306
|
+
|
|
307
|
+
If no spec exists, skip silently and proceed normally (graceful degradation).
|
|
308
|
+
|
|
291
309
|
1. **Read the component spec from the task's Action field**: understand what the component does, its states, its variants.
|
|
292
310
|
2. **Apply ALL relevant reference guidelines simultaneously**: typography scale, color token usage, accessibility requirements (ARIA, focus management, keyboard nav), motion constraints.
|
|
293
311
|
3. **Build the component structure**: markup, styles, and behavior per the spec.
|
|
@@ -6,6 +6,7 @@ color: green
|
|
|
6
6
|
model: inherit
|
|
7
7
|
default-tier: sonnet
|
|
8
8
|
tier-rationale: "Catalogs design patterns present in codebase; open-ended classification"
|
|
9
|
+
size_budget: XL
|
|
9
10
|
parallel-safe: always
|
|
10
11
|
typical-duration-seconds: 45
|
|
11
12
|
reads-only: false
|
|
@@ -117,6 +118,66 @@ Identify: CSS Modules, styled-components, Tailwind utility classes, or inline st
|
|
|
117
118
|
|
|
118
119
|
---
|
|
119
120
|
|
|
121
|
+
## Component Convergence Detection
|
|
122
|
+
|
|
123
|
+
After pattern extraction, scan for component implementations against the benchmark corpus.
|
|
124
|
+
|
|
125
|
+
### Step 1: Enumerate available specs
|
|
126
|
+
|
|
127
|
+
```bash
|
|
128
|
+
ls reference/components/*.md 2>/dev/null | grep -v TEMPLATE | grep -v README
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
If `reference/components/` does not exist or is empty, skip this entire section.
|
|
132
|
+
|
|
133
|
+
### Step 2: Detect implementations per spec
|
|
134
|
+
|
|
135
|
+
For each spec file, run its **Grep Signatures** section patterns against the source root:
|
|
136
|
+
|
|
137
|
+
```bash
|
|
138
|
+
# Example for button.md — adapt per spec's actual grep signatures
|
|
139
|
+
grep -rn "role=\"button\"\|<button\b" src/ --include="*.tsx" --include="*.jsx" -l 2>/dev/null | wc -l
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
A component is "detected" if ≥1 signature pattern returns results.
|
|
143
|
+
|
|
144
|
+
### Step 3: Compute convergence score per detected component
|
|
145
|
+
|
|
146
|
+
For detected components, check coverage against the spec's **States** and **Variants** tables:
|
|
147
|
+
- Count spec states: how many are implemented (aria attributes, CSS classes, data attributes)
|
|
148
|
+
- Count spec variants: how many variant prop values exist in the codebase
|
|
149
|
+
- Convergence % = (implemented items / total spec items) × 100, rounded to 10%
|
|
150
|
+
|
|
151
|
+
### Step 4: Write `.design/map/component-convergence.md`
|
|
152
|
+
|
|
153
|
+
```markdown
|
|
154
|
+
---
|
|
155
|
+
generated: [ISO timestamp]
|
|
156
|
+
total_specs: [N]
|
|
157
|
+
detected: [M]
|
|
158
|
+
---
|
|
159
|
+
|
|
160
|
+
# Component Convergence
|
|
161
|
+
|
|
162
|
+
## Matched Components
|
|
163
|
+
|
|
164
|
+
| Component | Spec | Convergence | Key Gaps |
|
|
165
|
+
|-----------|------|-------------|----------|
|
|
166
|
+
| Button | reference/components/button.md | 90% | Missing loading aria-busy |
|
|
167
|
+
| Toast | reference/components/toast.md | 60% | Missing role="alert" on error variant |
|
|
168
|
+
|
|
169
|
+
## Absent Components (spec exists, no codebase match)
|
|
170
|
+
|
|
171
|
+
- `reference/components/command-palette.md` — no implementation detected
|
|
172
|
+
- `reference/components/tree.md` — no implementation detected
|
|
173
|
+
|
|
174
|
+
## Summary
|
|
175
|
+
|
|
176
|
+
**N/M specs detected** in codebase · Average convergence: X%
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
---
|
|
180
|
+
|
|
120
181
|
## DESIGN-PATTERNS.md Output Format
|
|
121
182
|
|
|
122
183
|
Write to `.design/DESIGN-PATTERNS.md`. Use exactly this structure:
|
package/agents/motion-mapper.md
CHANGED
|
@@ -25,6 +25,10 @@ You inventory motion and animation patterns. Zero session memory. You do not mod
|
|
|
25
25
|
|
|
26
26
|
- `.design/STATE.md`
|
|
27
27
|
- `reference/motion.md` (if present)
|
|
28
|
+
- `reference/motion-advanced.md` (if present) — advanced patterns: spring physics, scroll-driven, FLIP, View Transitions API, gesture/drag mechanics, clip-path patterns, blur crossfades, Framer Motion hardware-accel gotcha
|
|
29
|
+
- `reference/motion-easings.md` (if present) — 12 canonical easing presets; classify each detected easing against this catalog
|
|
30
|
+
- `reference/motion-transition-taxonomy.md` (if present) — 8 transition families; classify page/route transitions against this taxonomy
|
|
31
|
+
- `reference/motion-spring.md` (if present) — spring presets; classify spring configs against gentle/wobbly/stiff/slow
|
|
28
32
|
- Any files supplied by the orchestrator
|
|
29
33
|
|
|
30
34
|
## Scan Strategy
|
|
@@ -61,8 +65,37 @@ From the collected values, bucket by:
|
|
|
61
65
|
- Normal: 200–400ms
|
|
62
66
|
- Slow: >400ms
|
|
63
67
|
|
|
68
|
+
## Advanced Scan Patterns (Phase 18+)
|
|
69
|
+
|
|
70
|
+
When `reference/motion-advanced.md` is present, additionally scan for:
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
# Gesture / drag patterns
|
|
74
|
+
grep -rEn "setPointerCapture|onPointerDown.*drag|dragConstraints|useDragControls" src/ | head -40
|
|
75
|
+
grep -rEn "velocity|flick|swipe.*dismiss|drag.*dismiss" src/ | head -40
|
|
76
|
+
|
|
77
|
+
# Clip-path animations
|
|
78
|
+
grep -rEn "clip-path|clipPath|inset\(" src/ | head -40
|
|
79
|
+
|
|
80
|
+
# FLIP / View Transitions
|
|
81
|
+
grep -rEn "layoutId|startViewTransition|view-transition-name" src/ | head -30
|
|
82
|
+
|
|
83
|
+
# Scroll-driven
|
|
84
|
+
grep -rEn "animation-timeline|ScrollTimeline|useScroll\b" src/ | head -30
|
|
85
|
+
|
|
86
|
+
# WAAPI
|
|
87
|
+
grep -rEn "\.animate\(\[|WebAnimation|getAnimations" src/ | head -20
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
Classify gesture patterns against `reference/motion-advanced.md` (velocity formula, pointer capture, multi-touch protection).
|
|
91
|
+
Classify easing values against the 12 canonical presets in `reference/motion-easings.md`; output `"custom"` with justification for anything that doesn't match.
|
|
92
|
+
Classify page/route transitions against the 8 families in `reference/motion-transition-taxonomy.md`.
|
|
93
|
+
Classify spring configs against the 4 presets in `reference/motion-spring.md`.
|
|
94
|
+
|
|
64
95
|
## Output Format — `.design/map/motion.md`
|
|
65
96
|
|
|
97
|
+
**The output MUST begin with a structured JSON block** enclosed in ` ```json ``` ` fences, followed by the prose sections. The JSON block must conform to `reference/output-contracts/motion-map.schema.json`. Malformed or missing blocks are validation failures.
|
|
98
|
+
|
|
66
99
|
```markdown
|
|
67
100
|
---
|
|
68
101
|
generated: [ISO 8601]
|
|
@@ -70,22 +103,54 @@ generated: [ISO 8601]
|
|
|
70
103
|
|
|
71
104
|
# Motion Map
|
|
72
105
|
|
|
106
|
+
```json
|
|
107
|
+
{
|
|
108
|
+
"schema_version": "1.0.0",
|
|
109
|
+
"generated_at": "[ISO 8601]",
|
|
110
|
+
"summary": {
|
|
111
|
+
"total_animations": 0,
|
|
112
|
+
"custom_easings": 0,
|
|
113
|
+
"reduced_motion_compliant": false,
|
|
114
|
+
"libraries": []
|
|
115
|
+
},
|
|
116
|
+
"animations": [
|
|
117
|
+
{
|
|
118
|
+
"id": "example-toast-enter",
|
|
119
|
+
"location": { "file": "src/components/Toast.tsx", "line": 12 },
|
|
120
|
+
"description": "Toast enter animation — opacity + translateY",
|
|
121
|
+
"easing": "cubic-out",
|
|
122
|
+
"duration_class": "quick",
|
|
123
|
+
"duration_ms": 180,
|
|
124
|
+
"trigger": "state-change",
|
|
125
|
+
"library": "framer-motion",
|
|
126
|
+
"reduced_motion_handled": true
|
|
127
|
+
}
|
|
128
|
+
]
|
|
129
|
+
}
|
|
130
|
+
```
|
|
131
|
+
|
|
73
132
|
## CSS transitions
|
|
74
|
-
| File | Property | Duration | Easing |
|
|
75
|
-
|
|
133
|
+
| File | Property | Duration | Easing | Canonical Easing |
|
|
134
|
+
|------|----------|----------|--------|-----------------|
|
|
76
135
|
|
|
77
136
|
## Library usage
|
|
78
137
|
| Library | Files | Notes |
|
|
79
138
|
|---------|-------|-------|
|
|
80
139
|
|
|
81
140
|
## Duration distribution
|
|
82
|
-
-
|
|
83
|
-
-
|
|
84
|
-
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
141
|
+
- Instant (<100ms): [N]
|
|
142
|
+
- Quick (100–200ms): [N]
|
|
143
|
+
- Standard (200–400ms): [N]
|
|
144
|
+
- Slow (400–800ms): [N]
|
|
145
|
+
- Narrative (>800ms): [N]
|
|
146
|
+
|
|
147
|
+
## Easing classification
|
|
148
|
+
| Detected Easing | Canonical Name | Count | Notes |
|
|
149
|
+
|----------------|---------------|-------|-------|
|
|
150
|
+
|
|
151
|
+
## Advanced patterns detected
|
|
152
|
+
| Pattern | Files | Notes |
|
|
153
|
+
|---------|-------|-------|
|
|
89
154
|
|
|
90
155
|
## Reduced-motion compliance
|
|
91
156
|
- `prefers-reduced-motion` queries present: [N]
|
package/agents/token-mapper.md
CHANGED
|
@@ -119,6 +119,14 @@ After the standard token inventory, scan and report:
|
|
|
119
119
|
- Check if they have `font-variant-numeric: tabular-nums` or Tailwind `tabular-nums` class
|
|
120
120
|
- Report missing instances
|
|
121
121
|
|
|
122
|
+
5. **Easing token consolidation** (when `reference/motion-easings.md` is present)
|
|
123
|
+
- Grep: `cubic-bezier\(` in CSS/SCSS/styled-components/Tailwind config
|
|
124
|
+
- Grep: `ease:` or `easing:` in Framer Motion / GSAP configs
|
|
125
|
+
- For each raw easing value found, check if a canonical `--ease-*` token from `reference/motion-easings.md` would serve the same purpose
|
|
126
|
+
- Report raw values that map to a canonical preset (recommend the `--ease-*` token)
|
|
127
|
+
- Report raw values with no canonical match as informational (may warrant a custom token)
|
|
128
|
+
- Do NOT flag values that are already using `--ease-*` tokens
|
|
129
|
+
|
|
122
130
|
### Output format:
|
|
123
131
|
```
|
|
124
132
|
## Micro-polish token findings
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hegemonart/get-design-done",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.18.0",
|
|
4
4
|
"description": "A Claude Code plugin for systematic design improvement",
|
|
5
5
|
"author": "Hegemon",
|
|
6
6
|
"homepage": "https://github.com/hegemonart/get-design-done",
|
|
@@ -67,6 +67,14 @@
|
|
|
67
67
|
"style-vocabulary",
|
|
68
68
|
"industry-palettes",
|
|
69
69
|
"ui-style-vocabulary",
|
|
70
|
+
"variable-fonts",
|
|
71
|
+
"container-queries",
|
|
72
|
+
"view-transitions",
|
|
73
|
+
"motion-vocabulary",
|
|
74
|
+
"motion-easings",
|
|
75
|
+
"transition-taxonomy",
|
|
76
|
+
"gesture-mechanics",
|
|
77
|
+
"clip-path-animation",
|
|
70
78
|
"component-specs",
|
|
71
79
|
"design-system-benchmarks"
|
|
72
80
|
],
|
|
@@ -74,4 +82,4 @@
|
|
|
74
82
|
"SKILL.md"
|
|
75
83
|
],
|
|
76
84
|
"hooks": "hooks/hooks.json"
|
|
77
|
-
}
|
|
85
|
+
}
|