figura-cli 0.6.0 → 0.8.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 CHANGED
@@ -18,6 +18,13 @@ npx figura-cli --help
18
18
 
19
19
  The binary is `figura`.
20
20
 
21
+ Update later with one command — it bumps the CLI (and the bundled `figura mcp`
22
+ server) to the latest and reinstalls the skills to match:
23
+
24
+ ```bash
25
+ figura update # detects bun vs npm; add --dry-run to preview
26
+ ```
27
+
21
28
  ## Authentication
22
29
 
23
30
  ```bash
@@ -59,19 +66,37 @@ Now every `figura`/`fig`/`brand` command (and `figura mcp` — so Claude Code to
59
66
  resolves the team from the nearest `.figura/config.json`. The file holds a live
60
67
  token, so add `.figura/` to the repo's `.gitignore`.
61
68
 
62
- ## Claude Code skill
69
+ ## Brand set it from your repo, no UI
63
70
 
64
- Install the bundled **`/fig`** skill so Claude Code can generate on-brand figs in
65
- your team from any project:
71
+ Figs render against your team's **brand profile**. Set it from the CLI instead of
72
+ the figura.so UI:
66
73
 
67
74
  ```bash
68
- figura skill install # ~/.claude/skills/figura-fig (global)
75
+ # pipe a tokens block (colors+roles, type, spacing, voice) — exactly what /fig reads
76
+ cat tokens.txt | figura brand set --name "Acme" --description "a SaaS analytics dashboard" --tokens -
77
+ figura brand # verify (shows name / product / token size)
78
+ ```
79
+
80
+ Omitted fields keep their saved value — a name-only `brand set` won't wipe your
81
+ tokens. Best of all, let Claude Code build the whole profile from your codebase —
82
+ see the **figura-brand** skill below ("introduce my repo to Figura").
83
+
84
+ ## Claude Code skills
85
+
86
+ Install the bundled skills so Claude Code can work with Figura from any project:
87
+
88
+ ```bash
89
+ figura skill install # → ~/.claude/skills (global)
69
90
  figura skill install --project # → ./.claude/skills (this repo only)
70
91
  ```
71
92
 
72
- Re-run it after upgrading `figura-cli` to update the skill — the skill version is
73
- bundled with the CLI, so they stay in lockstep. Then, in Claude Code, just ask it
74
- to mock up a screen or build a fig.
93
+ This installs both:
94
+ - **`/fig`** (figura-fig) generate on-brand, device-framed HTML figs in your team.
95
+ - **figura-brand** "introduce my repo to Figura": Claude scans the repo's design
96
+ system (tokens, brand docs, app name) and sets your team's brand profile for you.
97
+
98
+ Re-run after upgrading `figura-cli` to update them — the skills are bundled with
99
+ the CLI, so they stay in lockstep.
75
100
 
76
101
  ## MCP server
77
102