@jonandev/longbeard 0.12.2 → 0.14.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/AGENTS.md +5 -6
- package/CHANGELOG.md +51 -0
- package/README.md +3 -4
- package/beard.json +6 -20
- package/bin/long-beard.js +2 -2
- package/package.json +2 -2
- package/skills/design/SKILL.md +21 -37
- package/skills/design-brief/SKILL.md +7 -5
- package/skills/design-check/SKILL.md +1 -1
- package/skills/design-check/references/design-rules.md +28 -5
- package/skills/design-check/scripts/rules.mjs +143 -9
- package/skills/design-content/SKILL.md +2 -0
- package/skills/design-direction/SKILL.md +87 -95
- package/skills/design-direction/references/design-floor.md +118 -0
- package/skills/design-direction/references/graphic.md +5 -10
- package/skills/design-direction/references/library.md +8 -6
- package/skills/design-direction/references/screen-template.html +3 -3
- package/skills/design-direction/references/subject.md +2 -2
- package/skills/design-direction/references/variants.js +43 -0
- package/skills/design-direction/scripts/canvas.mjs +311 -0
- package/skills/design-direction/scripts/colours.mjs +247 -0
- package/skills/design-direction/scripts/moodboard.mjs +233 -93
- package/skills/design-direction/scripts/rules.mjs +747 -0
- package/skills/design-direction/scripts/sheet.mjs +3 -1
- package/skills/design-figma/SKILL.md +3 -1
- package/skills/design-identity/SKILL.md +17 -8
- package/skills/{design-direction → design-identity}/references/controls.md +10 -10
- package/skills/design-identity/references/design-floor.md +118 -0
- package/skills/design-identity/references/identity-board.html +2 -2
- package/skills/design-identity/scripts/colours.mjs +35 -1
- package/skills/design-identity/scripts/sheet.mjs +3 -1
- package/skills/design-moodboard/SKILL.md +44 -76
- package/skills/design-moodboard/references/graphic.md +1 -1
- package/skills/design-moodboard/references/sources.md +12 -1
- package/skills/design-moodboard/scripts/group.mjs +1 -1
- package/skills/design-moodboard/scripts/moodboard.mjs +233 -93
- package/skills/design-prototype/SKILL.md +66 -82
- package/skills/design-prototype/references/design-floor.md +118 -0
- package/skills/design-prototype/references/design-md-template.md +3 -0
- package/skills/design-prototype/references/graphic.md +6 -5
- package/skills/design-prototype/references/variants.js +43 -0
- package/skills/design-prototype/scripts/drift.mjs +273 -0
- package/skills/design-prototype/scripts/links.mjs +5 -4
- package/skills/design-prototype/scripts/rules.mjs +143 -9
- package/skills/design-prototype/scripts/sheet.mjs +3 -1
- package/skills/design-wordmark/SKILL.md +8 -2
- package/skills/design-wordmark/scripts/sheet.mjs +3 -1
- package/skills/idea/SKILL.md +3 -3
- package/skills/design-direction/references/design-rules.md +0 -203
- package/skills/design-direction/references/five-second.md +0 -47
- package/skills/design-direction/references/full-build.md +0 -19
- package/skills/design-direction/references/grid.md +0 -114
- package/skills/design-direction/scripts/layout-diff.mjs +0 -118
- package/skills/design-families/SKILL.md +0 -138
- package/skills/design-families/scripts/contact-sheet.mjs +0 -259
- package/skills/design-families/scripts/families.mjs +0 -607
- package/skills/design-families/scripts/measure.mjs +0 -1728
- package/skills/design-families/scripts/moodboard.mjs +0 -469
- package/skills/design-families/scripts/tag.mjs +0 -289
- package/skills/design-prototype/references/design-rules.md +0 -203
- package/skills/design-prototype/references/five-second.md +0 -47
package/AGENTS.md
CHANGED
|
@@ -6,16 +6,15 @@ The project's own code, conventions, and DESIGN.md win. Load only what the task
|
|
|
6
6
|
|---|---|---|---|
|
|
7
7
|
| Idea | No docs/brief.md, or the product changes | idea | docs/brief.md |
|
|
8
8
|
| Design | A site, app or graphic brief, no DESIGN.md | design → figma-generate-library → figma-generate-design | docs/design/, DESIGN.md, Ready Figma frames |
|
|
9
|
-
| Architecture | No
|
|
10
|
-
| Plan | A flow or feature |
|
|
11
|
-
| Build | Tickets | implement-spec → design-check
|
|
9
|
+
| Architecture | No stack ADR, or new stack | grill-with-docs → framework-skills | GLOSSARY.md, ADRs |
|
|
10
|
+
| Plan | A flow or feature | grilling → to-spec → to-tickets | specs, tickets, one session |
|
|
11
|
+
| Build | Tickets | implement-spec → design-check | one PR per spec, red-green per slice |
|
|
12
12
|
|
|
13
|
-
Each stage offers the next; start it on yes. A skill you can't load: they type /<name>. No UI: skip Design. A graphic ends at Figma. A feature with a brief: grill-with-docs
|
|
13
|
+
Each stage offers the next; start it on yes. A skill you can't load: they type /<name>. No UI: skip Design. A graphic ends at Figma. A feature with a brief: Plan; new terms: grill-with-docs.
|
|
14
14
|
|
|
15
|
-
UI tickets link their Ready Figma frame. UI work follows DESIGN.md and that frame; a mismatch is a bug.
|
|
15
|
+
UI tickets link their Ready Figma frame. UI work follows DESIGN.md and that frame; a mismatch is a bug. Layout or UI options: design, never prototype.
|
|
16
16
|
|
|
17
17
|
- A hard bug: diagnosing-bugs
|
|
18
|
-
- Test-first, when asked: tdd
|
|
19
18
|
- Handing off, when asked: handoff
|
|
20
19
|
- Before any use_figma call: figma-use
|
|
21
20
|
- A Figma link to build: figma-design-to-code
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,57 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## 0.14.0 — 2026-11-25
|
|
6
|
+
|
|
7
|
+
- **Concepts, not only rebuilds.** Of the eight first screens, six still rebuild one of your references; two now develop a concept you liked: the agent writes out what it is and why it works, then redraws it for your content, keeping its devices, type and colour. Before you see one it must be the same concept and not a copy; a screen with no concept behind it goes. The canvas labels them "concept from …". Style still comes only from your board.
|
|
8
|
+
- **A recommendation, and the pick in context.** The direction now names the screen that best does what your design brief asks, and which line it serves; you still choose. Once you pick, it builds that screen's phone view and the hardest key screen in its look, before the identity, so a look that breaks on real content shows while going back is cheap.
|
|
9
|
+
- **Adapted, never copied.** Each first screen keeps its reference's essence and scene and adapts the specifics to your product, as a designer would: your content and pictures, the proportions they need, and where your brief or subject asks, a colour or face of the same character. Every screen must be the same idea and not a copy.
|
|
10
|
+
- **Never a collage.** A screen is its base and at most two moves; the lead's devices (or any reference's) sit on at most two screens beyond its own, so the round does not paste the same pieces everywhere.
|
|
11
|
+
- **Seven references in eight screens.** The two concepts come from likes no other screen stands on, so the first round spreads across your board instead of repeating a few references.
|
|
12
|
+
- **Each screen beside its references.** Before the canvas, the direction looks at each screen beside the pictures it is made from, and fixes any scene or device that no longer reads as it does there.
|
|
13
|
+
- **What you like is taken whole.** A liked reference's scene, and any device borrowed from it, keeps the form, the job and the space it has there: never taken apart, restyled or given another job (a block of colour does not become a button).
|
|
14
|
+
- **A first screen does a first screen's job.** A reference that is a mid-page section, an inner page or a poster lends its system and moves to the first screen; what only works in its own role is left out. And one picture leads: pictures that share a view never compete (a subject laid over the same subject behind it).
|
|
15
|
+
- **You pick the accent.** When your board shows no clear accent and you named none, the direction offers a few with the readings: complementary, split-complementary and analogous to the board's primary, at the board's own lightness and chroma (`colours.mjs --harmony`), plus one from the subject's pictures, each passing contrast on the ground. Unanswered, the eight screens spread them, about two each, so you see them in the design; "3 with 6's accent" mixes. Picking a screen is not picking its accent: `design-identity` asks for it on the chosen screen at every pace, unless you named it or the board leaves no doubt.
|
|
16
|
+
- **Principles.** On your pick, the direction writes three to five principles from your whys ("one loud thing per screen"). Identity and wordmark options say when they break one; the prototype builds every page to them; `DESIGN.md` carries them; `design-check` checks them before any soft rule.
|
|
17
|
+
- **Options on the real page.** When you ask for versions of a part, or layouts for a page, they sit on the real screen, with its header, content and density, instead of a separate sheet. A small bar at the bottom names the reference each one comes from, and ← → flip between them; `?variant=2` links to one.
|
|
18
|
+
- **The floor while building, the rest in review.** `design-direction`, `design-identity` and `design-prototype` now read `design-floor.md` (generated from `design-rules.md`: its opening sections and every hard check), about half the words. The soft rules and tells are `design-check`'s.
|
|
19
|
+
- **The floor while building, and every part from your board.** `design-direction` and `design-prototype` read **Before you build** before they draw. Text you act on must pass contrast and size, fixed inside the concept; display type and composition still keep it. The prototype builds each part (a footer, a form, a menu) from the chosen screen first, then the references you liked that show it, minus what you left out; when none does, it asks and builds a marked stand-in meanwhile.
|
|
20
|
+
- **A craft floor in the design rules.** `design-rules.md` opens with **Before you build**: five checks a screen meets while it is drawn, each pointing to its rule. Text has a floor (12px, 14px on what a person acts on, 16px body) that `rules.mjs` measures; small text the board shows and you kept is a warning with its size (`data-board-size`), not a block. Text you act on keeps the floor inside a liked concept; display type and composition keep the concept. New soft rules: the accent from the board or from harmony with its primary, colour proportion about 60/30/10 (measured on the first screen, reported only), neutrals tinted from the board, and display type set tighter than body.
|
|
21
|
+
- **Your taste travels.** When `DESIGN.md` is written, the prototype offers once to write what the project learned (your whys, leave-outs, and what you turned down and why) where your board lives: a `Learned` frame on a Figma board, `learned.md` in a folder, or `~/.longbeard/taste.md`. `design-moodboard` reads it next time. Your own cards are never changed.
|
|
22
|
+
- **`design-families` is gone.** `design-moodboard` groups a board over about 60 references by eye into headings (`topic:` on each card); its scripts (`measure.mjs`, `tag.mjs`, `families.mjs`) now live in `design-moodboard`. A picture reference is read by eye, measured only for a number the eye cannot read. `npx longbeard update` removes the old skill.
|
|
23
|
+
- **Fixes from the pet-photographer run.** Direction screens set no text under 12px and carry only the text their base's `slots` allow (readings now count its text `blocks`). Every shadow, gradient or effect on a screen names its reference before the checks, or goes. A check that would undo the concept now reaches you as a choice ("keep, or change?") in the message, not only in the canvas. A sheet of screenshots in the prototype's folder is no longer counted as a dead-end page by `links.mjs`.
|
|
24
|
+
- **Plan grills each flow first.** The Plan row is now `grilling → to-spec → to-tickets`, in one session: `to-spec` asks nothing and writes from the conversation, so a spec started cold had only the brief. `to-spec` still asks for `setup-matt-pocock-skills` when a repo has none.
|
|
25
|
+
- **Build says what really runs.** The Build row is `implement-spec → design-check`: `implement-spec` already runs `tdd` on each ticket and `code-review` at the end, and `pr` writes the body whenever a PR is opened. Writes reads "red-green per slice", one test then its code, never all the tests first.
|
|
26
|
+
- **Architecture ends with a stack ADR.** It starts when there is no stack ADR (not when there is no `GLOSSARY.md`, which is written only once a term is settled). `idea` and `design-figma` say what to grill when they offer `/grill-with-docs`: the stack, and the words the brief and the Figma screens use.
|
|
27
|
+
- **Layout or UI options go to `design`, never `prototype`.** Matt's `prototype` still answers logic questions; its UI branch made options of the model's own.
|
|
28
|
+
- **`/retro`** is named in the README for a build that went sideways.
|
|
29
|
+
|
|
30
|
+
If you already ran `init`: run `npx longbeard update`. It writes the new `AGENTS.md` block (the Plan, Build and Architecture rows changed) and removes `design-families`. A direction in progress keeps working.
|
|
31
|
+
|
|
32
|
+
## 0.13.0 — 2026-11-25
|
|
33
|
+
|
|
34
|
+
- **Build is test-first by default.** The router's Build row is now `implement-spec → tdd → design-check → pr`: each ticket's acceptance criteria become failing tests before its code. The old "Test-first, when asked" line is gone. Run `npx longbeard update` to get the new `AGENTS.md` block.
|
|
35
|
+
- **Screens that hang together.** A reference you like from a site or app now keeps up to four of that product's other screens (`also:` on its card). `design-prototype` lays out each key screen from the closest source first: the screen the direction already built for it, then the base's own product, then its family, and only then any reference, so the home, the list and the form no longer come from three unrelated products.
|
|
36
|
+
- **The hardest screen, before the yes.** Once the first screen is yours, the direction builds one more in its look: the brief's key screen that is hardest for it (the densest list, a form). If the look breaks on real data, you see it while going back to another pick is cheap. The quick rounds stay first-screen only.
|
|
37
|
+
- **Parts, when you ask.** On the favourite, and on any prototype screen, "Open any part?" shows three or four versions of one part (the menu, the headline, a card) in place, each from a reference that shows it. "Find more" searches your own board first, then outside.
|
|
38
|
+
- **One set, measured.** The prototype's screens are shown together, desktop and phone, and `drift.mjs` lists any face or colour not in the identity and the type sizes, radii and spacing steps only one screen uses.
|
|
39
|
+
- **A board you look at, not a form.** The moodboard shows each picture at its own proportions in a masonry, with a small badge for Lead, Like or No; the notes of the card you open sit in a side panel, with its product's other screens. Keys: L, K, N, the arrows and Esc.
|
|
40
|
+
- **The direction's canvas** replaces its sheet: every screen in a strip (rounds, parts and the hardest screen each in a row), the one you open large, and beside it what it is made from: the base and each move, with the reference and your words. "Beside its base" shows the two together; the buttons write the line for the chat.
|
|
41
|
+
- **The design flow graphic is redrawn** as six line illustrations, one per step, with what you decide at each.
|
|
42
|
+
- **Every reference is on the direction's board.** Families are headings, never a filter: a reference you like can come from any family, and `design-families` no longer asks you to take one or two. The board is the moodboard's own cards, so your likes and notes come with them, each placed under its family (`moodboard.mjs --topics`), with one Lead on the whole board (`--one-lead`). It says how many cards it left out for a missing shot.
|
|
43
|
+
- **The board's top bar stays one line.** Only the jump bar sticks, and with many families it scrolls sideways instead of wrapping into rows that pushed the board down.
|
|
44
|
+
- **Leave out.** Each card on the board has a Leave out box for what you don't want from a reference you otherwise like (the drop shadow, the all-caps menu). It is never on a screen built on that reference, never borrowed from it, and its role is filled from another of your references when the composition needs it. A card's `avoid:` line fills it.
|
|
45
|
+
- **Likes are asked once.** A card you liked on the picker starts liked on the direction's board, with your words; the direction asks only for the Lead and anything new.
|
|
46
|
+
- **Far fewer agents in the direction.** Every round is quick, "more of" and mixes included: one agent per screen and one judge per round. The full build runs once, on the screen you settle on, with one critic and one fixer. A "more of 3" used to start about 24 agents; it now starts 4.
|
|
47
|
+
- **The five-second check runs once,** in `design-prototype`, where the same three strangers see the first screen and every key screen. `DESIGN.md` records the first screen's result as its `five seconds:` line.
|
|
48
|
+
- **The live controls moved to `design-identity`,** into its one refinement round, on the pairing and palette you picked. A stop fewer in the direction.
|
|
49
|
+
- **Shorter skills and shorter stops.** `design-direction` (with its `grid.md`), `design-prototype` and `design-moodboard` are 35 to 40% shorter, with the same rules, and `design` is a quarter shorter. Every design step says what is new and its one question in up to five lines, and the direction's sheet gets one line per screen instead of a table.
|
|
50
|
+
- **Galleries for single parts of a site:** Footer Design and CTA Gallery for a footer or a call to action, and Recent's motion listing, launch videos and Codrops demos for motion, only when the brief asks for motion examples. Recent's other listings too: interface, app screenshots and app icons for an app; branding, posters and print for the far reference and for graphics; social images for a post; illustration for imagery. `sources.md` says how to read each one's cards and what to keep. Behance stays out of the picker: it refuses scripts.
|
|
51
|
+
- **A tell for a default face.** `design-check` and the direction now flag a face that is the platform's or framework's default (Inter, Roboto, the system UI stack) when no reference brought it.
|
|
52
|
+
- **The identity board names no working folder.** `docs/design/design-identity.html` no longer carries a comment pointing into `.longbeard/`.
|
|
53
|
+
|
|
54
|
+
If you already ran `init`: run `npx longbeard update`. A direction in progress keeps working: a run that already took families simply shows every card next time its board is built.
|
|
55
|
+
|
|
5
56
|
## 0.12.2 — 2026-11-21
|
|
6
57
|
|
|
7
58
|
- **A shot can be a picture's URL.** `moodboard.mjs` shows an `https://` shot from that address instead of dropping it as missing, and `families.mjs --board` writes it into `board.md` as it is (it was turned into `https:/…`). A library exported with its pins' addresses makes a moodboard with no pictures copied.
|
package/README.md
CHANGED
|
@@ -18,8 +18,8 @@ It is not an agent runtime or a marketplace, and it does not turn one prompt int
|
|
|
18
18
|
| 1. Idea | The agent grills the idea, each question with its recommendation | `docs/brief.md` |
|
|
19
19
|
| 2. Design | A short brief and your moodboard, then you pick a direction and variants of it. Type, colour and the other screens follow, each on your yes. [How it flows](assets/design-flow.png) | `DESIGN.md` and Figma screens marked Ready |
|
|
20
20
|
| 3. Architecture | The stack and the words the product uses, then skills for that stack, on your yes | `GLOSSARY.md`, decisions |
|
|
21
|
-
| 4. Plan | Each flow becomes a spec
|
|
22
|
-
| 5. Build | One agent per ticket,
|
|
21
|
+
| 4. Plan | Each flow is grilled, then becomes a spec and tickets in the same session | specs and tickets |
|
|
22
|
+
| 5. Build | One agent per ticket, red-green one slice at a time, reviewed, checked against its Figma frame. Type `/retro` after a build that went sideways | one pull request per spec |
|
|
23
23
|
|
|
24
24
|
Each stage writes a file the next one reads, so you can stop anywhere and come back, or join with a project that already has some of them. A CLI, API or library skips Design.
|
|
25
25
|
|
|
@@ -30,7 +30,7 @@ Each stage writes a file the next one reads, so you can stop anywhere and come b
|
|
|
30
30
|
**You are the designer.** An AI has no taste of its own, only an average of what once looked good. So Long Beard follows an art director's process:
|
|
31
31
|
|
|
32
32
|
- **You choose.** You pick references you love, say what you like in each, and choose the result.
|
|
33
|
-
- **The agent does the craft.** It
|
|
33
|
+
- **The agent does the craft.** It adapts your references to your product as a designer would, keeping what makes each work and never copying it, develops the concepts you liked, combines what you took from each, and adds no style that is not on your board.
|
|
34
34
|
|
|
35
35
|
**No board yet?** It searches award-winning and most-liked work, and you mark what you like. **Have a brand?** Your colours, faces and references go in first.
|
|
36
36
|
|
|
@@ -50,7 +50,6 @@ Long Beard's own skills live in [`skills/`](skills/). The others are installed f
|
|
|
50
50
|
| [design](skills/design/SKILL.md) | The way in: suggests which design skill to run next | Long Beard |
|
|
51
51
|
| ↳ [design-brief](skills/design-brief/SKILL.md) | A studio's questions, in one message | Long Beard |
|
|
52
52
|
| ↳ [design-moodboard](skills/design-moodboard/SKILL.md) | Your board, or a search you mark like or no | Long Beard |
|
|
53
|
-
| ↳ [design-families](skills/design-families/SKILL.md) | Optional: sorts a big board into looks | Long Beard |
|
|
54
53
|
| ↳ [design-direction](skills/design-direction/SKILL.md) | First screens from your references; you pick a direction and variants of it | Long Beard |
|
|
55
54
|
| ↳ [design-identity](skills/design-identity/SKILL.md) | Type and colour, refined on the chosen screen | Long Beard |
|
|
56
55
|
| ↳ [design-prototype](skills/design-prototype/SKILL.md) | The key screens and their states, then `DESIGN.md` | Long Beard |
|
package/beard.json
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
"name": "Architecture",
|
|
27
|
-
"when": "No
|
|
27
|
+
"when": "No stack ADR, or new stack",
|
|
28
28
|
"skills": [
|
|
29
29
|
"grill-with-docs",
|
|
30
30
|
"framework-skills"
|
|
@@ -35,21 +35,20 @@
|
|
|
35
35
|
"name": "Plan",
|
|
36
36
|
"when": "A flow or feature",
|
|
37
37
|
"skills": [
|
|
38
|
-
"
|
|
38
|
+
"grilling",
|
|
39
39
|
"to-spec",
|
|
40
40
|
"to-tickets"
|
|
41
41
|
],
|
|
42
|
-
"writes": "specs, tickets"
|
|
42
|
+
"writes": "specs, tickets, one session"
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
45
|
"name": "Build",
|
|
46
46
|
"when": "Tickets",
|
|
47
47
|
"skills": [
|
|
48
48
|
"implement-spec",
|
|
49
|
-
"design-check"
|
|
50
|
-
"pr"
|
|
49
|
+
"design-check"
|
|
51
50
|
],
|
|
52
|
-
"writes": "one PR per spec"
|
|
51
|
+
"writes": "one PR per spec, red-green per slice"
|
|
53
52
|
}
|
|
54
53
|
],
|
|
55
54
|
"shapes": {
|
|
@@ -119,22 +118,13 @@
|
|
|
119
118
|
"why": "Read their board or search; they mark likes. Writes docs/design/design-moodboard.md.",
|
|
120
119
|
"via": "design"
|
|
121
120
|
},
|
|
122
|
-
{
|
|
123
|
-
"name": "design-families",
|
|
124
|
-
"author": "Long Beard",
|
|
125
|
-
"license": "MIT",
|
|
126
|
-
"source": "local",
|
|
127
|
-
"when": "A board over about 60 references",
|
|
128
|
-
"why": "Optional. Sort it into looks; they take one or two. Writes docs/design/design-families.md.",
|
|
129
|
-
"via": "design"
|
|
130
|
-
},
|
|
131
121
|
{
|
|
132
122
|
"name": "design-direction",
|
|
133
123
|
"author": "Long Beard",
|
|
134
124
|
"license": "MIT",
|
|
135
125
|
"source": "local",
|
|
136
126
|
"when": "A moodboard, no direction",
|
|
137
|
-
"why": "A few pictures of the subject, then eight first screens, each one of your references rebuilt with your content and changed by a move or two borrowed from others
|
|
127
|
+
"why": "A few pictures of the subject, then eight first screens, each one of your references rebuilt with your content and changed by a move or two borrowed from others, nothing off your board; you pick. Writes docs/design/design-direction.md.",
|
|
138
128
|
"via": "design"
|
|
139
129
|
},
|
|
140
130
|
{
|
|
@@ -209,10 +199,6 @@
|
|
|
209
199
|
"skill": "diagnosing-bugs",
|
|
210
200
|
"when": "A hard bug"
|
|
211
201
|
},
|
|
212
|
-
{
|
|
213
|
-
"skill": "tdd",
|
|
214
|
-
"when": "Test-first, when asked"
|
|
215
|
-
},
|
|
216
202
|
{
|
|
217
203
|
"skill": "handoff",
|
|
218
204
|
"when": "Handing off, when asked"
|
package/bin/long-beard.js
CHANGED
|
@@ -731,8 +731,8 @@ function generateRouter(items, manifest = curated(), shape = "full") {
|
|
|
731
731
|
: "";
|
|
732
732
|
// A shape says its own two paragraphs: the whole pipeline's name stages and skills it may not have.
|
|
733
733
|
const notes = shapeDef(manifest, shape)?.notes ?? [
|
|
734
|
-
"Each stage offers the next; start it on yes. A skill you can't load: they type /<name>. No UI: skip Design. A graphic ends at Figma. A feature with a brief: grill-with-docs
|
|
735
|
-
"UI tickets link their Ready Figma frame. UI work follows DESIGN.md and that frame; a mismatch is a bug.",
|
|
734
|
+
"Each stage offers the next; start it on yes. A skill you can't load: they type /<name>. No UI: skip Design. A graphic ends at Figma. A feature with a brief: Plan; new terms: grill-with-docs.",
|
|
735
|
+
"UI tickets link their Ready Figma frame. UI work follows DESIGN.md and that frame; a mismatch is a bug. Layout or UI options: design, never prototype.",
|
|
736
736
|
];
|
|
737
737
|
return `# Long Beard
|
|
738
738
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jonandev/longbeard",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Designs like an Art director. Codes like a
|
|
3
|
+
"version": "0.14.0",
|
|
4
|
+
"description": "Designs like an Art director. Codes like a Senior Engineer.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
package/skills/design/SKILL.md
CHANGED
|
@@ -10,69 +10,53 @@ description: >
|
|
|
10
10
|
|
|
11
11
|
# Design
|
|
12
12
|
|
|
13
|
-
The design work is a family of small skills. Each does one job, reads
|
|
13
|
+
The design work is a family of small skills. Each does one job, reads its inputs from files, writes one doc, and ends by naming the next step, so each can start in a fresh session. This skill only reads the project and suggests.
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
This is a designer's process, a few short steps with their choice at each, and never one prompt to a finished page. It ends in work they can deliver: `DESIGN.md`, and a Figma file of their own (variables, styles, the identity board, components, every key screen with its states) that they keep changing by hand or with their agent. Say so in one line the first time you suggest a step in a project with no design docs. Never again after that.
|
|
15
|
+
It ends in work they can deliver: `DESIGN.md`, and a Figma file of their own (variables, styles, the identity board, components, every key screen with its states). Say so in one line the first time you suggest a step in a project with no design docs, never again.
|
|
18
16
|
|
|
19
17
|
## The family
|
|
20
18
|
|
|
21
|
-
Each skill
|
|
19
|
+
Each skill's top lines say what it **Needs**, **Uses if there** and **Writes**: read those, not this table, to see what a skill is missing.
|
|
22
20
|
|
|
23
21
|
| Skill | Job |
|
|
24
22
|
|---|---|
|
|
25
|
-
| `design-brief` | The questions a designer asks before looking: what the first screen must do, feel and never-feel,
|
|
26
|
-
| `design-moodboard` |
|
|
27
|
-
| `design-
|
|
28
|
-
| `design-
|
|
29
|
-
| `design-
|
|
30
|
-
| `design-prototype` | The key screens and their states in that direction; approved → `DESIGN.md` |
|
|
23
|
+
| `design-brief` | The questions a designer asks before looking: what the first screen must do, feel and never-feel, who to stand apart from, what is fixed |
|
|
24
|
+
| `design-moodboard` | Read their board and fill its gaps, or find references they mark like or no; each like keeps its product's other screens; a big board is grouped by eye into headings |
|
|
25
|
+
| `design-direction` | Pictures of the subject, then eight first screens, each one of their references adapted to the product as a designer would (never a copy), with a move or two from the others; nothing off the board, nothing they said to leave out. One agent builds them, scripts check contrast and clipped text; they choose, or ask for more or a mix |
|
|
26
|
+
| `design-identity` | The chosen screen's type and colours, refined on it from rendered options and a few bounded controls; the identity board |
|
|
27
|
+
| `design-prototype` | The key screens and their states in the chosen screen's frame, each page opening with its own job, checked by script and shown as one set; approved → `DESIGN.md` |
|
|
31
28
|
| `design-figma` | Tokens, the identity board, components and Ready frames |
|
|
32
29
|
| `design-content` | Optional, any time. What each screen says and shows: copy, and the full picture list |
|
|
33
|
-
| `design-wordmark` | Optional, after the identity. A mark made from the chosen type
|
|
30
|
+
| `design-wordmark` | Optional, after the identity. A mark made from the chosen type |
|
|
34
31
|
| `design-check` | Checks a screen against the rules and `DESIGN.md` |
|
|
35
32
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
- **`docs/design/`** is committed and kept up to date: the design docs above. They describe the style ("a condensed grotesk at a fifth of the width, cropped at the right edge"), never a source: no brand, site, studio, designer or person, no link, and no path into `.longbeard/`. A doc that needs a reference to make sense is written again until it does not.
|
|
39
|
-
- **`.longbeard/design/`** is the agents' working folder, gitignored: captured references, Figma crops, pickers, contact sheets, profiles, direction screens, sketches, prototypes. Nobody needs to open it; when there is something to look at, the skill gives the path. It may not survive (a cloud session, a clean checkout): the docs carry the meaning, and a skill that needs a reference again captures it again or says it cannot.
|
|
40
|
-
|
|
41
|
-
On the first write of either, add `.longbeard/design/` to `.gitignore` if it is missing, and say why in one line. A project with an older `design-exploration/` folder keeps it: nothing writes there any more.
|
|
33
|
+
**Two folders.** `docs/design/` is committed: the docs describe the style, never a source (no brand, site, person, link, or path into `.longbeard/`). `.longbeard/design/` is the agents' working folder, gitignored, and may not survive; the docs carry the meaning. On the first write of either, add `.longbeard/design/` to `.gitignore` if it is missing, and say why in one line. An older `design-exploration/` folder is left alone.
|
|
42
34
|
|
|
43
35
|
## What to suggest
|
|
44
36
|
|
|
45
|
-
Look at the repo
|
|
37
|
+
Look at the repo; do not ask what is there. Read the design brief's `pace` first: at `quick`, skip what is marked optional and say so. Then say in up to four lines where the project stands and the one next step, with the reason.
|
|
46
38
|
|
|
47
|
-
1. No `docs/brief.md` → `idea
|
|
48
|
-
2. No `docs/design/design-brief.md` → `design-brief`.
|
|
49
|
-
3. No moodboard (no `design-moodboard.md`, and
|
|
50
|
-
4. **The board's size
|
|
51
|
-
- Over about 60 references, or a search that came back that big, unsorted → offer `design-families` once: "Your board has 240 references. Sort it into families before choosing?" (Not at `pace: quick`.)
|
|
52
|
-
- About 8 to 60 → no sorting. A board this size is already chosen.
|
|
53
|
-
- Under about 8, or a key screen nothing on the board shows → `design-moodboard` for the gap only. At `pace: quick`, three or more references are enough: go on.
|
|
39
|
+
1. No `docs/brief.md` → `idea`. The brief says no UI → nothing to design; say so.
|
|
40
|
+
2. No `docs/design/design-brief.md` → `design-brief`.
|
|
41
|
+
3. No moodboard (no `design-moodboard.md`, and no board or folder named) → `design-moodboard`. Never skipped.
|
|
42
|
+
4. **The board's size:** under about 8, or a key screen nothing shows → `design-moodboard` for the gap only (at `quick`, three are enough).
|
|
54
43
|
5. No `design-direction.md` → `design-direction`.
|
|
55
44
|
6. No `design-identity.md` → `design-identity`.
|
|
56
|
-
7.
|
|
45
|
+
7. No `DESIGN.md` → `design-prototype`.
|
|
57
46
|
8. `DESIGN.md` and no Ready frames → `design-figma`.
|
|
58
|
-
9. `DESIGN.md` exists → a feature: `design-prototype` (feature loop). A rebrand starts again at `design-direction
|
|
59
|
-
|
|
60
|
-
A graphic (the brief's surface) takes the same steps and ends at its exported Figma frame, so never offer Architecture; its other pieces are `design-prototype`.
|
|
47
|
+
9. `DESIGN.md` exists → a feature: `design-prototype` (feature loop). A rebrand starts again at `design-direction`.
|
|
61
48
|
|
|
62
|
-
|
|
63
|
-
- `design-content`, when they ask about copy or imagery, or the key screens need more pictures than the three or four `design-direction` found.
|
|
64
|
-
- `design-wordmark`, once the identity is chosen and the name is only set in the display face. Offered once; a no stands. No mark is a fine answer: the name in the right face is often the brand, and not every screen needs to show it.
|
|
49
|
+
A graphic takes the same steps and ends at its exported Figma frame; never offer Architecture.
|
|
65
50
|
|
|
66
|
-
|
|
51
|
+
Offered once, never pushed, not at `quick`: `design-content` when they ask about copy or imagery or need more pictures than the direction found; `design-wordmark` once the identity is chosen and the name is only set in the display face. A no stands.
|
|
67
52
|
|
|
68
53
|
> You have a brief, a design brief and a moodboard of 34 references. Next: **design-direction**, eight first screens built from them. Your board is small enough to skip sorting.
|
|
69
54
|
|
|
70
55
|
Then stop. They type the skill, or say yes and you load it.
|
|
71
56
|
|
|
72
|
-
**A `DESIGN.md` they bring** has no token tables of ours (rows like `color/ink`)
|
|
57
|
+
**A `DESIGN.md` they bring** has no token tables of ours (rows like `color/ink`). Until `design-prototype` writes ours, steps 7 to 9 treat it as none: say so once, and offer it as the identity's starting point, every value in it kept unless they change it.
|
|
73
58
|
|
|
74
59
|
## Do not
|
|
75
60
|
|
|
76
|
-
- Run a skill
|
|
77
|
-
- Suggest `design-families` for a board they already curated to a few dozen.
|
|
61
|
+
- Run a skill without their yes, or two at once.
|
|
78
62
|
- Write any doc yourself. Each belongs to its skill.
|
|
@@ -17,6 +17,8 @@ description: >
|
|
|
17
17
|
|
|
18
18
|
One doc comes out, `docs/design/design-brief.md`, committed. Every other design skill reads it, so nobody is asked the same question twice. It records what they want the look to do, in words. It chooses no look: no layout, colour, typeface or style name.
|
|
19
19
|
|
|
20
|
+
**At every stop,** say what is new and the one question, in up to five lines: a path or a sheet instead of pasted content, one line per option, nothing they already know.
|
|
21
|
+
|
|
20
22
|
## Gate
|
|
21
23
|
|
|
22
24
|
1. No `docs/brief.md` → `idea` first. Stop.
|
|
@@ -106,10 +108,10 @@ So nobody asks again, and so each answer changes something:
|
|
|
106
108
|
|
|
107
109
|
| Line | Read by |
|
|
108
110
|
|---|---|
|
|
109
|
-
| takeaway | `design-direction` (what the screens carry, headlines
|
|
111
|
+
| takeaway | `design-direction` (what the screens carry, headlines), `design-content` |
|
|
110
112
|
| first seen on | `design-direction` (the size the screens are built at) |
|
|
111
113
|
| pace | `design` and every design skill: quick drops the optional stops |
|
|
112
|
-
| words, personality, feel, never | `design-moodboard` (queries and picks), `design-
|
|
114
|
+
| words, personality, feel, never | `design-moodboard` (queries and picks), `design-direction` (the against-the-brief column), `design-identity` (options and their notes) |
|
|
113
115
|
| apart from, distance | `design-moodboard` (what to search and keep out), `design-direction` (the eye's check), `design-check` (could it be mistaken for one) |
|
|
114
116
|
| fixed | the direction's library (`theirs` entries, dropped grounds), `design-identity` |
|
|
115
117
|
| accessibility | every contrast check (`contrast.mjs --level`, `screen-contrast.mjs --min`), `DESIGN.md`, `design-check` |
|
|
@@ -122,10 +124,10 @@ So nobody asks again, and so each answer changes something:
|
|
|
122
124
|
|
|
123
125
|
`pace: quick` asks the same questions (they take a minute, and everything after reads them) and changes what follows:
|
|
124
126
|
|
|
125
|
-
- `design-moodboard`: their references as they are (three or more), or one search shown as one contact sheet of about 30, from which they name six to ten; no picker rounds, no gap search, no
|
|
126
|
-
- `design-direction`: subject pictures, one round of eight,
|
|
127
|
+
- `design-moodboard`: their references as they are (three or more), or one search shown as one contact sheet of about 30, from which they name six to ten; no picker rounds, no gap search, no grouping.
|
|
128
|
+
- `design-direction`: subject pictures, one round of eight, more only if they ask.
|
|
127
129
|
- `design-identity`: the chosen screen's type and colours become the identity as built, contrast-checked; no options, straight to the board.
|
|
128
|
-
- `design-prototype`: as usual. Never quick on states
|
|
130
|
+
- `design-prototype`: as usual. Never quick on states or contrast.
|
|
129
131
|
- `design-content` and `design-wordmark` are not offered.
|
|
130
132
|
|
|
131
133
|
They can switch to full at any step; the design brief records it under **Changes**.
|
|
@@ -34,7 +34,7 @@ One line per finding, hard first:
|
|
|
34
34
|
|
|
35
35
|
## Order
|
|
36
36
|
|
|
37
|
-
1. **Idea** (rule 0): cover the logo. Is it still this product? And, with `docs/design/design-brief.md` open: could it be mistaken for the kind of product its `apart from` names (a soft finding at distance 3, hard at 4–5, none at 1–2, where fitting in was the ask), and does it look like its `never`, or its never word (soft)?
|
|
37
|
+
1. **Idea** (rule 0): cover the logo. Is it still this product? Does it keep every principle in `DESIGN.md` (the direction's, before it exists)? A broken principle comes before any soft rule: the principles are this product's, the soft rules a default. And, with `docs/design/design-brief.md` open: could it be mistaken for the kind of product its `apart from` names (a soft finding at distance 3, hard at 4–5, none at 1–2, where fitting in was the ask), and does it look like its `never`, or its never word (soft)?
|
|
38
38
|
2. **Hard** checks, every section, then the site, app or graphics list from the brief's surface.
|
|
39
39
|
3. **Soft** checks, then the tells (rule 14).
|
|
40
40
|
|
|
@@ -1,14 +1,29 @@
|
|
|
1
1
|
# Design rules
|
|
2
2
|
|
|
3
|
-
How a screen is checked.
|
|
3
|
+
How a screen is checked. `design-check` reads all of it on every frame and build. The skills that build read only the floor (`design-floor.md`: these opening sections and every hard check), so a better model's craft is never held to a textbook while drawing.
|
|
4
4
|
|
|
5
5
|
These rules decide execution, never the look. The direction and `DESIGN.md` decide the look. A rule that seems to ask for a colour, a typeface or a style is misread. It asks only that whatever was chosen is used with intent.
|
|
6
6
|
|
|
7
|
+
## Before you build
|
|
8
|
+
|
|
9
|
+
A studio applies these while drawing each screen, not as a check after. Each is the numbered rule's, said there.
|
|
10
|
+
|
|
11
|
+
- One most prominent element and one primary action (rule 1).
|
|
12
|
+
- Contrast where the text sits, over pictures too (rules 6 and 12).
|
|
13
|
+
- One picture leads; pictures that share the screen never compete (rule 12).
|
|
14
|
+
- Text size at its floor (rule 5).
|
|
15
|
+
- One grouping device per group (rule 2).
|
|
16
|
+
- Every screen follows the direction's principles (before the pick, their whys), and reads as the same product as the first.
|
|
17
|
+
|
|
7
18
|
## How to use this
|
|
8
19
|
|
|
9
20
|
- Check from a screenshot. Every check below can be passed or failed by looking at a rendered screen at its real size. When a check needs a state you cannot see (focus, error, empty), it needs that state's frame, and a missing frame fails rule 8.
|
|
10
21
|
- Go in order: **Idea** first, then every **hard** check, then **soft**.
|
|
11
|
-
- **Hard** is the floor: structure, contrast, targets, focus and states. A hard failure blocks the screen. `DESIGN.md` cannot waive it,
|
|
22
|
+
- **Hard** is the floor: structure, contrast, text size, targets, focus and states. A hard failure blocks the screen. `DESIGN.md` cannot waive it, except for what the person liked or asked for (below).
|
|
23
|
+
- **When the floor meets a liked concept:**
|
|
24
|
+
- Text a person acts on (body, labels, prices, fields, navigation, buttons): the floor wins. The fix comes from inside the concept: its own ink, another crop, a device the board already has. Never by moving the text off the concept or dropping the concept.
|
|
25
|
+
- Display and composition (giant type over a picture, overlaps, crops): the concept wins, and the fault is written down.
|
|
26
|
+
- A colour or a small size the person liked or asked for: kept, reported as a warning with its measure, not a block. Marked `WARN liked, kept` in `DESIGN.md`; on a page, small text is marked `data-board-size`.
|
|
12
27
|
- **Soft** is a default. `DESIGN.md` may override a soft check on purpose, with a written reason. A soft finding with no reason in `DESIGN.md` is reported, not blocked.
|
|
13
28
|
- A finding is four things: the rule (number and check), hard or soft, where on the screen, and the fix.
|
|
14
29
|
- The shared core applies to everything, except where the Graphics list says it does not. Then add the site, app or graphics list, whichever the brief's surface says.
|
|
@@ -20,6 +35,8 @@ These rules decide execution, never the look. The direction and `DESIGN.md` deci
|
|
|
20
35
|
- [soft] Cover the logo and the name. Is it still recognisably this product, from its content, imagery, voice or structure? A screen that could belong to any product in the category fails.
|
|
21
36
|
- [soft] You can say what the screen is for in one sentence, and the most visible element serves that sentence.
|
|
22
37
|
- [soft] The ownable idea in `DESIGN.md` (or the direction, before `DESIGN.md` exists) shows up somewhere you can point to.
|
|
38
|
+
- [soft] Beside the first screen, with the logo covered, it reads as the same product.
|
|
39
|
+
- [soft] The screen keeps each of the principles in `DESIGN.md` (or the direction, before `DESIGN.md` exists). A finding against a principle comes before any finding against a soft rule here: the principles are this product's, the rules are a default.
|
|
23
40
|
|
|
24
41
|
## 1. Hierarchy
|
|
25
42
|
|
|
@@ -62,7 +79,8 @@ These rules decide execution, never the look. The direction and `DESIGN.md` deci
|
|
|
62
79
|
|
|
63
80
|
- [soft] The view uses at most five font sizes, and adjacent sizes are clearly different (roughly a 1.2× step or more), not 15, 16 and 17.
|
|
64
81
|
- [soft] Body text runs about 45 to 80 characters per line on desktop. Count one line.
|
|
65
|
-
- [soft]
|
|
82
|
+
- [soft] Large type is set for its size: display text has tighter line height and tracking than body, and body keeps its reading spacing. Headings of two lines do not drift apart.
|
|
83
|
+
- [hard] At the screen's real size, nothing is under 12px, text a person acts on (links, buttons, labels, fields, prices, navigation) is at least 14px, and body is 16px at every width. Where a reference sets smaller, keep its proportions and scale the step up.
|
|
66
84
|
- [soft] Weight does the work before size. A label is not set larger to be noticed when bold would do.
|
|
67
85
|
- [hard] No text is clipped, overlapped, or cut mid-word by its container, in any language the product ships.
|
|
68
86
|
|
|
@@ -74,7 +92,10 @@ These rules decide execution, never the look. The direction and `DESIGN.md` deci
|
|
|
74
92
|
- [hard] Colour is never the only signal. An error, a selected item or a required field also changes shape, weight, an icon or text.
|
|
75
93
|
- [soft] Every colour on the screen is a token in `DESIGN.md`. Pick three at random: each maps to a named token.
|
|
76
94
|
- [hard] A product with more than one theme has one set of colour tokens, with a value for each theme, and passes every check here in each theme. A colour that stays the same when the theme changes, and should not, fails.
|
|
95
|
+
- [soft] The accent comes from the board: one it clearly shows, or one the person names. Otherwise it comes from harmony with the board's primary (complementary, split-complementary, analogous, or a colour from the subject's own pictures), matched to the board's lightness and chroma, and the person chooses it.
|
|
77
96
|
- [soft] The accent colour marks action or state, and is not also used for decoration on the same screen.
|
|
97
|
+
- [soft] The ground dominates, the primary supports and the accent stays small: about 60/30/10 of the screen's area. A board that clearly does otherwise wins, with a note.
|
|
98
|
+
- [soft] Neutrals (greys, lines, quiet text) are steps of the board's own ground or primary, never a stock grey.
|
|
78
99
|
- [soft] Status colours (error, warning, success) are used for status only.
|
|
79
100
|
|
|
80
101
|
## 7. Consistency
|
|
@@ -137,6 +158,7 @@ These rules decide execution, never the look. The direction and `DESIGN.md` deci
|
|
|
137
158
|
- [soft] Images show this product's subject, people or interface. A stock scene that fits any product in the category fails.
|
|
138
159
|
- [soft] Where a picture belongs, there is a picture, not a grey box, a gradient or a text block pretending.
|
|
139
160
|
- [soft] Images share one treatment: one crop logic, one colour handling, one corner shape.
|
|
161
|
+
- [soft] One picture leads. Pictures that share a view never compete: a picture laid over another does not cover or repeat the subject of the one behind it.
|
|
140
162
|
- [hard] Text over an image meets the contrast floor in rule 6 across the whole text area, not only on the darkest part.
|
|
141
163
|
|
|
142
164
|
## 13. Responsive
|
|
@@ -146,11 +168,11 @@ These rules decide execution, never the look. The direction and `DESIGN.md` deci
|
|
|
146
168
|
- [hard] At mobile width (360–390px) nothing scrolls sideways, nothing is clipped, and nothing overlaps.
|
|
147
169
|
- [hard] The primary action is reachable at every size without hunting: visible, or one obvious step away.
|
|
148
170
|
- [soft] The layout changes structure between sizes where it should: columns stack, tables become lists or scroll inside their own box, navigation collapses into one control.
|
|
149
|
-
- [soft] Type and spacing scale down a step on mobile,
|
|
171
|
+
- [soft] Type and spacing scale down a step on mobile, never under the size floor in rule 5.
|
|
150
172
|
|
|
151
173
|
## 14. Tells
|
|
152
174
|
|
|
153
|
-
**Dated 2026-11-
|
|
175
|
+
**Dated 2026-11-25. Reviewed each release.** Add new tells, retire ones that stopped being defaults.
|
|
154
176
|
|
|
155
177
|
A tell is a device that makes a screen look produced by default rather than designed for this product. Most began as good ideas. They are tells because they arrive without a reason. Every check here is **soft**: present, and `DESIGN.md` gives no reason for it. This list never says what to use instead. That comes from the direction. A device that came with a look they chose on rendered screens is there on purpose: `DESIGN.md` says under Decisions what it does for this product.
|
|
156
178
|
|
|
@@ -167,6 +189,7 @@ A tell is a device that makes a screen look produced by default rather than desi
|
|
|
167
189
|
- [soft] Invented social proof: logos, quotes, star rows or user counts the product does not have.
|
|
168
190
|
- [soft] Every section in the same layout, or the stock order hero, logos, features, testimonial, pricing, call to action, when the argument needs another.
|
|
169
191
|
- [soft] One medium corner radius on everything, chosen by default rather than on purpose.
|
|
192
|
+
- [soft] A face that is the platform's or the framework's default (Inter, Roboto, the system UI stack) with no reference behind it.
|
|
170
193
|
|
|
171
194
|
Removing tells is not the goal. A screen with none and no idea fails rule 0.
|
|
172
195
|
|