designagent-cli 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/README.md ADDED
@@ -0,0 +1,52 @@
1
+ # designagent
2
+
3
+ **The design brain Claude Code needs — web, mobile, any canvas, any framework.**
4
+
5
+ ```bash
6
+ npx designagent init
7
+ ```
8
+
9
+ Right now, Claude Code opens knowing nothing about your design — no system, no tokens, no taste. `designagent` fixes that in 60 seconds. One command drops three files into your project and Claude Code suddenly understands your design system the way a senior design engineer would on day one.
10
+
11
+ ## What it generates
12
+
13
+ | File | The question it answers | Owned by |
14
+ |---|---|---|
15
+ | `DESIGN.md` | **What** are the exact values? | [`@google/design.md`](https://github.com/google-labs-code/design.md) open spec — machine-readable, linted tokens |
16
+ | `CLAUDE.md` | **How** do we build? | designagent — craft principles, framework conventions, a11y rules, agent instructions |
17
+ | `DECISIONS.md` | **Why** is it this way? | designagent — a living log of design decisions |
18
+
19
+ > `DESIGN.md` = the what · `CLAUDE.md` = the how · `DECISIONS.md` = the why.
20
+
21
+ ## The init flow
22
+
23
+ `designagent init` asks three questions:
24
+
25
+ 1. **Canvas** — Figma · Pencil · OpenPencil · None
26
+ 2. **Design system** — Tailwind · shadcn/ui · Custom
27
+ 3. **Framework(s)** — React · Vue · Svelte · React Native · SwiftUI · Jetpack Compose *(multi-select for monorepos)*
28
+
29
+ Then it generates all three files, lints `DESIGN.md` with `@google/design.md`, wires up `.mcp.json` for your canvas, and installs skills to `~/.designagent/skills/`.
30
+
31
+ ## Why it's different
32
+
33
+ - **Web + native mobile from day one** — the only design-agent setup that covers SwiftUI and Jetpack Compose, not just web.
34
+ - **Canvas-agnostic** — sits *above* Figma, Pencil, and OpenPencil. Figma MCP gives Claude access; designagent gives Claude intelligence.
35
+ - **Built on Google's open token spec** — `DESIGN.md` is a real, linted, diffable, exportable standard, not a bespoke format.
36
+ - **Skills are just `.md` files** — framework-aware, community-contributable. Like dotfiles for design agents.
37
+
38
+ ## Tokens, everywhere
39
+
40
+ `DESIGN.md` exports to real targets via the Google CLI:
41
+
42
+ ```bash
43
+ npx @google/design.md export --format css-tailwind DESIGN.md # Tailwind v4 @theme
44
+ npx @google/design.md export --format dtcg DESIGN.md # W3C Design Tokens
45
+ npx @google/design.md lint DESIGN.md # validate
46
+ ```
47
+
48
+ For SwiftUI and Jetpack Compose, the `design-to-code` skill generates the token bridge (`DesignTokens.swift` / `Theme.kt`) directly from `DESIGN.md`.
49
+
50
+ ## License
51
+
52
+ MIT · Built by Sherizan Sheikh · [designagent.dev](https://designagent.dev)