command-code 1.93.1 → 1.93.2
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/CHANGELOG.md +7 -1
- package/dist/bundled/agent-browser/SKILL.md +73 -0
- package/dist/bundled/command-code-knowledge/SKILL.md +68 -0
- package/dist/bundled/command-code-knowledge/live-models.ts +284 -0
- package/dist/bundled/command-code-knowledge/reference/byok.md +389 -0
- package/dist/bundled/command-code-knowledge/reference/custom-agents.md +341 -0
- package/dist/bundled/command-code-knowledge/reference/custom-slash-commands.md +423 -0
- package/dist/bundled/command-code-knowledge/reference/headless.md +381 -0
- package/dist/bundled/command-code-knowledge/reference/hooks.md +1107 -0
- package/dist/bundled/command-code-knowledge/reference/mcp.md +648 -0
- package/dist/bundled/command-code-knowledge/reference/memory.md +137 -0
- package/dist/bundled/command-code-knowledge/reference/models.md +145 -0
- package/dist/bundled/command-code-knowledge/reference/permissions.md +486 -0
- package/dist/bundled/command-code-knowledge/reference/plan-mode.md +283 -0
- package/dist/bundled/command-code-knowledge/reference/plans.md +16 -0
- package/dist/bundled/command-code-knowledge/reference/product-help.md +490 -0
- package/dist/bundled/command-code-knowledge/reference/sessions.md +377 -0
- package/dist/bundled/command-code-knowledge/reference/skills.md +1009 -0
- package/dist/bundled/command-code-knowledge/reference/tools.md +522 -0
- package/dist/bundled/config/SKILL.md +18 -0
- package/dist/bundled/config/references/permissions.md +27 -0
- package/dist/bundled/config/references/settings.md +50 -0
- package/dist/bundled/design/SKILL.md +448 -0
- package/dist/bundled/design/references/accessibility.md +404 -0
- package/dist/bundled/design/references/border.md +161 -0
- package/dist/bundled/design/references/button.md +192 -0
- package/dist/bundled/design/references/checkup.md +164 -0
- package/dist/bundled/design/references/color.md +245 -0
- package/dist/bundled/design/references/create.md +291 -0
- package/dist/bundled/design/references/design-html.md +227 -0
- package/dist/bundled/design/references/deslop.md +285 -0
- package/dist/bundled/design/references/finish.md +156 -0
- package/dist/bundled/design/references/interaction.md +186 -0
- package/dist/bundled/design/references/layout.md +216 -0
- package/dist/bundled/design/references/media.md +112 -0
- package/dist/bundled/design/references/motion.md +237 -0
- package/dist/bundled/design/references/redesign.md +197 -0
- package/dist/bundled/design/references/refine.md +193 -0
- package/dist/bundled/design/references/reflexes.md +132 -0
- package/dist/bundled/design/references/relayout.md +207 -0
- package/dist/bundled/design/references/report-html.md +235 -0
- package/dist/bundled/design/references/responsive.md +233 -0
- package/dist/bundled/design/references/review.md +164 -0
- package/dist/bundled/design/references/setup.md +119 -0
- package/dist/bundled/design/references/severity.md +111 -0
- package/dist/bundled/design/references/shadow.md +164 -0
- package/dist/bundled/design/references/smell.md +213 -0
- package/dist/bundled/design/references/style-3d.md +23 -0
- package/dist/bundled/design/references/style-bento.md +21 -0
- package/dist/bundled/design/references/style-editorial.md +23 -0
- package/dist/bundled/design/references/style-futuristic.md +21 -0
- package/dist/bundled/design/references/style-glassmorphism.md +52 -0
- package/dist/bundled/design/references/style-maximalism.md +20 -0
- package/dist/bundled/design/references/style-minimalism.md +21 -0
- package/dist/bundled/design/references/style-neo-brutalism.md +21 -0
- package/dist/bundled/design/references/style-retro-futurism.md +21 -0
- package/dist/bundled/design/references/style-swiss.md +20 -0
- package/dist/bundled/design/references/style.md +77 -0
- package/dist/bundled/design/references/surface.md +163 -0
- package/dist/bundled/design/references/system.md +73 -0
- package/dist/bundled/design/references/typeset.md +210 -0
- package/dist/bundled/design/references/variants.md +193 -0
- package/dist/bundled/design/references/voice.md +184 -0
- package/dist/bundled/design/references/writing.md +174 -0
- package/dist/bundled/design/scripts/check/color.mjs +213 -0
- package/dist/bundled/design/scripts/check/contrast.mjs +141 -0
- package/dist/bundled/design/scripts/check/css.mjs +223 -0
- package/dist/bundled/design/scripts/check/named-colors.mjs +152 -0
- package/dist/bundled/design/scripts/check/pair.mjs +61 -0
- package/dist/bundled/design/scripts/check/preview.mjs +27 -0
- package/dist/bundled/design/scripts/check/reflexes.mjs +257 -0
- package/dist/bundled/design/scripts/check/sources.mjs +237 -0
- package/dist/bundled/design/scripts/check.mjs +165 -0
- package/dist/bundled/loop/SKILL.md +16 -0
- package/dist/bundled/mod-builder/SKILL.md +135 -0
- package/dist/bundled/mod-builder/examples/block-dangerous-commands.ts +41 -0
- package/dist/bundled/mod-builder/examples/custom-entry-renderer.ts +32 -0
- package/dist/bundled/mod-builder/examples/custom-tool.ts +53 -0
- package/dist/bundled/mod-builder/examples/flags-and-options.ts +29 -0
- package/dist/bundled/mod-builder/examples/input-shortcuts.ts +41 -0
- package/dist/bundled/mod-builder/examples/kitchen-sink.ts +129 -0
- package/dist/bundled/mod-builder/examples/lifecycle-hooks.ts +64 -0
- package/dist/bundled/mod-builder/examples/model-router.ts +43 -0
- package/dist/bundled/mod-builder/examples/observe-events.ts +30 -0
- package/dist/bundled/mod-builder/examples/pane-and-buttons.ts +60 -0
- package/dist/bundled/mod-builder/examples/pane-form.ts +68 -0
- package/dist/bundled/mod-builder/examples/permission-policy.ts +34 -0
- package/dist/bundled/mod-builder/examples/redact-secrets.ts +46 -0
- package/dist/bundled/mod-builder/examples/slash-command.ts +33 -0
- package/dist/bundled/mod-builder/examples/spinner-count.ts +47 -0
- package/dist/bundled/mod-builder/examples/stream-filter.ts +70 -0
- package/dist/bundled/mod-builder/reference/api.md +140 -0
- package/dist/bundled/mod-builder/reference/hooks-and-events.md +347 -0
- package/dist/bundled/mod-builder/reference/overview.md +271 -0
- package/dist/bundled/mod-builder/reference/packaging.md +187 -0
- package/dist/bundled/mod-builder/reference/ui.md +253 -0
- package/dist/bundled/mod-builder/reference/verify.md +67 -0
- package/dist/bundled/skill-builder/SKILL.md +104 -0
- package/dist/cli.mjs +16 -0
- package/dist/index.mjs +2 -0
- package/package.json +1 -1
- package/vsix/commandcode-vscode.vsix +0 -0
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
# Smell: `/design smell`
|
|
2
|
+
|
|
3
|
+
The reflexes in [reflexes.md](reflexes.md) hold here: I don't produce them, and I flag every one I find, unless the user asked for that element by name.
|
|
4
|
+
|
|
5
|
+
I use smell to catch generic design before it spreads. This is not a broad review. It is a detector for reflex, template, and generated sameness.
|
|
6
|
+
|
|
7
|
+
When a surface smells wrong, I fix the category reflex first. Cosmetic edits do not remove the odor.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Composition Smell
|
|
12
|
+
|
|
13
|
+
I check whether the composition came from the work or from habit.
|
|
14
|
+
|
|
15
|
+
Monitor smell: status hidden inside equal cards, alerts without priority, live data treated as static decoration.
|
|
16
|
+
|
|
17
|
+
Operate smell: tools far from objects, no inspector, no command surface, no fast feedback.
|
|
18
|
+
|
|
19
|
+
Compare smell: comparison forced into unrelated cards, missing alignment, weak filters, unstable scan paths.
|
|
20
|
+
|
|
21
|
+
Configure smell: settings scattered by visual balance instead of dependency and consequence.
|
|
22
|
+
|
|
23
|
+
Learn smell: sections arranged as feature tiles when the user needs a path.
|
|
24
|
+
|
|
25
|
+
Decide smell: too many equal calls to action, proof buried below ornament.
|
|
26
|
+
|
|
27
|
+
Explore smell: search, filters, results, and backtracking treated as afterthoughts.
|
|
28
|
+
|
|
29
|
+
Centered grid is not automatically wrong. It is wrong when it has no work-pattern reason to exist.
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## Prompt Drift Smell
|
|
34
|
+
|
|
35
|
+
I treat prompt drift as a severe smell.
|
|
36
|
+
|
|
37
|
+
Wrong name, recycled logo mark, reused headline structure, inherited proof object, generic visual artifact, and domain objects from an unrelated brief all mean the design is not listening.
|
|
38
|
+
|
|
39
|
+
The fix is not copy editing. The fix is returning to the current prompt's name, category, user, job, artifact, evidence, and refused drift.
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## Evidence Bar
|
|
44
|
+
|
|
45
|
+
`/design smell` names generic design tells from the actual surface. It does not invent odor.
|
|
46
|
+
|
|
47
|
+
At minimum, I identify the visible pattern, the reflex behind it, why it weakens this specific brief, and the right mode to fix it.
|
|
48
|
+
|
|
49
|
+
If a smell is only a suspicion, I mark it as a suspicion. I do not report it as observed.
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
## What Smell Means
|
|
54
|
+
|
|
55
|
+
A smell is a choice that looks unchosen.
|
|
56
|
+
|
|
57
|
+
It may be competent. It may even be accessible. The problem is that it could have come from any prompt, any template, any average SaaS homepage, any safe default.
|
|
58
|
+
|
|
59
|
+
I look for the moment where the design stopped making project-specific decisions.
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
## The Odors I Track
|
|
64
|
+
|
|
65
|
+
**Tech gradient**: blue-violet, indigo-cyan, and purple-to-teal glossy energy plastered on heroes, CTAs, cards, or text. The visual shorthand for "AI startup."
|
|
66
|
+
|
|
67
|
+
**Generic tech hue**: blue-purple as the primary identity for anything vaguely technical or software-adjacent.
|
|
68
|
+
|
|
69
|
+
**Feature tile grid**: icon, heading, one sentence, repeated in a uniform grid until the section stops meaning anything. Every card equal, nothing prioritized.
|
|
70
|
+
|
|
71
|
+
**Accent rail**: a colored stripe on one side of cards or callouts added to simulate structure. Decoration pretending to be organization.
|
|
72
|
+
|
|
73
|
+
**Unearned blur**: frosted glass panels applied because the surface never committed to a depth system.
|
|
74
|
+
|
|
75
|
+
**Stat monument**: an oversized number cluster filling space where a real product story belongs.
|
|
76
|
+
|
|
77
|
+
**Icon topper**: a rounded-square icon placed above every section heading with no function beyond filling the template.
|
|
78
|
+
|
|
79
|
+
**Bounce everywhere**: motion that turns every interaction into a toy. Elastic easing applied because it was available.
|
|
80
|
+
|
|
81
|
+
**Default type**: a common family used with no voice, no scale, no reason. The font that appeared because no choice was made. A deliberate pairing with a tuned scale and weight contrast is not this odor, even when the family is popular. If the type fits its category too well, that is the Domain Default Trap, not a tell — it does not count toward the score.
|
|
82
|
+
|
|
83
|
+
**Center stack**: everything aligned to the safe middle because no composition decision was made.
|
|
84
|
+
|
|
85
|
+
**Untokenized values**: the same color, spacing, radius, or font size repeated as raw literals across files instead of one shared token. No `design-system.md`, no CSS custom properties, no Tailwind theme entries — every component reinvents its own numbers. The clearest sign a system was never designed, only assembled one component at a time. When this is severe or widespread, prescribe replacing the repeated values with shared tokens and updating the design-system files.
|
|
86
|
+
|
|
87
|
+
**Broken or fabricated media**: a guessed image or video URL that 404s, or a stock placeholder standing in for a subject that was supposed to be specific. Never fetched, never verified, shipped anyway. See [media.md](media.md).
|
|
88
|
+
|
|
89
|
+
---
|
|
90
|
+
|
|
91
|
+
## The Domain Default Trap
|
|
92
|
+
|
|
93
|
+
I ask whether the visual direction could be guessed from the industry.
|
|
94
|
+
|
|
95
|
+
A note-taking app as cream and rounded sans. A developer tool as dark with terminal mono. A health product as white and calm blue. A legal platform as navy and serif. A food app as warm orange. A payments product as clean white with green accents.
|
|
96
|
+
|
|
97
|
+
If the answer was obvious before I opened the page, the design has not found itself yet.
|
|
98
|
+
|
|
99
|
+
---
|
|
100
|
+
|
|
101
|
+
## What I Look For Instead
|
|
102
|
+
|
|
103
|
+
The design needs at least a few real decisions:
|
|
104
|
+
|
|
105
|
+
- A color strategy that is not the domain's first reflex
|
|
106
|
+
- Type with a reason
|
|
107
|
+
- A composition that chooses tension, rigor, image, or editorial pacing
|
|
108
|
+
- Imagery or visual material tied to the subject
|
|
109
|
+
- Motion that reveals character or state
|
|
110
|
+
- Copy with a specific voice
|
|
111
|
+
- An interaction or detail that could only belong here
|
|
112
|
+
|
|
113
|
+
Unexpected is not automatically good. But a page with nothing unexpected is usually forgettable.
|
|
114
|
+
|
|
115
|
+
---
|
|
116
|
+
|
|
117
|
+
## How I Judge Severity
|
|
118
|
+
|
|
119
|
+
I treat faint smells as cleanup. I treat clustered smells as identity failure.
|
|
120
|
+
|
|
121
|
+
A single generic icon card can be replaced. A whole page made of generic cards, indigo gradients, centered hero, Inter, and vague copy needs a new lane.
|
|
122
|
+
|
|
123
|
+
If the smell is structural, I do not patch. I change the direction.
|
|
124
|
+
|
|
125
|
+
---
|
|
126
|
+
|
|
127
|
+
## What I Do After Finding Smell
|
|
128
|
+
|
|
129
|
+
I name the dominant smell. I identify the root reflex. Then I pick the right design tool.
|
|
130
|
+
|
|
131
|
+
- Color reflex goes to recolor
|
|
132
|
+
- Type reflex goes to typeset
|
|
133
|
+
- Composition reflex goes to relayout or redesign
|
|
134
|
+
- Generic brand lane goes to voice or redesign
|
|
135
|
+
- Missing state and interaction smell goes to interaction
|
|
136
|
+
- Unclear copy goes to writing
|
|
137
|
+
|
|
138
|
+
If the design smells in several systems at once, I suggest redesign is usually cleaner than incremental repair.
|
|
139
|
+
|
|
140
|
+
**Important:** Smell never executes any mode. It only produces `.commandcode/design/smell-report.md` and `.commandcode/design/smell-report.html`.
|
|
141
|
+
|
|
142
|
+
---
|
|
143
|
+
|
|
144
|
+
## Scoring
|
|
145
|
+
|
|
146
|
+
Smell uses a `/10` score. The score is **inverted** — finding nothing is perfect.
|
|
147
|
+
|
|
148
|
+
| Tells found | Score |
|
|
149
|
+
|---|---|
|
|
150
|
+
| 0 | 10/10 — CLEAN |
|
|
151
|
+
| 1–2 | 7–8/10 — FAINT |
|
|
152
|
+
| 3–4 | 5–6/10 — PRESENT |
|
|
153
|
+
| 5–6 | 3–4/10 — STRONG |
|
|
154
|
+
| 7+ | 0–2/10 — IDENTITY FAILURE |
|
|
155
|
+
|
|
156
|
+
**MAX_SCORE = 10.** Use `/10` as the denominator in the report template. When zero tells are found, the score is `10/10` and the verdict is CLEAN. Never output `0/10` to mean "no smells detected."
|
|
157
|
+
|
|
158
|
+
The heuristics table in the report uses 10 rows (one per odor tracked). Each row scores `1` if the odor is absent, `0` if detected.
|
|
159
|
+
|
|
160
|
+
---
|
|
161
|
+
|
|
162
|
+
## Finding Format
|
|
163
|
+
|
|
164
|
+
Each confirmed tell gets a severity, a `path/to/file:line` location, and a concrete replacement, per [severity.md](severity.md). A repeated tell is one finding with every location listed, not one row per occurrence — the whole point of a smell is that it is systemic.
|
|
165
|
+
|
|
166
|
+
Smell also carries the escalation triggers in that file. Generic patterns and access failures travel together: a placeholder-only label, an icon button with no name, and a `focus:outline-none` on a shared component are all AI reflexes, and all of them are `HIGH`.
|
|
167
|
+
|
|
168
|
+
---
|
|
169
|
+
|
|
170
|
+
## Report Boundary
|
|
171
|
+
|
|
172
|
+
Smell always produces two report artifacts:
|
|
173
|
+
|
|
174
|
+
- `.commandcode/design/smell-report.md`
|
|
175
|
+
- `.commandcode/design/smell-report.html`
|
|
176
|
+
|
|
177
|
+
**Important Rule for Generating HTML Report:**
|
|
178
|
+
|
|
179
|
+
- **Use the following template structure** [report-html.md](report-html.md) to generate `smell-report.html`:
|
|
180
|
+
- Do not change the visual design. Only fill in the content.
|
|
181
|
+
|
|
182
|
+
These are the only report artifacts smell creates.
|
|
183
|
+
|
|
184
|
+
---
|
|
185
|
+
|
|
186
|
+
## What I Refuse
|
|
187
|
+
|
|
188
|
+
- Calling a design clean because it passes technical checks
|
|
189
|
+
- Reporting a smell I cannot point to
|
|
190
|
+
- Treating personal taste as evidence of generated design
|
|
191
|
+
- Fixing an AI gradient by choosing a different AI gradient
|
|
192
|
+
- Treating Inter as wrong when it is clearly intentional
|
|
193
|
+
- Treating all centered layouts as bad when symmetry is the right lane
|
|
194
|
+
- Adding decoration to hide generic structure
|
|
195
|
+
- Creating extra report artifacts beyond `smell-report.md` and `smell-report.html`
|
|
196
|
+
|
|
197
|
+
---
|
|
198
|
+
|
|
199
|
+
## How I Know The Smell Is Gone
|
|
200
|
+
|
|
201
|
+
- Every named smell maps to a visible choice
|
|
202
|
+
- The palette cannot be guessed from the domain alone
|
|
203
|
+
- The type has a project-specific reason
|
|
204
|
+
- The composition is not the median generated landing page
|
|
205
|
+
- Repeated sections have hierarchy and variation
|
|
206
|
+
- The strongest visual idea belongs to this brief
|
|
207
|
+
- A stranger would not immediately say the page was generated
|
|
208
|
+
- `smell-report.md` and `smell-report.html` both exist
|
|
209
|
+
|
|
210
|
+
STRICT RULE — NEVER BREAK THIS
|
|
211
|
+
Always create .commandcode/design/smell-report.md and
|
|
212
|
+
.commandcode/design/smell-report.html. Do not create any other report,
|
|
213
|
+
summary, analysis file, or extra documentation.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# 3D: `/design style 3d`
|
|
2
|
+
|
|
3
|
+
I build one scene with real depth, light and material, so objects feel placed in space. Depth supports the content and the task. It never replaces them.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Required companion reference
|
|
8
|
+
|
|
9
|
+
I follow the [style workflow](style.md) for report context, scope, implementation and verification. The command loads it alongside this guide.
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## The design pass
|
|
14
|
+
|
|
15
|
+
- I put one 3D scene in the hero or a single focal area. The rest of the page stays flat, readable and fast.
|
|
16
|
+
- I choose the lightest tool that works. CSS 3D transforms cover tilt and stacked cards. Spline or Three.js (React Three Fiber) cover real models. I reuse what the project already ships.
|
|
17
|
+
- I often use a dark base for the scene. Live 3D product sites I checked pair it with 1px low-contrast line borders and a soft, colored glow under the scene rather than a hard shadow.
|
|
18
|
+
- I limit the scene to one key light, one fill light and a soft contact shadow, with two or three materials plus neutrals.
|
|
19
|
+
- I always provide a static poster of the scene, compressed as WebP or AVIF, for missing WebGL, low-power devices and reduced motion.
|
|
20
|
+
- Pointer or scroll may tilt or rotate the scene by a small amount. Reading and every control work without that motion.
|
|
21
|
+
- I keep the budget small: one canvas per page, a capped device pixel ratio (about 2), lazy-loaded models (a few MB at most) and no rendering while the scene is offscreen.
|
|
22
|
+
- The canvas is `aria-hidden` when decorative, or labelled with `role="img"` when it carries information. Text and controls never live only inside the 3D layer. Text over the scene keeps 4.5:1 contrast.
|
|
23
|
+
- I test 320px width, 200% zoom and keyboard order. The scene crops or scales without horizontal scrolling. Reduced motion stops all rotation.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Bento: `/design style bento`
|
|
2
|
+
|
|
3
|
+
I make a small set of unequal tiles tell one clear story. Each tile has one job.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Required companion reference
|
|
8
|
+
|
|
9
|
+
I follow the [style workflow](style.md) for report context, scope, implementation and verification. The command loads it alongside this guide.
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## The design pass
|
|
14
|
+
|
|
15
|
+
- I lay the tiles on one grid with a 12 to 16px gap. A tile spans two to four columns and one or two rows.
|
|
16
|
+
- The grid is the page's composition, not a row of cards. At desktop width I use at least four tiles in at least two sizes, and at least one tile spans two rows. Two or three equal cards side by side are not bento. If the content is too thin for four tiles, I split existing content into tiles (a plan tile, a renewal tile, an invoices tile) and never invent new content to fill the grid.
|
|
17
|
+
- I give every tile the same corner radius, around 12px, and a 1px low-contrast border. I avoid heavy shadows.
|
|
18
|
+
- Each tile holds one headline, one proof element (a number, a screenshot or one short line) and at most one action.
|
|
19
|
+
- I put the largest tile where the main message starts, usually top left. Smaller tiles support it rather than compete.
|
|
20
|
+
- On mobile the tiles stack in DOM order, and each keeps its own internal layout.
|
|
21
|
+
- I test 320px width, 200% zoom and keyboard focus moving tile by tile. Hover effects never hide the content.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Editorial: `/design style editorial`
|
|
2
|
+
|
|
3
|
+
I set the page like a printed article. Strong type hierarchy, a comfortable reading measure and images that carry the story. Controls stay quiet and rectangular.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Required companion reference
|
|
8
|
+
|
|
9
|
+
I follow the [style workflow](style.md) for report context, scope, implementation and verification. The command loads it alongside this guide.
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## The design pass
|
|
14
|
+
|
|
15
|
+
- I pair a serif for headlines and body text with a sans for navigation, labels and form controls. Print-led sites use a serif text face, a serif display face and a sans for UI, so the sans never carries long reading.
|
|
16
|
+
- I keep the system to two or three families. A heading face can be different from the text face, but the set stays small.
|
|
17
|
+
- I set body text in one column at a 60 to 75 character measure, with a line height near 1.6.
|
|
18
|
+
- I give the headline, deck, byline and date a clear order. The first screen says what the piece is about.
|
|
19
|
+
- I keep corners at 0 to 4px on images, cards and buttons. Pill-shaped buttons read as product UI, not editorial, so I avoid them.
|
|
20
|
+
- I separate sections with 1px rules and whitespace, not floating cards or heavy shadows.
|
|
21
|
+
- I use one accent for links and pull quotes. Buttons are a rectangle with a 1px border or a solid ink fill, never a gradient.
|
|
22
|
+
- I place images at deliberate sizes. Captions add information rather than repeat the headline.
|
|
23
|
+
- I test long headlines, 320px width and 200% zoom. Pull quotes and captions must follow the reading order.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Futuristic: `/design style futuristic`
|
|
2
|
+
|
|
3
|
+
I design a present-day interface that looks built for what comes next. Precise geometry, fine lines and motion that explains state.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Required companion reference
|
|
8
|
+
|
|
9
|
+
I follow the [style workflow](style.md) for report context, scope, implementation and verification. The command loads it alongside this guide.
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## The design pass
|
|
14
|
+
|
|
15
|
+
- I use a geometric or neutral sans for interface text and a mono face for data, labels and timestamps. Production product sites I checked pair these two in the same way.
|
|
16
|
+
- I draw every boundary as a 1px hairline at low opacity. Controls use about 8px radii, large surfaces about 16px, and tags use full pills.
|
|
17
|
+
- I use one cool accent and one warm signal color for alerts. Both must pass contrast on the dark and light bases.
|
|
18
|
+
- I animate state changes only: a panel opens, a value updates, a step completes. Motion always means something.
|
|
19
|
+
- I label every control and status in plain words. Decorative charts must not imply live data unless they show real values.
|
|
20
|
+
- I test contrast on the accent and signal colors, and reduced motion, which turns off all non-essential animation.
|
|
21
|
+
- When the user asks for a cyberpunk or neon look, I push this style darker. I use a near-black base, two neon accents such as magenta and cyan, and a condensed technical display face for titles. Glow is only for focus rings, active states and key metrics. Scanlines, grid texture and glitch flashes stay on headers and section edges. Body text is never small neon on black, and reduced motion turns off all glitch and flicker.
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# Glassmorphism: `/design style glassmorphism`
|
|
2
|
+
|
|
3
|
+
I build glass the way Apple's Liquid Glass does. It is a lens, not a frosted sticker. It picks up color from the scene behind it, intensifies that color, bends light at its edges and catches a highlight on its rim. The material stays on the control and navigation layer, and the content stays readable.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Required companion reference
|
|
8
|
+
|
|
9
|
+
I follow the [style workflow](style.md) for report context, scope, implementation and verification. The command loads it alongside this guide.
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## What glass is, and what it is not
|
|
14
|
+
|
|
15
|
+
- Glass needs something behind it to work with: a photo, video, a map, artwork, or a colorful mesh field built from the brand or the hero image. Over a flat color, glass is just a gray box. In that case, I make the scene first.
|
|
16
|
+
- The color comes from the scene, not from a fill. A glass header over a sunset photo turns warm pink and orange. Over a sky it turns blue and yellow. I sample the colors behind the glass. I never paint a generic white tint at 10% everywhere.
|
|
17
|
+
- Glass is a layer that floats above the content. Navigation bars, tab bars, toolbars, segmented controls, pill buttons, sheets, popovers, and one hero header or stat panel can be glass. Lists, tables, articles, forms and dense charts sit on a solid surface below it.
|
|
18
|
+
- I never stack glass on glass. A control inside a glass panel is a solid fill, or a tinted capsule that is clearly darker or lighter than the panel.
|
|
19
|
+
- Clichés I avoid: purple-blue blob backgrounds with identical white cards, a glass card behind every section, a thick white border, and glass with no backdrop.
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## The material, layer by layer
|
|
24
|
+
|
|
25
|
+
I build each glass element as a stack of absolutely positioned layers under the content, all sharing one `border-radius`:
|
|
26
|
+
|
|
27
|
+
1. **Lens.** `backdrop-filter: blur(12px–24px) saturate(160%–190%)`, plus a little `brightness` to match the mode. Saturation makes the glass look like it is gathering light, not muddying it. For refraction on the hero or primary control, I add an SVG filter: `feTurbulence` (fractal noise, very low `baseFrequency` such as `0.003 0.007`, one octave) feeding `feDisplacementMap` (R/G channels). The displacement should be strongest at the edges, where the glass bends the scene, and quiet in the center.
|
|
28
|
+
2. **Tint.** A thin wash that follows the scene: `rgb(255 255 255 / 0.08–0.2)` on dark scenes, `rgb(0 0 0 / 0.15–0.3)` behind light text on bright scenes. Capsule controls on a glass header get a darker tint than the header, so they read as separate pieces of glass.
|
|
29
|
+
3. **Specular edge.** Inset highlights instead of a solid border: a bright top-left rim and a fainter bottom-right rim, for example `inset 1px 1px 0 rgb(255 255 255 / 0.5), inset -1px -1px 0 rgb(255 255 255 / 0.15)`, plus a soft linear sheen across the top third. On pointer devices, the sheen can follow the cursor slightly.
|
|
30
|
+
4. **Depth.** A soft, wide outer shadow (`0 8px 32px rgb(0 0 0 / 0.12)`) and an optional faint white outer glow. No hard drop shadows.
|
|
31
|
+
5. **Grain.** A 3–6% noise or fine dot texture over the tinted area stops banding and makes the material feel physical.
|
|
32
|
+
6. **Content.** Text and icons sit on top, at full opacity.
|
|
33
|
+
|
|
34
|
+
For a large material field, like a hero or stats header over a photo, the glass dissolves into the content: the field fades from the blurred, saturated scene into a solid sheet where the lists and details live. Big numbers and titles go on the field. Fine print goes on the sheet.
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## Shape and motion
|
|
39
|
+
|
|
40
|
+
- Shapes are concentric. An inner radius equals the outer radius minus the padding, so nested pills and cards share one center. Controls are capsules.
|
|
41
|
+
- Glass responds to touch and pointer with a small scale (1.01 on hover, 0.98 on press) and an elastic, springy return. Selected states can glide between positions, like a tab indicator sliding between tabs, rather than cross-fading.
|
|
42
|
+
- Content scrolling under a glass bar fades or blurs at the edge, so text never collides with the bar.
|
|
43
|
+
- Reduced motion turns off morphing, cursor-tracked sheen and displacement animation. The static material stays.
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
## Legibility and fallbacks
|
|
48
|
+
|
|
49
|
+
- Text on glass keeps 4.5:1 contrast against both the brightest and the darkest point of the scene behind it. I check both. If a scene is too busy, I darken the tint, add a dimming gradient under the text, or move the text onto the solid sheet.
|
|
50
|
+
- I use large, bold type on glass. I keep thin weights and small captions off it.
|
|
51
|
+
- SVG displacement inside `backdrop-filter` only works in Chromium. Elsewhere I keep the blur, saturation, tint and specular layers, which still read as glass. Without `backdrop-filter` (`@supports not`), or under `prefers-reduced-transparency: reduce`, the element falls back to an opaque surface sampled from the scene color.
|
|
52
|
+
- I test over a busy photo, over a bright area, over a dark area and over the plain fallback. The glass must stay readable on all of them, at 320px and at 200% zoom.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Maximalism: `/design style maximalism`
|
|
2
|
+
|
|
3
|
+
I fill the interface with color, pattern, type and imagery. A clear hierarchy keeps the density readable and makes it look intentional.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Required companion reference
|
|
8
|
+
|
|
9
|
+
I follow the [style workflow](style.md) for report context, scope, implementation and verification. The command loads it alongside this guide.
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## The design pass
|
|
14
|
+
|
|
15
|
+
- I choose a bold palette of four to six colors and a strong pattern or texture. Each color has one job: surface, accent or text.
|
|
16
|
+
- I mix two or three type styles with clear size steps. The headline wins the eye before anything else.
|
|
17
|
+
- I group related content into blocks with thick borders or color fields so the density has structure.
|
|
18
|
+
- I keep the primary action and the main content area calm, with fewer competing patterns.
|
|
19
|
+
- I check that every piece of text sits on a surface with enough contrast, including patterned backgrounds.
|
|
20
|
+
- I test 320px width and 200% zoom. Dense blocks must reflow into one column without overlap or horizontal scrolling.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Minimalism: `/design style minimalism`
|
|
2
|
+
|
|
3
|
+
I remove everything the task does not need. Space, one type family and one accent carry the interface.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Required companion reference
|
|
8
|
+
|
|
9
|
+
I follow the [style workflow](style.md) for report context, scope, implementation and verification. The command loads it alongside this guide.
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## The design pass
|
|
14
|
+
|
|
15
|
+
- I use a neutral canvas, one text color and one accent reserved for actions and the current state.
|
|
16
|
+
- I use one type family with two or three sizes per screen. Hierarchy comes from size and space. Clean product sites I checked each use a single sans, and some add a mono face for labels.
|
|
17
|
+
- I pick one corner radius for the whole product. The sites I checked range from 6px for tools to 12px for cards to full pills for friendly brands. I do not mix them.
|
|
18
|
+
- I separate sections with 1px rules at very low contrast, or with space alone. I avoid cards and shadows that add nothing.
|
|
19
|
+
- For buttons, a 2px bottom edge with no blur gives a tactile press without decoration.
|
|
20
|
+
- I keep icons at one size and stroke weight. I remove any element that does not help the task.
|
|
21
|
+
- I test long text, 320px width and 200% zoom. Empty space must not hide content or push controls off screen.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Neo-brutalism: `/design style neo-brutalism`
|
|
2
|
+
|
|
3
|
+
I build a legible, deliberately blunt interface with solid color and hard edges. The structure stays disciplined.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Required companion reference
|
|
8
|
+
|
|
9
|
+
I follow the [style workflow](style.md) for report context, scope, implementation and verification. The command loads it alongside this guide.
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## The design pass
|
|
14
|
+
|
|
15
|
+
- I use a neutral canvas, dark ink and one or two assertive accents. Large headings carry the composition.
|
|
16
|
+
- I give emphasized elements a 3 to 6px solid ink border. Controls keep 2 to 3px. Radii stay between 0 and 4px.
|
|
17
|
+
- Hard offset shadows are a choice, not a default. I use an unblurred offset in ink or an accent on a few primary elements. Large production sites mostly use thin inset borders instead, so I do not put a shadow on every card.
|
|
18
|
+
- Buttons press into their shadow on hover and active. Focus gets a separate, visible outline.
|
|
19
|
+
- I use flat fills and visible alignment. I avoid frosted panels, glossy gradients and broken reading order.
|
|
20
|
+
- Errors, selected and disabled states use text or an icon as well as color.
|
|
21
|
+
- I test long labels and mobile wrapping. Headings cannot overlap controls or force horizontal scrolling.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Retro-futurism: `/design style retro-futurism`
|
|
2
|
+
|
|
3
|
+
I choose one past vision of tomorrow and use it consistently. The style needs an era, not a random pile of science-fiction effects.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Required companion reference
|
|
8
|
+
|
|
9
|
+
I follow the [style workflow](style.md) for report context, scope, implementation and verification. The command loads it alongside this guide.
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## The design pass
|
|
14
|
+
|
|
15
|
+
- I state the direction in one sentence: for example, a 1960s space-age travel desk or a 1980s orbital computer. I pick one before choosing tokens.
|
|
16
|
+
- I pick one era of vision. Googie and Atomic Age (1950s–60s) bring upswept roofs, boomerangs, starbursts and chrome. Cassette futurism (1970s–80s) brings analog screens, beige hardware and amber phosphor.
|
|
17
|
+
- I derive the palette and shapes from that direction. Space-age can use cream, orange and capsule forms; an electronic direction can use dark ink, phosphor accents and instrument rules.
|
|
18
|
+
- I use display lettering for short titles and a readable companion for body text. Labels describe real actions rather than invented cockpit jargon.
|
|
19
|
+
- I limit chrome, glow, orbital diagrams or scanlines to supporting decoration. Text and controls stay crisp with solid backing.
|
|
20
|
+
- I keep native navigation and familiar forms. Decorative radar or gauges must not imply live data unless they display real values.
|
|
21
|
+
- I disable flicker and remove nonessential movement for reduced motion. I verify contrast, focus and mobile reading order with every decorative layer enabled.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Swiss: `/design style swiss`
|
|
2
|
+
|
|
3
|
+
I make the typographic grid do the work. Alignment, scale and spacing set the hierarchy with little ornament.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Required companion reference
|
|
8
|
+
|
|
9
|
+
I follow the [style workflow](style.md) for report context, scope, implementation and verification. The command loads it alongside this guide.
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## The design pass
|
|
14
|
+
|
|
15
|
+
- I use one neutral grotesk or Helvetica-family sans with two or three weights. Headline scale, not extra fonts, creates the contrast.
|
|
16
|
+
- I align headings, metadata, images and body text to shared edges on a modular grid. Asymmetry is deliberate and the reading order stays clear.
|
|
17
|
+
- I structure the page with 1px hairline rules at low contrast. I avoid shadows, gradients and decorative card wrappers.
|
|
18
|
+
- I use one accent color, and only for actions and the current state.
|
|
19
|
+
- I start body text at 16 to 18px with a 55 to 75 character measure, aligned left.
|
|
20
|
+
- I collapse columns in DOM order on mobile and test 200% zoom. Visible focus, labels and empty states still apply.
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# Style: `/design style`
|
|
2
|
+
|
|
3
|
+
I apply one named visual direction to real files. I preserve the requested content, behavior and scope.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Pre-execution checklist
|
|
8
|
+
|
|
9
|
+
I check `.commandcode/design/` for `checkup-report.md`, `review-report.md` and `smell-report.md`. I read any existing reports and apply relevant findings during this pass. If none exist, I proceed normally.
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## The direction
|
|
14
|
+
|
|
15
|
+
`/design style <name> [target]` loads the selected guide directly. If no name was supplied, I show these choices and ask for one before changing files. An unknown name gets the same list, never a silently substituted style.
|
|
16
|
+
|
|
17
|
+
- `bento`: [Bento](style-bento.md). I make a small set of unequal tiles tell one clear story.
|
|
18
|
+
- `neo-brutalism`: [Neo-brutalism](style-neo-brutalism.md). I build a legible, deliberately blunt interface with solid color and hard edges.
|
|
19
|
+
- `glassmorphism`: [Glassmorphism](style-glassmorphism.md). I build Liquid Glass-style lenses that pick up, bend and tint the scene behind floating controls.
|
|
20
|
+
- `retro-futurism`: [Retro-futurism](style-retro-futurism.md). I choose one past vision of tomorrow and use it consistently.
|
|
21
|
+
- `swiss`: [Swiss](style-swiss.md). I make the typographic grid do the work.
|
|
22
|
+
- `3d`: [3D](style-3d.md). I build one scene with real depth, light and material, with a static fallback.
|
|
23
|
+
- `minimalism`: [Minimalism](style-minimalism.md). I remove everything the task does not need.
|
|
24
|
+
- `editorial`: [Editorial](style-editorial.md). I set the page like a printed article.
|
|
25
|
+
- `futuristic`: [Futuristic](style-futuristic.md). I design a present-day interface built for what comes next.
|
|
26
|
+
- `maximalism`: [Maximalism](style-maximalism.md). I fill the interface with color, pattern and type, held together by hierarchy.
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
## Foundations
|
|
31
|
+
|
|
32
|
+
A style guide decides how things look. It does not teach me how to lay out a page, build a button or set type. Before I change files, I read the foundation guides for every part the target touches:
|
|
33
|
+
|
|
34
|
+
| The target has | I read |
|
|
35
|
+
|---|---|
|
|
36
|
+
| Any page, screen or section | [layout.md](layout.md) |
|
|
37
|
+
| Buttons, links that act as buttons, toggles | [button.md](button.md) |
|
|
38
|
+
| Headings, body copy, labels, numbers | [typeset.md](typeset.md) |
|
|
39
|
+
| A palette, accents, states, dark mode | [color.md](color.md) |
|
|
40
|
+
| Depth: shadows, elevation, overlays | [shadow.md](shadow.md) |
|
|
41
|
+
| Edges: borders, dividers, outlines | [border.md](border.md) |
|
|
42
|
+
| Hover, focus, press, loading, errors, forms | [interaction.md](interaction.md) |
|
|
43
|
+
| Transitions or animation | [motion.md](motion.md) |
|
|
44
|
+
| More than one viewport | [responsive.md](responsive.md) |
|
|
45
|
+
| Any control, form, overlay or motion | [accessibility.md](accessibility.md) |
|
|
46
|
+
| An app, dashboard or tool | [surface.md](surface.md) |
|
|
47
|
+
| A landing, marketing or portfolio page | [voice.md](voice.md) |
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
## The implementation pass
|
|
52
|
+
|
|
53
|
+
1. I read the selected guide and the foundation guides above, inspect the existing UI and project taste, and consume relevant existing design reports. I identify the target and its primary task. If there is no existing UI, I build it from scratch with [create.md](create.md), in the selected style.
|
|
54
|
+
2. I pick a small token set for type, spacing, color, edges and depth. I state the direction in one sentence and implement it across the requested target, including loading, empty, error and selected states where applicable.
|
|
55
|
+
3. I treat explicit style selection as permission to use its defining techniques, including bento tiles, hard shadows or glass, even when generic anti-slop advice discourages them. Accessibility and functionality still apply.
|
|
56
|
+
4. I check 320px reflow, desktop, long content, 200% zoom, keyboard order and visible focus. Normal text needs 4.5:1 contrast, large text and necessary control boundaries need 3:1. I honor reduced motion and provide solid material fallbacks.
|
|
57
|
+
5. I inspect the rendered result when tools allow, fix mismatches and report the files changed and checks actually run. I never claim a visual check I could not perform.
|
|
58
|
+
|
|
59
|
+
## Scope and states
|
|
60
|
+
|
|
61
|
+
- A style changes how the target looks, not what it contains. I keep the original's sections, fields, data and copy. I do not add new settings, toggles, badges, environment labels, sample records or sections that were not there. If the style seems to need more content, I say so in the reply instead of inventing it.
|
|
62
|
+
- The page loads in its default state. Error, empty and loading states exist and can be reached, but they stay hidden at rest. A form never shows a validation error under a valid value on load.
|
|
63
|
+
- When I hide state with the `hidden` attribute, I add `[hidden] { display: none !important; }`. Any `display: flex` or `display: grid` rule on the same element otherwise overrides `hidden` and shows every error and empty state at once.
|
|
64
|
+
- Every icon gets an explicit size, `width` and `height` attributes on the `<svg>` or a CSS size on its class. An unsized inline SVG grows to fill its container.
|
|
65
|
+
- Table headers line up with their columns and keep a gap between them. Status markers and badges never overlap the value beside them.
|
|
66
|
+
|
|
67
|
+
## Verification limits
|
|
68
|
+
|
|
69
|
+
- Screenshots, probe pages, contrast scripts and other check files go in the system temp directory, never in the project. I delete any I created before I reply, and `git status` shows only the files the style changed.
|
|
70
|
+
- I verify once: one render at desktop and one at 320px, one contrast check of the final tokens, then one round of fixes. I do not loop on re-tuning colors or re-rendering. If a check needs a tool I don't have or a command the user has not approved, I skip it and say so.
|
|
71
|
+
|
|
72
|
+
## Assets
|
|
73
|
+
|
|
74
|
+
- Icons come from one established set. If the project already uses one, I keep it. Otherwise I use Lucide or Hugeicons: installed as a package and imported by name when the project has a package manager, or copied as that set's SVG files when it is plain HTML with no build step. I do not hand-draw icons or mix sets.
|
|
75
|
+
- Photos and video come from Unsplash, Pexels or Pixabay when I can search them, chosen for what the content needs. I check each license and keep the attribution it requires. If I cannot reach them, I keep the project's existing imagery and say so instead of inventing image URLs.
|
|
76
|
+
|
|
77
|
+
I keep the implementation small enough for one person to maintain. I reuse the existing stack and assets; a style does not justify a new animation library or a rewrite.
|