@jonandev/longbeard 0.9.0 → 0.11.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 +44 -1
- package/README.md +69 -93
- package/beard.json +148 -198
- package/bin/long-beard.js +105 -43
- package/package.json +3 -2
- package/skills/design/SKILL.md +139 -0
- package/skills/design/references/design-md-template.md +58 -0
- package/skills/design/references/design-rules.md +189 -0
- package/skills/design/scripts/capture.mjs +489 -0
- package/skills/design/scripts/contrast.mjs +27 -0
- package/skills/design-check/SKILL.md +79 -0
- package/skills/design-check/references/design-rules.md +189 -0
- package/skills/{design-reference-hunt → design-check}/scripts/capture.mjs +65 -13
- package/skills/design-direction/SKILL.md +190 -0
- package/skills/design-direction/references/sources.md +86 -0
- 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/dribbble-cards.mjs +46 -5
- package/skills/{design-reference-hunt → design-direction}/scripts/moodboard.mjs +7 -9
- package/skills/design-direction/scripts/picker.mjs +254 -0
- package/skills/idea/SKILL.md +106 -0
- package/skills/design-md/SKILL.md +0 -100
- package/skills/design-reference-hunt/SKILL.md +0 -177
- package/skills/design-reference-hunt/references/sources.md +0 -74
- /package/skills/{design-reference-hunt → design-check}/scripts/contrast.mjs +0 -0
|
@@ -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.
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
# Sources: what to keep, and how to get the shot
|
|
2
|
-
|
|
3
|
-
A nominee is not a reference. Open it full size and drop anything weak before it goes on the board. A weak pass means fewer keeps, not a lower bar.
|
|
4
|
-
|
|
5
|
-
## Galleries
|
|
6
|
-
|
|
7
|
-
- **Awwwards.** Open the site page, not the listing card. Keep Site of the Day, Month, or Year, or an Honorable Mention with overall and Design ≥ 7.5. Drop any 4s, and any gate or password wall.
|
|
8
|
-
- **Godly, Land-book, siteinspire, MaxiBestOf, Recent.** These are curated, not scored. Keep a live page with one clear idea: a crop, a component, or an arrangement. Drop generic SaaS (centred headline, three icon cards, soft gradient, Inter). MaxiBestOf sections and Supahero crops are pieces, not sites.
|
|
9
|
-
- **Dark Mode Design.** Only when the look is dark.
|
|
10
|
-
- **Muzli.** Only a way to reach the original, which then has to pass its own test.
|
|
11
|
-
- **Pinterest.** Keep a pin that is one real screen or page. Drop boards, collages, and AI mush. If you hit a login wall, write `Pinterest: login wall` under `Sources:` and move on.
|
|
12
|
-
- **Mobbin, Refero.** Shipped screens, often behind a login. Handle a login wall the same way.
|
|
13
|
-
|
|
14
|
-
## Dribbble
|
|
15
|
-
|
|
16
|
-
Listing pages render in the browser, and shot pages hit human verification. Use the script on a popular listing for this year:
|
|
17
|
-
|
|
18
|
-
```
|
|
19
|
-
node <skill>/scripts/dribbble-cards.mjs "https://dribbble.com/search/shots/popular/product-design?q=text+editor+screen&timeframe=year" --scrolls 4
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
It prints `id-slug`, likes, views, image URL, and title. It drops merch, CVs, worksheets, posters, logos, and tool ads by slug and title. Extend that list with `--drop "a,b"` and relax it with `--keep "a,b"`. Download artwork from `cdn.dribbble.com` (`<url>?resize=1600x1200`).
|
|
23
|
-
|
|
24
|
-
- Use a category path and the form, not the word: `/product-design?q=…`, `/mobile?q=…`, `/web-design?q=…`.
|
|
25
|
-
- If most of what gets through is off-form, the query is wrong. Fix the query rather than scrolling further.
|
|
26
|
-
- Run one query at a time. If a query returns 0 cards, retry after 8 s, then 30 s. If it is still 0, note it under `Sources:` as a possible rate limit.
|
|
27
|
-
- Keep a shot when you can name what is worth taking in one line, and people actually saved it. Drop AI mush, fake browser chrome, purple-on-dark gradients, Inter everywhere, and emoji icons.
|
|
28
|
-
- A Dribbble illustration is imagery, never a site.
|
|
29
|
-
|
|
30
|
-
## Cropping a downloaded image
|
|
31
|
-
|
|
32
|
-
To crop a picture you already have (a screen inside a marketing frame, a type specimen):
|
|
33
|
-
|
|
34
|
-
```
|
|
35
|
-
node <skill>/scripts/capture.mjs "file://<abs path to image>" --out .design/refs/<name>.jpg --clip x,y,w,h
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
`--clip` is in the image's own pixels.
|
|
39
|
-
|
|
40
|
-
## Imagery
|
|
41
|
-
|
|
42
|
-
Search the subject, not a stock category. One real place or material beats a pile of similar ones. Zero imagery is a complete answer.
|
|
43
|
-
|
|
44
|
-
- **Unsplash.** On the search page, read `figure a[href*="/photos/"] img`. Take its `src` up to the `?` and download `<src>?w=1600&q=80`. The photo page is the `url`.
|
|
45
|
-
- **Wikimedia Commons.** Query the API with `-A "<project>-hunt/0.1"`, `prop=imageinfo&iiprop=url&iiurlwidth=1920`. Save `thumburl`. `descriptionurl` is the `url`.
|
|
46
|
-
|
|
47
|
-
## Contact sheets
|
|
48
|
-
|
|
49
|
-
Viewing listing thumbnails is fine. It is not a capture. Build labelled grids in scratch, never under `.design/`:
|
|
50
|
-
|
|
51
|
-
```
|
|
52
|
-
node <skill>/scripts/contact-sheet.mjs candidates.tsv --out <scratch>/sheets # TSV: label<TAB>imageURL
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
## Capture a live page
|
|
56
|
-
|
|
57
|
-
Only for a keep, run from the project root:
|
|
58
|
-
|
|
59
|
-
```
|
|
60
|
-
node <skill>/scripts/capture.mjs <url> --out .design/refs/<name>.jpg
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
The script dismisses cookie banners, scrolls so reveals load, unsticks fixed headers, and takes one full-page JPEG. Node 22+ and an installed Chrome are required (set `CHROME_PATH` if Chrome is somewhere unusual). Options:
|
|
64
|
-
|
|
65
|
-
- `--review <scratch>/x.jpg` writes a readable side-by-side version of a tall page.
|
|
66
|
-
- `--clip-selector "main"` or `--clip x,y,w,h` crops to a type specimen.
|
|
67
|
-
|
|
68
|
-
Open the file. Delete it and run again if it repeats a band, still shows a cookie dialog, or is mostly empty. If a page will not scroll (WebGL, a locked canvas), keep one viewport and say so on the card. Never stitch screenshots.
|
|
69
|
-
|
|
70
|
-
## Colour and type
|
|
71
|
-
|
|
72
|
-
- **Colour.** Sample hexes from a crop of the element named (body text, active tab), never from a photo, a mockup frame, or a presentation background. Card hexes are what we saw, not the brand.
|
|
73
|
-
- **Contrast.** Check pairs with `node <skill>/scripts/contrast.mjs "#2c2824 on #f6f1e7" "#b0563a on #f6f1e7:mark"`. `:large` and `:mark` check 3:1. A failing pair is written as `sampled → used`.
|
|
74
|
-
- **Type.** A face's licence has to cover how this ships: bundled in an app, self-hosted web, or default UI. Set it at real sizes before you pick it. Check that the italic reads at quote size and that its figures suit where numbers sit.
|
|
File without changes
|