@jonandev/longbeard 0.0.0-stage → 0.2.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 +23 -0
- package/CHANGELOG.md +18 -0
- package/LICENSE +21 -0
- package/README.md +86 -2
- package/beard.json +111 -0
- package/bin/long-beard.js +753 -0
- package/package.json +43 -4
- package/skills/design-md/SKILL.md +22 -0
- package/skills/design-reference-hunt/SKILL.md +213 -0
- package/skills/design-reference-hunt/references/quality.md +45 -0
- package/skills/design-reference-hunt/references/shots.md +44 -0
- package/skills/design-reference-hunt/scripts/capture.mjs +248 -0
package/AGENTS.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Long Beard
|
|
2
|
+
|
|
3
|
+
The project's own code, conventions, and DESIGN.md win.
|
|
4
|
+
|
|
5
|
+
Load only what the task needs. Leave the rest unread.
|
|
6
|
+
|
|
7
|
+
A marketing site is the page a person lands on to understand or choose. An application is the tool they come back to. With no DESIGN.md and no Figma, both hunt. A site hunts live pages, and those outweigh Dribbble. An application hunts screen shots, and those outweigh award sites. With a direction already, hunt only the piece.
|
|
8
|
+
|
|
9
|
+
- Building or fixing: ponytail. The smallest change that finishes the job. Leave validation, error handling, security, and accessibility in place.
|
|
10
|
+
- A diff: ponytail-review. Read it like someone who gets paged.
|
|
11
|
+
- The whole repo: ponytail-audit. That same pass, over every file.
|
|
12
|
+
- Shortcuts you meant to come back to: ponytail-debt. Collect the limits you marked.
|
|
13
|
+
- A change that touches data, money, jobs, or what a person sees: premortem. Name where it can break before you write. A small change gets a short answer.
|
|
14
|
+
- A page with no official look (no DESIGN.md, no Figma, no board), or they asked to hunt references: design-reference-hunt. Ask once for a Figma file. No direction: look widely, then keep, and write `.design/board.md`. Scroll and screenshot only the keeps. Another business lends a layout or a component only, not its type or its colours, and only if it still fits this topic. Ask once which of the closest cards should lead, then write the cards and a short Read this. Before looking, ask once for optional ideas to search. A later hunt (a view, a control, new ideas, a double-check) is a suggestion set in `.design/hunts/<slug>/`. It does not replace the board, DESIGN.md, or a Figma file.
|
|
15
|
+
- A page with no design yet: design-taste-frontend. Do not deal this skill’s references, and do not run draw. No official look is hunt: wait for `.design/board.md`. Those cards are the references. Build from them. The control a card describes is the control. Do not add a filled button the card does not show. Inspect still.
|
|
16
|
+
- They asked to animate a control or a transition: animate. A page design-taste-frontend is building keeps that skill’s motion. Decide this one move, then build it.
|
|
17
|
+
- A Figma file or link: figma-design-to-code. A designer handed it over. Needs the Figma connection. Reuse this project's components.
|
|
18
|
+
- A UI review you asked for: web-design-guidelines. Accessibility and interface rules.
|
|
19
|
+
- The look of this project: design-md. Follow DESIGN.md when it exists.
|
|
20
|
+
|
|
21
|
+
A normal change can be ponytail and a short premortem. That is still a small set.
|
|
22
|
+
|
|
23
|
+
Write so a person can use the reply in one read. End with what you did not check.
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## Unreleased
|
|
4
|
+
|
|
5
|
+
## 0.2.0 — 2026-10-20
|
|
6
|
+
|
|
7
|
+
- Install from npm: `@jonandev/longbeard`. The command prints that version with `--version`.
|
|
8
|
+
- `design-reference-hunt` can run after a direction or a design exists. A full hunt with no look still writes `.design/board.md`. Any later pass (a view, a control, new ideas, a double-check) writes `.design/hunts/<slug>/` and does not replace the board, `DESIGN.md`, or a Figma file. Before looking, it asks once for optional ideas to search. People who already ran `init` get it by installing the release that contains it, then running `npx longbeard update`.
|
|
9
|
+
- `animate` is in the default kit. It builds a control or a transition they asked to animate. A page `design-taste-frontend` is building keeps that skill’s motion.
|
|
10
|
+
- `security-audit` is optional. `--all` installs it with `image-to-code`. It runs when they ask for a security review. The full audit runs only when they ask for an audit or a pen-test. People who already ran `init` get it from this release with `npx longbeard update --all`.
|
|
11
|
+
|
|
12
|
+
## 0.1.0 — 2026-10-20
|
|
13
|
+
|
|
14
|
+
First public release.
|
|
15
|
+
|
|
16
|
+
- `init`, `update`, `list`, `add`, and `remove`.
|
|
17
|
+
- The kit in `beard.json`, the `AGENTS.md` block, and the two skills written here: `design-reference-hunt` and `design-md`.
|
|
18
|
+
- `init` asks which agents. `--yes` uses Cursor and Claude Code.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Long Beard contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,87 @@
|
|
|
1
|
-
|
|
1
|
+
<div align="center">
|
|
2
|
+
<img src="logo.png" alt="Long Beard" width="350">
|
|
3
|
+
<h1>Long Beard</h1>
|
|
4
|
+
<p><strong>Designs like an Art director. Codes like a senior.</strong></p>
|
|
5
|
+
</div>
|
|
2
6
|
|
|
3
|
-
|
|
7
|
+
You show him a ticket. He has been shipping longer than the ticket has existed.
|
|
8
|
+
He keeps a short kit, and he drops a piece the day it stops earning its place.
|
|
9
|
+
|
|
10
|
+
Long Beard is a starting point for the agents you already use — Cursor, Claude Code, and the rest.
|
|
11
|
+
One block in `AGENTS.md`, and a short list of skills, so the code stays small and the page is actually designed.
|
|
12
|
+
Two commands: `init`, then later `update`.
|
|
13
|
+
|
|
14
|
+
It is not an agent runtime.
|
|
15
|
+
It is not a marketplace.
|
|
16
|
+
It does not replace the commands you already use, or the skills you add yourself.
|
|
17
|
+
It is a base. You keep going from here.
|
|
18
|
+
|
|
19
|
+
## The kit
|
|
20
|
+
|
|
21
|
+
Two of these are written here, in [`skills/`](skills/). `init` copies them from this package. The others are installed from the people who wrote them, and `update` pulls a fresh copy of those.
|
|
22
|
+
|
|
23
|
+
Writing stays small, and a risky change is named before it is built. A page follows a `DESIGN.md` or a Figma file when one exists. With neither, hunt writes the reference board and taste designs the page, with real pictures, and checks it in a browser. Asking to hunt references still works after a direction or a design exists. That pass is its own suggestion set and does not replace the board.
|
|
24
|
+
|
|
25
|
+
| Skill | What it is for | Author |
|
|
26
|
+
| --- | --- | --- |
|
|
27
|
+
| [ponytail](https://github.com/DietrichGebert/ponytail) | The smallest change that finishes the job, and a reply you can read once. Includes ponytail-review, ponytail-audit, and ponytail-debt | DietrichGebert |
|
|
28
|
+
| [premortem](https://github.com/joetawil7/first-pass/tree/main/skills/premortem) | Before writing, finds where the change will break by checking the real code | GeorgeT |
|
|
29
|
+
| [design-reference-hunt](skills/design-reference-hunt/SKILL.md) | When there is no design direction, searches award-winning sites and galleries such as Dribbble, and writes a board for the design that follows. A later request — a view, a button, new ideas, a double-check — writes a separate suggestion set and leaves that board in place | Long Beard |
|
|
30
|
+
| [design-taste-frontend](https://github.com/Leonxlnx/taste-skill) | Designs websites and app screens, with real pictures, and checks them in a browser. An existing direction wins over a look it would invent | Leonxlnx |
|
|
31
|
+
| [animate](https://github.com/emilkowalski/skills/tree/main/skills/animate) | Builds one control or transition they asked to animate. A page already being designed keeps that skill’s motion | emilkowalski |
|
|
32
|
+
| [figma-design-to-code](https://github.com/figma/mcp-server-guide/tree/main/skills/figma-design-to-code) | Turns a Figma file into code in the project's stack, reusing components that already exist. Needs the Figma connection | Figma |
|
|
33
|
+
| [image-to-code](https://github.com/Leonxlnx/imagegen-skills/tree/main/skills/image-to-code) | Optional, with `--all`. Generates design images, then builds the page to match them | Leonxlnx |
|
|
34
|
+
| [security-audit](https://github.com/cloudflare/security-audit-skill/tree/main/skills/security-audit) | Optional, with `--all`. Reviews a trust boundary when you ask. The full audit runs only when you ask for an audit or a pen-test | Cloudflare |
|
|
35
|
+
| [web-design-guidelines](https://github.com/vercel-labs/agent-skills/tree/main/skills/web-design-guidelines) | Reviews the UI against interface and accessibility rules, when you ask | Vercel |
|
|
36
|
+
| [design-md](skills/design-md/SKILL.md) | The installed project's `DESIGN.md` wins. With no file and no Figma, a new page goes to hunt instead of an invented look. A brand file is written only when they ask | Long Beard |
|
|
37
|
+
|
|
38
|
+
A skill for one stack belongs in the project that uses that stack. The list `init` installs is [`beard.json`](beard.json). A skill written here stays in this repository. Do not copy `beard.json` into your project. That would fork the kit.
|
|
39
|
+
|
|
40
|
+
## Install
|
|
41
|
+
|
|
42
|
+
In a project:
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
npm install --save-dev @jonandev/longbeard
|
|
46
|
+
npx longbeard init
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
`init` installs the list, writes the `AGENTS.md` block, and records it in `beard-lock.json`. In a terminal it asks which agents. When it cannot ask, it installs for Cursor and Claude Code. `--yes` skips the question. `--agent cursor` sets them (repeat it to add another). `--global` installs for every project on this machine. `--all` includes the optional skills.
|
|
50
|
+
|
|
51
|
+
## Update
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
npx longbeard update
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
That uses the Long Beard already installed. It adds skills that are new in that copy, rewrites the `AGENTS.md` block, and refreshes skills this command installed. Skills written by other people are refreshed from their repositories. The skills in this repository stay with the version you installed.
|
|
58
|
+
A skill you edited stays, unless you pass `--force`. Skills you installed on your own are left alone.
|
|
59
|
+
|
|
60
|
+
To take a newer Long Beard, install it, then update:
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
npm install --save-dev @jonandev/longbeard@latest
|
|
64
|
+
npx longbeard update
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
`npx skills update` refreshes a skill file too. It does not add a skill that is new to this list, and it does not rewrite the note. For that, install the newer Long Beard, then run `npx longbeard update`.
|
|
68
|
+
|
|
69
|
+
## Skip or add
|
|
70
|
+
|
|
71
|
+
Skip one:
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
npx longbeard remove web-design-guidelines
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
Add one:
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
npx longbeard add https://github.com/someone/skills --skill their-skill --author TheirName --why "One sentence."
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
That writes `beard.local.json`. Commit it if clones of this repo should get the extra. `npx longbeard list` shows the kit, then what this project added or skipped.
|
|
84
|
+
|
|
85
|
+
## Releases
|
|
86
|
+
|
|
87
|
+
Each version has notes in [CHANGELOG.md](CHANGELOG.md). The same number is the git tag, with a `v` in front. `npx longbeard --version` prints the copy in this project. While the version is `0.x`, a new minor can change the kit.
|
package/beard.json
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
{
|
|
2
|
+
"agents": ["cursor", "claude-code"],
|
|
3
|
+
"items": [
|
|
4
|
+
{
|
|
5
|
+
"name": "ponytail",
|
|
6
|
+
"author": "DietrichGebert",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"source": "https://github.com/DietrichGebert/ponytail/tree/main/skills",
|
|
9
|
+
"when": "Building or fixing",
|
|
10
|
+
"why": "The smallest change that finishes the job. Leave validation, error handling, security, and accessibility in place."
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "ponytail-review",
|
|
14
|
+
"author": "DietrichGebert",
|
|
15
|
+
"license": "MIT",
|
|
16
|
+
"source": "https://github.com/DietrichGebert/ponytail/tree/main/skills",
|
|
17
|
+
"when": "A diff",
|
|
18
|
+
"why": "Read it like someone who gets paged."
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "ponytail-audit",
|
|
22
|
+
"author": "DietrichGebert",
|
|
23
|
+
"license": "MIT",
|
|
24
|
+
"source": "https://github.com/DietrichGebert/ponytail/tree/main/skills",
|
|
25
|
+
"when": "The whole repo",
|
|
26
|
+
"why": "That same pass, over every file."
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "ponytail-debt",
|
|
30
|
+
"author": "DietrichGebert",
|
|
31
|
+
"license": "MIT",
|
|
32
|
+
"source": "https://github.com/DietrichGebert/ponytail/tree/main/skills",
|
|
33
|
+
"when": "Shortcuts you meant to come back to",
|
|
34
|
+
"why": "Collect the limits you marked."
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "premortem",
|
|
38
|
+
"author": "GeorgeT",
|
|
39
|
+
"license": "MIT",
|
|
40
|
+
"source": "https://github.com/joetawil7/first-pass/tree/main/skills",
|
|
41
|
+
"when": "A change that touches data, money, jobs, or what a person sees",
|
|
42
|
+
"why": "Name where it can break before you write. A small change gets a short answer."
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "design-reference-hunt",
|
|
46
|
+
"author": "Long Beard",
|
|
47
|
+
"license": "MIT",
|
|
48
|
+
"source": "local",
|
|
49
|
+
"when": "A page with no official look (no DESIGN.md, no Figma, no board), or they asked to hunt references",
|
|
50
|
+
"why": "Ask once for a Figma file. No direction: look widely, then keep, and write `.design/board.md`. Scroll and screenshot only the keeps. Another business lends a layout or a component only, not its type or its colours, and only if it still fits this topic. Ask once which of the closest cards should lead, then write the cards and a short Read this. Before looking, ask once for optional ideas to search. A later hunt (a view, a control, new ideas, a double-check) is a suggestion set in `.design/hunts/<slug>/`. It does not replace the board, DESIGN.md, or a Figma file."
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"name": "design-taste-frontend",
|
|
54
|
+
"author": "Leonxlnx",
|
|
55
|
+
"license": "MIT",
|
|
56
|
+
"source": "https://github.com/Leonxlnx/taste-skill",
|
|
57
|
+
"when": "A page with no design yet",
|
|
58
|
+
"why": "Do not deal this skill’s references, and do not run draw. No official look is hunt: wait for `.design/board.md`. Those cards are the references. Build from them. The control a card describes is the control. Do not add a filled button the card does not show. Inspect still."
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"name": "animate",
|
|
62
|
+
"author": "emilkowalski",
|
|
63
|
+
"license": "MIT",
|
|
64
|
+
"source": "https://github.com/emilkowalski/skills/tree/main/skills/animate",
|
|
65
|
+
"when": "They asked to animate a control or a transition",
|
|
66
|
+
"why": "A page design-taste-frontend is building keeps that skill’s motion. Decide this one move, then build it."
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "figma-design-to-code",
|
|
70
|
+
"author": "Figma",
|
|
71
|
+
"license": "see repository",
|
|
72
|
+
"source": "https://github.com/figma/mcp-server-guide/tree/main/skills",
|
|
73
|
+
"when": "A Figma file or link",
|
|
74
|
+
"why": "A designer handed it over. Needs the Figma connection. Reuse this project's components."
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"name": "image-to-code",
|
|
78
|
+
"author": "Leonxlnx",
|
|
79
|
+
"license": "MIT",
|
|
80
|
+
"source": "https://github.com/Leonxlnx/imagegen-skills",
|
|
81
|
+
"optional": true,
|
|
82
|
+
"when": "A picture you already have",
|
|
83
|
+
"why": "Build the page from that picture."
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"name": "security-audit",
|
|
87
|
+
"author": "Cloudflare",
|
|
88
|
+
"license": "MIT",
|
|
89
|
+
"source": "https://github.com/cloudflare/security-audit-skill/tree/main/skills/security-audit",
|
|
90
|
+
"optional": true,
|
|
91
|
+
"when": "A security review you asked for",
|
|
92
|
+
"why": "Look for a broken trust boundary. The full audit runs only when you ask for an audit or a pen-test."
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"name": "web-design-guidelines",
|
|
96
|
+
"author": "Vercel",
|
|
97
|
+
"license": "see repository",
|
|
98
|
+
"source": "https://github.com/vercel-labs/agent-skills/tree/main/skills/web-design-guidelines",
|
|
99
|
+
"when": "A UI review you asked for",
|
|
100
|
+
"why": "Accessibility and interface rules."
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"name": "design-md",
|
|
104
|
+
"author": "Long Beard",
|
|
105
|
+
"license": "MIT",
|
|
106
|
+
"source": "local",
|
|
107
|
+
"when": "The look of this project",
|
|
108
|
+
"why": "Follow DESIGN.md when it exists. A missing file plus “design this page” is hunt, not a question."
|
|
109
|
+
}
|
|
110
|
+
]
|
|
111
|
+
}
|