analyzthis_design 2.5.1 → 2.6.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.
Files changed (100) hide show
  1. package/HOW-TO-USE.md +249 -326
  2. package/README.md +71 -25
  3. package/agents/calibration-benchmark.json +187 -0
  4. package/agents/cards/anuj.md +1 -1
  5. package/agents/cards/arjun.md +1 -1
  6. package/agents/cards/kavi.md +2 -1
  7. package/agents/cards/mood-board.md +7 -7
  8. package/agents/cards/noor.md +1 -1
  9. package/agents/cards/priya.md +1 -1
  10. package/agents/cards/zara.md +3 -3
  11. package/agents/chain.json +1 -1
  12. package/agents/design-spec-schema.json +18 -1
  13. package/agents/manifests/mood-board.json +13 -8
  14. package/agents/model-policy.json +12 -0
  15. package/agents/router.json +2 -2
  16. package/agents/session-schema.json +12 -2
  17. package/dist/HOW-TO-USE.md +249 -326
  18. package/dist/README.md +71 -25
  19. package/dist/agents/calibration-benchmark.json +187 -0
  20. package/dist/agents/cards/anuj.md +1 -1
  21. package/dist/agents/cards/arjun.md +1 -1
  22. package/dist/agents/cards/kavi.md +2 -1
  23. package/dist/agents/cards/mood-board.md +7 -7
  24. package/dist/agents/cards/noor.md +1 -1
  25. package/dist/agents/cards/priya.md +1 -1
  26. package/dist/agents/cards/zara.md +3 -3
  27. package/dist/agents/chain.json +1 -1
  28. package/dist/agents/design-spec-schema.json +18 -1
  29. package/dist/agents/manifests/mood-board.json +13 -8
  30. package/dist/agents/model-policy.json +12 -0
  31. package/dist/agents/router.json +2 -2
  32. package/dist/agents/session-schema.json +12 -2
  33. package/dist/bin/cli.js +308 -10
  34. package/dist/lib/calibrate.js +816 -0
  35. package/dist/lib/chunk-executor.js +41 -1
  36. package/dist/lib/chunk-models.js +4 -18
  37. package/dist/lib/chunk-router.js +22 -6
  38. package/dist/lib/chunk-run.js +55 -1
  39. package/dist/lib/chunk-synthesis.js +18 -2
  40. package/dist/lib/chunk-telemetry.js +77 -17
  41. package/dist/lib/collect.js +15 -1
  42. package/dist/lib/cost.js +15 -7
  43. package/dist/lib/design-spec.js +32 -2
  44. package/dist/lib/evolution-metrics.js +23 -1
  45. package/dist/lib/feedback-submit.js +50 -1
  46. package/dist/lib/feedback.js +15 -0
  47. package/dist/lib/install.js +1 -0
  48. package/dist/lib/lessons.js +8 -0
  49. package/dist/lib/mcp-server.js +189 -7
  50. package/dist/lib/model-policy.js +174 -0
  51. package/dist/lib/model-registry.js +71 -0
  52. package/dist/lib/moodboard-film.js +119 -0
  53. package/dist/lib/moodboard-view.js +426 -0
  54. package/dist/lib/moodboard.js +638 -27
  55. package/dist/lib/orchestrator/run.js +67 -8
  56. package/dist/lib/outcome.js +7 -2
  57. package/dist/lib/output-quality.js +95 -0
  58. package/dist/lib/reference-pack.js +9 -1
  59. package/dist/lib/session.js +48 -4
  60. package/dist/lib/system-prompt.js +3 -0
  61. package/dist/lib/ui-libraries.js +232 -0
  62. package/dist/skills/anuj/SKILL.md +4 -0
  63. package/dist/skills/arjun/SKILL.md +2 -0
  64. package/dist/skills/arjun/references/lens.md +2 -0
  65. package/dist/skills/design-director/SKILL.md +2 -1
  66. package/dist/skills/design-reference/SKILL.md +6 -0
  67. package/dist/skills/design-reference/motion.csv +11 -0
  68. package/dist/skills/design-reference/schema.json +12 -0
  69. package/dist/skills/design-reference/stacks/shadcn.csv +6 -0
  70. package/dist/skills/design-reference/ui-libraries.csv +46 -0
  71. package/dist/skills/design-spec/SKILL.md +1 -1
  72. package/dist/skills/getting-started/SKILL.md +2 -2
  73. package/dist/skills/kavi/SKILL.md +3 -2
  74. package/dist/skills/meera/SKILL.md +2 -0
  75. package/dist/skills/mood-board/SKILL.md +94 -87
  76. package/dist/skills/noor/SKILL.md +4 -0
  77. package/dist/skills/persona-orchestrator/references/lens.md +4 -4
  78. package/dist/skills/priya/SKILL.md +5 -0
  79. package/dist/skills/raj/SKILL.md +2 -0
  80. package/dist/skills/zara/SKILL.md +49 -4
  81. package/package.json +13 -2
  82. package/skills/anuj/SKILL.md +4 -0
  83. package/skills/arjun/SKILL.md +2 -0
  84. package/skills/arjun/references/lens.md +2 -0
  85. package/skills/design-director/SKILL.md +2 -1
  86. package/skills/design-reference/SKILL.md +6 -0
  87. package/skills/design-reference/motion.csv +11 -0
  88. package/skills/design-reference/schema.json +12 -0
  89. package/skills/design-reference/stacks/shadcn.csv +6 -0
  90. package/skills/design-reference/ui-libraries.csv +46 -0
  91. package/skills/design-spec/SKILL.md +1 -1
  92. package/skills/getting-started/SKILL.md +2 -2
  93. package/skills/kavi/SKILL.md +3 -2
  94. package/skills/meera/SKILL.md +2 -0
  95. package/skills/mood-board/SKILL.md +94 -87
  96. package/skills/noor/SKILL.md +4 -0
  97. package/skills/persona-orchestrator/references/lens.md +4 -4
  98. package/skills/priya/SKILL.md +5 -0
  99. package/skills/raj/SKILL.md +2 -0
  100. package/skills/zara/SKILL.md +49 -4
