command-code 1.93.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 +4 -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 -648
- package/dist/bundled/command-code-knowledge/reference/memory.md +0 -137
- package/dist/bundled/command-code-knowledge/reference/models.md +0 -144
- 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 -489
- 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 -50
- 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,119 +0,0 @@
|
|
|
1
|
-
# Setup
|
|
2
|
-
|
|
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
|
-
|
|
5
|
-
This is not a report. It is not a research artifact. It is the working design constitution for the repo.
|
|
6
|
-
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
## Composition Defaults I Capture
|
|
10
|
-
|
|
11
|
-
When I create the design constitution, I record the project's likely work patterns.
|
|
12
|
-
|
|
13
|
-
Brand pages may decide, teach, compare, or explore.
|
|
14
|
-
|
|
15
|
-
Product surfaces may monitor, operate, compare, configure, learn, decide, or explore.
|
|
16
|
-
|
|
17
|
-
The project can have more than one pattern, but each screen needs a dominant one.
|
|
18
|
-
|
|
19
|
-
I document the allowed composition lanes so future design work does not collapse into the same centered hero, card grid, and pill controls.
|
|
20
|
-
|
|
21
|
-
---
|
|
22
|
-
|
|
23
|
-
## Applied Setup Bar
|
|
24
|
-
|
|
25
|
-
`/design setup` creates or updates the actual `.commandcode/design/brief.md`. It is not a conversational setup checklist.
|
|
26
|
-
|
|
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
|
-
|
|
29
|
-
If I only ask questions or describe what `.commandcode/design/brief.md` should contain, setup failed.
|
|
30
|
-
|
|
31
|
-
---
|
|
32
|
-
|
|
33
|
-
## What I Create
|
|
34
|
-
|
|
35
|
-
I create or update one file at `.commandcode/design/brief.md`.
|
|
36
|
-
|
|
37
|
-
That file carries the durable answers:
|
|
38
|
-
|
|
39
|
-
- Register: brand or product
|
|
40
|
-
- Users and context
|
|
41
|
-
- Product purpose
|
|
42
|
-
- Voice
|
|
43
|
-
- Anti-references
|
|
44
|
-
- Design principles
|
|
45
|
-
- Accessibility expectations
|
|
46
|
-
- Visual foundation
|
|
47
|
-
- Component rules
|
|
48
|
-
|
|
49
|
-
I do not create separate product and design documents. One file, one source of truth.
|
|
50
|
-
|
|
51
|
-
---
|
|
52
|
-
|
|
53
|
-
## What I Read Before Asking
|
|
54
|
-
|
|
55
|
-
I read the repo first.
|
|
56
|
-
|
|
57
|
-
README, package metadata, routes, existing styles, tokens, assets, logo, favicon, CSS variables, theme files, previous design notes, and old product or style documents. If the answer exists in the repo, I use it.
|
|
58
|
-
|
|
59
|
-
I form a register hypothesis from the code. Marketing routes, big heroes, pricing, blog, docs, and portfolio shapes point brand. App routes, dashboards, settings, forms, tables, and authenticated shells point product.
|
|
60
|
-
|
|
61
|
-
I ask only for what I cannot infer.
|
|
62
|
-
|
|
63
|
-
---
|
|
64
|
-
|
|
65
|
-
## What I Ask
|
|
66
|
-
|
|
67
|
-
I keep setup short and strategic.
|
|
68
|
-
|
|
69
|
-
- Is the register hypothesis right?
|
|
70
|
-
- Who is the primary user and what state are they in?
|
|
71
|
-
- What is the single most important job?
|
|
72
|
-
- What should the voice feel like in concrete physical words?
|
|
73
|
-
- What should this not look or feel like?
|
|
74
|
-
- Are there special accessibility or motion needs?
|
|
75
|
-
|
|
76
|
-
I do not ask for fonts, colors, radii, or minor styling preferences before I understand the purpose.
|
|
77
|
-
|
|
78
|
-
---
|
|
79
|
-
|
|
80
|
-
## How I Write `brief.md`
|
|
81
|
-
|
|
82
|
-
I make it concise enough to stay useful.
|
|
83
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
90
|
-
---
|
|
91
|
-
|
|
92
|
-
## What I Refuse
|
|
93
|
-
|
|
94
|
-
- Creating surface.md as a separate file
|
|
95
|
-
- Talking about setup without creating or updating `brief.md`
|
|
96
|
-
- Writing generic principles not grounded in the repo
|
|
97
|
-
- Splitting context into multiple files instead of one `brief.md`
|
|
98
|
-
- Overwriting brief.md without confirmation
|
|
99
|
-
- Asking questions the repo already answers
|
|
100
|
-
- Writing a long strategy document nobody will read
|
|
101
|
-
- Treating setup as a design review
|
|
102
|
-
- Markdown reports
|
|
103
|
-
|
|
104
|
-
---
|
|
105
|
-
|
|
106
|
-
## How I Know Setup Is Done
|
|
107
|
-
|
|
108
|
-
- `brief.md` exists at `.commandcode/design/brief.md`
|
|
109
|
-
- `brief.md` includes facts found in the repo, not just generic design advice
|
|
110
|
-
- Register is explicit
|
|
111
|
-
- Users, purpose, voice, and anti-references are clear
|
|
112
|
-
- Principles guide decisions rather than restating taste
|
|
113
|
-
- Visual foundation reflects the actual repo when possible
|
|
114
|
-
- Future design commands can proceed without re-asking basics
|
|
115
|
-
|
|
116
|
-
STRICT RULE — NEVER BREAK THIS
|
|
117
|
-
Do not create report.md, any kind of report, summary, analysis file,
|
|
118
|
-
or extra documentation. This applies every time this file is used.
|
|
119
|
-
Generate no reports unless explicitly asked.
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
# Findings: severity, evidence, verdict
|
|
2
|
-
|
|
3
|
-
Every report mode — `smell`, `checkup`, `review` — uses this scale, this evidence bar, and this verdict. Scores answer "how good is this?". Findings answer "what do I fix, in what order?". A report needs both.
|
|
4
|
-
|
|
5
|
-
A finding the user cannot act on is an observation. This file turns observations into work.
|
|
6
|
-
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
## Severity
|
|
10
|
-
|
|
11
|
-
One scale, three levels.
|
|
12
|
-
|
|
13
|
-
**HIGH** — blocks a task, misleads the user, hides content or controls, risks data loss, or repeats as a systemic failure across the surface.
|
|
14
|
-
|
|
15
|
-
**MEDIUM** — meaningfully harms comprehension, efficiency, adaptability, or consistency. The user gets there, but pays for it.
|
|
16
|
-
|
|
17
|
-
**LOW** — isolated polish with limited task impact.
|
|
18
|
-
|
|
19
|
-
Within a severity I rank by reach and leverage. A fix in a token or a shared component outranks the same symptom in one leaf component, because it fixes every instance at once.
|
|
20
|
-
|
|
21
|
-
---
|
|
22
|
-
|
|
23
|
-
## Escalation Triggers
|
|
24
|
-
|
|
25
|
-
These are `HIGH` on sight. I do not average them down because the surface is minor, and I do not hold them back to keep a report short.
|
|
26
|
-
|
|
27
|
-
- Something a user can operate that never says what it is
|
|
28
|
-
- Something Tab can land on with nothing visible to show it landed
|
|
29
|
-
- A path the mouse can walk and the keyboard cannot
|
|
30
|
-
- Decorative or vestibular motion — parallax, self-starting video/GIFs, spinning, long-travel movement, autoplaying carousels — that runs regardless of `prefers-reduced-motion`
|
|
31
|
-
- Anything cut off, buried, or out of reach once the window narrows to 320px or the text doubles
|
|
32
|
-
- Text sitting on a background it does not have enough contrast against
|
|
33
|
-
- A distinction the user can only make by seeing a hue
|
|
34
|
-
- Something irreversible with no confirmation, no undo, and nothing marking it apart from a safe action
|
|
35
|
-
- A field whose placeholder is doing the label's job
|
|
36
|
-
|
|
37
|
-
Triggers rank above every other finding and are listed first. Mechanics and fixes: [accessibility.md](accessibility.md).
|
|
38
|
-
|
|
39
|
-
These set the *cost* of a symptom, not whether it exists. The discipline reference still decides whether the symptom is present.
|
|
40
|
-
|
|
41
|
-
---
|
|
42
|
-
|
|
43
|
-
## Evidence
|
|
44
|
-
|
|
45
|
-
Every finding cites `path/to/file:line` and shows the current implementation. When the artifact has no source files, I cite the exact screen and component instead.
|
|
46
|
-
|
|
47
|
-
I do not report a code-level finding from appearance alone, or a visual finding from source alone when runtime behavior decides the result. If I could not check something, it is not a finding — it is a verification gap, and I say so.
|
|
48
|
-
|
|
49
|
-
---
|
|
50
|
-
|
|
51
|
-
## Findings Table
|
|
52
|
-
|
|
53
|
-
Findings go in one table, ordered by severity, then by reach and leverage. Never as loose "Before:" / "After:" lines.
|
|
54
|
-
|
|
55
|
-
| # | Severity | Discipline | Location | Before | After | Why |
|
|
56
|
-
|---|---|---|---|---|---|---|
|
|
57
|
-
| 1 | HIGH | Accessibility | `src/CommandBar.tsx:88` | `<div onClick={run}><PlayIcon /></div>` | Make it a `<button>`, name it `Run command`, hide the glyph from the tree | Nothing here is focusable, and nothing announces what it does |
|
|
58
|
-
| 2 | HIGH | Color | `src/Badge.tsx:14` | Status shown as `bg-red-500` / `bg-green-500` only | Add an icon and a text label beside the fill | Meaning carried by color alone |
|
|
59
|
-
| 3 | MEDIUM | Layout | `src/Toolbar.tsx:22` | Five icon buttons at `gap-1` | Raise to the project's `12px` step | Adjacent targets merge and get mis-tapped |
|
|
60
|
-
|
|
61
|
-
**Discipline** is the reference that owns the rule: Accessibility, Color, Type, Layout, Motion, Interaction, Writing, Surface, Voice. One rule, one owner — when two references seem to cover an issue, it belongs to whichever owns the underlying rule, and the secondary effect goes in the **Why** cell. I report it once.
|
|
62
|
-
|
|
63
|
-
---
|
|
64
|
-
|
|
65
|
-
## Consolidate
|
|
66
|
-
|
|
67
|
-
One root cause is one finding. Twelve components missing focus rings because a shared button strips the outline is one row with twelve locations, not twelve rows.
|
|
68
|
-
|
|
69
|
-
I never pad a report to look thorough. A short findings list is a valid result, and so is an empty one.
|
|
70
|
-
|
|
71
|
-
---
|
|
72
|
-
|
|
73
|
-
## Considered but Rejected
|
|
74
|
-
|
|
75
|
-
Every report includes 2–5 candidates I inspected and deliberately did not report. This is how the user can tell restraint from oversight.
|
|
76
|
-
|
|
77
|
-
| Location | Candidate | Rejected because |
|
|
78
|
-
|---|---|---|
|
|
79
|
-
| `src/Card.tsx:28` | Increase the shadow | Depth already matches the shared surface token; changing one card would cost consistency |
|
|
80
|
-
|
|
81
|
-
I drop a candidate when the discipline reference allows what is already there, when I could not gather enough evidence to be sure, when the project's way of doing it holds up on its own merits rather than merely being the way it has always been done, or when my proposed change would cost complexity and buy the user nothing.
|
|
82
|
-
|
|
83
|
-
These are real candidates from this pass, not invented filler. If the surface genuinely had fewer borderline calls, I list the ones that exist and say so.
|
|
84
|
-
|
|
85
|
-
---
|
|
86
|
-
|
|
87
|
-
## Verification
|
|
88
|
-
|
|
89
|
-
I list every check I ran, the exact command or interaction, and what I observed. Checks that passed and checks marked **Not verified** go in separate groups.
|
|
90
|
-
|
|
91
|
-
A verification gap never becomes a finding, and never becomes a silent pass either.
|
|
92
|
-
|
|
93
|
-
---
|
|
94
|
-
|
|
95
|
-
## Verdict
|
|
96
|
-
|
|
97
|
-
Every report ends with exactly one:
|
|
98
|
-
|
|
99
|
-
- **Block** — at least one `HIGH` is still standing.
|
|
100
|
-
- **Needs changes** — nothing `HIGH` left, but `MEDIUM` or `LOW` work is outstanding.
|
|
101
|
-
- **Approve** — nothing left to act on, and I actually ran the checks I am claiming coverage from.
|
|
102
|
-
|
|
103
|
-
I do not write "Approve" with pending actionable findings, and I do not write "Block" for polish.
|
|
104
|
-
|
|
105
|
-
---
|
|
106
|
-
|
|
107
|
-
## Report Modes Do Not Fix
|
|
108
|
-
|
|
109
|
-
`smell`, `checkup`, and `review` produce findings only. The fix happens when the user runs `redesign`, `relayout`, `recolor`, `typeset`, `a11y`, `deslop`, `refine`, or `finish` — a separate, explicit command.
|
|
110
|
-
|
|
111
|
-
The severity, the locations, and the **After** column are what those modes consume next. A finding written vaguely today becomes a fix nobody can apply tomorrow.
|
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
# Shadow System Helper
|
|
2
|
-
|
|
3
|
-
Shadows explain depth. They tell the user what sits above what, what can move, and what demands attention.
|
|
4
|
-
|
|
5
|
-
If a shadow does not make spatial understanding clearer, I remove it.
|
|
6
|
-
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
## Depth Follows Composition
|
|
10
|
-
|
|
11
|
-
The work pattern decides what rises above the surface.
|
|
12
|
-
|
|
13
|
-
Monitor screens elevate urgent alerts, live overlays, and drill-down panels.
|
|
14
|
-
|
|
15
|
-
Operate screens elevate active tools, selected objects, menus, and transient controls.
|
|
16
|
-
|
|
17
|
-
Compare screens avoid gratuitous depth. Alignment and density usually beat floating cards.
|
|
18
|
-
|
|
19
|
-
Configure screens use depth for preview, confirmation, validation, and save affordances.
|
|
20
|
-
|
|
21
|
-
Learn screens use depth only when it helps orientation between sections.
|
|
22
|
-
|
|
23
|
-
Decide screens reserve depth for the primary action or proof that must hold attention.
|
|
24
|
-
|
|
25
|
-
Explore screens use depth for filters, active selections, maps, drawers, and detail views.
|
|
26
|
-
|
|
27
|
-
I do not cast shadows on every repeated item to make a grid feel designed.
|
|
28
|
-
|
|
29
|
-
---
|
|
30
|
-
|
|
31
|
-
## System Bar
|
|
32
|
-
|
|
33
|
-
Shadow work creates or repairs an elevation system. It is not a random blur pass.
|
|
34
|
-
|
|
35
|
-
At minimum, I define how flat surfaces, raised surfaces, overlays, menus, active drag or selection, hover lift, dark theme depth, and border-shadow combinations behave.
|
|
36
|
-
|
|
37
|
-
If the product should stay flat, I remove unnecessary shadows and strengthen other hierarchy instead.
|
|
38
|
-
|
|
39
|
-
---
|
|
40
|
-
|
|
41
|
-
## What Shadows Are For
|
|
42
|
-
|
|
43
|
-
I use shadows for raised surfaces, popovers, menus, dragged items, modals, toasts, and interactive lift when the system has a layered physical language.
|
|
44
|
-
|
|
45
|
-
I do not use shadows to make a flat design feel less empty. Empty structure needs layout, type, spacing, or color. Not a random blur.
|
|
46
|
-
|
|
47
|
-
---
|
|
48
|
-
|
|
49
|
-
## Light Source
|
|
50
|
-
|
|
51
|
-
Light comes from above.
|
|
52
|
-
|
|
53
|
-
Shadows fall down. Higher objects cast softer and larger shadows. Small objects get small shadows. Heavy shadows on tiny badges look fake.
|
|
54
|
-
|
|
55
|
-
The whole product shares one lighting logic. If shadows fall in different directions, the surface feels physically incoherent.
|
|
56
|
-
|
|
57
|
-
---
|
|
58
|
-
|
|
59
|
-
## Elevation
|
|
60
|
-
|
|
61
|
-
Elevation is semantic.
|
|
62
|
-
|
|
63
|
-
Resting cards sit low. Hovered cards may lift slightly. Dropdowns and popovers sit above content. Modals sit above the whole working surface. Dragged items sit highest because the user is holding them.
|
|
64
|
-
|
|
65
|
-
I do not assign depth by vibes. Depth follows role.
|
|
66
|
-
|
|
67
|
-
---
|
|
68
|
-
|
|
69
|
-
## Dark Themes
|
|
70
|
-
|
|
71
|
-
Dark themes rarely need heavy shadows. Surface lightness usually communicates elevation better.
|
|
72
|
-
|
|
73
|
-
Raised dark surfaces can become slightly lighter than the base. Floating surfaces can become lighter again. Borders can help. Shadow is a supplement, not the foundation.
|
|
74
|
-
|
|
75
|
-
If a dark shadow cannot be seen without becoming muddy, I use surface value instead.
|
|
76
|
-
|
|
77
|
-
---
|
|
78
|
-
|
|
79
|
-
## Motion
|
|
80
|
-
|
|
81
|
-
Shadow can move with interaction, but it should not perform alone.
|
|
82
|
-
|
|
83
|
-
A hover lift works when the element also moves slightly. A modal entrance can grow into its final depth. A dragged item can gain elevation while moving. Shadow changes stay brief and smooth.
|
|
84
|
-
|
|
85
|
-
I never animate shadow on scroll just to create spectacle. It is too expensive and rarely meaningful.
|
|
86
|
-
|
|
87
|
-
---
|
|
88
|
-
|
|
89
|
-
## Shadow And Border
|
|
90
|
-
|
|
91
|
-
Border and shadow can coexist softly, but one must lead.
|
|
92
|
-
|
|
93
|
-
Flat systems use borders and maybe a whisper of shadow. Layered systems use shadow and fewer borders. Strong border plus strong shadow makes the component visually shout.
|
|
94
|
-
|
|
95
|
-
I choose the elevation strategy per project and stay with it.
|
|
96
|
-
|
|
97
|
-
When a border on a button, card, or container exists **only to create depth**, a layered transparent shadow does the job better: it adapts to any background, where a solid border color only works on the background it was picked for. Three layers — a 1px ring, a subtle lift, and ambient depth:
|
|
98
|
-
|
|
99
|
-
```css
|
|
100
|
-
:root {
|
|
101
|
-
--shadow-border:
|
|
102
|
-
0 0 0 1px oklch(0 0 0 / 0.06),
|
|
103
|
-
0 1px 2px -1px oklch(0 0 0 / 0.06),
|
|
104
|
-
0 2px 4px 0 oklch(0 0 0 / 0.04);
|
|
105
|
-
--shadow-border-hover:
|
|
106
|
-
0 0 0 1px oklch(0 0 0 / 0.08),
|
|
107
|
-
0 1px 2px -1px oklch(0 0 0 / 0.08),
|
|
108
|
-
0 2px 4px 0 oklch(0 0 0 / 0.06);
|
|
109
|
-
}
|
|
110
|
-
```
|
|
111
|
-
|
|
112
|
-
In dark mode this collapses to a single white ring — `0 0 0 1px oklch(1 0 0 / 0.08)`, hover `0.13` — because layered depth shadows are not visible on dark backgrounds.
|
|
113
|
-
|
|
114
|
-
This never applies to borders whose job is separation: dividers, table cell boundaries, hairlines in dense UI, and input outlines stay borders.
|
|
115
|
-
|
|
116
|
-
---
|
|
117
|
-
|
|
118
|
-
## Image Outlines
|
|
119
|
-
|
|
120
|
-
Images get a `1px` low-opacity outline so they sit in the same depth system as everything else. `outline` rather than `border` because it never affects layout, and `outline-offset: -1px` draws the ring just inside the image edge so it hugs the corner radius instead of floating outside it.
|
|
121
|
-
|
|
122
|
-
The color is non-negotiable: **pure black in light mode** (`oklch(0 0 0 / 0.1)`), **pure white in dark mode** (`oklch(1 0 0 / 0.1)`). Never a near-black or tinted neutral from the palette — slate, zinc, `#111827`, `#f5f5f7` — and never the accent. A tinted outline picks up the surface color beneath it and reads as dirt on the image edge.
|
|
123
|
-
|
|
124
|
-
---
|
|
125
|
-
|
|
126
|
-
## Performance
|
|
127
|
-
|
|
128
|
-
Large blurred shadows on large areas can cost real performance. Filters and giant glow effects are heavier than ordinary box shadows. Stacked shadow layers should earn their cost.
|
|
129
|
-
|
|
130
|
-
I test ambitious depth on the target viewport and device class. A premium shadow that janks is not premium.
|
|
131
|
-
|
|
132
|
-
---
|
|
133
|
-
|
|
134
|
-
## What I Refuse
|
|
135
|
-
|
|
136
|
-
- Colored shadows by default
|
|
137
|
-
- Calling one card shadow a shadow system
|
|
138
|
-
- Heavy elevation on every repeated item
|
|
139
|
-
- Multiple shadow systems in one product
|
|
140
|
-
- Heavy shadows on tiny elements
|
|
141
|
-
- Shadows in dark mode when surface lightness would work
|
|
142
|
-
- Shadows used as decoration
|
|
143
|
-
- Inconsistent light direction
|
|
144
|
-
- Hover depth with no interaction purpose
|
|
145
|
-
- Border and shadow both shouting
|
|
146
|
-
- Scroll-driven shadow animation
|
|
147
|
-
|
|
148
|
-
---
|
|
149
|
-
|
|
150
|
-
## How I Know Shadows Work
|
|
151
|
-
|
|
152
|
-
- Elevation is consistent across real layers and states
|
|
153
|
-
- The elevation order is obvious
|
|
154
|
-
- Shadows match object size and role
|
|
155
|
-
- Dark mode uses lightness where shadow fails
|
|
156
|
-
- Popovers, modals, toasts, and dragged items sit in believable layers
|
|
157
|
-
- Hover lift feels physical but not theatrical
|
|
158
|
-
- Performance stays smooth
|
|
159
|
-
- Removing a shadow would make spatial hierarchy worse
|
|
160
|
-
|
|
161
|
-
STRICT RULE — NEVER BREAK THIS
|
|
162
|
-
Do not create report.md, any kind of report, summary, analysis file,
|
|
163
|
-
or extra documentation. This applies every time this file is used.
|
|
164
|
-
Generate no reports unless explicitly asked.
|
|
@@ -1,211 +0,0 @@
|
|
|
1
|
-
# Smell: `/design smell`
|
|
2
|
-
|
|
3
|
-
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.
|
|
4
|
-
|
|
5
|
-
When a surface smells wrong, I fix the category reflex first. Cosmetic edits do not remove the odor.
|
|
6
|
-
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
## Composition Smell
|
|
10
|
-
|
|
11
|
-
I check whether the composition came from the work or from habit.
|
|
12
|
-
|
|
13
|
-
Monitor smell: status hidden inside equal cards, alerts without priority, live data treated as static decoration.
|
|
14
|
-
|
|
15
|
-
Operate smell: tools far from objects, no inspector, no command surface, no fast feedback.
|
|
16
|
-
|
|
17
|
-
Compare smell: comparison forced into unrelated cards, missing alignment, weak filters, unstable scan paths.
|
|
18
|
-
|
|
19
|
-
Configure smell: settings scattered by visual balance instead of dependency and consequence.
|
|
20
|
-
|
|
21
|
-
Learn smell: sections arranged as feature tiles when the user needs a path.
|
|
22
|
-
|
|
23
|
-
Decide smell: too many equal calls to action, proof buried below ornament.
|
|
24
|
-
|
|
25
|
-
Explore smell: search, filters, results, and backtracking treated as afterthoughts.
|
|
26
|
-
|
|
27
|
-
Centered grid is not automatically wrong. It is wrong when it has no work-pattern reason to exist.
|
|
28
|
-
|
|
29
|
-
---
|
|
30
|
-
|
|
31
|
-
## Prompt Drift Smell
|
|
32
|
-
|
|
33
|
-
I treat prompt drift as a severe smell.
|
|
34
|
-
|
|
35
|
-
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.
|
|
36
|
-
|
|
37
|
-
The fix is not copy editing. The fix is returning to the current prompt's name, category, user, job, artifact, evidence, and refused drift.
|
|
38
|
-
|
|
39
|
-
---
|
|
40
|
-
|
|
41
|
-
## Evidence Bar
|
|
42
|
-
|
|
43
|
-
`/design smell` names generic design tells from the actual surface. It does not invent odor.
|
|
44
|
-
|
|
45
|
-
At minimum, I identify the visible pattern, the reflex behind it, why it weakens this specific brief, and the right mode to fix it.
|
|
46
|
-
|
|
47
|
-
If a smell is only a suspicion, I mark it as a suspicion. I do not report it as observed.
|
|
48
|
-
|
|
49
|
-
---
|
|
50
|
-
|
|
51
|
-
## What Smell Means
|
|
52
|
-
|
|
53
|
-
A smell is a choice that looks unchosen.
|
|
54
|
-
|
|
55
|
-
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.
|
|
56
|
-
|
|
57
|
-
I look for the moment where the design stopped making project-specific decisions.
|
|
58
|
-
|
|
59
|
-
---
|
|
60
|
-
|
|
61
|
-
## The Odors I Track
|
|
62
|
-
|
|
63
|
-
**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."
|
|
64
|
-
|
|
65
|
-
**Generic tech hue**: blue-purple as the primary identity for anything vaguely technical or software-adjacent.
|
|
66
|
-
|
|
67
|
-
**Feature tile grid**: icon, heading, one sentence, repeated in a uniform grid until the section stops meaning anything. Every card equal, nothing prioritized.
|
|
68
|
-
|
|
69
|
-
**Accent rail**: a colored stripe on one side of cards or callouts added to simulate structure. Decoration pretending to be organization.
|
|
70
|
-
|
|
71
|
-
**Unearned blur**: frosted glass panels applied because the surface never committed to a depth system.
|
|
72
|
-
|
|
73
|
-
**Stat monument**: an oversized number cluster filling space where a real product story belongs.
|
|
74
|
-
|
|
75
|
-
**Icon topper**: a rounded-square icon placed above every section heading with no function beyond filling the template.
|
|
76
|
-
|
|
77
|
-
**Bounce everywhere**: motion that turns every interaction into a toy. Elastic easing applied because it was available.
|
|
78
|
-
|
|
79
|
-
**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.
|
|
80
|
-
|
|
81
|
-
**Center stack**: everything aligned to the safe middle because no composition decision was made.
|
|
82
|
-
|
|
83
|
-
**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.
|
|
84
|
-
|
|
85
|
-
**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).
|
|
86
|
-
|
|
87
|
-
---
|
|
88
|
-
|
|
89
|
-
## The Domain Default Trap
|
|
90
|
-
|
|
91
|
-
I ask whether the visual direction could be guessed from the industry.
|
|
92
|
-
|
|
93
|
-
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.
|
|
94
|
-
|
|
95
|
-
If the answer was obvious before I opened the page, the design has not found itself yet.
|
|
96
|
-
|
|
97
|
-
---
|
|
98
|
-
|
|
99
|
-
## What I Look For Instead
|
|
100
|
-
|
|
101
|
-
The design needs at least a few real decisions:
|
|
102
|
-
|
|
103
|
-
- A color strategy that is not the domain's first reflex
|
|
104
|
-
- Type with a reason
|
|
105
|
-
- A composition that chooses tension, rigor, image, or editorial pacing
|
|
106
|
-
- Imagery or visual material tied to the subject
|
|
107
|
-
- Motion that reveals character or state
|
|
108
|
-
- Copy with a specific voice
|
|
109
|
-
- An interaction or detail that could only belong here
|
|
110
|
-
|
|
111
|
-
Unexpected is not automatically good. But a page with nothing unexpected is usually forgettable.
|
|
112
|
-
|
|
113
|
-
---
|
|
114
|
-
|
|
115
|
-
## How I Judge Severity
|
|
116
|
-
|
|
117
|
-
I treat faint smells as cleanup. I treat clustered smells as identity failure.
|
|
118
|
-
|
|
119
|
-
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.
|
|
120
|
-
|
|
121
|
-
If the smell is structural, I do not patch. I change the direction.
|
|
122
|
-
|
|
123
|
-
---
|
|
124
|
-
|
|
125
|
-
## What I Do After Finding Smell
|
|
126
|
-
|
|
127
|
-
I name the dominant smell. I identify the root reflex. Then I pick the right design tool.
|
|
128
|
-
|
|
129
|
-
- Color reflex goes to recolor
|
|
130
|
-
- Type reflex goes to typeset
|
|
131
|
-
- Composition reflex goes to relayout or redesign
|
|
132
|
-
- Generic brand lane goes to voice or redesign
|
|
133
|
-
- Missing state and interaction smell goes to interaction
|
|
134
|
-
- Unclear copy goes to writing
|
|
135
|
-
|
|
136
|
-
If the design smells in several systems at once, I suggest redesign is usually cleaner than incremental repair.
|
|
137
|
-
|
|
138
|
-
**Important:** Smell never executes any mode. It only produces `.commandcode/design/smell-report.md` and `.commandcode/design/smell-report.html`.
|
|
139
|
-
|
|
140
|
-
---
|
|
141
|
-
|
|
142
|
-
## Scoring
|
|
143
|
-
|
|
144
|
-
Smell uses a `/10` score. The score is **inverted** — finding nothing is perfect.
|
|
145
|
-
|
|
146
|
-
| Tells found | Score |
|
|
147
|
-
|---|---|
|
|
148
|
-
| 0 | 10/10 — CLEAN |
|
|
149
|
-
| 1–2 | 7–8/10 — FAINT |
|
|
150
|
-
| 3–4 | 5–6/10 — PRESENT |
|
|
151
|
-
| 5–6 | 3–4/10 — STRONG |
|
|
152
|
-
| 7+ | 0–2/10 — IDENTITY FAILURE |
|
|
153
|
-
|
|
154
|
-
**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."
|
|
155
|
-
|
|
156
|
-
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.
|
|
157
|
-
|
|
158
|
-
---
|
|
159
|
-
|
|
160
|
-
## Finding Format
|
|
161
|
-
|
|
162
|
-
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.
|
|
163
|
-
|
|
164
|
-
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`.
|
|
165
|
-
|
|
166
|
-
---
|
|
167
|
-
|
|
168
|
-
## Report Boundary
|
|
169
|
-
|
|
170
|
-
Smell always produces two report artifacts:
|
|
171
|
-
|
|
172
|
-
- `.commandcode/design/smell-report.md`
|
|
173
|
-
- `.commandcode/design/smell-report.html`
|
|
174
|
-
|
|
175
|
-
**Important Rule for Generating HTML Report:**
|
|
176
|
-
|
|
177
|
-
- **Use the following template structure** [report-html.md](report-html.md) to generate `smell-report.html`:
|
|
178
|
-
- Do not change the visual design. Only fill in the content.
|
|
179
|
-
|
|
180
|
-
These are the only report artifacts smell creates.
|
|
181
|
-
|
|
182
|
-
---
|
|
183
|
-
|
|
184
|
-
## What I Refuse
|
|
185
|
-
|
|
186
|
-
- Calling a design clean because it passes technical checks
|
|
187
|
-
- Reporting a smell I cannot point to
|
|
188
|
-
- Treating personal taste as evidence of generated design
|
|
189
|
-
- Fixing an AI gradient by choosing a different AI gradient
|
|
190
|
-
- Treating Inter as wrong when it is clearly intentional
|
|
191
|
-
- Treating all centered layouts as bad when symmetry is the right lane
|
|
192
|
-
- Adding decoration to hide generic structure
|
|
193
|
-
- Creating extra report artifacts beyond `smell-report.md` and `smell-report.html`
|
|
194
|
-
|
|
195
|
-
---
|
|
196
|
-
|
|
197
|
-
## How I Know The Smell Is Gone
|
|
198
|
-
|
|
199
|
-
- Every named smell maps to a visible choice
|
|
200
|
-
- The palette cannot be guessed from the domain alone
|
|
201
|
-
- The type has a project-specific reason
|
|
202
|
-
- The composition is not the median generated landing page
|
|
203
|
-
- Repeated sections have hierarchy and variation
|
|
204
|
-
- The strongest visual idea belongs to this brief
|
|
205
|
-
- A stranger would not immediately say the page was generated
|
|
206
|
-
- `smell-report.md` and `smell-report.html` both exist
|
|
207
|
-
|
|
208
|
-
STRICT RULE — NEVER BREAK THIS
|
|
209
|
-
Always create .commandcode/design/smell-report.md and
|
|
210
|
-
.commandcode/design/smell-report.html. Do not create any other report,
|
|
211
|
-
summary, analysis file, or extra documentation.
|
|
@@ -1,23 +0,0 @@
|
|
|
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.
|
|
@@ -1,21 +0,0 @@
|
|
|
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.
|
|
@@ -1,23 +0,0 @@
|
|
|
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.
|