better-design 0.36.0 → 0.38.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/README.md +37 -6
- package/dist/index.js +21920 -20416
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -23,6 +23,8 @@ Install links can record where you found Better Design with `npx better-design -
|
|
|
23
23
|
Supported source labels are `docs`, `github`, `claude_directory`, `openai_catalog`, `campaign`, and `unknown` (the default).
|
|
24
24
|
The installer sends this label when creating a free key and records npm as the install method. It does not infer your referral source or active client from the editors installed on your computer.
|
|
25
25
|
|
|
26
|
+
Rerunning setup preserves existing connections. If setup reports a manual step, finish it first. Then ask your agent to list Better Design's design systems and confirm that a tool returns a result.
|
|
27
|
+
|
|
26
28
|
## Try it
|
|
27
29
|
|
|
28
30
|
Ask your agent:
|
|
@@ -60,10 +62,38 @@ the tools store nothing.
|
|
|
60
62
|
|
|
61
63
|
## Share your team's rules with every agent
|
|
62
64
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
Your team's rules are one Markdown document of up to 32 KB. `get-team-rules`
|
|
66
|
+
gives them to any agent that uses your key, `get-review-rules` checks the work
|
|
67
|
+
against them, and `check-comprehension` fails copy that uses a word they ban.
|
|
68
|
+
|
|
69
|
+
When you have no rules yet, `get-team-rules` hands your agent an outline. The
|
|
70
|
+
agent drafts the rules with you from your project and your live site, and
|
|
71
|
+
`set-team-rules` saves them once you approve the draft. You can also paste them
|
|
72
|
+
into [Team rules](https://better-design.com/dashboard/settings/team-rules).
|
|
73
|
+
|
|
74
|
+
When you correct a choice your agent made, and the correction should hold for
|
|
75
|
+
every build, `propose-team-rule` turns it into one proposed rule. It waits on
|
|
76
|
+
the Team rules page, and no agent follows it until you approve it there.
|
|
77
|
+
|
|
78
|
+
A client project keeps its own rules beside its design system: one guidelines
|
|
79
|
+
document, a use, never or pairing rule for each part or value, a ban for the
|
|
80
|
+
whole brand, and specs on a screen or on one part of it. Pass `projectId` to
|
|
81
|
+
`set-team-rules` to save one piece. Pass `projectId`, `screen` and `parts` to
|
|
82
|
+
`get-team-rules`, and the agent gets only what that screen needs.
|
|
83
|
+
|
|
84
|
+
To reach agents that never call these tools, a local model included, run this
|
|
85
|
+
at the root of your repository:
|
|
86
|
+
|
|
87
|
+
```bash
|
|
88
|
+
npx better-design rules
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
It writes your team rules, the components your review settings name, and the
|
|
92
|
+
AI-feature rules in short into `AGENTS.md`, and into `CLAUDE.md` when the
|
|
93
|
+
repository keeps one. Every agent reads that file before each task. The
|
|
94
|
+
command shows your team rules and asks before it writes them; in a script, add
|
|
95
|
+
`--yes` once a person has read them. Commit the file, and run the command again
|
|
96
|
+
when the rules change.
|
|
67
97
|
|
|
68
98
|
## Report a bug or a missing feature
|
|
69
99
|
|
|
@@ -77,8 +107,9 @@ stored.
|
|
|
77
107
|
|
|
78
108
|
A key the installer creates for you is free for a limited number of queries.
|
|
79
109
|
To keep it on a free account, open the claim link it gives you and sign in.
|
|
80
|
-
The page shows a line with a code; paste that line into your AI tool
|
|
81
|
-
`confirm-claim`
|
|
110
|
+
The page shows a line with a code; paste that line into your AI tool.
|
|
111
|
+
`confirm-claim` first names the account the key would join and asks you to
|
|
112
|
+
confirm it, then links the key and emails that account. Only the tool that
|
|
82
113
|
holds the key can confirm it, and the code works for ten minutes.
|
|
83
114
|
|
|
84
115
|
## Review UI code
|