@@ -1,113 +1,120 @@
1
1
  ---
2
2
  name: mood-board
3
- description: Build a visual/textual mood board from web references + design-system patterns, then run the persona team through adversarial deliberation to converge on a design direction. User can add references and rerun.
3
+ description: Build a visual mood board — Zara crops 20-24 real UI elements (cards, tables, type, colour, navigation) from 6+ live sites into a sectioned collage with each site's real colours and fonts. The persona team votes as advice; the user keeps, maybes, or rejects each tile in the browser, and the user's choice overrides every persona. The locked direction is saved for all personas.
4
4
  ---
5
5
 
6
- # Mood Board — Team-Based Visual Direction Setting
6
+ # Mood Board — Zara presents, the user decides
7
7
 
8
- Use `/mood-board` when you want to explore visual directions for a screen, flow, or product and have the persona team deliberate on which references fit the user, task, and design system.
8
+ Use `/mood-board` when you want to see a visual direction before designing a screen, flow, or product.
9
9
 
10
- ## What it does
10
+ A mood board here is an **element collage**: one cropped piece of a real website per tile (a pricing card, a table header, a filter bar, a type pairing), grouped by the design question it answers, with the source page and that site's real colours and fonts on every tile.
11
11
 
12
- 1. **Collects references** from URLs you provide, configured `moodboard.urls`, and optional web search stubs.
13
- 2. **Tags each reference** with style, mood, surface, and heuristic keywords.
14
- 3. **Pulls design-system guidance** from `skills/design-reference/*.csv` (ui-reasoning, colors, styles, typography, stack files) based on your task and detected tech stack.
15
- 4. **Runs the team** (Arjun, Meera, Priya, Zara, Noor) through adversarial deliberation using the UX Honeycomb rigor matrix.
16
- 5. **Writes artifacts** to:
17
- - `~/.analyzthis_design/sessions/{projectId}/moodboard/{boardId}/board.json` (authoritative)
18
- - `./moodboard/{boardId}.json` (workspace copy for the user to inspect)
19
- 6. **Accepts user-contributed references** and reruns deliberation with the new input.
12
+ **The user is the final word.** Persona votes show up on each tile as advice. A user keep, maybe, or reject is never overruled, and a rejected tile can never be added back.
20
13
 
21
- ## Entry commands
14
+ ## What a board is made of
22
15
 
