Skip to content

Commit efa3bd9

Browse files
gold-ak47claude
andcommitted
chore: update repo URLs to treble-app/cli and refresh CLAUDE.md
Repository renamed from treble-app/treble-cli to treble-app/cli. Updated all package.json repository URLs and refreshed CLAUDE.md with current commands, architecture, and ~/.treble/ config path. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent be71004 commit efa3bd9

6 files changed

Lines changed: 33 additions & 22 deletions

File tree

CLAUDE.md

Lines changed: 27 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,45 @@
1-
# treble-cli
1+
# treble
22

3-
Rust CLI that syncs Figma designs to disk. The Claude plugin provides the intelligence — analysis prompts, build loop, review cycle.
3+
Figma to production code. Syncs your design to disk, analyzes it with AI, builds every component, and visually verifies the result — all from your terminal.
44

55
## CLI Commands
66

77
| Command | What it does |
88
|---------|-------------|
9-
| `treble login` | Store Figma token (PAT, device flow, or `--figma-token` flag) |
9+
| `treble login` | Store Figma token (PAT or `--pat` flag) |
10+
| `treble status` | Check auth + project state (`--json` for agents) |
1011
| `treble init --figma <url>` | Scaffold `.treble/` in current project |
1112
| `treble sync` | Pull Figma file → `.treble/figma/` (deterministic, git-friendly) |
1213
| `treble tree "Frame"` | Print layer tree (offline, reads disk) |
1314
| `treble show "Node" --frame "Frame"` | Render a Figma node screenshot (calls API) |
15+
| `treble extract` | Extract image assets from synced frames |
1416

1517
## Plugin Commands (the brain)
1618

1719
| Command | What it does |
1820
|---------|-------------|
19-
| `/treble:plan` | Claude analyzes Figma data → writes `analysis.json` + `build-state.json` |
20-
| `/treble:dev` | Claude enters build loop: code → visual review → architectural review → iterate |
21-
| `/treble:compare` | Claude compares implementation vs Figma reference |
21+
| `/treble:sync` | Preflight checks, smart frame selection, sync Figma to disk |
22+
| `/treble:plan` | Analyze Figma data → component inventory, design tokens, build order |
23+
| `/treble:dev` | Classify design → pick stack → scaffold → build loop with visual review |
24+
| `/treble:cms` | Wire up CMS editability (Sanity, Prismic, or WordPress) |
25+
| `/treble:compare` | Visual comparison between Figma reference and implementation |
2226

23-
The CLI is just the hands (Figma data access). The plugin commands are the brain (analysis + build orchestration).
27+
The CLI is the hands (Figma data access). The plugin commands are the brain (analysis + build orchestration).
2428

2529
## Architecture
2630

2731
```
2832
src/
2933
├── main.rs # clap CLI, 5 subcommands
30-
├── config.rs # Global (~/.treble-cli/) + project (.treble/) config
34+
├── config.rs # Global (~/.treble/) + project (.treble/) config
3135
├── commands/
32-
│ ├── login.rs # Figma token storage (3 modes: device, PAT, flag)
36+
│ ├── login.rs # Figma token storage (PAT mode)
37+
│ ├── status.rs # Auth + project state checker (--json for agents)
3338
│ ├── init.rs # Project scaffolding
3439
│ ├── sync.rs # Figma → disk sync (deterministic, orphan cleanup)
3540
│ ├── tree.rs # Layer tree printer (colored, with visual props)
36-
│ └── show.rs # On-demand node rendering via Figma images API
41+
│ ├── show.rs # On-demand node rendering via Figma images API
42+
│ └── extract.rs # Image asset extraction
3743
└── figma/
3844
├── client.rs # Figma REST API (files, nodes, images)
3945
└── types.rs # API types + FlatNode + FigmaManifest
@@ -42,12 +48,17 @@ src/
4248
├── marketplace.json # Plugin registry
4349
├── CLAUDE.md # Plugin context (injected into Claude's awareness)
4450
├── hooks.json # SessionStart check
45-
└── commands/
46-
├── plan.md # Analysis system prompt — full design analysis workflow
47-
├── dev.md # Build loop — code → visual review → arch review → iterate
48-
├── compare.md # Visual comparison prompt
49-
├── tree.md # Layer exploration
50-
└── show.md # Node rendering
51+
├── commands/
52+
│ ├── sync.md # Smart Figma sync with preflight + frame selection
53+
│ ├── plan.md # Analysis — design tokens, component inventory, build order
54+
│ ├── dev.md # Build router — classify, pick stack, scaffold, hand off
55+
│ ├── cms.md # CMS wiring — compatibility-gated options
56+
│ ├── compare.md # Visual comparison prompt
57+
│ ├── tree.md # Layer exploration
58+
│ └── show.md # Node rendering
59+
└── skills/
60+
├── dev-shadcn.md # Build loop for React + shadcn/ui targets
61+
└── dev-basecoat-wp.md # Build loop for WordPress + Basecoat targets
5162
```
5263

5364
## Dev

npm/darwin-arm64/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"license": "MIT",
66
"repository": {
77
"type": "git",
8-
"url": "git+https://github.com/treble-app/treble-cli.git"
8+
"url": "git+https://github.com/treble-app/cli.git"
99
},
1010
"os": [
1111
"darwin"

npm/darwin-x64/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"license": "MIT",
66
"repository": {
77
"type": "git",
8-
"url": "git+https://github.com/treble-app/treble-cli.git"
8+
"url": "git+https://github.com/treble-app/cli.git"
99
},
1010
"os": [
1111
"darwin"

npm/linux-arm64/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"license": "MIT",
66
"repository": {
77
"type": "git",
8-
"url": "git+https://github.com/treble-app/treble-cli.git"
8+
"url": "git+https://github.com/treble-app/cli.git"
99
},
1010
"os": [
1111
"linux"

npm/linux-x64/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"license": "MIT",
66
"repository": {
77
"type": "git",
8-
"url": "git+https://github.com/treble-app/treble-cli.git"
8+
"url": "git+https://github.com/treble-app/cli.git"
99
},
1010
"os": [
1111
"linux"

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
"license": "MIT",
77
"repository": {
88
"type": "git",
9-
"url": "git+https://github.com/treble-app/treble-cli.git"
9+
"url": "git+https://github.com/treble-app/cli.git"
1010
},
1111
"homepage": "https://treble.build",
1212
"bugs": {
13-
"url": "https://github.com/treble-app/treble-cli/issues"
13+
"url": "https://github.com/treble-app/cli/issues"
1414
},
1515
"keywords": [
1616
"cli",

0 commit comments

Comments
 (0)