analyzthis_design 1.20.1 → 2.0.1
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/HOW-TO-USE.md +436 -0
- package/README.md +183 -36
- package/agents/cards/chunk-planner.md +5 -0
- package/agents/cards/mood-board.md +13 -0
- package/agents/cards/query-expander.md +17 -0
- package/agents/cards/ranker.md +16 -0
- package/agents/cards/run-unchunked.md +7 -0
- package/agents/chain.json +15 -0
- package/agents/manifests/anuj.json +1 -0
- package/agents/manifests/arjun.json +1 -0
- package/agents/manifests/chunk-planner.json +18 -0
- package/agents/manifests/kavi.json +1 -0
- package/agents/manifests/meera.json +1 -0
- package/agents/manifests/mood-board.json +23 -0
- package/agents/manifests/noor.json +1 -0
- package/agents/manifests/priya.json +1 -0
- package/agents/manifests/query-expander.json +13 -0
- package/agents/manifests/raj.json +1 -0
- package/agents/manifests/ranker.json +13 -0
- package/agents/manifests/run-unchunked.json +19 -0
- package/agents/manifests/zara.json +1 -0
- package/agents/router.json +14 -0
- package/agents/session-schema.json +27 -0
- package/dist/.github/ISSUE_TEMPLATE/persona-feedback.yml +75 -0
- package/dist/HOW-TO-USE.md +436 -0
- package/dist/README.md +869 -0
- package/dist/agents/cards/anuj.md +28 -0
- package/dist/agents/cards/arjun.md +29 -0
- package/dist/agents/cards/chunk-planner.md +5 -0
- package/dist/agents/cards/design-director.md +19 -0
- package/dist/agents/cards/devi.md +15 -0
- package/dist/agents/cards/kavi.md +26 -0
- package/dist/agents/cards/meera.md +27 -0
- package/dist/agents/cards/mood-board.md +13 -0
- package/dist/agents/cards/noor.md +28 -0
- package/dist/agents/cards/priya.md +27 -0
- package/dist/agents/cards/query-expander.md +17 -0
- package/dist/agents/cards/raj.md +29 -0
- package/dist/agents/cards/ranker.md +16 -0
- package/dist/agents/cards/run-unchunked.md +7 -0
- package/dist/agents/cards/zara.md +30 -0
- package/dist/agents/chain.json +76 -0
- package/dist/agents/deliberation-schema.json +44 -0
- package/dist/agents/design-spec-schema.json +111 -0
- package/dist/agents/manifests/anuj.json +32 -0
- package/dist/agents/manifests/arjun.json +47 -0
- package/dist/agents/manifests/chunk-planner.json +18 -0
- package/dist/agents/manifests/design-critic.json +21 -0
- package/dist/agents/manifests/design-director.json +26 -0
- package/dist/agents/manifests/devi.json +31 -0
- package/dist/agents/manifests/kavi.json +34 -0
- package/dist/agents/manifests/meera.json +32 -0
- package/dist/agents/manifests/mood-board.json +23 -0
- package/dist/agents/manifests/noor.json +33 -0
- package/dist/agents/manifests/persona-orchestrator.json +17 -0
- package/dist/agents/manifests/priya.json +32 -0
- package/dist/agents/manifests/query-expander.json +13 -0
- package/dist/agents/manifests/raj.json +31 -0
- package/dist/agents/manifests/ranker.json +13 -0
- package/dist/agents/manifests/run-unchunked.json +19 -0
- package/dist/agents/manifests/ux-story-gate.json +23 -0
- package/dist/agents/manifests/zara.json +33 -0
- package/dist/agents/router.json +99 -0
- package/dist/agents/session-schema.json +152 -0
- package/dist/bin/cli.js +1 -1
- package/dist/lib/cache.js +1 -1
- package/dist/lib/chunk-executor.js +1 -0
- package/dist/lib/chunk-models.js +1 -0
- package/dist/lib/chunk-planner.js +1 -0
- package/dist/lib/chunk-router.js +1 -0
- package/dist/lib/chunk-run.js +1 -0
- package/dist/lib/chunk-synthesis.js +1 -0
- package/dist/lib/chunk-telemetry.js +1 -0
- package/dist/lib/collect.js +1 -1
- package/dist/lib/cost.js +1 -1
- package/dist/lib/dedup.js +1 -0
- package/dist/lib/deliberation.js +1 -1
- package/dist/lib/design-spec.js +1 -1
- package/dist/lib/evolve.js +1 -0
- package/dist/lib/export.js +1 -1
- package/dist/lib/feedback-submit.js +1 -1
- package/dist/lib/feedback.js +1 -1
- package/dist/lib/host-llm.js +1 -1
- package/dist/lib/install.js +1 -1
- package/dist/lib/knowledge.js +1 -1
- package/dist/lib/lessons.js +1 -0
- package/dist/lib/moodboard.js +1 -0
- package/dist/lib/orchestrator/run.js +1 -1
- package/dist/lib/outcome.js +1 -0
- package/dist/lib/platforms.js +1 -1
- package/dist/lib/provider.js +1 -1
- package/dist/lib/query-expander.js +1 -0
- package/dist/lib/ranker.js +1 -0
- package/dist/lib/reference-pack.js +1 -0
- package/dist/lib/research.js +1 -1
- package/dist/lib/retrieve.js +1 -1
- package/dist/lib/session.js +1 -1
- package/dist/lib/source-discovery.js +1 -1
- package/dist/lib/synthesis.js +1 -1
- package/dist/lib/token-gate.js +1 -1
- package/dist/skills/anuj/SKILL.md +92 -0
- package/dist/skills/arjun/SKILL.md +291 -0
- package/dist/skills/chunk-planner/SKILL.md +45 -0
- package/dist/skills/collect-knowledge/SKILL.md +20 -0
- package/dist/skills/deliberation-protocol/SKILL.md +131 -0
- package/dist/skills/design-critic/SKILL.md +191 -0
- package/dist/skills/design-director/SKILL.md +181 -0
- package/dist/skills/design-personas/SKILL.md +100 -0
- package/dist/skills/design-reference/SKILL.md +83 -0
- package/dist/skills/design-reference/app-interface.csv +31 -0
- package/dist/skills/design-reference/charts.csv +26 -0
- package/dist/skills/design-reference/colors.csv +162 -0
- package/dist/skills/design-reference/google-fonts.csv +1924 -0
- package/dist/skills/design-reference/icons.csv +106 -0
- package/dist/skills/design-reference/landing.csv +35 -0
- package/dist/skills/design-reference/products.csv +162 -0
- package/dist/skills/design-reference/react-performance.csv +45 -0
- package/dist/skills/design-reference/schema.json +159 -0
- package/dist/skills/design-reference/stacks/angular.csv +51 -0
- package/dist/skills/design-reference/stacks/astro.csv +54 -0
- package/dist/skills/design-reference/stacks/flutter.csv +53 -0
- package/dist/skills/design-reference/stacks/html-tailwind.csv +56 -0
- package/dist/skills/design-reference/stacks/jetpack-compose.csv +53 -0
- package/dist/skills/design-reference/stacks/laravel.csv +51 -0
- package/dist/skills/design-reference/stacks/nextjs.csv +53 -0
- package/dist/skills/design-reference/stacks/nuxt-ui.csv +51 -0
- package/dist/skills/design-reference/stacks/nuxtjs.csv +59 -0
- package/dist/skills/design-reference/stacks/react-native.csv +52 -0
- package/dist/skills/design-reference/stacks/react.csv +54 -0
- package/dist/skills/design-reference/stacks/shadcn.csv +61 -0
- package/dist/skills/design-reference/stacks/svelte.csv +54 -0
- package/dist/skills/design-reference/stacks/swiftui.csv +51 -0
- package/dist/skills/design-reference/stacks/threejs.csv +54 -0
- package/dist/skills/design-reference/stacks/vue.csv +50 -0
- package/dist/skills/design-reference/styles.csv +85 -0
- package/dist/skills/design-reference/typography.csv +75 -0
- package/dist/skills/design-reference/ui-reasoning.csv +162 -0
- package/dist/skills/design-reference/ux-guidelines.csv +100 -0
- package/dist/skills/design-spec/SKILL.md +106 -0
- package/dist/skills/devi/SKILL.md +114 -0
- package/dist/skills/getting-started/SKILL.md +144 -0
- package/dist/skills/kavi/SKILL.md +118 -0
- package/dist/skills/knowledge-bank/SKILL.md +43 -0
- package/dist/skills/meera/SKILL.md +76 -0
- package/dist/skills/mood-board/SKILL.md +113 -0
- package/dist/skills/noor/SKILL.md +96 -0
- package/dist/skills/persona-orchestrator/SKILL.md +220 -0
- package/dist/skills/priya/SKILL.md +75 -0
- package/dist/skills/raj/SKILL.md +77 -0
- package/dist/skills/run-unchunked/SKILL.md +49 -0
- package/dist/skills/ux-ideator/SKILL.md +187 -0
- package/dist/skills/ux-story-gate/SKILL.md +353 -0
- package/dist/skills/zara/SKILL.md +85 -0
- package/dist/supabase/deliberation-config.example.json +15 -0
- package/dist/supabase/feedback-config.example.json +7 -0
- package/dist/supabase/migrations/001_persona_feedback.sql +54 -0
- package/package.json +7 -4
- package/scripts/validate-csvs.js +197 -0
- package/skills/chunk-planner/SKILL.md +45 -0
- package/skills/design-reference/google-fonts.csv +1924 -1924
- package/skills/design-reference/products.csv +162 -162
- package/skills/design-reference/schema.json +159 -0
- package/skills/design-reference/stacks/angular.csv +1 -1
- package/skills/design-reference/stacks/astro.csv +1 -1
- package/skills/design-reference/stacks/laravel.csv +2 -2
- package/skills/design-reference/stacks/threejs.csv +54 -54
- package/skills/design-reference/styles.csv +85 -85
- package/skills/design-reference/typography.csv +75 -74
- package/skills/design-reference/ui-reasoning.csv +1 -1
- package/skills/getting-started/SKILL.md +12 -0
- package/skills/mood-board/SKILL.md +113 -0
- package/skills/persona-orchestrator/SKILL.md +35 -1
- package/skills/run-unchunked/SKILL.md +49 -0
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
---
|
|
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.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Mood Board — Team-Based Visual Direction Setting
|
|
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.
|
|
9
|
+
|
|
10
|
+
## What it does
|
|
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.
|
|
20
|
+
|
|
21
|
+
## Entry commands
|
|
22
|
+
|
|
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
|
|
26
|
+
|
|
27
|
+
npx analyzthis_design moodboard create --task "SaaS onboarding landing page" --auto
|
|
28
|
+
|
|
29
|
+
npx analyzthis_design moodboard critique --board <boardId>
|
|
30
|
+
|
|
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"
|
|
36
|
+
|
|
37
|
+
npx analyzthis_design moodboard list
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## v2.0 chunked execution
|
|
41
|
+
|
|
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.
|
|
46
|
+
|
|
47
|
+
## How the personas use it
|
|
48
|
+
|
|
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
|
+
}
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
## User as "god"
|
|
87
|
+
|
|
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.
|
|
93
|
+
|
|
94
|
+
## Config
|
|
95
|
+
|
|
96
|
+
In `~/.analyzthis_design/config.json`:
|
|
97
|
+
|
|
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
|
+
```
|
|
108
|
+
|
|
109
|
+
## Notes
|
|
110
|
+
|
|
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.
|
|
@@ -130,7 +130,7 @@ Run `ux-story-gate` Phase 5.5. If `mode: assess_only`, stop here — do not writ
|
|
|
130
130
|
|
|
131
131
|
---
|
|
132
132
|
|
|
133
|
-
## Step 6.5 — Capture user corrections (v1.16)
|
|
133
|
+
## Step 6.5 — Capture user corrections and outcomes (v1.16 / v1.21)
|
|
134
134
|
|
|
135
135
|
When the user is **unhappy** with a persona's output or **rewrites/corrects** it, record that signal so future training can learn from mistakes:
|
|
136
136
|
|
|
@@ -152,6 +152,40 @@ Suggest this when the user says things like *"that's not what I meant,"* *"use o
|
|
|
152
152
|
|
|
153
153
|
List or export later: `feedback list`, `feedback export --persona arjun --all`.
|
|
154
154
|
|
|
155
|
+
**Track whether the advice actually shipped.** After the user implements changes, confirm the outcome so the evolution loop can learn:
|
|
156
|
+
|
|
157
|
+
```bash
|
|
158
|
+
npx analyzthis_design outcome --confirm --persona arjun --result shipped
|
|
159
|
+
# or: revised, blocked_correctly, missed
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
**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.
|
|
163
|
+
|
|
164
|
+
**Set visual direction with the team.** Use `/mood-board` when the user wants references and a team-deliberated direction:
|
|
165
|
+
|
|
166
|
+
```bash
|
|
167
|
+
npx analyzthis_design moodboard create --task "B2B fintech dashboard, trustworthy, high-contrast" --auto
|
|
168
|
+
npx analyzthis_design moodboard critique --board <boardId>
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
References are tagged, design-system patterns are pulled, and Arjun/Meera/Priya/Zara/Noor deliberate with Honeycomb scoring until consensus.
|
|
172
|
+
|
|
173
|
+
**Evolve the team.** Periodically (e.g., weekly), run:
|
|
174
|
+
|
|
175
|
+
```bash
|
|
176
|
+
npx analyzthis_design evolve --extract --dry-run # preview proposed patches
|
|
177
|
+
npx analyzthis_design evolve --extract # write patch files for review
|
|
178
|
+
npx analyzthis_design evolve --apply <patchId> --dry-run # preview a patch
|
|
179
|
+
npx analyzthis_design evolve --apply <patchId> # apply after review
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
This harvests accepted outputs + confirmed outcomes, extracts lessons into `~/.analyzthis_design/lessons/`, and proposes patches to:
|
|
183
|
+
- persona SKILL.md / cards (new canonical failure patterns),
|
|
184
|
+
- `skills/design-reference/*.csv` rows (new product-type guidance),
|
|
185
|
+
- `agents/router.json` rules (task_type → best-performing expert).
|
|
186
|
+
|
|
187
|
+
Patches are **dry-run by default** and require human review before apply.
|
|
188
|
+
|
|
155
189
|
**Share with maintainers (opt-in):** after recording, suggest `npx analyzthis_design feedback submit --yes` so anonymized corrections help improve personas for everyone. Preview first with `--dry-run`.
|
|
156
190
|
|
|
157
191
|
---
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: run-unchunked
|
|
3
|
+
description: Run the legacy non-chunked orchestrator. Useful when the chunked planner overhead is not justified for a quick single-expert task.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Run Unchunked — Legacy Orchestrator Mode
|
|
7
|
+
|
|
8
|
+
Use `/run-unchunked` when you want the original single-pass deliberation orchestrator instead of the default v2.0 chunked execution.
|
|
9
|
+
|
|
10
|
+
## When to use
|
|
11
|
+
|
|
12
|
+
- Quick single-expert tasks
|
|
13
|
+
- You already know exactly which personas to run
|
|
14
|
+
- You want one model to execute the whole chain without planner overhead
|
|
15
|
+
- Debugging or comparing against chunked output
|
|
16
|
+
|
|
17
|
+
## How to run
|
|
18
|
+
|
|
19
|
+
**Cursor / Claude / Grok:**
|
|
20
|
+
|
|
21
|
+
```
|
|
22
|
+
/run-unchunked --task "Fix contrast on the invoice table" --experts arjun
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
**Windsurf:**
|
|
26
|
+
|
|
27
|
+
```
|
|
28
|
+
@run-unchunked --task "Fix contrast on the invoice table" --experts arjun
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
**CLI:**
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
npx analyzthis_design run-unchunked --task "Fix contrast on the invoice table" --experts arjun
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Flags
|
|
38
|
+
|
|
39
|
+
- `--task` — required
|
|
40
|
+
- `--figma` — optional Figma URL
|
|
41
|
+
- `--experts` — explicit persona list
|
|
42
|
+
- `--full` / `--lite` — chain size
|
|
43
|
+
- `--no-deliberate` — legacy sequential handoff
|
|
44
|
+
- `--provider` — model provider
|
|
45
|
+
- `--max-rounds`, `--satisfaction` — deliberation tuning
|
|
46
|
+
|
|
47
|
+
## Note
|
|
48
|
+
|
|
49
|
+
This is the v1.x behavior preserved for compatibility. The default `npx analyzthis_design run` now uses chunked execution (frontier planner + cheap chunk models) in v2.0.
|