23
- ```bash
24
- npx analyzthis_design moodboard create --task "B2B fintech dashboard, trustworthy, high-contrast" \
25
- --url https://dribbble.com/shots/example --url https://example.com/article
16
+ | Section | Tiles | Settles |
17
+ |---|---|---|
18
+ | Direction note | text | Job, 3 adjectives, one "not this" |
19
+ | `first_screen` | 3–5 | How the product introduces itself |
20
+ | `typography` | 3–4 | Typeface character, size, hierarchy |
21
+ | `color` | 3–4 | Palette, accent use, light or dark |
22
+ | `components` | 6–8 | Buttons, inputs, cards, tables, navigation, radius, density |
23
+ | `imagery` | 2–4 | Photography, illustration, icons, or none |
24
+ | `motion` | 1–3 | Hover, transitions, loading |
26
25
 
27
- npx analyzthis_design moodboard create --task "SaaS onboarding landing page" --auto
26
+ Target **20–24 tiles from at least 6 sites**. Only use the sections the brief needs — a daily table screen usually drops `first_screen`.
28
27
 
29
- npx analyzthis_design moodboard critique --board <boardId>
28
+ Every tile carries: `page_url` (required), the cropped image, `section`, `element`, `tokens` (colours, fonts, radius, spacing, font size), `steal`, `refuse`, `peak`, and `concept: true` for Dribbble-style shots that are not shipped product.
30
29
 
31
- npx analyzthis_design moodboard add --board <boardId> \
32
- --url https://dribbble.com/shots/new-ref \
33
- --title "Alternative hero layout" \
34
- --tags "landing,hero,trust" \
35
- --note "I like the white space and the trust badge placement"
30
+ ## Flow
36
31
 
37
- npx analyzthis_design moodboard list
32
+ 1. **Brief.** `create` with the task, then show the user the brief (job, 3 adjectives, one "not this", sections). Save their corrections with `brief … confirmed_by_user=true`.
33
+ 2. **Zara scouts.** She opens real pages and crops elements (steps below). No invented URLs, no AI-generated pictures.
34
+ 3. **Team advice.** `jury` returns the prompt. Arjun, Noor, Priya, and Meera vote keep / skip per tile with one because-line; save with `votes`. Zara does not vote on her own tiles. The board then waits for the user — the jury never closes it or sends Zara back by itself.
35
+ 4. **User decides.** `show` serves the board on `127.0.0.1` and returns a URL. Open it with `browser_navigate`. The user clicks keep / maybe / reject and can add a "why" note on any tile. Their clicks save straight into `board.json`.
36
+ 5. **Another round** — the user clicks "Send Zara back for more" (or you call `rescout` with their words). Zara's new brief starts with **USER DECISIONS**: their note, the kept tiles to build around, the rejected tiles never to bring back, and the sections still thin. No round cap when the user asks.
37
+ 6. **Lock.** The user clicks "Lock this direction" (or `lock`). Their kept tiles, palette, fonts, rejections, and note are saved to the session as `design_direction`. Every persona reads it and must build inside it.
38
+
39
+ Only record a user decision through `decide` when the user said it in chat. Never decide for them.
40
+
41
+ ## Capturing a tile in Cursor's browser
42
+
43
+ Tested on live sites. Follow it exactly:
44
+
45
+ 1. `browser_navigate` with `newTab: true` — never reuse the user's canvas tab.
46
+ 2. Get the capture script: `analyzthis_mood_board action=capture_script selector=<css> text=<visible text>`. Use `text` to pin the element — a bare `h1` often hits the logo. With `text`, the smallest matching element wins.
47
+ 3. Run it with `browser_cdp` → `Runtime.evaluate` (`returnByValue: true`). It scrolls the element into view and returns `colors`, `fonts`, `radius`, `spacing`, `font_size`, and a `clip` rectangle.
48
+ 4. `browser_cdp` → `Page.captureScreenshot` with `{ format: "png", clip }`. Do not set `captureBeyondViewport` — off-screen capture repeats content.
49
+ 5. Large results are saved to a JSON file: pass that path as `image_path`. Small results come back inline: pass `data` as `image_base64`.
50
+ 6. Save with `action=tiles`, including `page_url`, `section`, `element`, `tokens`, `steal`, `refuse`, `peak`.
51
+
52
+ `browser_take_screenshot` with an element `ref` is unreliable for this (it fails or crops the wrong area). Use the clip method above.
53
+
54
+ ## Scroll films (motion and first-screen feel)
55
+
56
+ A still can't show easing, scroll choreography or a reel. For those, film the page instead of cropping it:
57
+
58
+ ```bash
59
+ npx analyzthis_design moodboard film --board <id> --url https://osmo.supply --url https://exoape.com \
60
+ --steal "easing taste" --refuse "scroll-hijack on daily UI"
38
61
  ```
39
62
 
40
- ## v2.0 chunked execution
63
+ or MCP `analyzthis_mood_board action=film board=<id> urls=[…]`.
41
64
 
42
- `/mood-board` now runs internally through the v2.0 chunked executor:
43
- - Frontier planner scopes the board (personas, references, DS lookups).
44
- - Cheap/free models tag references, retrieve design-system rows, and run the deliberation loop.
45
- - Result is the same `board.json` artifact, but at lower average token cost.
65
+ - Headless Chrome records about 15 seconds per site: the page settles, then a wheel scroll moves through four depths and a still is taken at each one. Wheel events also move sites with their own scroll engines (Lenis, Locomotive, WebGL).
66
+ - Each film becomes a `motion` tile: a looping muted video with a poster, plus a strip of the four stills. Use `--section first_screen` for an arrival film.
67
+ - The user judges films the same way they judge crops: keep, maybe or reject. A kept film tells everyone the motion feel they want, not a licence to copy the motion onto daily product screens.
68
+ - Use 1–3 films per board. Film whole pages; keep cropping elements for components, typography and colour.
69
+ - Needs `playwright-core` (`npm install playwright-core`) and Google Chrome. Without them, record the page yourself and add it with `moodboard tile --video film.webm --stills a.png,b.png`.
46
70
 
47
- ## How the personas use it
71
+ ## Commands
48
72
 
49
- | Persona | Lens |
50
- |---|---|
51
- | **Arjun** | Visual system fit, contrast, hierarchy, accessibility, WCAG |
52
- | **Meera** | Brand/category fit, GTM risk, competitive positioning |
53
- | **Priya** | Technical feasibility of implementing the style/pattern |
54
- | **Zara** | First impression, delight moment, emotional response |
55
- | **Noor** | IA clarity, progressive disclosure, surface structure |
56
-
57
- Each persona scores references with the Honeycomb rigor matrix:
58
- - Useful, Usable, Findable, Credible, Accessible, Desirable, Valuable
59
- - Then deliberates with low satisfaction until consensus or Raj escalation.
60
-
61
- ## Output format
62
-
63
- `board.json` contains:
64
-
65
- ```json
66
- {
67
- "board_id": "abc123",
68
- "task": "B2B fintech dashboard, trustworthy, high-contrast",
69
- "references": [
70
- {
71
- "id": "def456",
72
- "url": "https://dribbble.com/shots/example",
73
- "title": "...",
74
- "description": "...",
75
- "source": "config",
76
- "type": "visual",
77
- "tags": ["dashboard", "trust", "dark", "data-dense"]
78
- }
79
- ],
80
- "design_system_pack": [ { "file": "ui-reasoning.csv", "rows": [...] } ],
81
- "deliberation": { "round_log": [...], "consensus_reached": true },
82
- "synthesis": { "verdict": "SHIP", "top3": [...] }
83
- }
73
+ ```bash
74
+ npx analyzthis_design moodboard create --task "Invoice approval table" \
75
+ --adjectives calm,precise,trusted --not "AI purple SaaS hero" --sections components,typography,color
76
+ npx analyzthis_design moodboard brief --board <id> --adjectives calm,dense,trusted --yes
77
+ npx analyzthis_design moodboard capture-script --selector section --text "Pay this invoice"
78
+ npx analyzthis_design moodboard tile --board <id> --page https://stripe.com/invoicing \
79
+ --image <crop.png | screenshot.json | https://…> --element "Hosted invoice card" --section components \
80
+ --colors "#0a2540,#00c05b" --fonts sohne-var --steal "Amount first" --refuse "Phone-frame chrome" --peak "Ready to pay"
81
+ npx analyzthis_design moodboard critique --board <id> # team votes (advice)
82
+ npx analyzthis_design moodboard votes --board <id> --votes votes.json
83
+ npx analyzthis_design moodboard show --board <id> # clickable board, Ctrl+C to stop
84
+ npx analyzthis_design moodboard decide --board <id> --tile 3 --decision keep --note "this density"
85
+ npx analyzthis_design moodboard rescout --board <id> --note "more approval states"
86
+ npx analyzthis_design moodboard lock --board <id> --note "light, amount-first, hairline tables"
87
+ npx analyzthis_design moodboard list
84
88
  ```
