command-code 1.92.0 → 1.93.1
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 +15 -0
- package/package.json +1 -1
- package/vsix/commandcode-vscode.vsix +0 -0
- package/dist/bundled/agent-browser/SKILL.md +0 -73
- package/dist/bundled/command-code-knowledge/SKILL.md +0 -68
- package/dist/bundled/command-code-knowledge/live-models.ts +0 -284
- package/dist/bundled/command-code-knowledge/reference/byok.md +0 -389
- package/dist/bundled/command-code-knowledge/reference/custom-agents.md +0 -341
- package/dist/bundled/command-code-knowledge/reference/custom-slash-commands.md +0 -423
- package/dist/bundled/command-code-knowledge/reference/headless.md +0 -381
- package/dist/bundled/command-code-knowledge/reference/hooks.md +0 -1107
- package/dist/bundled/command-code-knowledge/reference/mcp.md +0 -636
- package/dist/bundled/command-code-knowledge/reference/memory.md +0 -137
- package/dist/bundled/command-code-knowledge/reference/models.md +0 -145
- package/dist/bundled/command-code-knowledge/reference/permissions.md +0 -486
- package/dist/bundled/command-code-knowledge/reference/plan-mode.md +0 -283
- package/dist/bundled/command-code-knowledge/reference/plans.md +0 -16
- package/dist/bundled/command-code-knowledge/reference/product-help.md +0 -490
- package/dist/bundled/command-code-knowledge/reference/sessions.md +0 -377
- package/dist/bundled/command-code-knowledge/reference/skills.md +0 -1009
- package/dist/bundled/command-code-knowledge/reference/tools.md +0 -522
- package/dist/bundled/config/SKILL.md +0 -18
- package/dist/bundled/config/references/permissions.md +0 -27
- package/dist/bundled/config/references/settings.md +0 -49
- package/dist/bundled/design/SKILL.md +0 -441
- package/dist/bundled/design/references/accessibility.md +0 -404
- package/dist/bundled/design/references/border.md +0 -161
- package/dist/bundled/design/references/button.md +0 -192
- package/dist/bundled/design/references/checkup.md +0 -162
- package/dist/bundled/design/references/color.md +0 -245
- package/dist/bundled/design/references/create.md +0 -291
- package/dist/bundled/design/references/design-html.md +0 -227
- package/dist/bundled/design/references/deslop.md +0 -283
- package/dist/bundled/design/references/finish.md +0 -156
- package/dist/bundled/design/references/interaction.md +0 -186
- package/dist/bundled/design/references/layout.md +0 -216
- package/dist/bundled/design/references/media.md +0 -112
- package/dist/bundled/design/references/motion.md +0 -237
- package/dist/bundled/design/references/redesign.md +0 -197
- package/dist/bundled/design/references/refine.md +0 -193
- package/dist/bundled/design/references/relayout.md +0 -207
- package/dist/bundled/design/references/report-html.md +0 -235
- package/dist/bundled/design/references/responsive.md +0 -233
- package/dist/bundled/design/references/review.md +0 -164
- package/dist/bundled/design/references/setup.md +0 -119
- package/dist/bundled/design/references/severity.md +0 -111
- package/dist/bundled/design/references/shadow.md +0 -164
- package/dist/bundled/design/references/smell.md +0 -211
- package/dist/bundled/design/references/style-3d.md +0 -23
- package/dist/bundled/design/references/style-bento.md +0 -21
- package/dist/bundled/design/references/style-editorial.md +0 -23
- package/dist/bundled/design/references/style-futuristic.md +0 -21
- package/dist/bundled/design/references/style-glassmorphism.md +0 -52
- package/dist/bundled/design/references/style-maximalism.md +0 -20
- package/dist/bundled/design/references/style-minimalism.md +0 -21
- package/dist/bundled/design/references/style-neo-brutalism.md +0 -21
- package/dist/bundled/design/references/style-retro-futurism.md +0 -21
- package/dist/bundled/design/references/style-swiss.md +0 -20
- package/dist/bundled/design/references/style.md +0 -77
- package/dist/bundled/design/references/surface.md +0 -163
- package/dist/bundled/design/references/system.md +0 -73
- package/dist/bundled/design/references/typeset.md +0 -210
- package/dist/bundled/design/references/variants.md +0 -193
- package/dist/bundled/design/references/voice.md +0 -184
- package/dist/bundled/design/references/writing.md +0 -174
- package/dist/bundled/loop/SKILL.md +0 -16
- package/dist/bundled/mod-builder/SKILL.md +0 -135
- package/dist/bundled/mod-builder/examples/block-dangerous-commands.ts +0 -41
- package/dist/bundled/mod-builder/examples/custom-entry-renderer.ts +0 -32
- package/dist/bundled/mod-builder/examples/custom-tool.ts +0 -53
- package/dist/bundled/mod-builder/examples/flags-and-options.ts +0 -29
- package/dist/bundled/mod-builder/examples/input-shortcuts.ts +0 -41
- package/dist/bundled/mod-builder/examples/kitchen-sink.ts +0 -129
- package/dist/bundled/mod-builder/examples/lifecycle-hooks.ts +0 -64
- package/dist/bundled/mod-builder/examples/model-router.ts +0 -43
- package/dist/bundled/mod-builder/examples/observe-events.ts +0 -30
- package/dist/bundled/mod-builder/examples/pane-and-buttons.ts +0 -60
- package/dist/bundled/mod-builder/examples/pane-form.ts +0 -68
- package/dist/bundled/mod-builder/examples/permission-policy.ts +0 -34
- package/dist/bundled/mod-builder/examples/redact-secrets.ts +0 -46
- package/dist/bundled/mod-builder/examples/slash-command.ts +0 -33
- package/dist/bundled/mod-builder/examples/spinner-count.ts +0 -47
- package/dist/bundled/mod-builder/examples/stream-filter.ts +0 -70
- package/dist/bundled/mod-builder/reference/api.md +0 -140
- package/dist/bundled/mod-builder/reference/hooks-and-events.md +0 -347
- package/dist/bundled/mod-builder/reference/overview.md +0 -271
- package/dist/bundled/mod-builder/reference/packaging.md +0 -187
- package/dist/bundled/mod-builder/reference/ui.md +0 -253
- package/dist/bundled/mod-builder/reference/verify.md +0 -67
- package/dist/bundled/skill-builder/SKILL.md +0 -104
- package/dist/cli.mjs +0 -16
- package/dist/index.mjs +0 -2
|
@@ -1,21 +0,0 @@
|
|
|
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.
|
|
@@ -1,52 +0,0 @@
|
|
|
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.
|
|
@@ -1,20 +0,0 @@
|
|
|
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.
|
|
@@ -1,21 +0,0 @@
|
|
|
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.
|
|
@@ -1,21 +0,0 @@
|
|
|
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.
|
|
@@ -1,21 +0,0 @@
|
|
|
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.
|
|
@@ -1,20 +0,0 @@
|
|
|
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.
|
|
@@ -1,77 +0,0 @@
|
|
|
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.
|
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
# Surface `/design surface`
|
|
2
|
-
|
|
3
|
-
Product design serves the work. The user is not here to admire the interface. They are here to finish a task, trust the system, and come back tomorrow without relearning it.
|
|
4
|
-
|
|
5
|
-
The best product UI becomes familiar faster than it becomes impressive.
|
|
6
|
-
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
## Discipline files
|
|
10
|
-
|
|
11
|
-
Surface drives the product hardening pass — consult these for correct execution when each dimension comes up, not as separate passes to layer on:
|
|
12
|
-
|
|
13
|
-
- [button.md](button.md) — for correct button states and control hierarchy when hardening interactive elements
|
|
14
|
-
- [interaction.md](interaction.md) — for correct state coverage, keyboard path, and touch targets when auditing component behavior
|
|
15
|
-
- [border.md](border.md) — for correct edge language and surface separation when tightening component boundaries
|
|
16
|
-
- [shadow.md](shadow.md) — for correct elevation decisions when adjusting depth and layering
|
|
17
|
-
- [writing.md](writing.md) — for correct label, error, and empty state copy when hardening operator-facing text
|
|
18
|
-
|
|
19
|
-
---
|
|
20
|
-
|
|
21
|
-
## Composition Starts With The Operator's Job
|
|
22
|
-
|
|
23
|
-
I name the operator's task before choosing structure.
|
|
24
|
-
|
|
25
|
-
Monitor: expose status, alerts, trends, and freshness.
|
|
26
|
-
|
|
27
|
-
Operate: keep commands, target objects, and feedback in one working field.
|
|
28
|
-
|
|
29
|
-
Compare: preserve columns, labels, filters, and scan paths.
|
|
30
|
-
|
|
31
|
-
Configure: group settings by consequence and show what will change.
|
|
32
|
-
|
|
33
|
-
Learn: onboard through progressive disclosure without hiding core controls.
|
|
34
|
-
|
|
35
|
-
Decide: surface proof, risk, tradeoffs, and the next safe action.
|
|
36
|
-
|
|
37
|
-
Explore: support search, filter, sort, and reversible browsing.
|
|
38
|
-
|
|
39
|
-
Product composition is not decoration. It is workflow made visible.
|
|
40
|
-
|
|
41
|
-
---
|
|
42
|
-
|
|
43
|
-
## Hardening Bar
|
|
44
|
-
|
|
45
|
-
`/design surface` hardens the working surface. It is not a visual polish pass.
|
|
46
|
-
|
|
47
|
-
At minimum, I cover the primary task, real data density, focus path, loading, empty, error, success, disabled, overflow, mobile structure, keyboard use, and copy for recovery where those states apply.
|
|
48
|
-
|
|
49
|
-
If I only changed color, spacing, or type while product states remain missing, the product pass failed.
|
|
50
|
-
|
|
51
|
-
---
|
|
52
|
-
|
|
53
|
-
## The Register
|
|
54
|
-
|
|
55
|
-
I use this file for app UIs, dashboards, admin panels, settings, authenticated routes, tools, tables, forms, editors, and operational screens.
|
|
56
|
-
|
|
57
|
-
In product, familiarity can be a feature. Surprise has to earn its place.
|
|
58
|
-
|
|
59
|
-
---
|
|
60
|
-
|
|
61
|
-
## What Good Feels Like
|
|
62
|
-
|
|
63
|
-
An experienced operator should open the screen for the eleventh time that day and move without hesitation.
|
|
64
|
-
|
|
65
|
-
Controls stay where they are expected. Labels use the same nouns. Rows keep stable density. Primary actions are obvious. Secondary actions are reachable but not loud.
|
|
66
|
-
|
|
67
|
-
If the user pauses because the UI is clever, I made the wrong trade.
|
|
68
|
-
|
|
69
|
-
---
|
|
70
|
-
|
|
71
|
-
## Type
|
|
72
|
-
|
|
73
|
-
I usually pick one strong sans or the system stack. Product labels, tables, settings, and forms do not need display type.
|
|
74
|
-
|
|
75
|
-
Scale stays compressed. Weight, color, and spacing carry hierarchy with size. Dense surfaces can use smaller type when the audience is skilled and the row structure is clear.
|
|
76
|
-
|
|
77
|
-
Numbers align. Tables deserve tabular figures. Metadata deserves restraint.
|
|
78
|
-
|
|
79
|
-
---
|
|
80
|
-
|
|
81
|
-
## Color
|
|
82
|
-
|
|
83
|
-
Product color has three jobs.
|
|
84
|
-
|
|
85
|
-
**Chrome** gives the app stable surfaces: page, sidebar, panel, row, input, divider.
|
|
86
|
-
|
|
87
|
-
**State** teaches the user the system vocabulary: selected, dirty, focused, loading, success, warning, error, disabled.
|
|
88
|
-
|
|
89
|
-
**Primary action** gets the strongest accent. If everything is accented, no action is primary.
|
|
90
|
-
|
|
91
|
-
Product starts restrained. A welcome flow or onboarding moment can carry more color. The working surface gets calmer after login.
|
|
92
|
-
|
|
93
|
-
---
|
|
94
|
-
|
|
95
|
-
## Components
|
|
96
|
-
|
|
97
|
-
Every interactive component needs its real life, not just its resting state.
|
|
98
|
-
|
|
99
|
-
Default, hover, focus-visible, active, disabled, loading, selected, error, success, empty, overflow. Some components use all of these. Some use fewer. None get to ignore the states they can enter.
|
|
100
|
-
|
|
101
|
-
Same control, same vocabulary. If two save buttons look unrelated, one is wrong.
|
|
102
|
-
|
|
103
|
-
---
|
|
104
|
-
|
|
105
|
-
## Density
|
|
106
|
-
|
|
107
|
-
Product surfaces breathe less than marketing. Density is not clutter when the relationships are clear.
|
|
108
|
-
|
|
109
|
-
Rows, panels, filters, toolbars, and tables should fit the work. Power users often need more on screen, not more air. Comfortable and compact modes can be a real feature.
|
|
110
|
-
|
|
111
|
-
---
|
|
112
|
-
|
|
113
|
-
## Motion
|
|
114
|
-
|
|
115
|
-
Product motion is short and functional.
|
|
116
|
-
|
|
117
|
-
Hover, press, selection, drawer open, popover close, loading, save confirmation. That is enough. No page-load ceremony. No scrolling performance. No animation that delays the task.
|
|
118
|
-
|
|
119
|
-
---
|
|
120
|
-
|
|
121
|
-
## What Product Can Own
|
|
122
|
-
|
|
123
|
-
- System fonts
|
|
124
|
-
- Standard navigation
|
|
125
|
-
- Tables with many rows
|
|
126
|
-
- Predictable sidebars and tabs
|
|
127
|
-
- Keyboard shortcuts
|
|
128
|
-
- Monochrome charts with one emphasized series
|
|
129
|
-
- Dense but organized screens
|
|
130
|
-
- Repetition, when repetition teaches the system
|
|
131
|
-
|
|
132
|
-
---
|
|
133
|
-
|
|
134
|
-
## What I Refuse
|
|
135
|
-
|
|
136
|
-
- Display fonts in labels, tables, or form controls
|
|
137
|
-
- Calling visual polish product hardening
|
|
138
|
-
- Leaving real data, error, empty, loading, or overflow states untested
|
|
139
|
-
- Marketing hero motion inside a working app
|
|
140
|
-
- Custom controls that lose native keyboard behavior
|
|
141
|
-
- Modals for long forms that need a route
|
|
142
|
-
- Five gray scales across one product
|
|
143
|
-
- Accent color on cancel, secondary, decorative, and inactive elements
|
|
144
|
-
- Custom scrollbars that make scrolling harder
|
|
145
|
-
- Cleverness where predictability would build trust
|
|
146
|
-
|
|
147
|
-
---
|
|
148
|
-
|
|
149
|
-
## How I Know Product UI Works
|
|
150
|
-
|
|
151
|
-
- The surface survives real data and real states
|
|
152
|
-
- The primary task is clear without reading instructions
|
|
153
|
-
- Focus, loading, error, empty, and success states exist
|
|
154
|
-
- A keyboard user can complete the core flow
|
|
155
|
-
- Tables and dense data stay aligned and scannable
|
|
156
|
-
- Mobile layout changes structure rather than hiding work
|
|
157
|
-
- The same pattern means the same thing across screens
|
|
158
|
-
- The interface feels calmer the more often it is used
|
|
159
|
-
|
|
160
|
-
STRICT RULE — NEVER BREAK THIS
|
|
161
|
-
Do not create report.md, any kind of report, summary, analysis file,
|
|
162
|
-
or extra documentation. This applies every time this file is used.
|
|
163
|
-
Generate no reports unless explicitly asked.
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
# Design System: `design-system.md` and `design-system.html`
|
|
2
|
-
|
|
3
|
-
I own two artifacts: `.commandcode/design/design-system.md` (the token spec) and `.commandcode/design/design-system.html` (the visual preview). Every mode that changes color, typography, spacing, or component language writes through this file's rules, not its own copy of them.
|
|
4
|
-
|
|
5
|
-
Extraction, not invention. I write down what the interface actually is, not what a generic system would look like.
|
|
6
|
-
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
## What `design-system.md` contains
|
|
10
|
-
|
|
11
|
-
- **Register:** brand or product
|
|
12
|
-
- **Color system:** full palette in OKLCH + hex, semantic roles (background, surface, text, accent, error, success, warning, border), dark/light strategy
|
|
13
|
-
- **Typography:** font families (display, body, mono), scale with rem values (xs → 6xl), weights, line-heights, letter-spacing
|
|
14
|
-
- **Spacing scale:** base unit and named steps
|
|
15
|
-
- **Component tokens:** border radius strategy, shadow levels, focus ring style
|
|
16
|
-
- **Button system:** primary, secondary, ghost, danger variant specs
|
|
17
|
-
- **Motion:** duration scale, easing functions
|
|
18
|
-
- **Anti-references:** what this design must not look or feel like
|
|
19
|
-
|
|
20
|
-
## What `design-system.html` contains
|
|
21
|
-
|
|
22
|
-
A visual preview — color swatches, type specimens, button variants, component examples — generated using the structure in [references/design-html.md](design-html.md) but populated with the real token values from the current interface and `design-system.md`. Never inherit the template's demo colors or fonts, and never use it as inspiration for product UI. Swatches and specimens read the project's real tokens: link the project stylesheet (or Tailwind build) and use `var(--token)`, rather than redeclaring the values in the preview, so it cannot drift from the code.
|
|
23
|
-
|
|
24
|
-
---
|
|
25
|
-
|
|
26
|
-
## STRICT — Tokens must be real, not just documented
|
|
27
|
-
|
|
28
|
-
Writing a color or size into `design-system.md` is not the deliverable. The deliverable is a real, reusable token in the codebase that components actually consume.
|
|
29
|
-
|
|
30
|
-
- Every color, spacing, radius, or type value in `design-system.md` must exist as a real CSS custom property (`:root { --color-primary: oklch(...); }`) or a Tailwind theme entry (`theme.extend.colors`, `theme.extend.spacing`, or a Tailwind v4 `@theme` block) — whichever mechanism the project already uses.
|
|
31
|
-
- Components must reference the token (`var(--color-primary)`, `bg-primary`, `text-[length:--step-2]`), not repeat the literal value. Two components sharing a color by coincidence instead of by shared token is a failure state.
|
|
32
|
-
- I document only tokens real UI consumes. A role no component uses yet (a status color, a disabled state, an unused scale step) is not defined speculatively; it is added with the first component that needs it.
|
|
33
|
-
- In the sections I touched, no raw literals remain in component CSS — gradients, shadows, and overlays included. A one-off value becomes a token or derives from one (`color-mix()`, relative color syntax).
|
|
34
|
-
- If I document a value in `design-system.md` that isn't backed by a real token in the project's CSS or Tailwind config, the work is incomplete. I wire the token before ending the turn — I do not leave it as a documentation-only entry.
|
|
35
|
-
- This rule is not optional and is not satisfied by good intentions in the markdown file. I verify the token exists in the actual stylesheet or Tailwind config before claiming the system is up to date.
|
|
36
|
-
- Scope: the wiring duty covers the sections the calling mode touched. When I create the files and a section outside that scope is still raw literals (e.g. hardcoded type sizes during a recolor), I do not tokenize it — that is out of scope. I document the values that already have tokens and list the rest under **Not yet tokenized** in that section, so a later design pass can address them.
|
|
37
|
-
|
|
38
|
-
---
|
|
39
|
-
|
|
40
|
-
## How I update the files
|
|
41
|
-
|
|
42
|
-
I check whether `.commandcode/design/design-system.md` exists.
|
|
43
|
-
|
|
44
|
-
**If it exists** — I overwrite only the section(s) the calling mode touched (color/recolor → color system section only, typeset → typography only, relayout → spacing/component tokens, redesign → every section). I leave the rest untouched.
|
|
45
|
-
|
|
46
|
-
**If it does not exist** — I create both files in the same turn: `design-system.md` (full token spec) and `design-system.html` (visual preview, using `references/design-html.md` as the structural template only, populated with real extracted values). I extract from what currently exists or from what was just built — I do not invent placeholder brand values for sections the calling mode didn't touch.
|
|
47
|
-
|
|
48
|
-
I never ask the user to run a separate command to get these files. They are written as part of the mode that triggered the change.
|
|
49
|
-
|
|
50
|
-
---
|
|
51
|
-
|
|
52
|
-
## What I refuse
|
|
53
|
-
|
|
54
|
-
- Inventing token values that aren't grounded in the real interface or the work just done
|
|
55
|
-
- Leaving a documented value without a matching real CSS/Tailwind token
|
|
56
|
-
- Overwriting sections the calling mode didn't touch
|
|
57
|
-
- Creating report.md, a summary, or any documentation file beyond these two artifacts
|
|
58
|
-
- Treating `design-system.html`'s CMD/industrial template aesthetic as inspiration for product UI
|
|
59
|
-
|
|
60
|
-
## How I know it worked
|
|
61
|
-
|
|
62
|
-
- `design-system.md` reflects the real, current interface — not generic defaults
|
|
63
|
-
- `design-system.html` renders from the project's own stylesheet, not template placeholders or a redeclared copy of the tokens
|
|
64
|
-
- Every documented token has a matching CSS custom property or Tailwind theme entry, and at least one real component references it; out-of-scope raw values are listed under **Not yet tokenized**, not presented as tokens
|
|
65
|
-
- Sections untouched by the calling mode are unchanged
|
|
66
|
-
- No extra report or documentation files were created
|
|
67
|
-
|
|
68
|
-
---
|
|
69
|
-
|
|
70
|
-
STRICT RULE — NEVER BREAK THIS
|
|
71
|
-
Do not create report.md, any kind of report, summary, analysis file,
|
|
72
|
-
or extra documentation beyond `design-system.md` and `design-system.html`.
|
|
73
|
-
This applies every time this file is used.
|