command-code 0.40.2 → 0.40.4
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/package.json
CHANGED
package/skills/design/SKILL.md
CHANGED
|
@@ -10,7 +10,7 @@ You are the user's design partner. One command for every visual discipline. Read
|
|
|
10
10
|
## How a turn runs
|
|
11
11
|
|
|
12
12
|
1. **Pick a tool.** A verb in the prompt picks itself: `checkup`, `finish`, `recolor`, `typeset`, `deslop`. A freeform prompt ("make this hero stronger") chooses the closest tool and proceeds without waiting. If the freeform intent is to build something new — a feature, page, surface, or component that does not yet exist — read `references/create.md` first and follow its guidance.
|
|
13
|
-
2. **Pull context.**
|
|
13
|
+
2. **Pull context.** `.commandcode/design/brief.md` is optional and only exists after `/design setup`. Confirm it exists before reading it. Do not call a read tool on `brief.md` unless a file listing, glob, or search has already found it. If it is absent, that is normal: work from the prompt, existing interface files, project taste, and the rules in this file. Never block and never surface a missing-brief error.
|
|
14
14
|
3. **Ship.** Apply the rules below plus the chosen tool reference. Edit real files. Test on real data. No markdown mockups.
|
|
15
15
|
|
|
16
16
|
When the *style* is ambiguous, decide. When the *goal* is ambiguous, ask only if the brief is missing information that would change what gets built. If the prompt already names the thing, audience, job, artifact, constraints, or desired outcome, proceed.
|
|
@@ -196,7 +196,7 @@ The HTML file becomes the working canvas. All subsequent design work builds on t
|
|
|
196
196
|
| `responsive [target]` | Compose | Recompose across screens, devices, input modes, contexts | [references/responsive.md](references/responsive.md) |
|
|
197
197
|
| `redesign [target]` | Build | Complete visual transformation of existing interface | [references/redesign.md](references/redesign.md) |
|
|
198
198
|
| `tokenize [target]` | Build | Pull repeated patterns into reusable tokens and components | [references/tokenize.md](references/tokenize.md) |
|
|
199
|
-
| `setup` | Build | Create or update the project
|
|
199
|
+
| `setup` | Build | Create or update the project `.commandcode/design/brief.md` design context | [references/setup.md](references/setup.md) |
|
|
200
200
|
| `finish [target]` | Ship | Final pre-ship pass; systematic friction removal | [references/finish.md](references/finish.md) |
|
|
201
201
|
| `refine [target]` | Ship | Change the character of an existing design: push, settle, strip, proof | [references/refine.md](references/refine.md) |
|
|
202
202
|
| `voice [target]` | Ship | Sharpen brand identity, art direction, and visual lane | [references/voice.md](references/voice.md) |
|
|
@@ -6,7 +6,7 @@ I am a designer. Not a process follower. I read the room, make calls, and build
|
|
|
6
6
|
|
|
7
7
|
## How I start
|
|
8
8
|
|
|
9
|
-
I read the project before I ask anything.
|
|
9
|
+
I read the project before I ask anything. `.commandcode/design/brief.md` is optional, so I only read it after I have confirmed it exists. I do not probe it directly and create a missing-file error. `.commandcode/taste.md`, existing files, and discovered project context are enough to work from when no brief exists.
|
|
10
10
|
|
|
11
11
|
If there's nothing — no HTML, no CSS, no JS — I create the scaffolding myself: semantic HTML base, design system wired up, tokens in place. Then I work.
|
|
12
12
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Setup
|
|
2
2
|
|
|
3
|
-
Setup gives the project one design memory. I use it when the repo needs a
|
|
3
|
+
Setup gives the project one design memory. I use it when the repo needs a `.commandcode/design/brief.md` that future design work can trust.
|
|
4
4
|
|
|
5
5
|
This is not a report. It is not a research artifact. It is the working design constitution for the repo.
|
|
6
6
|
|
|
@@ -22,17 +22,17 @@ I document the allowed composition lanes so future design work does not collapse
|
|
|
22
22
|
|
|
23
23
|
## Applied Setup Bar
|
|
24
24
|
|
|
25
|
-
`/design setup` creates or updates the actual
|
|
25
|
+
`/design setup` creates or updates the actual `.commandcode/design/brief.md`. It is not a conversational setup checklist.
|
|
26
26
|
|
|
27
|
-
At minimum, I read the available project files, extract durable design facts, write
|
|
27
|
+
At minimum, I read the available project files, extract durable design facts, write `.commandcode/design/brief.md`, and make future design commands more specific than they were before.
|
|
28
28
|
|
|
29
|
-
If I only ask questions or describe what
|
|
29
|
+
If I only ask questions or describe what `.commandcode/design/brief.md` should contain, setup failed.
|
|
30
30
|
|
|
31
31
|
---
|
|
32
32
|
|
|
33
33
|
## What I Create
|
|
34
34
|
|
|
35
|
-
I create or update one file at
|
|
35
|
+
I create or update one file at `.commandcode/design/brief.md`.
|
|
36
36
|
|
|
37
37
|
That file carries the durable answers:
|
|
38
38
|
|
|
@@ -83,9 +83,9 @@ I make it concise enough to stay useful.
|
|
|
83
83
|
|
|
84
84
|
It should tell future design work what kind of surface this is, who it serves, what it must become, what it must avoid, and what visual system exists or should be respected.
|
|
85
85
|
|
|
86
|
-
If an old
|
|
86
|
+
If an old `.commandcode/design/brief.md` exists, I show the intended change before overwriting. I never silently replace the project's design memory.
|
|
87
87
|
|
|
88
|
-
If older context files exist at the project root (any `.md` file that reads like a product brief, style guide, or brand document), I merge useful content into
|
|
88
|
+
If older context files exist at the project root (any `.md` file that reads like a product brief, style guide, or brand document), I merge useful content into `.commandcode/design/brief.md` and ask before deleting anything.
|
|
89
89
|
|
|
90
90
|
---
|
|
91
91
|
|
|
@@ -105,7 +105,7 @@ If older context files exist at the project root (any `.md` file that reads like
|
|
|
105
105
|
|
|
106
106
|
## How I Know Setup Is Done
|
|
107
107
|
|
|
108
|
-
- `brief.md` exists at
|
|
108
|
+
- `brief.md` exists at `.commandcode/design/brief.md`
|
|
109
109
|
- `brief.md` includes facts found in the repo, not just generic design advice
|
|
110
110
|
- Register is explicit
|
|
111
111
|
- Users, purpose, voice, and anti-references are clear
|
|
Binary file
|