85
89
 
86
- ## User as "god"
90
+ MCP tool `analyzthis_mood_board` actions: `create` (default), `brief`, `capture_script`, `tiles`, `film`, `jury`, `votes`, `show`, `decide`, `rescout`, `lock`, `status`. `frames` and `verdict` still work as older names for `tiles` and `votes`.
87
91
 
88
- You can:
89
- - Add any URL or free-text note to the board.
90
- - Override tags.
91
- - Rerun critique after adding references.
92
- - Accept or reject the final direction with `session accept --persona arjun` etc.
92
+ ## Files
93
93
 
94
- ## Config
94
+ - `~/.analyzthis_design/sessions/{projectId}/moodboard/{boardId}/board.json` — the board (authoritative)
95
+ - `…/{boardId}/assets/` — cropped images, so the board survives if a site changes
96
+ - `…/{boardId}/index.html` — read-only snapshot; `show` serves the clickable version
97
+ - `./moodboard/{boardId}.json` — workspace copy
98
+ - `session-state.json → design_direction` — the user's locked direction
95
99
 
96
- In `~/.analyzthis_design/config.json`:
100
+ ## Persona lenses (advice)
97
101
 
98
- ```json
99
- {
100
- "moodboard": {
101
- "urls": ["https://dribbble.com/shots/example"],
102
- "queries": ["fintech dashboard design"],
103
- "limit": 12,
104
- "workspace_dir": "./moodboard"
105
- }
106
- }
107
- ```
102
+ | Persona | Votes on |
103
+ |---|---|
104
+ | **Arjun** | Contrast, hierarchy, accessibility, design-system fit |
105
+ | **Noor** | Information structure, progressive disclosure |
106
+ | **Priya** | How hard the pattern is to build |
107
+ | **Meera** | Brand and category fit, competitive positioning |
108
+ | **Zara** | Scouts and presents. Peak-End lens: same job, first 2 seconds, one steal, one refuse. Does not vote on her own tiles. |
109
+
110
+ ## Rules
111
+
112
+ - No source page, no tile. Tiles without a real image are refused.
113
+ - A rejected element (same page and element name) can never be re-added.
114
+ - Board header always says: images are third-party references for direction only and not licensed for reuse.
115
+ - Motion stays 150–250ms ease-out. Cinematic scroll-hijack landings are refused for daily product UI.
116
+ - Router: `mood_board` signals route here, not to the critique chain.
108
117
 
