@its-thepoe/design-and-refine 1.0.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/SKILL.md +63 -0
- package/package.json +13 -0
- package/reference.md +62 -0
package/SKILL.md
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: design-and-refine
|
|
3
|
+
description: >-
|
|
4
|
+
Runs the 0x Designer "Design & Refine" workflow: multiple real UI variations,
|
|
5
|
+
side-by-side comparison at /__design_lab, feedback-driven synthesis, then
|
|
6
|
+
DESIGN_PLAN.md + DESIGN_MEMORY.md. Use when designing or redesigning a
|
|
7
|
+
component/page, exploring layout/density options, unblocking direction,
|
|
8
|
+
or when the user says design lab, UI variations, 0x designer, design-and-refine,
|
|
9
|
+
or kylezantos/0x-designer-plugin. Prefer a quick mock or single-shot tweak
|
|
10
|
+
when they only need one small change. Requires a running dev server and a
|
|
11
|
+
supported web stack (see reference.md).
|
|
12
|
+
argument-hint: "[component or page name — optional]"
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
# Design & Refine (0x Designer workflow)
|
|
16
|
+
|
|
17
|
+
**Source:** [kylezantos/0x-designer-plugin](https://github.com/kylezantos/0x-designer-plugin) (Claude Code plugin; originates from [0xdesign](https://github.com/0xdesign) “Design and Refine”).
|
|
18
|
+
|
|
19
|
+
**What you get:** Several **distinct UI implementations** in code (not static mockups), a **comparison route** at `/__design_lab`, **iterative merge** from user feedback, then **persistent** `DESIGN_PLAN.md` and `DESIGN_MEMORY.md`. Temp dirs/routes are removed after finalize.
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## Choose path
|
|
24
|
+
|
|
25
|
+
### A) Claude Code — official plugin (full automation)
|
|
26
|
+
|
|
27
|
+
User must use **Claude Code** with the marketplace plugin (not Cursor-only):
|
|
28
|
+
|
|
29
|
+
1. `/plugin marketplace add 0xdesign/design-plugin` — if that fails, use the repo they actually track: see [reference.md](reference.md#upstream-repos-and-marketplace).
|
|
30
|
+
2. `/plugin install design-and-refine@design-plugins`
|
|
31
|
+
3. Start: `/design-and-refine:start` or `/design-and-refine:start $ARGUMENTS`
|
|
32
|
+
4. Cleanup if stuck: `/design-and-refine:cleanup`
|
|
33
|
+
|
|
34
|
+
Point the user here when they have Claude Code; do not pretend Cursor runs those slash commands.
|
|
35
|
+
|
|
36
|
+
### B) Cursor / other IDEs — manual playbook (this session)
|
|
37
|
+
|
|
38
|
+
When the user is in **Cursor** (or no plugin), **emulate the workflow**:
|
|
39
|
+
|
|
40
|
+
1. **Preflight** — Detect framework (Next, Vite, Remix, Astro, CRA, etc.) and styling (Tailwind, CSS modules, MUI, Chakra, Ant Design, styled-components, Emotion) from the repo. Read tokens from `tailwind.config.*`, theme files, CSS variables.
|
|
41
|
+
2. **Brief** — Short interview: new vs redesign, component vs page, pain points, inspiration (e.g. “Linear density”, “Stripe clarity”), primary user tasks.
|
|
42
|
+
3. **Generate** — Create **~5 meaningfully different** variants (hierarchy, layout model, density, interaction pattern, visual weight). Use **their** design system; no random one-off palette unless the project does.
|
|
43
|
+
4. **Design Lab route** — Add a dev route so all variants render **side by side** (same pattern as plugin: `app/__design_lab` or `pages/__design_lab` depending on router). Document the URL (port from their dev server, often `localhost:3000/__design_lab`).
|
|
44
|
+
5. **User review** — User keeps **dev server running**; they compare in browser. Collect feedback: per-variant likes, or element-level notes if they paste structured feedback.
|
|
45
|
+
6. **Synthesize** — Produce one refined direction combining what worked; iterate rounds until they say stop.
|
|
46
|
+
7. **Finalize** — Write **`DESIGN_PLAN.md`** (implementation steps, a11y checks, testing notes) and **`DESIGN_MEMORY.md`** (style decisions for future sessions). Remove **temporary** paths (see [reference.md](reference.md#temp-vs-persistent-files)).
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
## Invariants
|
|
51
|
+
|
|
52
|
+
- **Never** leave the repo full of orphaned lab routes and `.claude-design` junk after the user says they are **done** — clean temp artifacts as part of finalize (match plugin behavior).
|
|
53
|
+
- **Do not** start the dev server in a blocking way unless the user asks; assume they run it.
|
|
54
|
+
- Variations must be **runnable code** in their stack, not screenshots-only.
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## Handoffs
|
|
59
|
+
|
|
60
|
+
- **Tiny change** (one button, copy tweak) → skip full lab; edit inline.
|
|
61
|
+
- **No web UI** (CLI-only, native app) → say this workflow is for **web** frontends; offer a lighter design doc instead.
|
|
62
|
+
|
|
63
|
+
Full framework list, temp paths, tips, and upstream links: [reference.md](reference.md).
|
package/package.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@its-thepoe/design-and-refine",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Agent Skill: Design & Refine / 0x Designer workflow (manual playbook + Design Lab guidance).",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"keywords": ["agent-skills", "design", "ui", "cursor"],
|
|
7
|
+
"files": ["SKILL.md", "reference.md", "package.json"],
|
|
8
|
+
"exports": {
|
|
9
|
+
".": "./SKILL.md",
|
|
10
|
+
"./SKILL.md": "./SKILL.md",
|
|
11
|
+
"./reference.md": "./reference.md"
|
|
12
|
+
}
|
|
13
|
+
}
|
package/reference.md
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# Design & Refine — reference
|
|
2
|
+
|
|
3
|
+
## One-line memory
|
|
4
|
+
|
|
5
|
+
**Compare several real UI builds in the browser → say what you like → synthesize → write `DESIGN_PLAN.md` + `DESIGN_MEMORY.md` → delete temp lab files.**
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Upstream repos and marketplace
|
|
10
|
+
|
|
11
|
+
- User-linked repo: [github.com/kylezantos/0x-designer-plugin](https://github.com/kylezantos/0x-designer-plugin)
|
|
12
|
+
- README mentions marketplace: `0xdesign/design-plugin`, plugin install: `design-and-refine@design-plugins`.
|
|
13
|
+
- Attribution: [0xdesign / 0xdesigner](https://github.com/0xdesign).
|
|
14
|
+
|
|
15
|
+
If marketplace names change, follow the **main README** of the repo the user trusts.
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## Supported stacks (from upstream README)
|
|
20
|
+
|
|
21
|
+
**Frameworks:** Next.js (App & Pages), Vite (React, Vue), Remix, Astro, Create React App.
|
|
22
|
+
|
|
23
|
+
**Styling:** Tailwind CSS, CSS Modules, Material UI, Chakra UI, Ant Design, styled-components, Emotion.
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
## Temp vs persistent files
|
|
28
|
+
|
|
29
|
+
| Phase | Paths / artifacts |
|
|
30
|
+
|-------|-------------------|
|
|
31
|
+
| During session | `.claude-design/` (variants, previews, brief), `app/__design_lab/` or `pages/__design_lab` (or framework-equivalent comparison route) |
|
|
32
|
+
| After finalize | **Keep:** `DESIGN_PLAN.md`, `DESIGN_MEMORY.md`. **Remove:** temp design folder and `__design_lab` route unless the team wants to keep the route for demos (default: **remove** to match plugin) |
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
## Design Lab URL
|
|
37
|
+
|
|
38
|
+
Typically `http://localhost:3000/__design_lab` — use the project’s real port and dev command from `package.json` / docs.
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
42
|
+
## Interactive feedback (plugin UI)
|
|
43
|
+
|
|
44
|
+
The upstream plugin includes a **Figma-style overlay** (Add Feedback → click elements → submit → paste in terminal). When emulating in Cursor, ask the user to either:
|
|
45
|
+
|
|
46
|
+
- Paste free-form “what I like per variant”, or
|
|
47
|
+
- Paste structured notes if they use any overlay you add.
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
## Tips (from upstream)
|
|
52
|
+
|
|
53
|
+
- Be specific in the brief; reference products they admire.
|
|
54
|
+
- Don’t stop after round one — synthesis pass matters.
|
|
55
|
+
- Dev server must already be running.
|
|
56
|
+
- Read `DESIGN_PLAN.md` after finalize for implementation and a11y/test notes.
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
## Install this skill (Cursor, etc.)
|
|
61
|
+
|
|
62
|
+
Symlink or copy the folder `design-and-refine/` into the IDE’s skills directory (see `write-a-skill` in the same repo for paths).
|