@jonandev/longbeard 0.0.0-stage → 0.1.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 +22 -0
- package/LICENSE +21 -0
- package/README.md +80 -2
- package/beard.json +94 -0
- package/bin/long-beard.js +750 -0
- package/package.json +27 -4
- package/skills/design-md/SKILL.md +21 -0
- package/skills/design-reference-hunt/SKILL.md +161 -0
- package/skills/design-reference-hunt/references/quality.md +45 -0
- package/skills/design-reference-hunt/references/shots.md +38 -0
- package/skills/design-reference-hunt/scripts/capture.mjs +248 -0
package/AGENTS.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
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): design-reference-hunt. Ask once for a Figma file. No direction: look widely, then keep. 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. A later section: keep 10.
|
|
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
|
+
- A Figma file or link: figma-design-to-code. A designer handed it over. Needs the Figma connection. Reuse this project's components.
|
|
17
|
+
- A UI review you asked for: web-design-guidelines. Accessibility and interface rules.
|
|
18
|
+
- The look of this project: design-md. Follow DESIGN.md when it exists.
|
|
19
|
+
|
|
20
|
+
A normal change can be ponytail and a short premortem. That is still a small set.
|
|
21
|
+
|
|
22
|
+
Write so a person can use the reply in one read. End with what you did not check.
|
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,81 @@
|
|
|
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
|
+
## Install
|
|
20
|
+
|
|
21
|
+
In a project, from GitHub:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
npm install --save-dev github:jonanderdev/longbeard
|
|
25
|
+
npx longbeard init
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
`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 skill.
|
|
29
|
+
|
|
30
|
+
The skills written in this repository ship inside the package, including [design-reference-hunt](skills/design-reference-hunt/SKILL.md). `init` copies them with the rest. There is no separate install for that skill. The same package is what npm installs once it is published.
|
|
31
|
+
|
|
32
|
+
## Update
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
npx longbeard update
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
That brings this project up to the Long Beard already installed: new skills, a fresh copy of the ones this command installed, and the `AGENTS.md` block.
|
|
39
|
+
A skill you edited stays, unless you pass `--force`. Skills you installed on your own are left alone.
|
|
40
|
+
To get a newer Long Beard, run the install line again, then update.
|
|
41
|
+
|
|
42
|
+
`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 latest Long Beard and run `npx longbeard update`.
|
|
43
|
+
|
|
44
|
+
## This project
|
|
45
|
+
|
|
46
|
+
The kit lives here. A skill we write stays in this repository, under `skills/`. It is not split into its own package when it grows. Growing the kit is a change here. A project can skip a piece, or add one that belongs only to that work. Do not copy `beard.json` into the project. That would fork the kit.
|
|
47
|
+
|
|
48
|
+
Skip one:
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
npx longbeard remove web-design-guidelines
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Add one:
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
npx longbeard add https://github.com/someone/skills --skill their-skill --author TheirName --why "One sentence."
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
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.
|
|
61
|
+
|
|
62
|
+
## The kit
|
|
63
|
+
|
|
64
|
+
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 `npx longbeard update` pulls a fresh copy of those.
|
|
65
|
+
|
|
66
|
+
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. A new piece can still hunt references without replacing that direction.
|
|
67
|
+
|
|
68
|
+
| Skill | What it is for | Author |
|
|
69
|
+
| --- | --- | --- |
|
|
70
|
+
| [ponytail](https://github.com/DietrichGebert/ponytail) | The smallest change that finishes the job, and a reply you can read once | DietrichGebert |
|
|
71
|
+
| [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 |
|
|
72
|
+
| [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 new section or component can still get references when a direction already exists | Long Beard |
|
|
73
|
+
| [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 |
|
|
74
|
+
| [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 |
|
|
75
|
+
| [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 |
|
|
76
|
+
| [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 |
|
|
77
|
+
| [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 |
|
|
78
|
+
|
|
79
|
+
A skill for one stack belongs in the project that uses that stack. The list `init` installs is [`beard.json`](beard.json).
|
|
80
|
+
|
|
81
|
+
Building Long Beard itself: read [`PRODUCT.md`](PRODUCT.md) first.
|
package/beard.json
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
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)",
|
|
50
|
+
"why": "Ask once for a Figma file. No direction: look widely, then keep. 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. A later section: keep 10."
|
|
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": "figma-design-to-code",
|
|
62
|
+
"author": "Figma",
|
|
63
|
+
"license": "see repository",
|
|
64
|
+
"source": "https://github.com/figma/mcp-server-guide/tree/main/skills",
|
|
65
|
+
"when": "A Figma file or link",
|
|
66
|
+
"why": "A designer handed it over. Needs the Figma connection. Reuse this project's components."
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "image-to-code",
|
|
70
|
+
"author": "Leonxlnx",
|
|
71
|
+
"license": "MIT",
|
|
72
|
+
"source": "https://github.com/Leonxlnx/imagegen-skills",
|
|
73
|
+
"optional": true,
|
|
74
|
+
"when": "A picture you already have",
|
|
75
|
+
"why": "Build the page from that picture."
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"name": "web-design-guidelines",
|
|
79
|
+
"author": "Vercel",
|
|
80
|
+
"license": "see repository",
|
|
81
|
+
"source": "https://github.com/vercel-labs/agent-skills/tree/main/skills/web-design-guidelines",
|
|
82
|
+
"when": "A UI review you asked for",
|
|
83
|
+
"why": "Accessibility and interface rules."
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"name": "design-md",
|
|
87
|
+
"author": "Long Beard",
|
|
88
|
+
"license": "MIT",
|
|
89
|
+
"source": "local",
|
|
90
|
+
"when": "The look of this project",
|
|
91
|
+
"why": "Follow DESIGN.md when it exists. A missing file plus “design this page” is hunt, not a question."
|
|
92
|
+
}
|
|
93
|
+
]
|
|
94
|
+
}
|