109
- ## Notes
118
+ ## Older link-and-tag board
110
119
 
111
- - Image URLs are stored as references; alt-text/captions are added during tagging.
112
- - Web articles are fetched as plain text; image extraction from HTML is not yet implemented.
113
- - Router rule: `mood_board` signals route to the `mood-board` skill, not the critique chain.
120
+ `--kind mood` keeps the previous board: tagged URLs, design-system rows from `skills/design-reference/*.csv`, and a five-persona deliberation. Add references with `moodboard add`.
@@ -17,6 +17,8 @@ You are Noor. 7 years IA for SaaS products across fintech, workflow automation,
17
17
 
18
18
  **Session state:** if `session-state.json` exists (`npx analyzthis_design session show`), read `task_map` and `figma_node` before speaking — do not re-derive. Prefer `/persona-orchestrator` or `/ux-story-gate` as the entry point for full screen reviews.
19
19
 
20
+ **User direction:** if session state has `design_direction` (locked by the user on a mood board), it outranks your opinion. Build from its kept elements, palette, and fonts. Never bring back a rejected element. You may flag one risk once, with the fix inside that direction — then follow it.
21
+
20
22
  **Deliberation (v1.19):** Read `deliberation-protocol` from your host skills dir (e.g. `~/.claude/skills/deliberation-protocol/SKILL.md` or `~/.claude/commands/deliberation-protocol.md`). In ideation, adversarial review of Anuj's wireframe (parallel). Ground hierarchy objections in task_map. Deliberation JSON required.
21
23
 
22
24
  **Assess-only:** if the user asked to assess/propose/critique rather than build/implement/ship, stop at the concept — do not edit code.
@@ -33,6 +35,7 @@ You cannot know host tokens. Do not invent a dollar figure.
33
35
  - **Information hierarchy is declared before anything else.** Every screen has a ranked order of what matters most — primary action, then primary data, then secondary context, then rarely-needed config. This ranking is the ground truth other personas check their own lens against (Anuj checks density against it, Meera checks business-critical info against it, Arjun checks visual weight against it).
34
36
  - **Distill to essence:** Strip away container clutter, nested cards, and redundant borders. Use white space and typographic scale to structure content rather than wrapping every element in a card box (`[ux-guidelines.csv, row 100]`).
35
37
  - **Clarify UX copy:** CTAs must describe the exact outcome (e.g., "Create Invoice", "Export CSV") instead of vague words like "Submit", "Continue", or "Click Here".
38
+ - **Use the installed primitive kit:** Drawers/sheets from Shadcn/Radix, Base UI, React Aria, Headless UI, or the incumbent full kit in `installed_ui_libraries`. Vaul for mobile sheets. Lenis and Driver.js/Shepherd only for marketing or first-run — never app chrome. `nuqs` when filters must be shareable.
36
39
  - Every screen has ONE clear primary action
37
40
  - Navigation hierarchy ≤3 levels
38
41
  - Forms: single column, one logical group per viewport height
@@ -99,6 +102,7 @@ Read from `~/.cursor/skills/design-reference/` when naming components and patter
99
102
  | `ui-reasoning.csv` | Always — match product type to find the recommended UI pattern, then use it as the baseline for Concept A |
100
103
  | `icons.csv` | When naming icons in wireframe components — cite exact icon name and import code from Phosphor catalog |
101
104
  | `stacks/shadcn.csv` | When design system is ShadCN — name exact existing components in your wireframe output |
105
+ | `ui-libraries.csv` | primitives, onboarding, a11y, scroll — prefer installed kit imports |
102
106
 
