@jonandev/longbeard 0.12.0 → 0.12.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/AGENTS.md CHANGED
@@ -6,7 +6,7 @@ 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 GLOSSARY.md | grill-with-docs | GLOSSARY.md, ADRs |
9
+ | Architecture | No GLOSSARY.md, or new stack | grill-with-docs → framework-skills | GLOSSARY.md, ADRs |
10
10
  | Plan | A flow or feature | setup-matt-pocock-skills → to-spec → to-tickets | specs, tickets |
11
11
  | Build | Tickets | implement-spec → design-check → pr | one PR per spec |
12
12
 
@@ -20,6 +20,6 @@ UI tickets link their Ready Figma frame. UI work follows DESIGN.md and that fram
20
20
  - Before any use_figma call: figma-use
21
21
  - A Figma link to build: figma-design-to-code
22
22
 
23
- Add-ons, offered once when needed (`npx longbeard update --skill <name>`): animate (motion), jury (scored review), web-design-guidelines, security-audit. At Architecture, a framework skill.
23
+ Add-ons, offered once when needed (`npx longbeard update --skill <name>`): animate (motion), jury (scored review), web-design-guidelines, security-audit.
24
24
 
25
25
  Write so a person can use the reply in one read. End with what you did not check.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,15 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.12.2 — 2026-11-21
6
+
7
+ - **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.
8
+
9
+ ## 0.12.1 — 2026-11-21
10
+
11
+ - **More galleries for the moodboard:** Minimal Gallery and httpster (browsed by tag, since neither has a search a script can use) for sites, and Fonts In Use (by subject tag or format; its search is off-limits to scripts) for the far reference: print, signs, packaging, with the typefaces named. `sources.md` says how to read each one's cards, and which galleries stay out of the picker and why (Land-book, Lapa Ninja, landing.love and siteinspire refuse scripts; One Page Love asks for its API key; Best Website Gallery's search finds only names).
12
+ - New skill, `framework-skills`, at Architecture: it reads the stack from the ADRs and manifests (`pubspec.yaml`, `package.json`, `Cargo.toml` and others), searches with `skills find`, prefers the framework's own published skills and then the most installed, reads each one, and proposes the few this project needs with a reason for each. On yes it installs them with `longbeard add`. The router reruns Architecture for a new stack, so a project that turns to Flutter later gets the offer then. It replaces the old "At Architecture, a framework skill." hint, which named nothing.
13
+
5
14
  ## 0.12.0 — 2026-11-21
6
15
 
7
16
  - **`image-to-code` is no longer an add-on.** It generates its own design images and builds from them, which is the agent's taste, not the board's. A picture you like goes on the moodboard instead, and a Figma file you were handed goes to `figma-design-to-code`. `update` removes it from a project that has it, unless you edited it.
package/README.md CHANGED
@@ -17,7 +17,7 @@ It is not an agent runtime or a marketplace, and it does not turn one prompt int
17
17
  |---|---|---|
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
- | 3. Architecture | The stack and the words the product uses | `GLOSSARY.md`, decisions |
20
+ | 3. Architecture | The stack and the words the product uses, then skills for that stack, on your yes | `GLOSSARY.md`, decisions |
21
21
  | 4. Plan | Each flow becomes a spec, each spec tickets | specs and tickets |
22
22
  | 5. Build | One agent per ticket, test-first, reviewed, checked against its Figma frame | one pull request per spec |
23
23
 
@@ -58,6 +58,7 @@ Long Beard's own skills live in [`skills/`](skills/). The others are installed f
58
58
  | &nbsp;&nbsp;&nbsp;↳ [design-content](skills/design-content/SKILL.md) | Optional: copy and the picture list | Long Beard |
59
59
  | &nbsp;&nbsp;&nbsp;↳ [design-wordmark](skills/design-wordmark/SKILL.md) | Optional: a mark made from your type | Long Beard |
60
60
  | [design-check](skills/design-check/SKILL.md) | Checks a Figma or built screen against the rules and its Ready frame. Reports; never redesigns | Long Beard |
