@jonandev/longbeard 0.9.0 → 0.10.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 +18 -33
- package/CHANGELOG.md +25 -1
- package/README.md +55 -90
- package/beard.json +137 -198
- package/bin/long-beard.js +53 -21
- package/package.json +3 -2
- package/skills/design/SKILL.md +135 -0
- package/skills/design/references/design-md-template.md +57 -0
- package/skills/design/references/design-rules.md +188 -0
- package/skills/design/scripts/capture.mjs +489 -0
- package/skills/design/scripts/contrast.mjs +27 -0
- package/skills/design-check/SKILL.md +78 -0
- package/skills/design-check/references/design-rules.md +188 -0
- package/skills/{design-reference-hunt → design-check}/scripts/capture.mjs +65 -13
- package/skills/design-direction/SKILL.md +157 -0
- package/skills/{design-reference-hunt → design-direction}/references/sources.md +7 -14
- package/skills/design-direction/scripts/capture.mjs +489 -0
- package/skills/{design-reference-hunt → design-direction}/scripts/contact-sheet.mjs +1 -1
- package/skills/{design-reference-hunt → design-direction}/scripts/moodboard.mjs +7 -9
- package/skills/idea/SKILL.md +103 -0
- package/skills/design-md/SKILL.md +0 -100
- package/skills/design-reference-hunt/SKILL.md +0 -177
- /package/skills/{design-reference-hunt → design-check}/scripts/contrast.mjs +0 -0
- /package/skills/{design-reference-hunt → design-direction}/scripts/dribbble-cards.mjs +0 -0
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: design-md
|
|
3
|
-
description: >
|
|
4
|
-
Use when building or changing UI and the project has a DESIGN.md, or when
|
|
5
|
-
they confirmed writing or updating the brand file. Follow that file. Write
|
|
6
|
-
or update DESIGN.md only from what they confirmed: the adaptation after a
|
|
7
|
-
hunt, or decisions they approved on a rendered prototype (with the reason,
|
|
8
|
-
the date, and a contrast check). DESIGN.md names ideas, never sources or
|
|
9
|
-
.design paths. Do not copy a reference’s exact palette or faces. Do not
|
|
10
|
-
invent a look they did not accept. If they asked to design or define
|
|
11
|
-
direction and there is no DESIGN.md and no Figma, that is
|
|
12
|
-
design-reference-hunt first.
|
|
13
|
-
---
|
|
14
|
-
|
|
15
|
-
# DESIGN.md
|
|
16
|
-
|
|
17
|
-
The project's `DESIGN.md` is the durable look. Coding follows it when it exists.
|
|
18
|
-
|
|
19
|
-
## Follow
|
|
20
|
-
|
|
21
|
-
If the file exists, read it before writing UI. Use its colour, type, spacing, control, behaviour, and components the way that file states them.
|
|
22
|
-
|
|
23
|
-
They asked to **hunt**, **define direction**, or find references → load `design-reference-hunt`. Do not rewrite this file until they confirm after that pass.
|
|
24
|
-
|
|
25
|
-
## Write or update (only on confirm)
|
|
26
|
-
|
|
27
|
-
Write or change `DESIGN.md` only when they said yes to persisting the adaptation (after a whole-look leading pick, or after accepting a later hunt), or approved a decision on a rendered prototype (below). Do not invent hexes, faces, or controls. Do not copy the leading card’s `colour` or `type` into the brand. Take the adaptation from:
|
|
28
|
-
|
|
29
|
-
- `.design/board.md` **Read this** (`take`, `change`, `ownable`, `colour`, `type`, `control`, `behaviour`, `leave`, `gaps`), or
|
|
30
|
-
- `.design/hunts/<slug>/board.md` **Read this** when the change is a later pass they accepted
|
|
31
|
-
|
|
32
|
-
`.design/moodboard.html` is the references. Do not read it as the brand: the brand is **Read this**.
|
|
33
|
-
|
|
34
|
-
If a whole-look **Read this** has no `take`, `change`, `colour`, or `type`, or has no `ownable`, stop and send it back to the hunt. Do not fill those in here.
|
|
35
|
-
|
|
36
|
-
If neither file exists, ask which reference to follow. Do not guess.
|
|
37
|
-
|
|
38
|
-
Refuse to write a colour palette whose text/background pairs have not been through contrast check. On a board from `design-reference-hunt`, **Read this** `contrast` lists each adapted pair with ratio and verdict (`scripts/contrast.mjs`). Body and small text need 4.5:1; large text and non-text marks need 3:1. If pairs are missing or any still FAIL, send the board back — do not write failing hexes into `DESIGN.md`.
|
|
39
|
-
|
|
40
|
-
**Ideas, not sources.** `DESIGN.md` is usually committed, and often public; `.design/` is not. It never names a product, site, studio, or designer the hunt looked at, never cites a `.design/` path, and its contrast notes name our tokens, not a reference's colour. The board's card names and its `leave` line name sources, which is fine there. Turn each into the idea before it crosses: “a quiet reading page, light and dark”, not the product it came from; “a bright brand accent”, not whose.
|
|
41
|
-
|
|
42
|
-
## Decisions approved on a prototype
|
|
43
|
-
|
|
44
|
-
Most of a design is made after the direction, on rendered screens: the controls, the text sizes, the navigation, the states. When they approve one of those decisions on a rendered prototype, it may go into `DESIGN.md` without a hunt. Write what was approved, the reason they gave, and the date, under **Decisions**. Every new or changed colour token — a surface, a pressed state, a selection, a focus ring, a faint control — goes through the hunt skill's `scripts/contrast.mjs` first, with the same thresholds. An `ownable` element marked unconfirmed is confirmed here, once they have seen it rendered, or replaced.
|
|
45
|
-
|
|
46
|
-
## The file
|
|
47
|
-
|
|
48
|
-
Expand the adaptation into a short brand file a builder can follow without the shots open:
|
|
49
|
-
|
|
50
|
-
```markdown
|
|
51
|
-
# Design
|
|
52
|
-
|
|
53
|
-
To see it working: <prototype path, once there is one>. This file wins where they differ.
|
|
54
|
-
|
|
55
|
-
## Direction
|
|
56
|
-
- leads: <the idea that leads, in our words>
|
|
57
|
-
- also: <other ideas they liked, in our words, or none>
|
|
58
|
-
- draws on: <what we learn from them: a layout, a temperature, a kind of picture>
|
|
59
|
-
- change: <the twist>
|
|
60
|
-
- ownable: <the one concrete element from the project’s own identity; “unconfirmed” until seen rendered>
|
|
61
|
-
- leave: <ideas we do not use, in our words: “a bright brand accent”, never a product's name>
|
|
62
|
-
|
|
63
|
-
## Colour
|
|
64
|
-
- <adapted hex>: <where it sits — ground, text, accent, control fill only if the shot fills one>
|
|
65
|
-
|
|
66
|
-
## Type
|
|
67
|
-
- <adapted pairing, and how it is used>
|
|
68
|
-
|
|
69
|
-
## Control
|
|
70
|
-
- <text link | filled shape | absent, and where it sits — from the leading hero>
|
|
71
|
-
|
|
72
|
-
## Layout
|
|
73
|
-
- <what we take that still belongs on this topic. Form cards: layout or component only, not their type or colours>
|
|
74
|
-
|
|
75
|
-
## Behaviour
|
|
76
|
-
- <how the page moves, pages, fades, or reveals. Omit the section when Read this says none>
|
|
77
|
-
|
|
78
|
-
## Imagery
|
|
79
|
-
- <what the pictures are, if any>
|
|
80
|
-
|
|
81
|
-
## Gaps
|
|
82
|
-
- <screens with no strong reference, from Read this. A builder treats these as open, not as solved by a borrowed pattern. A prototype closes them>
|
|
83
|
-
|
|
84
|
-
## Decisions
|
|
85
|
-
- <date>: <what they approved on the prototype> — <the reason they gave>
|
|
86
|
-
|
|
87
|
-
## Do not
|
|
88
|
-
- <the leave line, as ideas>
|
|
89
|
-
```
|
|
90
|
-
|
|
91
|
-
A **later hunt** they accepted: update only the sections that pass changes (often Layout, sometimes Control). Keep colour and type unless they explicitly accepted a change to those. Say in chat what you changed.
|
|
92
|
-
|
|
93
|
-
A full redo of the whole look they accepted: rewrite the file from the new adaptation.
|
|
94
|
-
|
|
95
|
-
## Missing file
|
|
96
|
-
|
|
97
|
-
- They asked to **define direction**, **hunt**, or **design a page** and there is no Figma → `design-reference-hunt` first. This skill waits for confirm.
|
|
98
|
-
- They asked only for a **brand file / DESIGN.md** with no board → ask which reference to follow, then write.
|
|
99
|
-
|
|
100
|
-
Leave brand catalogs out of the repo. Leave a second visual system out when one already exists.
|
|
@@ -1,177 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: design-reference-hunt
|
|
3
|
-
description: >
|
|
4
|
-
Find real visual references and propose an adaptation, so the project gets a
|
|
5
|
-
DESIGN.md. Does not code pages. Runs when there is no DESIGN.md and no Figma,
|
|
6
|
-
or when they ask to hunt, define direction, or find references for a piece.
|
|
7
|
-
Talk first (one round), search small, write short cards to .design/board.md,
|
|
8
|
-
open scripts/moodboard.mjs so they pick by looking, say the adaptation (take,
|
|
9
|
-
change, leave, ownable, gaps, colour, type), then ask to write DESIGN.md as
|
|
10
|
-
its own message. A later hunt for one piece writes .design/hunts/<slug>/.
|
|
11
|
-
.design/ is scratch: out of git, and safe to delete once DESIGN.md exists.
|
|
12
|
-
---
|
|
13
|
-
|
|
14
|
-
# Reference hunt
|
|
15
|
-
|
|
16
|
-
The goal is one file: `DESIGN.md`, a direction someone can later build or draw a Figma file from. Everything under `.design/` is scratch on the way there. It is out of git, and they may delete it once `DESIGN.md` exists. Do not keep an archive.
|
|
17
|
-
|
|
18
|
-
This skill does **not** lay out or code a page. Building is the router, only when they asked to build.
|
|
19
|
-
|
|
20
|
-
## Gate
|
|
21
|
-
|
|
22
|
-
Look at the repo and the prompt. Do not ask whether `DESIGN.md` exists.
|
|
23
|
-
|
|
24
|
-
1. They pasted a Figma link, or one is in the repo, and they did not ask to hunt → build from Figma. Stop.
|
|
25
|
-
2. `DESIGN.md` exists and they did not ask to hunt → follow it. Stop.
|
|
26
|
-
3. They asked for one piece (a view, a section, a control, an empty state, “ideas for X”, “double-check X”) → **Later hunt**. With or without a `DESIGN.md` or a `.design/` folder.
|
|
27
|
-
4. Otherwise → **Whole look**. If a `DESIGN.md` exists and they asked to redo the look, say it stays as it is until they answer the persist ask, which then asks to **replace** it.
|
|
28
|
-
|
|
29
|
-
## Whole look
|
|
30
|
-
|
|
31
|
-
### 1. Talk first — one round
|
|
32
|
-
|
|
33
|
-
Read the repo first: the README and product file give the subject, the surface, and the identity nouns. Then send one message and wait. Do not search in that turn.
|
|
34
|
-
|
|
35
|
-
```
|
|
36
|
-
I don't see a Figma file or a DESIGN.md for this project. If you have a Figma file, paste the link now and I'll build from that instead. If not, let's find the direction together. Skip any of these with "go" and I'll decide.
|
|
37
|
-
|
|
38
|
-
1. How should it feel, and never feel? Any apps, sites, brands, books or places you love for this?
|
|
39
|
-
2. Pictures you already like? Screenshots, links or files.
|
|
40
|
-
3. I read this as <subject>, a <website | app>, and the name gives me <identity nouns>. Right? For an app: the main screens, and how you move between them?
|
|
41
|
-
4. Does it need pictures? A website usually does. An app like this may not.
|
|
42
|
-
5. Where should I look? [x] <source> — <what it gives> … [ ] your own
|
|
43
|
-
6. How many references do you want to see? 6 / 12 / 20
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
Default sources:
|
|
47
|
-
|
|
48
|
-
- **App:** popular Dribbble, Pinterest, and component galleries. Mobbin and Refero unticked (login wall). No award galleries.
|
|
49
|
-
- **Website:** Awwwards, Godly, Land-book, siteinspire, MaxiBestOf, Recent. Dribbble for screens. Dark Mode Design only when the look is dark.
|
|
50
|
-
- **Imagery** (Unsplash, Wikimedia, museums) only when question 4 says yes.
|
|
51
|
-
|
|
52
|
-
Anything skipped is yours to decide: say what you chose in one line, then search. A Figma link at any point before the search → build from it. A brief that contradicts itself is `grilling`, not a second round.
|
|
53
|
-
|
|
54
|
-
A picture they gave is a **seed**: a card with `source: user`, never scored or dropped. Seeds steer the queries (“more like this”).
|
|
55
|
-
|
|
56
|
-
### 2. Search small
|
|
57
|
-
|
|
58
|
-
Read [sources.md](references/sources.md) before keeping anything. Do not narrate while looking: one line at the end is enough (“Found 11, building the moodboard.”).
|
|
59
|
-
|
|
60
|
-
- **The keep is the number they chose** (default 10 for an app, 12 for a website). Eight strong beat twenty adequate. A thin field stays thin: say what was missing instead of lowering the filter.
|
|
61
|
-
- **Query the form, not the word.** “writing app” returns T-shirts and essay mills; `product-design?q=text+editor+screen` returns screens.
|
|
62
|
-
- **Thumbnails are the first cut.** Use `scripts/contact-sheet.mjs` in scratch, then open the shortlist at full size. Nothing is kept from a thumbnail.
|
|
63
|
-
- **Capture only a keep:** `node <skill>/scripts/capture.mjs <url> --out .design/refs/<name>.jpg`.
|
|
64
|
-
- **App:** a real product's screen outweighs a Dribbble concept, which has never faced real content.
|
|
65
|
-
- **Website:** live sites outweigh Dribbble shots. A site of another business gives a layout or a component only, never its colour or type.
|
|
66
|
-
|
|
67
|
-
On the first write to `.design/`, add `.design/` to `.gitignore` if it is missing, and say why in one line: the shots are other people's work. If `git ls-files .design` already lists files, say so and leave `git rm -r --cached .design` to them.
|
|
68
|
-
|
|
69
|
-
### 3. Write `.design/board.md`
|
|
70
|
-
|
|
71
|
-
One file. A few header lines, short cards, and **Read this** after they pick.
|
|
72
|
-
|
|
73
|
-
```
|
|
74
|
-
Asked: <feel, requirements, or none>
|
|
75
|
-
Sources: <what was searched, and any skip: "Mobbin: login wall">
|
|
76
|
-
Missing: <what the search could not find, or none>
|
|
77
|
-
|
|
78
|
-
### <name>
|
|
79
|
-
- source: <gallery, or user>
|
|
80
|
-
- url: <the page a person can open, or "none (shared in chat)">
|
|
81
|
-
- shot: .design/refs/<file>
|
|
82
|
-
- tagline: <about six words, the moodboard caption>
|
|
83
|
-
- worth taking: <one principle, not their name>
|
|
84
|
-
- colour: <hex + the element it was sampled from, e.g. "#2c2824 body text">
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
`colour` is optional on a card. When it is there, it is sampled from a crop of that element, never from a photo or a mockup frame. A product page (voice, not visuals) may be a card with `slot: product`; it stays off the moodboard.
|
|
88
|
-
|
|
89
|
-
### 4. Pick on the moodboard
|
|
90
|
-
|
|
91
|
-
```
|
|
92
|
-
node <skill>/scripts/moodboard.mjs .design/board.md --out .design/moodboard.html
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
Look at it yourself first (`capture.mjs "file://$PWD/.design/moodboard.html" --out <scratch>/moodboard.jpg`). Fix a wrong caption or a missing picture on the board and run it again. Then say where it is, say every tile links to its source, and ask one line:
|
|
96
|
-
|
|
97
|
-
> Which one leads, which do you also like, which feel wrong, and why?
|
|
98
|
-
|
|
99
|
-
If they say “you choose”, take the closest and say which. Do not rerun the moodboard to mark the pick.
|
|
100
|
-
|
|
101
|
-
### 5. Read this — the adaptation
|
|
102
|
-
|
|
103
|
-
Write it under the header lines, after their answer.
|
|
104
|
-
|
|
105
|
-
```
|
|
106
|
-
## Read this
|
|
107
|
-
- leads: <card>
|
|
108
|
-
- also: <cards they also liked, or none>
|
|
109
|
-
- why: <their reason, in their words>
|
|
110
|
-
- take: <what we keep: a layout, a temperature, a kind of picture, and from which cards>
|
|
111
|
-
- change: <the twist, so this is not that reference>
|
|
112
|
-
- ownable: <one concrete element from the project's own identity nouns. Unconfirmed until seen rendered>
|
|
113
|
-
- control: <the lead's main control: text link, filled shape, or absent, and where it sits>
|
|
114
|
-
- behaviour: <how it moves, pages, fades, or reveals, from which card, or none>
|
|
115
|
-
- colour: <adapted hexes by role (page, text, secondary, mark…), each with its reason>
|
|
116
|
-
- contrast: <each text/background pair: hex on hex, ratio, AA | AAA | FAIL>
|
|
117
|
-
- type: <adapted pairing, with a licence that covers how this ships>
|
|
118
|
-
- leave: <their name, their identity colours and faces, and what they said feels wrong>
|
|
119
|
-
- gaps: <key screens or moves no reference covers, the project's differentiator first>
|
|
120
|
-
```
|
|
121
|
-
|
|
122
|
-
- **The lead is the closest**, not the boldest: the subject's world is in the shot. It leads the feeling. It is not the brand.
|
|
123
|
-
- **A colour moves only for a reason:** contrast, the twist, our pictures, or a brand colour they have. A generic cream or ink may stay as sampled. Nudging `#f6f1e7` to `#f4efe4` is not an adaptation.
|
|
124
|
-
- **`ownable` answers** “what makes this <project> and not <lead>?” with one element made from the identity nouns: for a lighthouse logbook, a lamp-glow marker on the active item.
|
|
125
|
-
- **Every pair goes through** `scripts/contrast.mjs`: 4.5:1 for body text, 3:1 for large text and marks. Fix failures before the persist ask.
|
|
126
|
-
|
|
127
|
-
Then, in chat, say the adaptation: take, change, leave, `ownable`, and the colour and type. Keep it short.
|
|
128
|
-
|
|
129
|
-
## Later hunt
|
|
130
|
-
|
|
131
|
-
One piece: a view, a section, a control, an element, ideas, or a check. A `DESIGN.md` or a board does not block it, and neither has to exist.
|
|
132
|
-
|
|
133
|
-
1. Ask once, then wait:
|
|
134
|
-
|
|
135
|
-
```
|
|
136
|
-
Any style or requirements for this? Optional.
|
|
137
|
-
|
|
138
|
-
A few ways to search:
|
|
139
|
-
- <a form you can type into a gallery: "a bar that fills once">
|
|
140
|
-
- <…>
|
|
141
|
-
- <…>
|
|
142
|
-
```
|
|
143
|
-
|
|
144
|
-
Skip a half they already answered. If they already said both, search.
|
|
145
|
-
2. Keep up to 10, from at least 30 looked at, across the galleries that fit. Include the same piece in other subjects. Same quality filter.
|
|
146
|
-
3. Write `.design/hunts/<slug>/board.md` with the same cards, shots in `.design/hunts/<slug>/refs/`. `<slug>` names the piece (`pricing`, `empty-state`). If it exists, use `<slug>-2`.
|
|
147
|
-
4. Run the moodboard on that board into `.design/hunts/<slug>/moodboard.html`, and ask which they would take.
|
|
148
|
-
5. Write a short **Read this** for the piece (`leads`, `take`, `leave`). With a `DESIGN.md`, the piece keeps its colour and type unless they agree to change them.
|
|
149
|
-
|
|
150
|
-
## The persist ask
|
|
151
|
-
|
|
152
|
-
Its own message, never the end of a long reply. Use a yes/skip prompt if the harness has one.
|
|
153
|
-
|
|
154
|
-
- Whole look: **Write `DESIGN.md` from this adaptation?** Skip if you only want the references for now.
|
|
155
|
-
- Redo: **Replace `DESIGN.md` with this adaptation?** The current one stays until you say yes.
|
|
156
|
-
- Later hunt: **Update `DESIGN.md` with what we took for <piece>?**
|
|
157
|
-
|
|
158
|
-
Yes → load `design-md` and write from **Read this**. Skip → leave the board, and say once that `.design/` stays on this machine, so `DESIGN.md` is how anyone else sees the direction.
|
|
159
|
-
|
|
160
|
-
If their next message moves on without answering, ask once more, first in that reply. Then let it go.
|
|
161
|
-
|
|
162
|
-
After the answer, offer the next step as a short list:
|
|
163
|
-
|
|
164
|
-
- **Prototype the gaps** (recommended for an app): the main screen built from `DESIGN.md`, with `gaps` as its brief. That is a build, through the router. It lives outside `.design/` and is committed.
|
|
165
|
-
- **Hunt a gap**: a later hunt, one per gap. For a gap software has not solved, search outside software for the same form.
|
|
166
|
-
- **Stop here.** `.design/` can be deleted once `DESIGN.md` is written.
|
|
167
|
-
|
|
168
|
-
Then stop, unless they also asked to build.
|
|
169
|
-
|
|
170
|
-
## Do not
|
|
171
|
-
|
|
172
|
-
- Code or lay out a page, or hand-write the moodboard.
|
|
173
|
-
- Search before the Talk first answer, or ask a second round.
|
|
174
|
-
- Pad the keep by lowering the filter, or keep a shot you only saw as a thumbnail.
|
|
175
|
-
- Screenshot a listing, a search grid, or a candidate you are not keeping. Never stitch screenshots.
|
|
176
|
-
- Paste the lead's exact colours or faces into **Read this** as the brand.
|
|
177
|
-
- Put skill feedback or notes under `.design/`. Use the chat, or a file they name.
|
|
File without changes
|
|
File without changes
|