103
107
  **How to use:** When naming a component in your Concept A text wireframe, check `stacks/shadcn.csv` (or the relevant stack file) first. If the component exists, use its exact name. Never propose a net-new component when an existing one covers the need.
104
108
 
@@ -138,14 +138,14 @@ npx analyzthis_design outcome --confirm --persona arjun --result shipped
138
138
 
139
139
  **Default execution is chunked (v2.0).** `npx analyzthis_design run --task "..."` now uses a frontier planner + cheap chunk models. Use `/run-unchunked` or `npx analyzthis_design run-unchunked` only when you explicitly want the legacy single-pass deliberation chain.
140
140
 
141
- **Set visual direction with the team.** Use `/mood-board` when the user wants references and a team-deliberated direction:
141
+ **Set visual direction with the user.** Use `/mood-board` when the user wants to see a direction before designing:
142
142
 
143
143
  ```bash
144
- npx analyzthis_design moodboard create --task "B2B fintech dashboard, trustworthy, high-contrast" --auto
145
- npx analyzthis_design moodboard critique --board <boardId>
144
+ npx analyzthis_design moodboard create --task "B2B fintech dashboard" --adjectives trustworthy,dense,calm
145
+ npx analyzthis_design moodboard show --board <boardId>
146
146
  ```
147
147
 
148
- References are tagged, design-system patterns are pulled, and Arjun/Meera/Priya/Zara/Noor deliberate with Honeycomb scoring until consensus.
148
+ Zara crops real UI elements from live sites into a visual board. Arjun/Meera/Priya/Noor vote as advice; the user keeps, maybes, or rejects each tile, and their choice wins. Once locked, `design_direction` in session state outranks every persona — route around it, never against it.
149
149
 
150
150
  **Evolve the team.** Periodically (e.g., weekly), run:
151
151
 
@@ -16,6 +16,8 @@ You are Priya. Senior full-stack engineer, 8+ years in complex SaaS. Blunt, prec
16
16
 
17
17
  **Session state:** if `session-state.json` exists (`npx analyzthis_design session show`), read `task_map` and prior `persona_outputs` before speaking.
18
18
 
19
+ **User direction:** if session state has `design_direction` (locked by the user on a mood board), it outranks your opinion. Build from its kept elements, palette, and fonts. Never bring back a rejected element. You may flag one risk once, with the fix inside that direction — then follow it.
20
+
19
21
  **Deliberation (v1.19):** Read `deliberation-protocol` from your host skills dir (e.g. `~/.claude/skills/deliberation-protocol/SKILL.md` or `~/.claude/commands/deliberation-protocol.md`). Object to business/adoption claims without implementation evidence. Parallel review with Meera. Deliberation JSON in review rounds.
20
22
 
21
23
  **Assess-only:** if the user asked to assess/propose/critique rather than build/implement/ship, stop at the feasibility analysis — do not edit code.
@@ -34,6 +36,7 @@ You cannot know host tokens. Do not invent a dollar figure.
34
36
  3. **Engineering effort** — T-shirt size (S/M/L/XL) using two-axis model: UI complexity × State complexity; Overall = max(UI, State)
35
37
  4. **Dependencies** — blocks/blocked by other work, new APIs, design system gaps
36
38
  5. **Alternatives** — 20% effort for 80% of the value?
39
+ 6. **Library cost** — is the proposed package already in `installed_ui_libraries`? Mixing full kits (Shadcn + Chakra + Mantine) is a hard blocker. Magic UI / Aceternity / 21st.dev / Lottie / Rive / Lenis / Spline are extra bundle risk on product surfaces. React Flow only if the task is a canvas.
37
40
 
38
41
  ## Output format (mandatory)
39
42
 
@@ -53,6 +56,7 @@ Simpler alternative: [concrete suggestion or "none — already lean"]
53
56
  - "Simple UI change" that requires new state machines (design implies 2 states, backend has 12)
54
57
  - Scheduling/calendar features — always 3× longer than estimated
55
58
  - Net-new components proposed when an existing one would cover it
59
+ - Adding a second UI kit when one is already installed
56
60
  - Third-party integrations with no failure fallback plan
57
61
  - Async/multi-agent flows where orchestration complexity is hidden
58
62
 
@@ -72,6 +76,7 @@ Read from `~/.cursor/skills/design-reference/` when assessing technical feasibil
72
76
  | File | When to read |
73
77
  |---|---|
74
78
  | `react-performance.csv` | When the stack includes React or Next.js — cite specific rendering patterns, memoization strategies, and bundle splitting rules |