61
+ | [framework-skills](skills/framework-skills/SKILL.md) | Finds skills for your stack (the framework's own first, else the most installed), reads them, and installs the ones you say yes to | Long Beard |
61
62
  | [Matt Pocock's skills](https://github.com/mattpocock/skills) | Grilling, specs, tickets, test-first building, review, pull requests, debugging, handoff | Matt Pocock |
62
63
  | [figma-use](https://github.com/figma/mcp-server-guide/tree/main/skills/figma-use), [figma-generate-library](https://github.com/figma/mcp-server-guide/tree/main/skills/figma-generate-library), [figma-generate-design](https://github.com/figma/mcp-server-guide/tree/main/skills/figma-generate-design) | How `design-figma` writes tokens, components and screens in Figma | Figma |
63
64
  | [figma-design-to-code](https://github.com/figma/mcp-server-guide/tree/main/skills/figma-design-to-code) | Builds from a Figma file a designer handed over | Figma |
package/beard.json CHANGED
@@ -24,9 +24,10 @@
24
24
  },
25
25
  {
26
26
  "name": "Architecture",
27
- "when": "No GLOSSARY.md",
27
+ "when": "No GLOSSARY.md, or new stack",
28
28
  "skills": [
29
- "grill-with-docs"
29
+ "grill-with-docs",
30
+ "framework-skills"
30
31
  ],
31
32
  "writes": "GLOSSARY.md, ADRs"
32
33
  },
@@ -189,6 +190,14 @@
189
190
  "when": "A Figma screen, or a built UI spec, to check",
190
191
  "why": "Against the design rules and the Ready frame. Hard rules block; soft ones are reported."
191
192
  },
193
+ {
194
+ "name": "framework-skills",
195
+ "author": "Long Beard",
196
+ "license": "MIT",
197
+ "source": "local",
198
+ "when": "A framework or language with no skill for it",
199
+ "why": "Finds the framework's own skills, else the most installed, reads them, and proposes them. Installs on yes."
200
+ },
192
201
  {
193
202
  "name": "matt-pocock",
194
203
  "kit": true,
package/bin/long-beard.js CHANGED
@@ -726,9 +726,8 @@ function generateRouter(items, manifest = curated(), shape = "full") {
726
726
  // A preselected add-on was decided at init, so it is never offered again.
727
727
  const addons = catalog(manifest).filter((item) => item.optional && keeps(item) && !item.preselected && !have.has(item.name));
728
728
  const rows = stages.map((stage) => `| ${stage.name} | ${stage.when} | ${stage.skills.join(" → ")} | ${stage.writes} |`);
729
- const framework = stages.some((stage) => stage.name === "Architecture") ? " At Architecture, a framework skill." : "";
730
729
  const offer = addons.length
731
- ? `\nAdd-ons, offered once when needed (\`npx longbeard update --skill <name>\`): ${addons.map((item) => (item.hint ? `${item.name} (${item.hint})` : item.name)).join(", ")}.${framework}\n`
730
+ ? `\nAdd-ons, offered once when needed (\`npx longbeard update --skill <name>\`): ${addons.map((item) => (item.hint ? `${item.name} (${item.hint})` : item.name)).join(", ")}.\n`
732
731
  : "";
733
732
  // A shape says its own two paragraphs: the whole pipeline's name stages and skills it may not have.
734
733
  const notes = shapeDef(manifest, shape)?.notes ?? [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jonandev/longbeard",
3
- "version": "0.12.0",
3
+ "version": "0.12.2",
4
4
  "description": "Designs like an Art director. Codes like a senior.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -142,9 +142,11 @@ for (const card of cards) {
142
142
  if (card.frames && !frames) console.error(`moodboard: no frames in ${card.frames.trim()}`);
143
143
  let poster = "";
144
144
  if (card.shot) {
145
- const abs = resolvePath(card.shot.trim());
146
- if (existsSync(abs)) poster = href(abs);
147
- else console.error(`moodboard: missing shot ${card.shot.trim()}`);
145
+ const shot = card.shot.trim();
146
+ // A shot may be a picture's URL (an exported library's pins): the page loads it as it is.
147
+ if (/^https?:\/\//i.test(shot)) poster = shot;
148
+ else if (existsSync(resolvePath(shot))) poster = href(resolvePath(shot));
149
+ else console.error(`moodboard: missing shot ${shot}`);
148
150
  }
149
151
  if (!poster && frames) poster = frames[frames.length - 1].src;
150
152
  if (!poster) continue;
@@ -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
- const shot = relative(process.cwd(), resolve(s)).split("\\").join("/");
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)"}
@@ -142,9 +142,11 @@ for (const card of cards) {
142
142
  if (card.frames && !frames) console.error(`moodboard: no frames in ${card.frames.trim()}`);
143
143
  let poster = "";
144
144
  if (card.shot) {
145
- const abs = resolvePath(card.shot.trim());
146
- if (existsSync(abs)) poster = href(abs);
147
- else console.error(`moodboard: missing shot ${card.shot.trim()}`);
145
+ const shot = card.shot.trim();
146
+ // A shot may be a picture's URL (an exported library's pins): the page loads it as it is.
147
+ if (/^https?:\/\//i.test(shot)) poster = shot;
148
+ else if (existsSync(resolvePath(shot))) poster = href(resolvePath(shot));
149
+ else console.error(`moodboard: missing shot ${shot}`);
148
150
  }
149
151
  if (!poster && frames) poster = frames[frames.length - 1].src;
150
152
  if (!poster) continue;
@@ -63,7 +63,7 @@ Their board already holds their taste: it is the pool. A rich board needs no sea
63
63
 
64
64
  - **Enough to compose from:** at least six keeps that are screens.
65
65
  - **Every part:** each key screen in the brief has at least one keep that shows that kind of screen.
66
- - **One far reference:** when every keep is a screen, at least one from outside screens (print, signage, packaging, an object from the subject's world), marked `screen: no`, so the screens have something to borrow that no other screen has.
66
+ - **One far reference:** when every keep is a screen, at least one from outside screens (print, signage, packaging, an object from the subject's world), marked `screen: no`, so the screens have something to borrow that no other screen has. Fonts In Use has these by subject and format ([sources.md](references/sources.md)).
67
67
 
68
68
  All met → say so in one line ("34 fits, every part covered") and write the doc. Otherwise say what it lacks in up to three lines and ask:
69
69
 
@@ -77,7 +77,7 @@ All met → say so in one line ("34 fits, every part covered") and write the doc
77
77
 
78
78
  ## Search
79
79
 
80
- Read [sources.md](references/sources.md) first. Default sources: for an app, popular Dribbble; for a site, Awwwards (this year's and older winners), Recent, and Dribbble for screens. The sites they love (in `.longbeard/design/brief-loves.md`) are seeds: captured, and searched from ("more like this").
80
+ Read [sources.md](references/sources.md) first. Default sources: for an app, popular Dribbble; for a site, Awwwards (this year's and older winners), Recent, and Dribbble for screens; Minimal Gallery and httpster when a kind of site or a look needs more (they browse by tag, not search). The sites they love (in `.longbeard/design/brief-loves.md`) are seeds: captured, and searched from ("more like this").
81
81
 
82
82
  **The design brief steers the pool, not the picks.** Read its words, personality, never, apart from and distance before the first query:
83
83
 
@@ -13,8 +13,11 @@ Each picker row takes its title, thumbnail and link from the same card on the li
13
13
  - **Recent:** each card's image is the poster (`…/recording/poster/640.webp`). The link next to it is labelled `View post: <title>` and goes to `/i/<id>-<slug>`.
14
14
  - **Dark Mode Design:** each card is a link to the live site around an image whose `alt` is the title.
15
15
  - **Wikimedia Commons:** `thumburl`, with `descriptionurl` as the link.
16
+ - **Minimal Gallery:** its search box returns nothing to a script (`?s=` always says 0 results), so browse a tag: `/tag/<tag>/` (`food-drink`, `portfolio`, `e-commerce`, `editorial`…; the tags are listed on the home page), `/page/N/` for more. Each card's link has `aria-label="View details for <title>"` and goes to the item page; its `img` `srcset` has the `-768x426` size. Open the live site from the item page.
17
+ - **httpster:** it has no search (`/search/` is a 404). Browse by what the site is, `/type/<type>/` (`food-drink`, `online-store`, `service`…), or by look, `/style/<style>/` (`typographic`, `brutalist`, `print`, `photographic`…), `?page=N` for more. Each card is an `article.Preview`: the image is `.Preview__img` (relative, on httpster.net, 300 px wide), the title and item page are `.Preview__title`, and `.Preview__ext` is the live site.
18
+ - **Fonts In Use:** its `robots.txt` asks scripts to keep out of `/search` and to wait 10 s between requests: never use the search, and pace every request. Browse a tag instead, `/tags/<id>/<name>` (a subject: `/tags/1428/bakeries`), or a format, `/in/2/formats/<id>/<name>` (`4/packaging`, `7/signs`, `12/posters-flyers`, `6/books`, `9/branding-identity`), or a topic, `/in/1/topics/<id>/<name>` (`30/food-beverage`). The ids are not guessable: read them from the links on a use page or a listing. Each card's link (`/uses/<id>/<slug>`) holds the title in `.fiu-galleryItem__headline`, and its `img` is the thumbnail.
16
19
 
17
- **siteinspire** refuses scripted requests to its listing (429), so it is not in the picker. A site that refuses scripts is not worked around, here or anywhere: no other client, no pacing around the limit, no archive. If they tick it anyway, say so, and take any siteinspire page they paste as a seed.
20
+ **siteinspire** (429), **Land-book**, **Lapa Ninja** and **landing.love** (403) refuse scripted requests to their listings, so they are not in the picker. **One Page Love** answers, but its pages ask scripts to use its API, which needs a key: it is not in the picker either. **Best Website Gallery**'s search matches only site names and returns mostly sites from 2009–2011: not in the picker. (All checked 2026-11-21.) A site that refuses scripts is not worked around, here or anywhere: no other client, no pacing around the limit, no archive. If they tick it anyway, say so, and take any page from these they paste as a seed.
18
21
 
19
22
  A source whose cards you cannot read is not in the picker. Say so under `Sources:`. Never screenshot a listing to fake one.
20
23
 
@@ -25,7 +28,8 @@ A nominee is not a reference. Open it full size and drop anything weak before it
25
28
  ## Galleries
26
29
 
27
30
  - **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. An older winner is captured live: drop it if the domain is dead, parked, or now another site (capture names a redirect). Never reach it through an archive.
28
- - **siteinspire, Recent** (recent.design/websites). These are curated, not scored. Keep a live page with one clear idea: a crop, a component, or an arrangement. Drop a page that is a template's defaults with nothing of its own. Never drop for a look (a gradient, a typeface, a colour): that is theirs to choose. On Recent, open the source URL on the item.
31
+ - **siteinspire, Recent** (recent.design/websites), **Minimal Gallery, httpster.** These are curated, not scored. Keep a live page with one clear idea: a crop, a component, or an arrangement. Drop a page that is a template's defaults with nothing of its own. Never drop for a look (a gradient, a typeface, a colour): that is theirs to choose. On Recent, open the source URL on the item.
32
+ - **Fonts In Use.** Print, signage, packaging, books and identities, each with its typefaces named: the place for the far reference (`screen: no`), and for type when the board has none. Its `web` and `software-apps` formats are screens like any gallery's. Keep a use with one clear idea (a crop, a type pairing, a material); its typefaces go on the card as what was read, never as a pick. Capture the use page's own image, never the shop or studio it shows.
29
33
  - **Dark Mode Design.** Only when the look is dark.
30
34
  - **Muzli.** Only a way to reach the original, which then has to pass its own test.
31
35
 
@@ -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
- const shot = relative(process.cwd(), resolve(s)).split("\\").join("/");
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)"}
@@ -142,9 +142,11 @@ for (const card of cards) {
142
142
  if (card.frames && !frames) console.error(`moodboard: no frames in ${card.frames.trim()}`);
143
143
  let poster = "";
144
144
  if (card.shot) {
145
- const abs = resolvePath(card.shot.trim());
146
- if (existsSync(abs)) poster = href(abs);
147
- else console.error(`moodboard: missing shot ${card.shot.trim()}`);
145
+ const shot = card.shot.trim();
146
+ // A shot may be a picture's URL (an exported library's pins): the page loads it as it is.
147
+ if (/^https?:\/\//i.test(shot)) poster = shot;
148
+ else if (existsSync(resolvePath(shot))) poster = href(resolvePath(shot));
149
+ else console.error(`moodboard: missing shot ${shot}`);
148
150
  }
149
151
  if (!poster && frames) poster = frames[frames.length - 1].src;
150
152
  if (!poster) continue;
@@ -0,0 +1,71 @@
1
+ ---
2
+ name: framework-skills
3
+ description: >
4
+ Find and propose agent skills for the frameworks and languages the project
5
+ uses: the framework's own published skills first, else the most installed,
6
+ read before proposing, installed on yes with longbeard add. Runs at
7
+ Architecture once the stack is decided, and again when the repo gains a new
8
+ stack (a pubspec.yaml, a new framework in package.json, a Cargo.toml).
9
+ ---
10
+
11
+ # Framework skills
12
+
13
+ The kit knows the pipeline, not the stack. This skill finds skills for the stack the project actually uses, proposes them, and installs them on a yes. It never installs without one.
14
+
15
+ ## Gate
16
+
17
+ Look at the repo. Do not ask what is there.
18
+
19
+ 1. List the stack from the ADRs in `docs/adr/` and the manifests: `pubspec.yaml`, `package.json` dependencies, `Cargo.toml`, `go.mod`, `pyproject.toml` or `requirements.txt`, `Gemfile`, `composer.json`, `build.gradle`, `Package.swift`, `*.csproj`. Count only what shapes how code is written: a framework (Flutter, Next.js, Expo, Rails, Django, Laravel, SwiftUI, Spring) or a language with no framework. A utility library is not a stack.
20
+ 2. Drop each one that already has a skill: a folder for it in `.agents/skills/`, `.claude/skills/` or `.cursor/skills/`, or an entry in `beard.local.json`.
21
+ 3. Drop each one an ADR records as declined.
22
+ 4. Nothing left → say so in one line and stop.
23
+
24
+ ## Find
25
+
26
+ For each one left, search with the Skills CLI Long Beard pins. It needs the network.
27
+
28
+ ```
29
+ npx skills@1.7.2 find <framework>
30
+ ```
31
+
32
+ It lists `owner/repo@skill` by installs. Choose in this order, and stop at the first that has something:
33
+
34
+ 1. **The framework's own.** The owner is the organisation that publishes the framework (the `flutter` org for Flutter, the framework's GitHub org in general). Check that from the framework's site or repository, not from the name: anyone can call a repo `flutter-skills`.
35
+ 2. **The most installed** that is about this framework and not about one library inside it.
36
+
37
+ Then, before proposing any of them:
38
+
39
+ - List what the repo publishes: `npx skills@1.7.2 add <owner/repo> --list`. A kit has many skills. Propose the ones this project will use now, from its flows and ADRs, not all of them.
40
+ - Open each proposed `SKILL.md` on GitHub and read it. Drop one that runs scripts you cannot read, fetches and runs remote code, asks for credentials, or tells the agent to ignore the project's own rules.
41
+ - Note the license and the date of the last commit. Over a year untouched, say so.
42
+
43
+ If the search finds nothing that passes, say that, and that the stack's own docs are the fallback. Do not write a skill for it here.
44
+
45
+ ## Propose
46
+
47
+ One message per stack, in this shape:
48
+
49
+ > **Flutter**, from the Flutter team (`flutter/agent-plugins`, <license>, updated <when>).
50
+ > 1. `flutter-apply-architecture-best-practices`: layers and state, for the app structure in ADR 0002.
51
+ > 2. `flutter-add-widget-test`: widget tests, which `tdd` will write.
52
+ > 3. `flutter-setup-declarative-routing`: the deep links in the brief's share flow.
53
+ > Install these three? Reply with the numbers to keep, or no.
54
+
55
+ The source is a link a person can open. The why is one line, tied to this project.
56
+
57
+ ## Install
58
+
59
+ On yes, once per source, with every chosen skill:
60
+
61
+ ```
62
+ npx longbeard add https://github.com/<owner>/<repo> --skill <name> --skill <name> --author "<owner>" --why "<one line>" --when "<when to load it>"
63
+ ```
64
+
65
+ `add` writes `beard.local.json`, installs for the project's agents, and adds a line to the `AGENTS.md` block, so later sessions load it at the right moment. `update` refreshes it from its author.
66
+
67
+ On no, write one line in the stack's ADR (create `docs/adr/` if it is missing): `Agent skills for <framework>: declined <date>.` It is not offered again until the stack changes.
68
+
69
+ ## End
70
+
71
+ Say what was installed, what was declined, and what you did not check: a skill not read in full, a license not found, a stack the search did not cover.