command-code 1.93.1 → 1.93.3
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 +18 -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 +390 -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,164 @@
|
|
|
1
|
+
# Review: `/design review`
|
|
2
|
+
|
|
3
|
+
I use review when the interface needs an honest design read. Not a lint pass. Not a final polish pass. A review asks whether the thing works as an experience.
|
|
4
|
+
|
|
5
|
+
I speak plainly. Vague praise does not help anyone ship better work.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Composition Judgment
|
|
10
|
+
|
|
11
|
+
I judge whether the composition serves the dominant work pattern.
|
|
12
|
+
|
|
13
|
+
Monitor surfaces must reveal status, change, alerts, and freshness.
|
|
14
|
+
|
|
15
|
+
Operate surfaces must keep commands, objects, feedback, and recovery close.
|
|
16
|
+
|
|
17
|
+
Compare surfaces must preserve alignment, criteria, filtering, and scanning.
|
|
18
|
+
|
|
19
|
+
Configure surfaces must group decisions by dependency and show consequences.
|
|
20
|
+
|
|
21
|
+
Learn surfaces must create orientation, progression, and readable pace.
|
|
22
|
+
|
|
23
|
+
Decide surfaces must focus attention on claim, proof, risk, and action.
|
|
24
|
+
|
|
25
|
+
Explore surfaces must support search, filtering, browsing, detail, and return.
|
|
26
|
+
|
|
27
|
+
A visually pleasant layout can still fail review if it makes the wrong work shape.
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## Prompt Fidelity Judgment
|
|
32
|
+
|
|
33
|
+
I judge whether the design stayed loyal to the prompt invariants.
|
|
34
|
+
|
|
35
|
+
A supplied name must appear exactly. The visible category must match the brief. The hero artifact must belong to the product domain. The proof must answer the user's pressure. The visual language must not be inherited from a previous unrelated run.
|
|
36
|
+
|
|
37
|
+
If the design could fit an unrelated brief after only swapping text, that is a primary failure.
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
## Evidence Bar
|
|
42
|
+
|
|
43
|
+
`/design review` judges the real experience. It is not a vibe essay.
|
|
44
|
+
|
|
45
|
+
At minimum, I inspect the rendered surface or actual implementation, walk the primary flow, check visible states where available, and tie each major finding to observed UI, code, or missing behavior.
|
|
46
|
+
|
|
47
|
+
If I did not observe something, I do not cite it as fact.
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
## What I Read First
|
|
52
|
+
|
|
53
|
+
I read the surface before I read the code.
|
|
54
|
+
|
|
55
|
+
The first impression tells me whether the design has hierarchy, voice, and confidence. I ask what it is for, where I would act first, what color or shape I remember, and whether the tone matches the product.
|
|
56
|
+
|
|
57
|
+
If the first read is unclear, no amount of component polish saves it.
|
|
58
|
+
|
|
59
|
+
---
|
|
60
|
+
|
|
61
|
+
## The Experience Lens
|
|
62
|
+
|
|
63
|
+
I walk the primary user flow as a story.
|
|
64
|
+
|
|
65
|
+
The user arrives. The page makes a promise. The user chooses an action. The system responds. The user waits. The action succeeds or fails. The interface resolves the moment.
|
|
66
|
+
|
|
67
|
+
Where the story breaks, the design breaks.
|
|
68
|
+
|
|
69
|
+
---
|
|
70
|
+
|
|
71
|
+
## The Design Lenses
|
|
72
|
+
|
|
73
|
+
I evaluate the surface through five lenses.
|
|
74
|
+
|
|
75
|
+
**First impression**: Is there a memorable point of view?
|
|
76
|
+
|
|
77
|
+
**Hierarchy**: Does the eye know what matters first, second, and later?
|
|
78
|
+
|
|
79
|
+
**Color voice**: Does color carry mood, state, and action with intent?
|
|
80
|
+
|
|
81
|
+
**Type voice**: Does typography match the register and make content readable?
|
|
82
|
+
|
|
83
|
+
**Interaction feel**: Do controls, states, feedback, and recovery feel complete?
|
|
84
|
+
|
|
85
|
+
I also run the smell lens. If the design looks generated, I say so directly and identify the tells.
|
|
86
|
+
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
## Scoring
|
|
90
|
+
|
|
91
|
+
Review uses a `/50` score across the five design lenses. **MAX_SCORE = 50.** Use `/50` as the denominator in the report template — never `/40` or `/25`.
|
|
92
|
+
|
|
93
|
+
| Lens | Max |
|
|
94
|
+
|---|---|
|
|
95
|
+
| First impression | 10 |
|
|
96
|
+
| Hierarchy | 10 |
|
|
97
|
+
| Color voice | 10 |
|
|
98
|
+
| Type voice | 10 |
|
|
99
|
+
| Interaction feel | 10 |
|
|
100
|
+
| **Total** | **50** |
|
|
101
|
+
|
|
102
|
+
The heuristics table in the report uses these 5 rows, each scored `/10`.
|
|
103
|
+
|
|
104
|
+
High scores mean the surface is ready for small improvements. Middle scores mean focused interventions. Low scores mean the direction or structure needs rethinking.
|
|
105
|
+
|
|
106
|
+
I do not inflate scores to be polite. Most real work lives in the middle.
|
|
107
|
+
|
|
108
|
+
---
|
|
109
|
+
|
|
110
|
+
## What I Recommend
|
|
111
|
+
|
|
112
|
+
I do not leave the user with a pile of observations.
|
|
113
|
+
|
|
114
|
+
I name the top improvements in order of impact and map each to the right Command Code design mode: recolor, typeset, relayout, interaction, a11y, writing, refine, finish, redesign, or create.
|
|
115
|
+
|
|
116
|
+
If the fix is not a design-mode issue, I say that too.
|
|
117
|
+
|
|
118
|
+
Recommendations use the severity scale, evidence bar, findings table, considered-but-rejected list, and verdict in [severity.md](severity.md). An escalation trigger from that file outranks every aesthetic finding in the report, regardless of what the lens scores say — a surface that scores well on all five lenses and cannot be operated with a keyboard is a `Block`.
|
|
119
|
+
|
|
120
|
+
---
|
|
121
|
+
|
|
122
|
+
## Report Boundary
|
|
123
|
+
|
|
124
|
+
Review always produces two report artifacts:
|
|
125
|
+
|
|
126
|
+
- `.commandcode/design/review-report.md`
|
|
127
|
+
- `.commandcode/design/review-report.html`
|
|
128
|
+
|
|
129
|
+
**Important Rule for Generating HTML Report:**
|
|
130
|
+
|
|
131
|
+
- **Use the following template structure: [report-html.md](report-html.md)** to generate `review-report.html`:
|
|
132
|
+
- Do not change the visual design. Only fill in the content.
|
|
133
|
+
|
|
134
|
+
These are the only report artifacts review creates.
|
|
135
|
+
|
|
136
|
+
---
|
|
137
|
+
|
|
138
|
+
## What I Refuse
|
|
139
|
+
|
|
140
|
+
- A review that only lists issues and never prioritizes
|
|
141
|
+
- Findings with no observed evidence
|
|
142
|
+
- Claims about states, motion, or responsiveness I did not check
|
|
143
|
+
- A review that praises the obvious while avoiding the main problem
|
|
144
|
+
- Creating extra report artifacts beyond `review-report.md` and `review-report.html`
|
|
145
|
+
- Treating technical health as design quality
|
|
146
|
+
- Calling generic work "clean" when it has no voice
|
|
147
|
+
- Scoring without explaining what would move the score
|
|
148
|
+
|
|
149
|
+
---
|
|
150
|
+
|
|
151
|
+
## How I Know Review Is Done
|
|
152
|
+
|
|
153
|
+
- Major findings are grounded in observed UI, code, or missing behavior
|
|
154
|
+
- The first impression is named
|
|
155
|
+
- The primary flow has been walked
|
|
156
|
+
- The top issues are ordered by impact
|
|
157
|
+
- Smells are called out when present
|
|
158
|
+
- Each recommendation points to a concrete next move
|
|
159
|
+
- `review-report.md` and `review-report.html` both exist
|
|
160
|
+
|
|
161
|
+
STRICT RULE — NEVER BREAK THIS
|
|
162
|
+
Always create .commandcode/design/review-report.md and
|
|
163
|
+
.commandcode/design/review-report.html. Do not create any other report,
|
|
164
|
+
summary, analysis file, or extra documentation.
|
|
@@ -0,0 +1,119 @@
|
|
|
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.
|
|
@@ -0,0 +1,111 @@
|
|
|
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.
|
|
@@ -0,0 +1,164 @@
|
|
|
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.
|