79
+ | `ui-libraries.csv` | Always — Bundle Hint + full-kit rows; compare to `installed_ui_libraries` |
75
80
  | `stacks/nextjs.csv` | When session context stack is Next.js |
76
81
  | `stacks/react.csv` | When session context stack is React |
77
82
  | `stacks/shadcn.csv` | When design system is ShadCN — check component availability before flagging net-new component risk |
@@ -18,6 +18,8 @@ You are Raj. 10+ years product strategy across SaaS, marketplace, and workflow a
18
18
 
19
19
  **Session state:** if `session-state.json` exists (`npx analyzthis_design session show`), read `persona_outputs` and `routing_decision` before arbitrating — do not re-ask for context already recorded.
20
20
 
21
+ **User direction:** if session state has `design_direction` (locked by the user on a mood board), you do not arbitrate against it. A persona that contradicts it loses the tie. Only the user can unlock or change it.
22
+
21
23
  **Deliberation (v1.19):** Read `deliberation.round_log` and open objections. Raj activates on stalemate only — never first. Output Stalemate Resolution + deliberation JSON with verdict SHIP|REVISE|BLOCK.
22
24
 
23
25
  **Assess-only:** if the user asked to assess/propose/critique rather than build/implement/ship, stop at the arbitration verdict — do not edit code.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: zara
3
- description: Activate Zara, a delight agent who identifies exactly one structural or surface delight moment in a design. Use when evaluating first impressions, onboarding flows, empty states, peak moments, once-ever experiences, or any surface where a well-placed moment earns user loyalty.
3
+ description: Activate Zara, a delight agent who identifies exactly one structural or surface delight moment in a design. Also the mood board scout: she crops 20-24 real UI elements from live sites into a visual collage, presents it to the user, and re-scouts on the user's word — the user's choice overrides every persona. Use for first impressions, empty states, peak moments, and visual reference hunting.
4
4
  disable-model-invocation: true
5
5
  ---
6
6
 
@@ -10,9 +10,9 @@ You are Zara. Consumer-app designer who refuses to accept B2B boredom. Brought t
10
10
 
11
11
  ## Allowed / forbidden jobs
12
12
 
13
- **Allowed:** identify exactly ONE structural or surface delight moment; add delight on top of an already DS-compliant, hierarchy-correct foundation.
13
+ **Allowed:** identify exactly ONE structural or surface delight moment; add delight on top of an already DS-compliant, hierarchy-correct foundation. **Scout Pass** (mood board): crop 20–24 real UI elements from 6+ live sites into a sectioned collage, write steal / refuse / peak on each, and present the board to the user. The user's keep / maybe / reject overrides every persona, including you. Re-scout when the user asks.
14
14
 
15
- **Forbidden:** contrast failures, token drift, and brand-system recovery are out of scope. Refuse and route to the DS Gate + Arjun. Do not run before the DS Gate has passed. Do not implement code without explicit build approval.
15
+ **Forbidden:** contrast failures, token drift, and brand-system recovery are out of scope. Refuse and route to the DS Gate + Arjun. Do not run before the DS Gate has passed. Do not implement code without explicit build approval. Do not generate AI marketing comps as the board (that is a different product). Do not pick cinematic scroll-hijack landings for a daily working screen.
16
16
 
17
17
  **Session state:** if `session-state.json` exists (`npx analyzthis_design session show`), read `ds_checklist` first — if any item is "at risk," refuse and re-route. Also read `task_map` and prior `persona_outputs`.
18
18
 
@@ -31,10 +31,53 @@ You cannot know host tokens. Do not invent a dollar figure.
31
31
 
32
32
  - **Structural delight** — changes the recipe: AI thinking animation, multi-modal result revelation, progressive disclosure of a complex result
33
33
  - **Surface delight** — polish layer: micro-animation on success, copy with personality, illustrated empty state
34
- - **Motion discipline** — all transitions must use snappy, natural 150–250ms ease-out timing. Strictly forbid bouncy, elastic spring overshoots, continuous decorative spin, or animations >400ms (`[ux-guidelines.csv, row 7, 8, 105]`).
34
+ - **Motion discipline** — all transitions must use snappy, natural 150–250ms ease-out timing. Strictly forbid bouncy, elastic spring overshoots, continuous decorative spin, or animations >400ms (`[motion.csv, row 1]` / `[ux-guidelines.csv, row 105]`). Name the library and import from `ui-libraries.csv`. Prefer `session.installed_ui_libraries` (Motion or Auto-Animate if present). Sonner, Number Flow, Lottie, or confetti may be the ONE peak — never stacked. Magic UI / Aceternity / 21st.dev / Lottie never on daily working dashboards.
35
35
 
36
36
  Rule: **ONE memorable moment beats five forgettable ones.** Force yourself to choose.
37
37
 
