@jonandev/longbeard 0.11.1 → 0.11.2

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/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.11.2 — 2026-11-18
6
+
7
+ - `design-direction` asks whether you already have a moodboard: a Figma link (file, page or section), a folder of images, or links. If you do, it is the base. The agent reads the board and checks whether it is enough: three distinct anchors, and every part of the product covered. If it is, there is no search. If not, it says what the board lacks and offers a search for only that (a pool of 20 to 60, one picker round), or the full search when the board is too thin for even one direction. It opens the shortlisted references at full size (from Figma, the original upload, GIFs included, with motion recorded as frames), and proposes 3 directions as small boards of 6 to 8 references. Each direction is anchored on one reference's move, kept whole, with moves from other references combined around it and never averaged, and never one reference's whole concept. The search, the picker and the board of 100 stay for people without a moodboard.
8
+ - `design` keeps the direction's reference shots open while prototyping, for the finish text cannot carry: type character, spacing, texture. They rank below the design rules and are never copied. A reference that moves is replayed before the part it inspires is prototyped: its frames, and its live page recorded again, so the prototype's motion has the same feel.
9
+
5
10
  ## 0.11.1 — 2026-11-17
6
11
 
7
12
  - The brief has a **Position** section: what the product is up against, the one concrete thing it is remembered for, and its personality. `idea` recommends it from what people do today instead, and `design-direction` builds `ownable`, `voice` and `leave` from it, so the look aims at being distinctive rather than guessing.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jonandev/longbeard",
3
- "version": "0.11.1",
3
+ "version": "0.11.2",
4
4
  "description": "Designs like an Art director. Codes like a senior.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -51,6 +51,10 @@ Propose from the direction, so they react rather than start from nothing: for ea
51
51
 
52
52
  Read the brief's key screens (2–4) and `direction.md`. Prototype only those, with their main states. Other screens are composed later in Figma from the components.
53
53
 
54
+ Open the shots `direction.md` lists under References, the anchor or leads first, and keep them open while you prototype. Text carries a direction's structure. The pictures carry its finish: the type's character, the spacing's rhythm, the texture. Take the move, never the design: they rank below design-rules, and nothing in the prototype is lifted from one reference whole.
55
+
56
+ A reference that moves is felt again, not remembered. A still and a caption cannot carry timing. Before prototyping the part it inspires, play its recorded frames, and open its live link again: record it with `capture.mjs <url> --out design-exploration/<slug>/refs/<name>-replay --frames 12`, with `--scroll` or `--click` for what moves on scroll or on a click. Note what moves, in what order, how fast, and how it eases. Then build that kind of motion into the variants in CSS, with the same feel and none of its content, and say in chat which reference it came from. A link that no longer loads: work from the frames, and say so.
57
+
54
58
  Load Matt's `prototype`, UI branch, and tell it:
55
59
 
56
60
  - **No app.** Sub-shape B, in `design-exploration/<slug>/prototype/`: one `index.html` per key screen, plain HTML and CSS, no build step, no router, no NODE_ENV gate. It runs by opening the file.
