@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/beard.json CHANGED
@@ -3,229 +3,164 @@
3
3
  "cursor",
4
4
  "claude-code"
5
5
  ],
6
+ "stages": [
7
+ {
8
+ "name": "Idea",
9
+ "when": "No docs/brief.md, or the product changes",
10
+ "skills": [
11
+ "idea"
12
+ ],
13
+ "writes": "docs/brief.md"
14
+ },
15
+ {
16
+ "name": "Direction",
17
+ "when": "A brief with UI",
18
+ "skills": [
19
+ "design-direction"
20
+ ],
21
+ "writes": "design-exploration/<slug>/direction.md"
22
+ },
23
+ {
24
+ "name": "Design",
25
+ "when": "A direction, no DESIGN.md",
26
+ "skills": [
27
+ "design",
28
+ "figma-generate-library",
29
+ "figma-generate-design"
30
+ ],
31
+ "writes": "DESIGN.md, Ready Figma frames"
32
+ },
33
+ {
34
+ "name": "Architecture",
35
+ "when": "No GLOSSARY.md yet",
36
+ "skills": [
37
+ "grill-with-docs"
38
+ ],
39
+ "writes": "GLOSSARY.md, ADRs"
40
+ },
41
+ {
42
+ "name": "Plan",
43
+ "when": "A flow or feature to build",
44
+ "skills": [
45
+ "setup-matt-pocock-skills",
46
+ "to-spec",
47
+ "to-tickets"
48
+ ],
49
+ "writes": "specs, tickets"
50
+ },
51
+ {
52
+ "name": "Build",
53
+ "when": "Tickets",
54
+ "skills": [
55
+ "implement-spec",
56
+ "design-check",
57
+ "pr"
58
+ ],
59
+ "writes": "one PR per spec"
60
+ }
61
+ ],
6
62
  "items": [
7
63
  {
8
- "name": "ponytail",
9
- "kit": true,
10
- "author": "DietrichGebert",
11
- "license": "MIT",
12
- "source": "https://github.com/DietrichGebert/ponytail",
13
- "routes": [
14
- {
15
- "when": "Building or fixing",
16
- "skill": "ponytail",
17
- "why": "The smallest change that finishes the job. Leave validation, error handling, security, and accessibility in place."
18
- },
19
- {
20
- "when": "A diff",
21
- "skill": "ponytail-review",
22
- "why": "Read it like someone who gets paged."
23
- },
24
- {
25
- "when": "The whole repo",
26
- "skill": "ponytail-audit",
27
- "why": "That same pass, over every file."
28
- },
29
- {
30
- "when": "Shortcuts you meant to come back to",
31
- "skill": "ponytail-debt",
32
- "why": "Collect the limits you marked."
33
- }
34
- ]
35
- },
36
- {
37
- "name": "grill-me",
38
- "author": "Matt Pocock",
39
- "license": "MIT",
40
- "source": "https://github.com/mattpocock/skills/tree/main/skills/productivity/grill-me",
41
- "when": "They asked to grill a plan or design, or the ask is underspecified",
42
- "why": "Interview until every branch of the design tree is resolved. Uses grilling. A feature goes on to to-spec, then to-tickets."
43
- },
44
- {
45
- "name": "grilling",
46
- "author": "Matt Pocock",
47
- "license": "MIT",
48
- "source": "https://github.com/mattpocock/skills/tree/main/skills/productivity/grilling",
49
- "when": "Stress-testing a plan, decision, or idea",
50
- "why": "The interview primitive behind grill-me. Relentless questions until branches are closed."
51
- },
52
- {
53
- "name": "setup-matt-pocock-skills",
54
- "author": "Matt Pocock",
55
- "license": "MIT",
56
- "source": "https://github.com/mattpocock/skills/tree/main/skills/engineering/setup-matt-pocock-skills",
57
- "when": "Before to-spec or to-tickets in a repo with no tracker set up",
58
- "why": "Once per repo. Picks where specs and tickets live: GitHub Issues when the repo is on GitHub, else local markdown. Writes its `## Agent skills` block outside the longbeard markers."
59
- },
60
- {
61
- "name": "to-spec",
62
- "author": "Matt Pocock",
63
- "license": "MIT",
64
- "source": "https://github.com/mattpocock/skills/tree/main/skills/engineering/to-spec",
65
- "when": "A grilled feature to write down whole",
66
- "why": "One spec on the tracker setup chose: problem, user stories, decisions, test seams, out of scope. No tracker set up yet: run setup-matt-pocock-skills first. A small feature can skip it and go to to-tickets."
67
- },
68
- {
69
- "name": "to-tickets",
70
- "author": "Matt Pocock",
71
- "license": "MIT",
72
- "source": "https://github.com/mattpocock/skills/tree/main/skills/engineering/to-tickets",
73
- "when": "A spec, plan, or conversation to split into tickets",
74
- "why": "Vertical slices, each checkable on its own, with their blockers, on the tracker setup chose. No tracker set up yet: run setup-matt-pocock-skills first."
75
- },
76
- {
77
- "name": "implement",
78
- "author": "Matt Pocock",
79
- "license": "MIT",
80
- "source": "https://github.com/mattpocock/skills/tree/main/skills/engineering/implement",
81
- "when": "Building one ticket, or a spec in one session",
82
- "why": "Read the ticket from the tracker, build it with tdd at the seams the spec agreed, then code-review, then commit."
83
- },
84
- {
85
- "name": "implement-spec",
86
- "author": "Matt Pocock",
87
- "license": "MIT",
88
- "source": "https://github.com/mattpocock/skills/tree/main/skills/engineering/implement-spec",
89
- "when": "Building every ticket of a spec",
90
- "why": "One integration branch. A fresh agent per ticket in its own worktree, each with tdd, started as its blockers finish. code-review at the end."
91
- },
92
- {
93
- "name": "tdd",
94
- "author": "Matt Pocock",
95
- "license": "MIT",
96
- "source": "https://github.com/mattpocock/skills/tree/main/skills/engineering/tdd",
97
- "when": "They asked for TDD, test-first, or red-green-refactor",
98
- "why": "Red before green, one slice at a time, tests at seams you agreed. implement and implement-spec call it. Otherwise only on request; ponytail stays the default for building."
99
- },
100
- {
101
- "name": "code-review",
102
- "author": "Matt Pocock",
103
- "license": "MIT",
104
- "source": "https://github.com/mattpocock/skills/tree/main/skills/engineering/code-review",
105
- "when": "Reviewing work built from a spec or ticket",
106
- "why": "Two axes, in parallel: this repo's standards, and the spec. A plain diff stays ponytail-review."
107
- },
108
- {
109
- "name": "diagnosing-bugs",
110
- "author": "Matt Pocock",
111
- "license": "MIT",
112
- "source": "https://github.com/mattpocock/skills/tree/main/skills/engineering/diagnosing-bugs",
113
- "when": "Something is broken, throwing, failing, or slow — a hard bug",
114
- "why": "Build a tight feedback loop first, then localize, reduce, fix, and guard."
115
- },
116
- {
117
- "name": "prototype",
118
- "author": "Matt Pocock",
119
- "license": "MIT",
120
- "source": "https://github.com/mattpocock/skills/tree/main/skills/engineering/prototype",
121
- "when": "A throwaway prototype of logic or state",
122
- "why": "A page or screen goes to design-taste-frontend."
123
- },
124
- {
125
- "name": "improve-codebase-architecture",
126
- "author": "Matt Pocock",
127
- "license": "MIT",
128
- "source": "https://github.com/mattpocock/skills/tree/main/skills/engineering/improve-codebase-architecture",
129
- "when": "Deepening modules or the shape of the code",
130
- "why": "Uses codebase-design and domain-modeling. Bugs, load, and bloat across the repo stay ponytail-audit."
131
- },
132
- {
133
- "name": "codebase-design",
134
- "author": "Matt Pocock",
64
+ "name": "idea",
65
+ "author": "Long Beard",
135
66
  "license": "MIT",
136
- "source": "https://github.com/mattpocock/skills/tree/main/skills/engineering/codebase-design",
137
- "when": "Designing a module's interface",
138
- "why": "The shared vocabulary for deep modules that improve-codebase-architecture uses."
67
+ "source": "local",
68
+ "when": "An idea, or a repo with no docs/brief.md",
69
+ "why": "Grill it into docs/brief.md: problem, people, core flows, key screens, surface, v1, out of scope."
139
70
  },
140
71
  {
141
- "name": "domain-modeling",
142
- "author": "Matt Pocock",
72
+ "name": "design-direction",
73
+ "author": "Long Beard",
143
74
  "license": "MIT",
144
- "source": "https://github.com/mattpocock/skills/tree/main/skills/engineering/domain-modeling",
145
- "when": "Naming the project's terms or recording a decision",
146
- "why": "Keeps `GLOSSARY.md` and ADRs current, created only when a term or decision is settled. improve-codebase-architecture calls it."
75
+ "source": "local",
76
+ "when": "A brief with UI and no direction yet, or one piece to find",
77
+ "why": "References and patterns from what you like, picked on a moodboard. Writes design-exploration/<slug>/direction.md, a proposal."
147
78
  },
148
79
  {
149
- "name": "handoff",
150
- "author": "Matt Pocock",
80
+ "name": "design",
81
+ "author": "Long Beard",
151
82
  "license": "MIT",
152
- "source": "https://github.com/mattpocock/skills/tree/main/skills/productivity/handoff",
153
- "when": "They asked to hand off to another agent or session",
154
- "why": "Compact the conversation into a handoff document another agent can pick up."
83
+ "source": "local",
84
+ "when": "A direction to turn into screens",
85
+ "why": "Prototype the key screens, approve, write DESIGN.md, then build them in Figma."
155
86
  },
156
87
  {
157
- "name": "retro",
158
- "author": "Matt Pocock",
88
+ "name": "design-check",
89
+ "author": "Long Beard",
159
90
  "license": "MIT",
160
- "source": "https://github.com/mattpocock/skills/tree/main/skills/engineering/retro",
161
- "when": "They asked for a retro on a session",
162
- "why": "Find what would have made the session easier: checks, navigation pointers, review rules, tool cost. Uses writing-for-agents. Suggests; you choose."
91
+ "source": "local",
92
+ "when": "A Figma screen, or a built UI spec, to check",
93
+ "why": "Against the design rules and the Ready frame. Hard rules block; soft ones are reported."
163
94
  },
164
95
  {
165
- "name": "writing-for-agents",
96
+ "name": "matt-pocock",
97
+ "kit": true,
166
98
  "author": "Matt Pocock",
167
99
  "license": "MIT",
168
- "source": "https://github.com/mattpocock/skills/tree/main/skills/productivity/writing-for-agents",
169
- "when": "Writing a skill, AGENTS.md, or CLAUDE.md",
170
- "why": "The style guide retro uses."
171
- },
172
- {
173
- "name": "premortem",
174
- "author": "GeorgeT",
175
- "license": "MIT",
176
- "source": "https://github.com/joetawil7/first-pass/tree/main/skills",
177
- "when": "A change that touches data, money, jobs, or what a person sees",
178
- "why": "Name where it can break before you write. A small change gets a short answer."
100
+ "source": "https://github.com/mattpocock/skills",
101
+ "routes": [
102
+ {
103
+ "skill": "diagnosing-bugs",
104
+ "when": "A hard bug"
105
+ },
106
+ {
107
+ "skill": "tdd",
108
+ "when": "Test-first, when asked"
109
+ },
110
+ {
111
+ "skill": "handoff",
112
+ "when": "Handing off, when asked"
113
+ }
114
+ ]
179
115
  },
180
116
  {
181
- "name": "design-reference-hunt",
182
- "author": "Long Beard",
183
- "license": "MIT",
184
- "source": "local",
185
- "when": "No official look, or they asked to hunt / define direction / find references",
186
- "why": "Does not code the page. Talk first, one round, then search small. Pick on `.design/moodboard.html`, say the adaptation, then ask to write or update `DESIGN.md` via design-md as its own message — once more, first, if they move on without answering — only on yes. Then offer the next step: prototype the gaps, hunt one, or stop. A later hunt for one piece writes `.design/hunts/<slug>/`. `.design/` is scratch, out of git."
117
+ "name": "figma-use",
118
+ "author": "Figma",
119
+ "license": "see repository",
120
+ "source": "https://github.com/figma/mcp-server-guide/tree/main/skills",
121
+ "when": "Before any use_figma call"
187
122
  },
188
123
  {
189
- "name": "design-taste-frontend",
190
- "author": "Leonxlnx",
191
- "license": "MIT",
192
- "source": "https://github.com/Leonxlnx/taste-skill",
193
- "when": "They asked to build, code, or prototype a page or screen",
194
- "why": "With DESIGN.md it builds and checks; it does not art-direct: no draw, no dealt references, palette, or type. Else build from the `.design/board.md` cards. Run `inspect.mjs` (`--app` and its app-screen house rules for an app screen). Report a warning about something DESIGN.md decides as per DESIGN.md; contrast, focus, and tap-target failures still get fixed. Direction-only or hunt-only is not this skill. The control a card describes is the control; add no filled button it does not show."
124
+ "name": "figma-generate-library",
125
+ "author": "Figma",
126
+ "license": "see repository",
127
+ "source": "https://github.com/figma/mcp-server-guide/tree/main/skills",
128
+ "when": "Figma tokens, styles, or components"
195
129
  },
196
130
  {
197
- "name": "animate",
198
- "author": "emilkowalski",
199
- "license": "MIT",
200
- "source": "https://github.com/emilkowalski/skills/tree/main/skills/animate",
201
- "when": "They asked to animate a control or a transition",
202
- "why": "Read the Behaviour section of DESIGN.md first. A page design-taste-frontend is building keeps that skill’s motion. Decide this one move, then build it."
131
+ "name": "figma-generate-design",
132
+ "author": "Figma",
133
+ "license": "see repository",
134
+ "source": "https://github.com/figma/mcp-server-guide/tree/main/skills",
135
+ "when": "A screen in Figma",
136
+ "why": "From the file's components and tokens."
203
137
  },
204
138
  {
205
139
  "name": "figma-design-to-code",
206
140
  "author": "Figma",
207
141
  "license": "see repository",
208
142
  "source": "https://github.com/figma/mcp-server-guide/tree/main/skills",
209
- "when": "A Figma file or link",
210
- "why": "A designer handed it over. Needs the Figma connection. Reuse this project's components."
143
+ "when": "A Figma link to build"
211
144
  },
212
145
  {
213
- "name": "image-to-code",
214
- "author": "Leonxlnx",
146
+ "name": "animate",
147
+ "author": "emilkowalski",
215
148
  "license": "MIT",
216
- "source": "https://github.com/Leonxlnx/imagegen-skills",
149
+ "source": "https://github.com/emilkowalski/skills/tree/main/skills/animate",
150
+ "when": "They asked to animate a control or a transition",
151
+ "why": "Read DESIGN.md's decisions first. Decide this one move, then build it.",
217
152
  "optional": true,
218
- "when": "A picture you already have",
219
- "why": "Build the page from that picture."
153
+ "hint": "motion"
220
154
  },
221
155
  {
222
- "name": "security-audit",
223
- "author": "Cloudflare",
156
+ "name": "jury",
157
+ "author": "juliobsz",
224
158
  "license": "MIT",
225
- "source": "https://github.com/cloudflare/security-audit-skill/tree/main/skills/security-audit",
159
+ "source": "https://github.com/juliobsz/skills/tree/main/jury",
160
+ "when": "They asked to jury, score, judge, or roast the design (or a live URL / local build)",
161
+ "why": "Blind evidence scorecard. Do not redesign. Fixes go to DESIGN.md or Figma. Only when asked.",
226
162
  "optional": true,
227
- "when": "A security review you asked for",
228
- "why": "Look for a broken trust boundary. The full audit runs only when you ask for an audit or a pen-test."
163
+ "hint": "scored review"
229
164
  },
230
165
  {
231
166
  "name": "web-design-guidelines",
@@ -233,23 +168,27 @@
233
168
  "license": "see repository",
234
169
  "source": "https://github.com/vercel-labs/agent-skills/tree/main/skills/web-design-guidelines",
235
170
  "when": "A UI review you asked for",
236
- "why": "Accessibility and interface rules."
171
+ "why": "Accessibility and interface rules.",
172
+ "optional": true
237
173
  },
238
174
  {
239
- "name": "jury",
240
- "author": "juliobsz",
175
+ "name": "security-audit",
176
+ "author": "Cloudflare",
241
177
  "license": "MIT",
242
- "source": "https://github.com/juliobsz/skills/tree/main/jury",
243
- "when": "They asked to jury, score, judge, or roast the design (or a live URL / local build)",
244
- "why": "Blind evidence scorecard. Do not redesign. Fixes stay on the board, DESIGN.md, or Figma. Do not run after every build unless they asked."
178
+ "source": "https://github.com/cloudflare/security-audit-skill/tree/main/skills/security-audit",
179
+ "when": "A security review you asked for",
180
+ "why": "Look for a broken trust boundary. The full audit runs only when you ask for an audit or a pen-test.",
181
+ "optional": true
245
182
  },
246
183
  {
247
- "name": "design-md",
248
- "author": "Long Beard",
184
+ "name": "image-to-code",
185
+ "author": "Leonxlnx",
249
186
  "license": "MIT",
250
- "source": "local",
251
- "when": "The look of this project, or they confirmed writing or updating DESIGN.md",
252
- "why": "Follow DESIGN.md when it exists. Write or update it only on confirm: from the hunt's adaptation, or from decisions approved on a rendered prototype, with reason, date, and contrast. Ideas, not sources: no reference names or `.design/` paths. Do not invent. Missing file plus design or define direction is hunt first."
187
+ "source": "https://github.com/Leonxlnx/imagegen-skills",
188
+ "when": "A picture you already have",
189
+ "why": "Build the page from that picture.",
190
+ "optional": true,
191
+ "hint": "from a picture"
253
192
  }
254
193
  ]