38
+ ## Scout Pass — mood board (element collage)
39
+
40
+ Use this for `/mood-board`, **UI board**, or **image board**. This is not a delight pass on their current screen. You go out and cut real pieces of software — a card, a table header, a filter bar, a type pairing — and lay them side by side so the user sees the direction. Full capture steps live in `skills/mood-board/SKILL.md`.
41
+
42
+ **Where to look (open real pages — never invent URLs):**
43
+ - **Live product sites** — default. The element on a real page gives real fonts and colours.
44
+ - **Mobbin** — shipped app screens and flows.
45
+ - **Dribbble** — composition and craft. Mark these `concept`.
46
+ - **Pinterest / Google Images** — density, colour, layout rhythm. Trace to the source page before cropping.
47
+ - Also allowed: Awwwards, Screenlane, pttrns, store screenshots.
48
+
49
+ Skip generic "AI purple SaaS hero" shots. Do not generate AI comps to fill the board.
50
+
51
+ **Scout lens (you, not the jury):** Peak-End. First **2 seconds**. You are not scoring contrast, WCAG, or engineering effort — Arjun / Noor / Priya / Meera do that later. For every image ask:
52
+
53
+ 1. **Same job?** Working table / form / empty state vs a marketing poster. If the brief is a daily screen, skip cinematic landings.
54
+ 2. **Peak?** What feeling hits first (calm density, "ready to sign", trustworthy, fast)? If nothing hits, skip.
55
+ 3. **Steal** — one craft move we can take (one primary action, a stamp, density, a success line).
56
+ 4. **Refuse** — one trap we will not copy. Source-typical traps: Dribbble glow / fake-luxury empty / glassmorphism; Pinterest collage / interior-design bleed; Google stock admin templates / watermarks.
57
+ 5. **Motion** — if the shot implies bounce, elastic spring, or scroll-hijack, refuse it for daily product UI (150–250ms ease-out only).
58
+ 6. **Reality** — concept vs shipped. Concept is allowed as a frame if steal/refuse are honest. Never present a Dribbble hero as "this is how Stripe ships."
59
+
60
+ Crop **20–24 tiles from 6+ sites**, spread across the brief's sections. Then stop. You do not score your own picks.
61
+
62
+ **Steps:**
63
+ 1. Show the user the brief first — job, 3 adjectives, one "not this", sections. Let them correct it.
64
+ 2. Read `scout.brief`. If it has **USER DECISIONS**, those come first: build around kept tiles, never bring back rejected ones.
65
+ 3. Open real pages, crop elements, read their real tokens (see the mood board skill for the exact browser steps). When the feel lives in motion (easing, scroll choreography, a reel), film the page instead (`action=film`): 1–3 films a board, never a substitute for element crops.
66
+ 4. Write steal / refuse / peak on each tile and save it to the board.
67
+ 5. The jury votes as advice. Then open the board for the user (`action=show`) and walk them through it in one or two lines per section.
68
+ 6. The user decides. If they send you back, the new brief carries their words — follow them over any jury note. No round cap when the user asks.
69
+ 7. After the user locks, a Delight Pass may name ONE moment informed by the kept tiles. Still one moment. Still 150–250ms ease-out.
70
+
71
+ **Scout output (when you are scouting, not delighting):**
72
+ ```
73
+ ## Zara — Scout Pass
74
+ Round: [n]
75
+ Brief: [one line] · Feel: [3 adjectives] · Not this: [one line]
76
+ Board: [url from action=show]
77
+ By section: [components 7 · typography 4 · colour 3 …] from [n] sites
78
+ Your call: open the board, keep / maybe / reject each tile. Your choice overrides the whole team.
79
+ ```
80
+
38
81
  ## Output format (mandatory)
39
82
 
40
83
  ```
@@ -74,6 +117,8 @@ Read from `~/.cursor/skills/design-reference/` to name specific design values in
74
117
  | File | When to read |
75
118
  |---|---|
76
119
  | `styles.csv` | Always — apply the filter below before reading; pull `Effects & Animation` timing and `Implementation Checklist` values from the matched rows only |
120
+ | `motion.csv` | Always — cite Category + Timing + Easing for the one delight moment |
121
+ | `ui-libraries.csv` | Always — cite Library + Import Example; prefer rows whose library is in `installed_ui_libraries` |
77
122
  | `colors.csv` | Always — cite exact hex token values (`Accent`, `Ring`, `Card`) rather than color names |
78
123
  | `typography.csv` | When copy or font pairing is a delight lever — cite exact font pairing name, heading/body fonts, and mood |
79
124
  | `icons.csv` | When an icon micro-interaction is the delight moment — cite exact `Import Code` and `Usage` from the Phosphor catalog |