@@ -87,7 +91,7 @@ Only on their yes to a rendered prototype. Write the whole file from [design-md-
87
91
  node <skill>/scripts/contrast.mjs "#1b1b1f on #fafaf7" "#c2410c on #fafaf7:mark"
88
92
  ```
89
93
  - **Themes.** A product with more than one theme lists each colour token once, with a value per theme, and every pair passes the contrast check in each theme.
90
- - **Ideas, not sources.** `DESIGN.md` is committed and often public. It never names a product, site, studio or designer from the exploration, and never cites a `design-exploration/` path. Turn each into the idea: "a quiet reading page", not whose.
94
+ - **Ideas, not sources.** References live only in `design-exploration/` on this machine, and only for this step. Nothing that outlives it names one: not `DESIGN.md`, not Figma (layers, descriptions, comments), not code or its comments, not a commit, PR, spec or ticket. No product, site, studio, designer or link from the exploration, and no `design-exploration/` path. Turn each into the idea: "a quiet reading page", not whose. Which reference a move came from is said in chat only.
91
95
  - **Write down what makes it this design.** Whatever someone would need to rebuild it without the prototype open goes under Components, with values, not adjectives.
92
96
  - **Tokens are code names.** Name each colour, type and spacing token as it will be named in code (`color/ink`, `space/md`). Figma variables use the same names, with code syntax `var(--color-ink)`.
93
97
  - **Soft rules overridden on purpose** go under Decisions with the reason. Hard rules cannot be overridden.
@@ -143,7 +147,7 @@ A feature with screens, once `DESIGN.md` exists.
143
147
  ## Do not
144
148
 
145
149
  - Write `DESIGN.md` before they approve a rendered prototype, or rewrite it during a feature. Only a rebrand's first pass replaces it.
146
- - Name a reference or a `design-exploration/` path in `DESIGN.md`.
150
+ - Name a reference, its link, its author or a `design-exploration/` path in anything that outlives the exploration: `DESIGN.md`, Figma, code, comments, commits, PRs, specs, tickets.
147
151
  - Use a community kit's components or variables in Figma.
148
152
  - Build the whole component library before the screens need it.
149
153
  - Mark a frame Ready that lacks a state a person can reach, or that has open hard findings.
@@ -2,11 +2,13 @@
2
2
  name: design-direction
3
3
  description: >
4
4
  Find the direction for a product's look from what they like and from real
5
- references: a wide pool from every source they choose, which they mark like
6
- or no on a picker page, a sharper second search from those picks, then a
7
- moodboard of about 100 across every part of the product, which they mark
8
- lead, like or no. Ideas and patterns, never tokens: colour and type are chosen
9
- later, in design, on rendered screens.
5
+ references. With their own moodboard (a Figma board, a folder, links), that
6
+ is the pool: proposes 3 directions as small boards, each anchored on one
7
+ reference's move. Without one: a wide pool from every source they choose,
8
+ which they mark like or no on a picker page, a sharper second search from
9
+ those picks, then a moodboard of about 100 across every part of the
10
+ product, which they mark lead, like or no. Ideas and patterns, never
11
+ tokens: colour and type are chosen later, in design, on rendered screens.
10
12
  Runs after docs/brief.md exists and the brief has a UI, or when design hits
11
13
  a gap and needs references for one piece. Writes
12
14
  design-exploration/<slug>/direction.md, a proposal, then offers to take it
@@ -30,9 +32,9 @@ Look at the repo. Do not ask what is there.
30
32
 
31
33
  ## Folder
32
34
 
33
- Everything goes in `design-exploration/<slug>/`: `candidates.tsv` and `picker.html` (and `-2` for round 2), `board.md`, `refs/`, `moodboard.html`, `direction.md`. The first pass is `identity/`. One piece uses its own slug (`pricing`, `empty-state`). If the folder exists, use `<slug>-2`. Two explorations never share a folder.
35
+ Everything goes in `design-exploration/<slug>/`: `candidates.tsv` and `picker.html` (and `-2` for round 2), or `shortlist.md` from their moodboard, `board.md`, `refs/`, `moodboard.html`, `direction.md`. The first pass is `identity/`. One piece uses its own slug (`pricing`, `empty-state`). If the folder exists, use `<slug>-2`. Two explorations never share a folder.
34
36
 
35
- On the first write, add `design-exploration/` to `.gitignore` if it is missing, and say why in one line: it is a working folder for inspiration, not part of the product. If `git ls-files design-exploration` already lists files, say so and leave `git rm -r --cached design-exploration` to them.
37
+ On the first write, add `design-exploration/` to `.gitignore` if it is missing, and say why in one line: it is a working folder for inspiration, not part of the product. References, their links, their authors and their shots stay in this folder and in chat. Nothing the product keeps (`DESIGN.md`, Figma, code, commits) ever names one. If `git ls-files design-exploration` already lists files, say so and leave `git rm -r --cached design-exploration` to them.
36
38
 
37
39
  ## Identity
38
40
 
@@ -44,10 +46,12 @@ Read `docs/brief.md` first. It gives the subject, the people, the surface (site
44
46
  Before I look, three questions. Skip any with "go" and I'll decide.
45
47
 
46
48
  1. How should <product> feel, and never feel? Any apps, sites, brands, books or places you love for this?
47
- 2. Pictures or links you already like? Screenshots, links or files.
48
- 3. Where should I look, and how many should end up on the moodboard? [x] <source> — <what it gives> … [ ] your own. Default about 100, across <the parts>. You'll pick from a wider pool first.
49
+ 2. Do you already have a moodboard, or a few pictures you like? A Figma link (file, page or section), a folder of images, screenshots or links. A moodboard, I'll work from. A few pictures steer the search.
50
+ 3. No moodboard, or a small one: where should I look, and how many should end up on the moodboard? [x] <source> — <what it gives> … [ ] your own. Default about 100, across <the parts>. You'll pick from a wider pool first.
49
51
  ```
50
52
 
53
+ A moodboard → **Their moodboard**, below, then step 6. Skip steps 2 to 5. A few pictures or links, not a board → seeds for the search, below.
54
+
51
55
  Default sources:
52
56
 
53
57
  - **App:** popular Dribbble. No award galleries.
@@ -58,10 +62,60 @@ Each of these was checked to work with this skill's scripts, without a login (20
58
62
 
59
63
  **The parts.** The moodboard covers the whole product, not its first screen. For a site: home, navigation, index, case study, article, blog, photography, motion. Drop a part the brief has no use for, and add one it needs. For an app: the brief's key screens, its navigation, and motion. Every keep has one part, its `topic`.
60
64
 
61
- Anything skipped is yours to decide: say what you chose in one line, then search. A Figma link pasted before the search means the look already exists: say so, and offer `design` instead. If their answers contradict the brief, that is `grilling`, not a second round.
65
+ Anything skipped is yours to decide: say what you chose in one line, then search. A Figma link to the product's own screens means the look already exists: say so, and offer `design` instead. A Figma link to a board of other people's work is a moodboard. If their answers contradict the brief, that is `grilling`, not a second round.
62
66
 
63
67
  A picture they gave is a **seed**: a picker row with source `seed`, which starts liked, then a card with `link: none (shared in chat)` or its URL, never dropped. Seeds steer the queries ("more like this").
64
68
 
69
+ ### Their moodboard
70
+
71
+ Their board already holds their taste, so it is the base. A rich board is the whole pool: no search, no picker, no board of 100. A thin one is topped up with a search sized to what it lacks.
72
+
73
+ **Read it.** A folder: open every image. Links: capture each page (sources.md has the options). Figma, a section at a time:
74
+
75
+ - `create_session` with the file key first.
76
+ - **Find the sections.** A section link: start there. A page or file link: `get_metadata` on the page. A board of hundreds of cards returns about 100K tokens, saved to a file: read only its section lines from it (name, id, size), never the whole dump into context.
77
+ - **Read the cards.** Metadata gives frames and names, not the text on them. `get_screenshot` a section with `maxDimension` set to its longer side, so it renders at full size, and open it in crops of about 1100 px tall: a whole section opened at once is shrunk until its captions blur.
78
+
79
+ **Shortlist** 20 to 40 that fit the brief, across its parts. Then open each at full size. A card's render on the board is a thumbnail. For Figma, `download_assets` on the image node: `rawImages` is the original upload at full size, GIFs included. Save it to `refs/<name>.<format>`. Nothing is judged from a thumbnail.
80
+
81
+ **Motion** is judged from frames. For a GIF, write a page in the slug folder that shows it at its own size, and record it: `capture.mjs "file://…/<name>.html" --out design-exploration/<slug>/refs/<name>-frames --frames 16 --every 250`. A moving reference with no playable source counts for its layout only. Say so.
82
+
83
+ **Is it enough?** After the shortlist, check what it can carry:
84
+
85
+ - **Distinct anchors:** three references, each different from the others on at least two of type character, colour strategy, layout and density, imagery, each able to set a direction.
86
+ - **The product's parts:** every key screen and part in the brief has at least one fit: a reference that shows that kind of screen, or a move that clearly carries over to it.
87
+
88
+ Both met → go on, and say so in one line ("Your board covers it: 34 fits, every part, room for three directions."). Otherwise say what it lacks in up to three lines, with what it does hold ("12 cards, all print posters: strong on type and colour, nothing for navigation or a data screen, room for one direction"), and offer a search sized to the gap. Then wait.
89
+
90
+ > Search for these, or go with what your board has?
91
+
92
+ - **A gap:** search only what is missing (the parts it lacks, or more anchors in the spirit of their board), a pool of 20 to 60 new candidates plus their board's fits as seeds, one picker round as in step 3. Their likes are opened at full size and captured as in step 3, then join `shortlist.md` with a `move`.
93
+ - **Too thin to make even one direction:** the full search, steps 2 to 5, with their board's fits as seeds.
94
+ - **"Go":** work with the board. What it lacks goes under `Missing`, and a key screen that depends on it gets **One piece** after they choose.
95
+
96
+ **Write `shortlist.md`**: one card per shortlisted reference, in the card shape from step 4, with one more field:
97
+
98
+ ```
99
+ - move: <what a designer would take from it, concrete enough to apply to other content · why it works>
100
+ ```
101
+
102
+ The `move` is what the directions are built from. Write it from the full-size image: the type's character, the spacing, the texture are the finish a thumbnail hides.
103
+
104
+ **Propose directions.** Three by default. Up to five only when the board holds that many distinct fits. Never pad one to reach a number. "Show me more" gives the next distinct one. Each direction:
105
+
106
+ - **An anchor:** one reference's defining move, kept whole. If its colour strategy or its type pairing is what makes it work, take it intact.
107
+ - **5 to 7 more references**, each giving one move that suits the anchor.
108
+ - **Never the whole concept.** Colour, type, placement, layout and content never all come from one reference. The brief brings its own content and its ownable.
109
+ - **Combine, never average.** Never half this serif and half that grotesk. A move that weakens the anchor is dropped.
110
+ - **Distinct:** each direction differs from every other on at least two of type character, colour strategy, layout and density, imagery.
111
+ - **As good as the references.** A direction that falls below their level is not a direction.
112
+
113
+ **Show them.** Write `board.md`: the header from step 4, with `Sources: their moodboard (<what it was>)` and `Picked` and `Noes` left out, then only the directions' cards: one per reference per direction, copied from the shortlist, with `topic: <letter> · <direction name>` and `pattern:` the move it gives that direction, the anchor first. Run `moodboard.mjs` and look at it yourself, one direction at a time, as in step 5: `A · Ink and paper` is `#t-a-ink-and-paper`. Then say where it is and, in chat, each direction in two lines: its anchor and what the others add. Ask one line:
114
+
115
+ > Which direction? Mix if you like ("A with C's type"). On the board, Lead a different reference if you'd anchor that direction on it, and No what doesn't belong.
116
+
117
+ Read their answer back in up to three lines and wait for their yes. Then step 6.
118
+
65
119
  ### 2. Search wide
66
120
 
67
121
  Read [sources.md](references/sources.md) before keeping anything. Do not narrate while looking. One line at the end is enough ("Found 210 across Dribbble, Awwwards and Recent, every part covered, building the picker.").
@@ -160,6 +214,7 @@ From their answer. Short: it is read by `design`, not by a client.
160
214
  Proposal, not official. design turns this into screens. Only an approved prototype becomes DESIGN.md.
161
215
 
162
216
  - idea: <the one thing this product's look says, in one sentence>
217
+ - anchor: <from their moodboard: the anchor move, kept whole, and its reference. Leave out otherwise>
163
218
  - feel: <their words for feel and never feel>
164
219
  - patterns: <what inspires us, each with its reference: a layout, an arrangement, a kind of picture, a way of moving>
165
220
  - ownable: <one concrete element made from the brief's `remembered for` and identity nouns, so this is not the lead. For a lighthouse logbook: a lamp-glow marker on the active item. Unconfirmed until seen rendered>
@@ -168,15 +223,17 @@ Proposal, not official. design turns this into screens. Only an approved prototy
168
223
 
169
224
  ## References
170
225
  ### <part>
171
- - lead: <card> — <link>
172
- - also: <their likes in this part> — <links>
226
+ - lead: <card> — <link> — <shot, or frames for motion>
227
+ - also: <their likes in this part> — <links> — <shots or frames>
173
228
  ```
174
229
 
230
+ From their moodboard, `patterns` is the chosen direction's moves, each with its reference. `References` keeps the parts: each of the direction's references goes under the part its shortlist card names, the anchor first wherever it appears. A part none of them fits gets the closest card from the shortlist, marked as your pick. `design` opens the shots while prototyping, so every reference names its file in `refs/`, and a moving one its frames folder and the live link it was recorded from.
231
+
175
232
  - **The leads are theirs.** A part they did not lead gets the closest to the brief, marked as your pick: the closest, not the boldest. Each lead sets the feeling of its part. None is the brand.
176
233
  - **Notes count.** A tile note is about that reference: it goes into `patterns` or `leave`. Their moodboard noes are not references.
177
234
  - **No values.** No hex, no font name, no size. If a reference's colour or type is the point, describe the quality ("near-black ink on a warm page", "a condensed display face") and let `design` choose the value.
178
235
 
179
- Then say the direction in chat in four lines (idea, patterns, ownable, leave), and end with one question. Wait for the answer, however the run was set up: the direction is theirs to correct before anything is built on it.
236
+ Then say the direction in chat in four lines (idea, patterns, ownable, leave), with the anchor first when there is one, and end with one question. Wait for the answer, however the run was set up: the direction is theirs to correct before anything is built on it.
180
237
 
181
238
  > Change anything, or take this into design?
182
239
 
@@ -186,7 +243,7 @@ Yes → load `design`. No → stop. The folder stays on this machine.
186
243
 
187
244
  Usually called from `design` when a key screen has a gap no reference covers. Same card shape, same moodboard, its own slug.
188
245
 
189
- 1. Read `DESIGN.md` if it exists, and the brief. They are the base: the piece fits the colour, type and voice already chosen and never changes them.
246
+ 1. Read `DESIGN.md` if it exists, and the brief. If they gave a moodboard, look there first: a fit on their board beats a search. They are the base: the piece fits the colour, type and voice already chosen and never changes them.
190
247
  2. Ask once, then wait, unless the caller already said what is needed:
191
248
 
192
249
  ```
@@ -205,7 +262,7 @@ Usually called from `design` when a key screen has a gap no reference covers. Sa
205
262
  ## Do not
206
263
 
207
264
  - Pick colour, type, spacing, or any value. Write `DESIGN.md`. Code or lay out a page.
208
- - Search before the three questions are answered, answer them yourself, or ask them a second round of questions. Run a third picker round.
265
+ - Search past their moodboard when it is enough, or search for its gaps before they say yes. Search before the three questions are answered, answer them yourself, or ask them a second round of questions. Run a third picker round.
209
266
  - Cut the pool for taste before they pick. Pad the keep by lowering the filter. Keep a shot nobody opened at full size.
210
267
  - Screenshot a source's listing or search page, or a candidate you are not keeping. Never stitch screenshots or frames into one picture.
211
268
  - Judge motion from a still.
@@ -229,7 +229,7 @@ const html = `<!DOCTYPE html>
229
229
  <main>
230
230
  <header>
231
231
  <h1>Moodboard</h1>
232
- <p class="how">Lead what should set the tone for its part (one per part), Like what belongs, No what feels wrong. Add a note where you have one. The picture opens the shot, the name opens the source, and Play runs recorded motion.</p>
232
+ <p class="how">Lead what should set the tone for its group (one per group: a part, or a direction), Like what belongs, No what feels wrong. Add a note where you have one. The picture opens the shot, the name opens the source, and Play runs recorded motion.</p>
233
233
  <nav aria-label="Parts">${jump}</nav>
234
234
  <div class="filters" role="group" aria-label="Show">
235
235
  <button type="button" data-show="all" aria-pressed="true">All</button>
@@ -298,7 +298,7 @@ const html = `<!DOCTYPE html>
298
298
  const mark = b.dataset.mark;
299
299
  if (t.dataset.state === mark) delete t.dataset.state;
300
300
  else {
301
- // One lead per part: a new lead turns the old one into a like.
301
+ // One lead per group (a part, or a direction): a new lead turns the old one into a like.
302
302
  if (mark === "lead") for (const o of tiles) if (o !== t && o.dataset.topic === t.dataset.topic && o.dataset.state === "lead") o.dataset.state = "like";
303
303
  t.dataset.state = mark;
304
304
  }