255
194
  }
package/bin/long-beard.js CHANGED
@@ -37,19 +37,20 @@ The catalog is beard.json. The command is longbeard, via npx in the project.
37
37
  npx longbeard list
38
38
  npx longbeard --version
39
39
 
40
- npx longbeard init [--global] [--all] [--yes] [--agent cursor]
41
- npx longbeard update [--global] [--all] [--force] [--yes]
40
+ npx longbeard init [--global] [--all] [--skill add-on] [--yes] [--agent cursor]
41
+ npx longbeard update [--global] [--all] [--skill add-on] [--force] [--yes]
42
42
  npx longbeard add <source> --skill <name> --author <name> --why <text> [--when text]
43
43
  npx longbeard remove <name>
44
44
 
45
45
  init installs missing skills from beard.json. A skill already present for an agent is left there.
46
46
  update installs anything new, refreshes only items in beard-lock.json, and rewrites the AGENTS.md block.
47
47
  A skill written here is copied from the installed package when its version moved, and the line says which versions.
48
- A kit (ponytail) is every skill its author publishes. update adds new ones and removes retired ones you did not edit, and a kit's skills when the catalog drops it.
48
+ A kit (Matt Pocock's) is every skill its author publishes. update adds new ones, and removes any skill the catalog or its kit no longer lists, unless you edited it.
49
49
  Install the package first (npm install -D @jonandev/longbeard@latest); update does not fetch it.
50
50
  add in a project writes beard.local.json (an extra, not a second kit). remove omits a kit skill here.
51
+ --all takes every add-on; --skill takes one. An add-on you took stays and refreshes on update.
51
52
  --agent skips the agent list and installs for that tool. Repeat it.
52
- --force replaces local edits of skills this command installed.
53
+ --force replaces local edits of skills this command installed, and removes edited ones the catalog dropped.
53
54
  --yes skips prompts and uses the catalog agents (cursor, claude-code).
54
55
  This does not install marketplace plugins or replace Cursor or Claude commands.
55
56
  `;
@@ -232,8 +233,14 @@ function writeExtra(flags, state) {
232
233
 
233
234
  // A kit is what its author publishes: the skills in their plugin manifest, else
234
235
  // every folder in their skills/. Read at install time so a new or retired skill
235
- // follows the author, not this catalog.
236
- async function kitSkills(item) {
236
+ // follows the author, not this catalog. Read once per run.
237
+ const kitCache = new Map();
238
+ function kitSkills(item) {
239
+ if (!kitCache.has(item.source)) kitCache.set(item.source, fetchKit(item));
240
+ return kitCache.get(item.source);
241
+ }
242
+
243
+ async function fetchKit(item) {
237
244
  const repo = item.source.match(/github\.com\/([^/]+\/[^/#?]+)/)?.[1]?.replace(/\.git$/, "");
238
245
  if (!repo) fail(`${item.name}: a kit needs a GitHub source.`);
239
246
  // update retires what this list leaves out, so a failed fetch must stop here,
@@ -274,11 +281,21 @@ async function expandKits(skills, omit) {
274
281
  return out;
275
282
  }
276
283
 
284
+ function knownAddons(flags) {
285
+ const addons = catalog(curated()).filter((item) => item.optional).map((item) => item.name);
286
+ for (const name of flags.skill) {
287
+ if (!addons.includes(name)) fail(`${name} is not an add-on. Add-ons: ${addons.join(", ")}.`);
288
+ }
289
+ }
290
+
277
291
  function chosen(flags) {
278
292
  const manifest = curated();
279
293
  const extra = extraState(flags);
280
294
  const omitted = new Set(extra.omit);
281
- const shared = catalog(manifest).filter((item) => (flags.all || !item.optional) && !omitted.has(item.name));
295
+ // An add-on comes with --all, with --skill <name>, or because you took it before.
296
+ const installed = readLock(flags).skills;
297
+ const wanted = (item) => !item.optional || flags.all || flags.skill.includes(item.name) || Boolean(installed[item.name]);
298
+ const shared = catalog(manifest).filter((item) => wanted(item) && !omitted.has(item.name));
282
299
  const seen = new Set(shared.map((item) => item.name));
283
300
  const extras = extra.items.filter((item) => !seen.has(item.name) && !omitted.has(item.name));
284
301
  const items = [...shared, ...extras];
@@ -559,24 +576,35 @@ function locallyEdited(name, entry, agents, global) {
559
576
  return folders.some((folder) => statSync(join(folder, "SKILL.md")).mtimeMs > installed + 2000);
560
577
  }
561
578
 
562
- function generateRouter(items) {
579
+ function generateRouter(items, manifest = curated()) {
580
+ const stages = manifest.stages ?? [];
581
+ const staged = new Set(stages.flatMap((stage) => stage.skills));
563
582
  const line = (when, name, why) => (why?.trim() ? `- ${when}: ${name}. ${why.trim()}` : `- ${when}: ${name}`);
564
- const lines = items.filter((item) => kind(item) === "skill").flatMap((item) => {
583
+ const helpers = items.filter((item) => kind(item) === "skill").flatMap((item) => {
565
584
  if (item.kit) return (item.routes ?? []).map((route) => line(route.when, route.skill, route.why));
585
+ if (staged.has(item.name)) return [];
566
586
  return [line(item.when?.trim() || item.name, item.name, item.why)];
567
587
  });
588
+ const have = new Set(items.map((item) => item.name));
589
+ const addons = catalog(manifest).filter((item) => item.optional && !have.has(item.name));
590
+ const rows = stages.map((stage) => `| ${stage.name} | ${stage.when} | ${stage.skills.join(" → ")} | ${stage.writes} |`);
591
+ const offer = addons.length
592
+ ? `\nAdd-ons, offered once when needed (\`npx longbeard update --skill <name>\`): ${addons.map((item) => (item.hint ? `${item.name} (${item.hint})` : item.name)).join(", ")}. At Architecture, a framework skill.\n`
593
+ : "";
568
594
  return `# Long Beard
569
595
 
570
- The project's own code, conventions, and DESIGN.md win.
571
-
572
- Load only what the task needs. Leave the rest unread.
596
+ The project's own code, conventions, and DESIGN.md win. Load only what the task needs.
573
597
 
574
- A marketing site is the page a person lands on to understand or choose. An application is the tool they come back to. Official look wins: DESIGN.md, then Figma, then the board. Hunt finds references and proposes an adaptation; it does not code the page. Open the moodboard before they pick, say what we take, change, and leave, then ask to write or update DESIGN.md as its own message — once more, first, if they move on without answering — only on yes. Code the page only when they asked to build. Direction-only stops after the next-step offer. A site hunts live pages; an application hunts screen shots. With a direction already, hunt only the piece.
598
+ | Stage | Starts when | Skills | Writes |
599
+ |---|---|---|---|
600
+ ${rows.join("\n")}
575
601
 
576
- ${lines.join("\n")}
602
+ Each stage offers the next; start it on yes. No UI: skip Direction and Design. A feature with a brief: grill-with-docs for new terms, else grilling, then Plan.
577
603
 
578
- A normal change can be ponytail and a short premortem. That is still a small set.
604
+ UI tickets link their Ready Figma frame. UI work follows DESIGN.md and that frame. A mismatch with the frame is a bug.
579
605
 
606
+ ${helpers.join("\n")}
607
+ ${offer}
580
608
  Write so a person can use the reply in one read. End with what you did not check.
581
609
  `;
582
610
  }
@@ -712,6 +740,7 @@ function remember(lock, flags, skills, agents) {
712
740
 
713
741
  async function init(flags) {
714
742
  requireProject(flags);
743
+ knownAddons(flags);
715
744
  const { manifest, extra, items, later, ...picked } = chosen(flags);
716
745
  const agents = chooseAgents(manifest, flags, { pick: true, lock: readLock(flags) });
717
746
  const skills = await expandKits(picked.skills, extra.omit);
@@ -732,21 +761,24 @@ async function init(flags) {
732
761
 
733
762
  async function update(flags) {
734
763
  requireProject(flags);
764
+ knownAddons(flags);
735
765
  const { manifest, extra, items, later, ...picked } = chosen(flags);
736
766
  const agents = chooseAgents(manifest, flags, { pick: false, lock: readLock(flags) });
737
767
  const skills = await expandKits(picked.skills, extra.omit);
738
768
  const classified = classify(skills, agents, flags);
739
769
  classified.later = later;
740
- // A kit skill nothing lists any more leaves, unless you edited it: the author
741
- // stopped publishing it, or the catalog dropped the kit.
742
- const listed = new Set(skills.map((skill) => skill.name));
770
+ // A skill nothing lists any more leaves, unless you edited it: the catalog
771
+ // dropped it, or its kit's author stopped publishing it. Listed means the
772
+ // whole catalog, so an add-on installed with --all stays without it.
773
+ const all = [...catalog(manifest), ...extra.items].filter((item) => kind(item) === "skill");
774
+ const listed = new Set((await expandKits(all, extra.omit)).map((skill) => skill.name));
743
775
  const retired = Object.entries(classified.lock.skills)
744
- .filter(([name, entry]) => entry.kit && !listed.has(name) && !extra.omit.includes(name))
776
+ .filter(([name]) => !listed.has(name) && !extra.omit.includes(name))
745
777
  .map(([name, entry]) => ({ name, author: entry.author, edited: locallyEdited(name, entry, agents, flags.global) }));
746
- const drop = retired.filter((skill) => !skill.edited);
778
+ const drop = flags.force ? retired : retired.filter((skill) => !skill.edited);
747
779
  plan("update", flags, agents, classified);
748
780
  rows("retired", yellow, drop, "No longer in its kit or the catalog. Removed.", nameWidth([retired]));
749
- rows("retired, kept", yellow, retired.filter((skill) => skill.edited), "No longer in its kit or the catalog. Kept because you edited it.", nameWidth([retired]));
781
+ rows("retired, kept", yellow, retired.filter((skill) => !drop.includes(skill)),"No longer in its kit or the catalog. Kept because you edited it. Pass --force to remove it.", nameWidth([retired]));
750
782
  confirmWrite(flags, classified.writes);
751
783
  if (drop.length > 0) {
752
784
  // No --agent: with one, the skills CLI unlinks Claude Code but leaves the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jonandev/longbeard",
3
- "version": "0.9.0",
3
+ "version": "0.10.0",
4
4
  "description": "Designs like an Art director. Codes like a senior.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -42,6 +42,7 @@
42
42
  "scripts": {
43
43
  "longbeard": "node ./bin/long-beard.js",
44
44
  "router": "node ./bin/long-beard.js router > AGENTS.md",
45
- "test": "node --test"
45
+ "test": "node --test",
46
+ "share": "node scripts/share.mjs"
46
47
  }
47
48
  }