@jonandev/longbeard 0.12.1 → 0.13.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 +1 -2
- package/CHANGELOG.md +28 -0
- package/beard.json +3 -6
- package/package.json +2 -2
- package/skills/design/SKILL.md +22 -36
- package/skills/design-brief/SKILL.md +3 -1
- package/skills/design-check/references/design-rules.md +2 -1
- package/skills/design-content/SKILL.md +2 -0
- package/skills/design-direction/SKILL.md +61 -87
- package/skills/design-direction/references/design-rules.md +2 -1
- package/skills/design-direction/references/full-build.md +7 -6
- package/skills/design-direction/references/graphic.md +1 -5
- package/skills/design-direction/references/grid.md +48 -65
- package/skills/design-direction/references/library.md +2 -0
- package/skills/design-direction/references/screen-template.html +1 -1
- package/skills/design-direction/scripts/canvas.mjs +308 -0
- package/skills/design-direction/scripts/moodboard.mjs +238 -96
- package/skills/design-families/SKILL.md +16 -15
- package/skills/design-families/scripts/families.mjs +2 -1
- package/skills/design-families/scripts/moodboard.mjs +238 -96
- package/skills/design-figma/SKILL.md +2 -0
- package/skills/design-identity/SKILL.md +8 -1
- package/skills/{design-direction → design-identity}/references/controls.md +10 -10
- package/skills/design-identity/references/identity-board.html +2 -2
- package/skills/design-moodboard/SKILL.md +41 -77
- package/skills/design-moodboard/references/sources.md +12 -1
- package/skills/design-moodboard/scripts/families.mjs +2 -1
- package/skills/design-moodboard/scripts/moodboard.mjs +238 -96
- package/skills/design-prototype/SKILL.md +49 -68
- package/skills/design-prototype/references/design-md-template.md +1 -0
- package/skills/design-prototype/references/design-rules.md +2 -1
- package/skills/design-prototype/references/five-second.md +2 -3
- package/skills/design-prototype/references/graphic.md +1 -1
- package/skills/design-prototype/scripts/drift.mjs +273 -0
- package/skills/design-wordmark/SKILL.md +2 -0
- package/skills/design-direction/references/five-second.md +0 -47
|
@@ -4,8 +4,9 @@ description: >
|
|
|
4
4
|
Optional. Sort a big or messy moodboard (a large Figma board, a folder, a
|
|
5
5
|
wide search) into families: groups of references that look alike from across
|
|
6
6
|
a room. Every reference is measured and tagged, sorted by script, checked by
|
|
7
|
-
eye, and named for what is seen.
|
|
8
|
-
|
|
7
|
+
eye, and named for what is seen. The families become the headings of the
|
|
8
|
+
board design-direction shows; nothing is dropped, since a reference they
|
|
9
|
+
like can come from any family. Call it by hand, or when
|
|
9
10
|
design or design-moodboard offers it for a board over about 60 references.
|
|
10
11
|
Never worth it for a board someone already curated to a few dozen.
|
|
11
12
|
---
|
|
@@ -16,14 +17,16 @@ description: >
|
|
|
16
17
|
**Uses if there:** `docs/design/design-brief.md`
|
|
17
18
|
**Writes:** `docs/design/design-families.md`
|
|
18
19
|
|
|
19
|
-
One job: sort a board into looks so choosing is easy. It reads and sorts the board; it builds no screens.
|
|
20
|
+
One job: sort a board into looks so choosing is easy. It reads and sorts the board; it builds no screens, and it never narrows it: every family stays on the board `design-direction` shows, as its headings.
|
|
20
21
|
|
|
21
22
|
Comes out:
|
|
22
23
|
|
|
23
|
-
- **`docs/design/design-families.md`**, committed: each family named, what it shares, how big it is
|
|
24
|
+
- **`docs/design/design-families.md`**, committed: each family named, what it shares, and how big it is.
|
|
24
25
|
- **In Figma**, for a Figma board: a new page, `Families`, with one section per family holding copies of its cards. Their own pages are never moved or changed.
|
|
25
26
|
- **`.longbeard/design/families/`**, gitignored: `profiles.json`, `tags.tsv`, one TSV per family, the families page.
|
|
26
27
|
|
|
28
|
+
**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.
|
|
29
|
+
|
|
27
30
|
## Gate
|
|
28
31
|
|
|
29
32
|
1. No board → `design-moodboard` first, or they give one now (a Figma link, a folder, a list of links).
|
|
@@ -85,13 +88,12 @@ node <skill>/scripts/moodboard.mjs .longbeard/design/families/board.md --overvie
|
|
|
85
88
|
|
|
86
89
|
For a Figma board, also build the `Families` page with `use_figma` (load `figma-use` first): a section per family, named, with copies of its cards, most typical first. Read the names back from the nodes.
|
|
87
90
|
|
|
88
|
-
In the same message, one line per family: its name, what the eye changed from the numbers, and, as hints only, which fit the design brief's personality, which look like its "never", and which rely on pictures they do not have. Where what they chose sits far from what they said ("you said quiet; your board is loud"),
|
|
91
|
+
In the same message, one line per family: its name, what the eye changed from the numbers, and, as hints only, which fit the design brief's personality, which look like its "never", and which rely on pictures they do not have. Where what they chose sits far from what they said ("you said quiet; your board is loud"), say it once. Then:
|
|
89
92
|
|
|
90
|
-
>
|
|
93
|
+
> These are the headings of your board from here on; every reference stays on it. Note any family that looks like two, or belongs with another, or say go.
|
|
91
94
|
|
|
92
95
|
- **A split or merge note:** apply it, show the page again. `families.mjs` will not overwrite a board: remove `.longbeard/design/families/board.md` before sorting again.
|
|
93
|
-
- **
|
|
94
|
-
- **Two taken:** two looks. Ask which comes first; the other waits.
|
|
96
|
+
- **Go:** write the doc.
|
|
95
97
|
|
|
96
98
|
## Write `docs/design/design-families.md`
|
|
97
99
|
|
|
@@ -100,15 +102,14 @@ In the same message, one line per family: its name, what the eye changed from th
|
|
|
100
102
|
|
|
101
103
|
<n> references sorted into <n> families and <n> strays.
|
|
102
104
|
|
|
103
|
-
##
|
|
104
|
-
### <family name>
|
|
105
|
+
## <family name>
|
|
105
106
|
<what its members share, in one or two lines: how much type against picture, how empty, how loud, how pictures are treated> · <n> references
|
|
106
107
|
|
|
107
|
-
##
|
|
108
|
-
|
|
108
|
+
## <family name>
|
|
109
|
+
…
|
|
109
110
|
```
|
|
110
111
|
|
|
111
|
-
No names, links or paths. The members of each family are in `.longbeard/design/families/families/f<n>.tsv
|
|
112
|
+
No names, links or paths. The members of each family are in `.longbeard/design/families/families/f<n>.tsv`, and `.longbeard/design/families/board.md` holds every card under its family: the board `design-direction` shows.
|
|
112
113
|
|
|
113
114
|
Then the next step in one line: `design-direction`.
|
|
114
115
|
|
|
@@ -125,7 +126,7 @@ Every reference in no family is new. Each joins the nearest family when it sits
|
|
|
125
126
|
- Check each join by eye on a contact sheet beside its family, low confidence first. Move one that does not belong.
|
|
126
127
|
- Name each seed for what is seen, as in step 3, or fold it into a family by eye.
|
|
127
128
|
- Place each stray as in step 3.
|
|
128
|
-
- Show only what changed: which family each new reference went to, and any new family. Then update `docs/design/design-families.md`: sizes, and any new family
|
|
129
|
+
- Show only what changed: which family each new reference went to, and any new family. Then update `docs/design/design-families.md`: sizes, and any new family.
|
|
129
130
|
|
|
130
131
|
Sort the whole pool again only when they ask, or when the new references outnumber the ones already sorted.
|
|
131
132
|
|
|
@@ -133,6 +134,6 @@ Sort the whole pool again only when they ask, or when the new references outnumb
|
|
|
133
134
|
|
|
134
135
|
- Run on a curated board of a few dozen without being asked.
|
|
135
136
|
- Move, rename or delete anything on their own Figma pages.
|
|
136
|
-
- Pick
|
|
137
|
+
- Pick a family for them, ask them to take one, or hide one because it looks like their "never". Every family stays on the board.
|
|
137
138
|
- Sort before every keep is measured and tagged, or read profiles into the chat.
|
|
138
139
|
- Sort a named pool from scratch to add a few new references: use `--assign`.
|
|
@@ -592,7 +592,8 @@ if (boardArg) {
|
|
|
592
592
|
const ordered = families.flatMap((f) => (f.stray ? [...f.members].sort((a, b) => (pairOf.has(a) ? 0 : 1) - (pairOf.has(b) ? 0 : 1) || String(pairOf.get(a)).localeCompare(String(pairOf.get(b)), undefined, { numeric: true })).map((s) => [f, s]) : f.members.map((s) => [f, s])));
|
|
593
593
|
const cards = ordered.map(([f, s]) => {
|
|
594
594
|
const r = byShot.get(s);
|
|
595
|
-
|
|
595
|
+
// A URL shot stays a URL; a file is written relative to where the board is made.
|
|
596
|
+
const shot = /^https?:\/\//i.test(s) ? s : relative(process.cwd(), resolve(s)).split("\\").join("/");
|
|
596
597
|
const more = also.get(r.name);
|
|
597
598
|
return `### ${r.name}
|
|
598
599
|
- link: ${r.link || "none (shared in chat)"}
|