command-code 1.91.0 → 1.92.0
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 +19 -0
- package/dist/bundled/command-code-knowledge/reference/custom-agents.md +1 -1
- package/dist/bundled/command-code-knowledge/reference/models.md +1 -0
- package/dist/bundled/command-code-knowledge/reference/product-help.md +1 -0
- package/dist/bundled/config/references/settings.md +1 -0
- package/dist/bundled/design/SKILL.md +25 -7
- package/dist/bundled/design/references/checkup.md +2 -2
- package/dist/bundled/design/references/color.md +10 -0
- package/dist/bundled/design/references/create.md +4 -0
- package/dist/bundled/design/references/design-html.md +3 -1
- package/dist/bundled/design/references/deslop.md +89 -15
- package/dist/bundled/design/references/finish.md +1 -1
- package/dist/bundled/design/references/media.md +112 -0
- package/dist/bundled/design/references/redesign.md +11 -0
- package/dist/bundled/design/references/relayout.md +11 -1
- package/dist/bundled/design/references/smell.md +5 -1
- 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/system.md +73 -0
- package/dist/bundled/design/references/typeset.md +10 -0
- package/dist/bundled/design/references/variants.md +193 -0
- package/dist/bundled/design/references/voice.md +2 -1
- package/dist/cli.mjs +5 -5
- package/package.json +1 -1
- package/vsix/commandcode-vscode.vsix +0 -0
- package/dist/bundled/design/references/tokenize.md +0 -124
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# command-code
|
|
2
2
|
|
|
3
|
+
## 1.92.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- feat: show short tips and session nudges under the status while the agent works
|
|
8
|
+
- feat: add `/design style <name>`, a nested picker of 10 visual styles
|
|
9
|
+
- feat: add design system capabilities for consistent design across the project
|
|
10
|
+
- feat: add `/design variants`, to make multiple variants, show and compare them, and update the actual design to match selected variant
|
|
11
|
+
- fix: keep the running /goal's objective and completion contract in context across compaction
|
|
12
|
+
- fix: resize the terminal without flicker by reflowing the transcript once, in a single synchronized write
|
|
13
|
+
- feat: a sub-agent that hits its turn limit reports status to main agent
|
|
14
|
+
|
|
15
|
+
## 1.91.1
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- feat: `/goal` now keeps working across turns by default until it's verified, out of budget, stalled for 3 rounds, or has used 5 automatic continuations. Set `goalAutoContinue: false` in `~/.commandcode/config.json` to turn it off.
|
|
20
|
+
- feat: show `/goal: active`, `paused`, `idle` or `achieved` at the bottom right of the input bar.
|
|
21
|
+
|
|
3
22
|
## 1.91.0
|
|
4
23
|
|
|
5
24
|
### Minor Changes
|
|
@@ -255,7 +255,7 @@ Only these keys are read; anything else is ignored. All except `name` are option
|
|
|
255
255
|
| `disallowedTools` | `string \| string[]` | No | - | Deny list applied after `tools` (deny beats allow). Same format as `tools`. |
|
|
256
256
|
| `model` | `string` | No | inherit | Any `/model` id. Omit or set `inherit` to use the sub-agent default. |
|
|
257
257
|
| `reasoningEffort` | `string` | No | model default | Reasoning level the pinned model supports; an unsupported level falls back to the model default. |
|
|
258
|
-
| `maxTurns` | `integer` | No | `subagentMaxTurns` setting, else `200` | Caps the agent's loop. Set [`subagentMaxTurns`](https://commandcode.ai/docs/settings#top-level-keys) in `settings.json` (1 to 1000; also the "Sub-agent turn limit" row in `/config`) to change the default for every agent, built-in ones included. |
|
|
258
|
+
| `maxTurns` | `integer` | No | `subagentMaxTurns` setting, else `200` | Caps the agent's loop. Set [`subagentMaxTurns`](https://commandcode.ai/docs/settings#top-level-keys) in `settings.json` (1 to 1000; also the "Sub-agent turn limit" row in `/config`) to change the default for every agent, built-in ones included. At the cap the agent gets one final call to write its report, and tools it calls there don't run, so a limit of 200 shows up as 201 turns. |
|
|
259
259
|
| `permissionMode` | `string` | No | inherit | Overrides the session mode: `default`, `accept-edits`, `yolo`, `plan`, `dont-ask` (`auto-accept` and `bypass` accepted as aliases). A session already in `plan`/`yolo` wins. |
|
|
260
260
|
| `background` | `boolean` | No | `false` | `true` detaches every run: the `agent` tool returns an `agent_id`; results come from `agent_output`. |
|
|
261
261
|
| `showOutput` | `boolean` | No | `false` | `true` shows the agent's final message verbatim in the feed instead of a short "done" line. |
|
|
@@ -109,6 +109,7 @@ The model catalog — every id `/model`, `--model`, `model:effort` shorthand, an
|
|
|
109
109
|
| Id (use EXACTLY this) | Name | Context | Efforts | $/1M in/out · cache read | Min plan | Best for |
|
|
110
110
|
|---|---|---|---|---|---|---|
|
|
111
111
|
| `google/gemini-4-carbon` | Gemini 4 Carbon | 1M | low, medium, high | $2/$10 · cache $0.1 | Pro and above | complex software engineering & sustained agent workflows |
|
|
112
|
+
| `google/gemini-4-neon` | Gemini 4 Neon | 1M | low, medium, high, xhigh | $3/$15 · cache $0.15 | Pro and above | fast multimodal reasoning for coding & agents |
|
|
112
113
|
| `google/gemini-4-argon` | Gemini 4 Argon | 1M | low, medium, high | $2/$10 · cache $0.1 | Pro and above | multimodal reasoning for documents and agent workflows |
|
|
113
114
|
| `google/gemini-3.8-flash` | Gemini 3.8 Flash | 1M | low, medium, high | $1.5/$7.5 · cache $0.15 | GOAT and above | newest Gemini Flash, improved core reasoning |
|
|
114
115
|
| `google/gemini-3.7-flash` | Gemini 3.7 Flash | 1.05M | low, medium, high | $1.5/$7.5 · cache $0.15 (write $0.08334) | GOAT and above | higher-quality coding & agentic workflows, fewer tokens |
|
|
@@ -13,6 +13,7 @@ The executable registry is authoritative. Run `cmd config list --scope effective
|
|
|
13
13
|
| `tree-filter-mode` | user | enum | `default`, `no-tools`, `user-only`, `labeled-only`, `all` | Default filter when opening /tree. |
|
|
14
14
|
| `on-demand-tool-descriptions` | user | boolean | `true`, `false` | Explain shell commands on permission prompts only when you press ctrl+e (default). Turn off to generate every explanation upfront. |
|
|
15
15
|
| `artifacts` | user | boolean | `true`, `false` | Let Command Code publish pages it builds (reports, charts, prototypes) as links you can open and share. Turn off and it never publishes one. |
|
|
16
|
+
| `show-hints` | user | boolean | `true`, `false` | Show short tips under the status while the agent works: rotating feature tips plus nudges when the session suggests one (context nearly full, a big paste, repeated instructions, a long task). |
|
|
16
17
|
| `peek-recap-diagram` | user | boolean | `true`, `false` | When a task that changed files or ran commands finishes, draw one short text diagram recapping it (one extra model call per task, same as /peek). |
|
|
17
18
|
| `peek-recap-delay` | user | enum | `0`, `1`, `2`, `5`, `10`, `15`, `30`, `60` | Recap a finished task only when this long passed since your last message, so a quick back-and-forth is not recapped every time (same as /peek delay). |
|
|
18
19
|
| `image-vision` | user | enum | `ask`, `enabled`, `disabled` | Let a text-only model read attached images by describing them with the vision model ("Ask on first use" prompts the first time you attach an image). |
|
|
@@ -9,9 +9,10 @@ You are the user's design partner. One command for every visual discipline. Read
|
|
|
9
9
|
|
|
10
10
|
## How a turn runs
|
|
11
11
|
|
|
12
|
-
1. **Pick a tool.** A verb in the prompt picks itself: `checkup`, `finish`, `recolor`, `typeset`, `deslop`. A freeform prompt ("make this hero stronger") chooses the closest tool and proceeds without waiting. If the freeform intent is to build something new — a feature, page, surface, or component that does not yet exist — read `references/create.md` first and follow its guidance.
|
|
12
|
+
1. **Pick a tool.** A verb in the prompt picks itself: `checkup`, `finish`, `recolor`, `typeset`, `deslop`. A freeform prompt ("make this hero stronger") chooses the closest tool and proceeds without waiting for tool confirmation — but still runs steps 2 and 3 before acting. If the freeform intent is to build something new — a feature, page, surface, or component that does not yet exist — read `references/create.md` first and follow its guidance.
|
|
13
13
|
2. **Pull context.** `.commandcode/design/brief.md` is optional and only exists after `/design setup`. Confirm it exists before reading it. Do not call a read tool on `brief.md` unless a file listing, glob, or search has already found it. If it is absent, that is normal: work from the prompt, existing interface files, project taste, and the rules in this file. Never block and never surface a missing-brief error.
|
|
14
|
-
3. **
|
|
14
|
+
3. **Design system.** Check whether `.commandcode/design/design-system.md` exists. If it does, read it — its tokens are constraints, not suggestions. Do not deviate from the palette, type scale, or component language unless the user explicitly asks for a change. If it does not exist and the request is freeform or routes to a new build (not a refinement of existing UI, not an audit, report, or `setup`), build first, then write both system files afterward with no question asked. If it exists and the build adds a new component, variant, or token, update only the affected sections once the work is done; a build that only reuses existing tokens leaves the files alone. After completing `redesign`, `relayout`, `typeset`, or `recolor` — always write or update both system files once the work is done, no question asked, whether or not they existed before.
|
|
15
|
+
4. **Ship.** Apply the rules below plus the chosen tool reference. Edit real files. Test on real data. No markdown mockups.
|
|
15
16
|
|
|
16
17
|
When the *style* is ambiguous, decide. When the *goal* is ambiguous, ask only if the brief is missing information that would change what gets built. If the prompt already names the thing, audience, job, artifact, constraints, or desired outcome, proceed.
|
|
17
18
|
|
|
@@ -45,7 +46,7 @@ If interface code exists, I check `.commandcode/design/` for any of:
|
|
|
45
46
|
- `review-report.md`
|
|
46
47
|
- `smell-report.md`
|
|
47
48
|
|
|
48
|
-
**If a report exists**, the interface has already been audited. I read it, identify the highest-severity findings, and choose `redesign`, `relayout`, `a11y`, or `refine` — whichever addresses what the report flags most critically. I apply those changes to real files now. When the report contains an escalation trigger from [references/severity.md](references/severity.md), that is what I fix first, ahead of any visual finding.
|
|
49
|
+
**If a report exists**, the interface has already been audited. I read it, identify the highest-severity findings, and choose `redesign`, `relayout`, `a11y`, or `refine` — whichever addresses what the report flags most critically. When the report flags repeated or inconsistent values, consolidate them into shared tokens in the affected files. I apply those changes to real files now. When the report contains an escalation trigger from [references/severity.md](references/severity.md), that is what I fix first, ahead of any visual finding.
|
|
49
50
|
|
|
50
51
|
**If no report exists**, the interface has not been diagnosed yet. I run an audit first, then act on the findings in the same pass. I do not stop after writing the report.
|
|
51
52
|
|
|
@@ -144,7 +145,7 @@ For ANY `/design` tool on empty projects (no HTML/CSS/JS files found):
|
|
|
144
145
|
1. **Create basic HTML file** - Generate `index.html` with semantic structure
|
|
145
146
|
2. **Add design system** - Include Tailwind CSS, design tokens, typography, and layout
|
|
146
147
|
3. **Apply the tool** - Execute the requested tool's actions on the HTML file
|
|
147
|
-
4. **
|
|
148
|
+
4. **Write the system files** - Create `.commandcode/design/design-system.md` and `.commandcode/design/design-system.html`, extracting the real tokens just wired in step 2, per [references/system.md](references/system.md). No question asked, no separate command.
|
|
148
149
|
|
|
149
150
|
The HTML file becomes the working canvas. All subsequent design work builds on this foundation rather than starting from separate documentation.
|
|
150
151
|
|
|
@@ -154,6 +155,18 @@ The HTML file becomes the working canvas. All subsequent design work builds on t
|
|
|
154
155
|
- `/design typeset` → Creates HTML file, then improves typography
|
|
155
156
|
- `/design finish` → Creates HTML file, then refines the design
|
|
156
157
|
|
|
158
|
+
## Design System Persistence
|
|
159
|
+
|
|
160
|
+
Full rules for these artifacts — content spec, extraction bar, refusals, done-criteria — live in [references/system.md](references/system.md). Read it before writing or updating `design-system.md` or `design-system.html`; the summary below is only the cross-cutting trigger logic every mode needs.
|
|
161
|
+
|
|
162
|
+
**Non-negotiable:** every color, spacing, radius, or type value written into `design-system.md` must be backed by a real, reusable token in the codebase — a CSS custom property (`:root { --color-primary: ... }`) or a Tailwind theme entry (`theme.extend.colors`, or a Tailwind v4 `@theme` block) — that components actually reference, not a value they each repeat independently. Documenting a value without wiring the token is incomplete work.
|
|
163
|
+
|
|
164
|
+
Write both files in the same turn as the design work. Never ask the user to run a separate command. After completing `redesign`, `relayout`, `typeset`, or `recolor` — always write or update both system files once the work is done, no question asked, whether or not they existed before. When updating, overwrite only the sections that mode touched; do not alter unrelated sections.
|
|
165
|
+
|
|
166
|
+
Audit modes (`smell`, `checkup`, `review`), `setup`, and behavior modes (`motion`, `interaction`, `responsive`, `deslop`) read `design-system.md` if present but never write to it.
|
|
167
|
+
|
|
168
|
+
---
|
|
169
|
+
|
|
157
170
|
## Quality control: Perfect execution principles
|
|
158
171
|
|
|
159
172
|
**Before any design change:**
|
|
@@ -188,7 +201,7 @@ The HTML file becomes the working canvas. All subsequent design work builds on t
|
|
|
188
201
|
|---|---|---|---|
|
|
189
202
|
| `checkup [target]` | Audit | Rapid health scan: vitals, traffic lights, prescriptions | [references/checkup.md](references/checkup.md) |
|
|
190
203
|
| `smell [target]` | Audit | AI-tells catalog; sniff out generic patterns | [references/smell.md](references/smell.md) |
|
|
191
|
-
| `deslop [target]` | Fix | Remove AI slop; read smell
|
|
204
|
+
| `deslop [target]` | Fix | Remove AI slop; read the smell, checkup, and review reports and replace every generic tell with a real decision, as deep as the slop score demands | [references/deslop.md](references/deslop.md) |
|
|
192
205
|
| `review [target]` | Audit | Honest design review with scoring, gut reaction, walkthrough | [references/review.md](references/review.md) |
|
|
193
206
|
| `typeset [target]` | Systems | Build a type system: scale, measure, hierarchy, font behavior | [references/typeset.md](references/typeset.md) |
|
|
194
207
|
| `recolor [target]` | Systems | Build a color system: palette, roles, contrast, state color | [references/color.md](references/color.md) |
|
|
@@ -197,8 +210,9 @@ The HTML file becomes the working canvas. All subsequent design work builds on t
|
|
|
197
210
|
| `a11y [target]` | Systems | Repair the access system: focus, keyboard path, semantics, names, forms, announcements, hit areas, zoom | [references/accessibility.md](references/accessibility.md) |
|
|
198
211
|
| `relayout [target]` | Compose | Change the structural composition, not just spacing | [references/relayout.md](references/relayout.md) |
|
|
199
212
|
| `responsive [target]` | Compose | Recompose across screens, devices, input modes, contexts | [references/responsive.md](references/responsive.md) |
|
|
213
|
+
| `style <name> [target]` | Build | Choose and apply a researched visual style | [references/style.md](references/style.md) |
|
|
214
|
+
| `variants [target]` | Build | Ask how many, build 2-6 alternative directions into `.commandcode/variants/`, compare them in the one-screen viewer `.commandcode/variants/index.html`, open it, then ask which one to apply and update the actual design to match | [references/variants.md](references/variants.md) |
|
|
200
215
|
| `redesign [target]` | Build | Complete visual transformation of existing interface | [references/redesign.md](references/redesign.md) |
|
|
201
|
-
| `tokenize [target]` | Build | Pull repeated patterns into reusable tokens and components | [references/tokenize.md](references/tokenize.md) |
|
|
202
216
|
| `setup` | Build | Create or update the project `.commandcode/design/brief.md` design context | [references/setup.md](references/setup.md) |
|
|
203
217
|
| `finish [target]` | Ship | Final pre-ship pass; systematic friction removal | [references/finish.md](references/finish.md) |
|
|
204
218
|
| `refine [target]` | Ship | Change the character of an existing design: push, settle, strip, proof | [references/refine.md](references/refine.md) |
|
|
@@ -208,6 +222,7 @@ The HTML file becomes the working canvas. All subsequent design work builds on t
|
|
|
208
222
|
Discipline references, available to any tool:
|
|
209
223
|
|
|
210
224
|
- [references/color.md](references/color.md), [references/layout.md](references/layout.md), [references/border.md](references/border.md), [references/shadow.md](references/shadow.md), [references/motion.md](references/motion.md), [references/interaction.md](references/interaction.md), [references/responsive.md](references/responsive.md), [references/writing.md](references/writing.md)
|
|
225
|
+
- [references/media.md](references/media.md) for art-directing, sourcing, and verifying real photos and video before they ship — required reading for any mode that adds an external image or video URL
|
|
211
226
|
- [references/accessibility.md](references/accessibility.md) for focus, keyboard, ARIA, forms, live regions, hit areas, zoom (`a11y`) — required reading for any mode that touches a control, a form, an overlay, or motion
|
|
212
227
|
- [references/severity.md](references/severity.md) for the shared severity scale, escalation triggers, findings table, and verdict used by every report mode
|
|
213
228
|
- [references/smell.md](references/smell.md) for the AI-tells catalog
|
|
@@ -215,12 +230,13 @@ Discipline references, available to any tool:
|
|
|
215
230
|
- [references/surface.md](references/surface.md) for app UI, dashboards, tools (`surface`)
|
|
216
231
|
- [references/button.md](references/button.md) for comprehensive button component library
|
|
217
232
|
- [references/typeset.md](references/typeset.md) for typography system
|
|
233
|
+
- [references/system.md](references/system.md) for writing or updating `.commandcode/design/design-system.md` and `design-system.html` — not a mode; read it whenever a tool writes the system files
|
|
218
234
|
|
|
219
235
|
Load only what the task needs.
|
|
220
236
|
|
|
221
237
|
Template boundary:
|
|
222
238
|
|
|
223
|
-
- [references/design-html.md](references/design-html.md) is a design-system documentation template
|
|
239
|
+
- [references/design-html.md](references/design-html.md) is a design-system documentation template. It is also the look of the `/design variants` comparison viewer, `.commandcode/variants/index.html`, and never of the variants inside it.
|
|
224
240
|
- [references/report-html.md](references/report-html.md) is a smell, checkup, and review report template only.
|
|
225
241
|
- Never use either template as inspiration for product UI, landing page layout, app composition, component styling, or generated interface direction.
|
|
226
242
|
- Their CMD report aesthetic belongs to documentation artifacts, not user-facing product design.
|
|
@@ -405,6 +421,8 @@ If I say I added hover, focus, loading, empty, error, disabled, success, or resp
|
|
|
405
421
|
|
|
406
422
|
If I inspected something and did not change it, I say inspected, not fixed.
|
|
407
423
|
|
|
424
|
+
If I say I added an image or video, every external media URL I shipped has been fetched and verified in this session — status and content-type checked, or the file confirmed on disk after download — per [references/media.md](references/media.md). An `<img>` or `<video>` src I placed but never fetched is not "added."
|
|
425
|
+
|
|
408
426
|
If I cannot verify a claimed change, I either verify it before responding or remove the claim from the response.
|
|
409
427
|
|
|
410
428
|
The final response must be a checked account of applied work, not a hopeful description of intended work.
|
|
@@ -52,7 +52,7 @@ If I cannot verify a vital, I mark it unknown or unverified. I do not invent hea
|
|
|
52
52
|
|
|
53
53
|
I look at six vital signs.
|
|
54
54
|
|
|
55
|
-
**Intentionality**: Does it look chosen, or does it look assembled from defaults?
|
|
55
|
+
**Intentionality**: Does it look chosen, or does it look assembled from defaults? Check whether color, spacing, radius, and type values repeat as raw literals across files instead of one shared token (a CSS custom property or Tailwind theme entry) — that pattern is watch, or critical only when it already breaks the surface (e.g. mismatched states or contrast failures), and the fix is to replace repeated values with shared tokens.
|
|
56
56
|
|
|
57
57
|
**Readability**: Can people read it comfortably, in its real contexts and themes?
|
|
58
58
|
|
|
@@ -98,7 +98,7 @@ I stop pretending everything is equally important. A broken keyboard path outran
|
|
|
98
98
|
|
|
99
99
|
I use short probes, not a ceremonial audit.
|
|
100
100
|
|
|
101
|
-
I glance for purpose, primary action, and dominant color. I blur the page mentally and check whether hierarchy survives. I test the thumb path on narrow viewports. I tab through the core route. I look for obvious layout shift, slow media, contrast failure, and generated-design tells.
|
|
101
|
+
I glance for purpose, primary action, and dominant color. I blur the page mentally and check whether hierarchy survives. I test the thumb path on narrow viewports. I tab through the core route. I look for obvious layout shift, slow media, contrast failure, and generated-design tells. I check every external image or video `src` actually loads — a broken media icon is Critical on the Usability vital, not a style nit. See [media.md](media.md).
|
|
102
102
|
|
|
103
103
|
These probes are small on purpose. Checkup is meant to catch danger quickly.
|
|
104
104
|
|
|
@@ -229,7 +229,17 @@ If the palette is the first idea anyone would expect, I change the scene sentenc
|
|
|
229
229
|
- Dark mode feels authored, not inverted
|
|
230
230
|
- The palette does not smell like a generated SaaS template
|
|
231
231
|
|
|
232
|
+
## Design System Update
|
|
233
|
+
|
|
234
|
+
After all color changes are complete, update the design-system artifacts following [references/system.md](system.md).
|
|
235
|
+
|
|
236
|
+
- If `.commandcode/design/design-system.md` exists — update only the color system section (palette in OKLCH + hex, semantic roles, dark/light strategy). Leave typography, spacing, and component sections untouched.
|
|
237
|
+
- If it does not exist — create both `.commandcode/design/design-system.md` (full token spec) and `.commandcode/design/design-system.html` (visual preview using `references/design-html.md` as template) by extracting non-color sections from the current interface — list any of their values that are still raw literals under **Not yet tokenized** rather than wiring them (do not invent new typography/spacing/component decisions in a recolor pass).
|
|
238
|
+
|
|
239
|
+
Do this in the same turn. Never ask the user to run a separate command. Every color token written must be backed by a real CSS custom property or Tailwind theme entry that components reference — not a hardcoded value repeated across files. See `references/system.md` for the strict rule.
|
|
240
|
+
|
|
232
241
|
STRICT RULE — NEVER BREAK THIS
|
|
233
242
|
Do not create report.md, any kind of report, summary, analysis file,
|
|
234
243
|
or extra documentation. This applies every time this file is used.
|
|
235
244
|
Generate no reports unless explicitly asked.
|
|
245
|
+
Exception: `.commandcode/design/design-system.md` and `.commandcode/design/design-system.html` are required design-system artifacts, not reports or extra documentation. The "Design System Update" section above applies to those two files and supersedes this rule for them only.
|
|
@@ -8,6 +8,8 @@ I am a designer. Not a process follower. I read the room, make calls, and build
|
|
|
8
8
|
|
|
9
9
|
I read the project before I ask anything. `.commandcode/design/brief.md` is optional, so I only read it after I have confirmed it exists. I do not probe it directly and create a missing-file error. `.commandcode/taste.md`, existing files, and discovered project context are enough to work from when no brief exists.
|
|
10
10
|
|
|
11
|
+
Before I write any code, I list `.commandcode/design/`. If `design-system.md` is there, I read it first — its tokens, type scale, and component language are the constraints for what I build, per [system.md](system.md). I do not build first and reconcile with it afterward. When I finish, I update both `design-system.md` and `design-system.html` only if the build added a new component, variant, or token.
|
|
12
|
+
|
|
11
13
|
If there's nothing — no HTML, no CSS, no JS — I create the scaffolding myself: semantic HTML base, design system wired up, tokens in place. Then I work.
|
|
12
14
|
|
|
13
15
|
I pull from the design system that exists. `color.md` for palette, `typeset.md` for type, `layout.md` for space, `shadow.md` for depth, `motion.md` for timing, `button.md` for controls, `border.md` for edges. These aren't suggestions. They're the system I'm working inside.
|
|
@@ -165,6 +167,7 @@ Throughout: I populate with the hardest real content. The longest string. The em
|
|
|
165
167
|
- Add animation that doesn't teach the user something about state
|
|
166
168
|
- Rasterize anything that should stay semantic and editable
|
|
167
169
|
- Leave placeholder copy or dead links in a deliverable
|
|
170
|
+
- Place an image or video URL I have not fetched and verified myself, or guess one from a familiar host's URL shape — see [media.md](media.md)
|
|
168
171
|
- Ask questions the prompt already answered
|
|
169
172
|
- Ask for audience, product type, content, tone, or goal when the prompt already gave it
|
|
170
173
|
- Guess when a design question changes the brief — I stop and ask
|
|
@@ -278,6 +281,7 @@ I only animate `transform`, `opacity`, and `filter`. Never layout properties. Ev
|
|
|
278
281
|
| [motion.md](motion.md) | Timing, easing, animation principles |
|
|
279
282
|
| [button.md](button.md) | All interactive control variants |
|
|
280
283
|
| [interaction.md](interaction.md) | Hover, focus, tactile feedback |
|
|
284
|
+
| [media.md](media.md) | Art-directing, sourcing, and verifying real photos and video |
|
|
281
285
|
|
|
282
286
|
---
|
|
283
287
|
|
|
@@ -5,7 +5,9 @@ This file is a design-system documentation template only.
|
|
|
5
5
|
Do not use this layout, color, border treatment, corner-box style, grid,
|
|
6
6
|
or CMD report aesthetic as inspiration for product UI, landing pages,
|
|
7
7
|
dashboards, app screens, components, or generated interfaces.
|
|
8
|
-
Use it only when creating the documentation artifact it describes
|
|
8
|
+
Use it only when creating the documentation artifact it describes, or the
|
|
9
|
+
`/design variants` comparison viewer (.commandcode/variants/index.html).
|
|
10
|
+
The variant designs shown inside that viewer never use this aesthetic.
|
|
9
11
|
Do not copy this comment into generated output.
|
|
10
12
|
-->
|
|
11
13
|
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
# Deslop: `/design deslop`
|
|
2
2
|
|
|
3
|
-
Deslop removes AI slop from a design surface. I don't repaint, I don't polish, and I don't add new effects. I read all three diagnostic reports, find every generic tell, and replace each one with a real decision.
|
|
3
|
+
Deslop removes AI slop from a design surface. I don't repaint for its own sake, I don't polish what no report flagged, and I don't add new effects. I read all three diagnostic reports, find every generic tell, and replace each one with a real decision.
|
|
4
4
|
|
|
5
5
|
This mode is the treatment that follows the full diagnostic pass. Reports find the rot. Deslop cuts it out and replaces it with authored work.
|
|
6
6
|
|
|
7
|
+
A pass that only swaps colors, fonts, or shadows is not deslop — it's a reskin wearing deslop's name. If a report names a structural or composition-class smell, the fix changes the structure. A differently colored center-stack hero is still a center-stack hero. How far the structure has to move is not a fixed per-odor rule — it's set by the reports' own AI slop score. See **How The Slop Score Sets The Fix**. And even a structurally sound surface can still read as safe and flat once every named tell is gone — the closing step borrows [refine.md](refine.md)'s **Push** move for that. See **The Closing Move: Push**.
|
|
8
|
+
|
|
7
9
|
---
|
|
8
10
|
|
|
9
11
|
## Prerequisites: All Three Reports
|
|
@@ -39,10 +41,42 @@ For each finding I address:
|
|
|
39
41
|
3. **I apply the change to real files** — no markdown mockups, no commentary-only passes
|
|
40
42
|
4. **I verify the result** — the old pattern is gone and the new choice reads as intentional
|
|
41
43
|
|
|
44
|
+
This ranking decides what I fix first. It does not decide how deep each fix goes — that is set by the slop score, below.
|
|
45
|
+
|
|
42
46
|
I fix every finding the reports name. I do not skip faint smells. A few faint smells clustered in one section is a strong smell in waiting.
|
|
43
47
|
|
|
44
48
|
---
|
|
45
49
|
|
|
50
|
+
## How The Slop Score Sets The Fix
|
|
51
|
+
|
|
52
|
+
A composition-class finding does not get a fixed-size fix just because it showed up as one row in a report. `smell-report.md` already carries a score for exactly how sloppy the surface is — and that score, not a per-odor default, is what decides how much of the structure has to move.
|
|
53
|
+
|
|
54
|
+
Composition-class findings are center stack, feature tile grid, and any finding under checkup's Composition vital sign. Checkup composition findings use the smell score like any other.
|
|
55
|
+
|
|
56
|
+
There are three tiers. I check them from the top down and use the first one that matches — a surface never gets a lighter fix because it also matches a lighter tier.
|
|
57
|
+
|
|
58
|
+
Before I read the score for a tier, I re-count the tells by section. Tells that all sit in one section — a tile grid with an icon on every tile, centered in its band — count as one finding for that section, not three. The smell report counts odors, not places, so one bad section can push the raw score to PRESENT on its own. For picking a tier, I use the re-counted number on the same scale: 0 is CLEAN, 1–2 FAINT, 3–4 PRESENT, 5–6 STRONG, 7+ IDENTITY FAILURE. A page-wide tell, like a default type or a tech hue on every section, still counts once on its own. The Domain Default Trap does not count here, just as it doesn't count toward the smell score. I still fix it, but it never raises the tier. The co-location still matters: a section carrying several tells is the "alongside other-system findings" case below.
|
|
59
|
+
|
|
60
|
+
**Score IDENTITY FAILURE (7+ tells, 0–2/10), or checkup marks Intentionality Critical, or review scores both First impression and Hierarchy at 4/10 or below** — the problem is not one section, it's the system. I rebuild composition, color, type, components, depth, and motion together as one direction, not as a stack of separate patches layered on top of each other. The rebuilt components, cards, and headings must look like a different system from the old ones — if an old card could be dropped back in without anyone noticing, the rebuild didn't go far enough. Patch-level findings inside this pass still get fixed, but as part of the one rebuilt system, not as leftover touch-ups on an unmoved skeleton.
|
|
61
|
+
|
|
62
|
+
Critical Accessibility, Performance, or Prompt Fidelity vitals do not trigger this tier on their own. They block shipping and get fixed first, but they are not evidence that the visual system is generic.
|
|
63
|
+
|
|
64
|
+
**Score PRESENT/STRONG, or a composition finding at any score sitting alongside other-system findings in the same section** — I stop treating the composition finding as separable from the rest. I re-derive that section's composition from its dominant work pattern (monitor, operate, compare, configure, learn, decide, explore) and rebuild it end to end. The rebuild covers the sections the reports flagged. Sections no report flagged keep their structure — at this tier, a good hero stays the hero it was. A finding at this level is only fixed when I can point to at least one of:
|
|
65
|
+
|
|
66
|
+
- a new dominant focal point
|
|
67
|
+
- a reordered section sequence
|
|
68
|
+
- a changed relationship between the text and its proof object
|
|
69
|
+
- a transformed grid, table, stack, or flow
|
|
70
|
+
- a changed navigation, sidebar, toolbar, or action placement
|
|
71
|
+
|
|
72
|
+
Spacing, padding, alignment, and color can accompany this fix. They cannot replace it — if none of the five things above changed, the finding is still open, no matter how the colors look now.
|
|
73
|
+
|
|
74
|
+
**Score CLEAN/FAINT, and the composition finding sits alone with no other-system finding in the same section** — the fix stays local. I rework the flagged section directly: give it a real focal point, break its uniform grid, reorder its own content around what actually matters. Nothing else on the page has to move, because nothing else is broken.
|
|
75
|
+
|
|
76
|
+
I don't wait for a separate command to justify this depth. Deslop already has permission to fix everything the reports name, and a clustered or severe finding is still a named finding — it just needs more of the surface to move before it counts as fixed.
|
|
77
|
+
|
|
78
|
+
---
|
|
79
|
+
|
|
46
80
|
## The Odors And Their Antidotes
|
|
47
81
|
|
|
48
82
|
### Tech Gradient
|
|
@@ -57,17 +91,17 @@ Blue-purple as the primary identity for anything vaguely technical.
|
|
|
57
91
|
|
|
58
92
|
**Fix**: I replace the identity hue with one that has project-level justification. If the product handles water data, teal is earned, not guessed. If it manages gardens, green is earned. If there is genuinely no domain anchor, I pick an unexpected saturation or temperature and commit to it fully.
|
|
59
93
|
|
|
60
|
-
### Feature Tile Grid
|
|
94
|
+
### Feature Tile Grid — composition-class
|
|
61
95
|
|
|
62
96
|
Icon, heading, one sentence, repeated in a uniform grid until the section stops meaning anything.
|
|
63
97
|
|
|
64
|
-
**Fix**:
|
|
98
|
+
**Fix**: This is a composition-class finding — see **How The Slop Score Sets The Fix** for how far it has to move. At minimum I lead with the strongest feature, vary the layout rhythm, break the uniform grid, or kill the section entirely if it's filler. Cards are not automatically wrong. Equal cards with no priority, left equal after the fix, are always wrong.
|
|
65
99
|
|
|
66
100
|
### Accent Rail
|
|
67
101
|
|
|
68
102
|
A colored stripe on one side of cards or callouts that simulates structure.
|
|
69
103
|
|
|
70
|
-
**Fix**: I remove the rail. If the card needs differentiation, I
|
|
104
|
+
**Fix**: I remove the rail. If the card needs differentiation, I decide it through density, type weight, or border treatment as part of the section's real structure — not a decoration standing in for one. If it doesn't need differentiation, the rail was decoration and simply goes.
|
|
71
105
|
|
|
72
106
|
### Unearned Blur
|
|
73
107
|
|
|
@@ -99,11 +133,11 @@ A common family used with no voice, no scale, no reason. The font that appeared
|
|
|
99
133
|
|
|
100
134
|
**Fix**: I either commit to the current family with a real reason and a tuned scale, or I switch to a family that has project-level intention. Inter is not wrong. Inter with no scale, no weight contrast, and no voice is wrong. System fonts for product UI are legitimate. Brand surfaces need a deliberate type choice.
|
|
101
135
|
|
|
102
|
-
### Center Stack
|
|
136
|
+
### Center Stack — composition-class
|
|
103
137
|
|
|
104
138
|
Everything aligned to the safe middle because no composition decision was made.
|
|
105
139
|
|
|
106
|
-
**Fix**: I choose a composition based on the dominant work pattern
|
|
140
|
+
**Fix**: This is a composition-class finding — see **How The Slop Score Sets The Fix** for how far it has to move. At minimum I choose a composition based on the dominant work pattern, and confirm the result is actually a different arrangement, not a recolored version of the same centered stack. Centered is valid when symmetry is the right answer for that work pattern. Centered as the unexamined default is not.
|
|
107
141
|
|
|
108
142
|
---
|
|
109
143
|
|
|
@@ -121,12 +155,14 @@ A note-taking app as cream and rounded sans. A developer tool as dark with termi
|
|
|
121
155
|
|
|
122
156
|
I work in this order because each fix ripples into the next:
|
|
123
157
|
|
|
124
|
-
1. **Composition** — center stack, feature tile grid,
|
|
158
|
+
1. **Composition** — center stack, feature tile grid. Composition-class: how far it moves is set by the slop score, not a fixed per-odor default.
|
|
125
159
|
2. **Color** — tech gradient, generic tech hue, domain default trap. These set the mood.
|
|
126
160
|
3. **Type** — default type. This gives the surface its voice.
|
|
127
161
|
4. **Depth** — unearned blur, stat monument. These are spatial decisions.
|
|
128
162
|
5. **Motion** — bounce everywhere. Motion comes last because it reacts to the settled composition.
|
|
129
|
-
6. **Decoration** — icon topper. These are the last things to address.
|
|
163
|
+
6. **Decoration** — icon topper, accent rail. These are the last things to address.
|
|
164
|
+
|
|
165
|
+
At IDENTITY FAILURE score, I don't run this order as six separate passes — the whole system gets rebuilt together. The order above still describes the internal sequencing of that rebuild: composition settles before color is chosen, color before type, and so on.
|
|
130
166
|
|
|
131
167
|
I don't jump to color before fixing composition. A new palette on a broken layout is still broken.
|
|
132
168
|
|
|
@@ -141,12 +177,31 @@ A smell is fixed when:
|
|
|
141
177
|
- The choice would survive the prompt changing — it belongs to the product, not the request
|
|
142
178
|
- The section or element still does its job, now with intention
|
|
143
179
|
- The fix does not create a new smell in another category
|
|
180
|
+
- If the finding was composition-class, the fix clears the bar in **How The Slop Score Sets The Fix** at the level the score actually calls for — not just this checklist
|
|
181
|
+
|
|
182
|
+
---
|
|
183
|
+
|
|
184
|
+
## The Closing Move: Push
|
|
185
|
+
|
|
186
|
+
Every deslop pass ends with one required step, run after every named finding is fixed: I check whether the result still reads as safe and flat even though every named tell is gone, and if it does, I push it — stronger commitment, sharper point of view, not a new effect layered on top.
|
|
187
|
+
|
|
188
|
+
The check always runs. The push only happens when the check finds flatness. Its reach follows the tier: at CLEAN/FAINT it stays inside the sections deslop already touched, and the rest of the page is left alone. At PRESENT/STRONG it covers the rebuilt sections and the seams around them. At IDENTITY FAILURE it covers the whole rebuilt system.
|
|
189
|
+
|
|
190
|
+
This is the same move [refine.md](refine.md) calls **Push**, one of several moves refine chooses between depending on diagnosis. Deslop doesn't need refine's full move set — settle, strip, proof, activate, texture, push past limits all answer problems deslop isn't diagnosing — but Push specifically answers "safe and flat," which is exactly the failure mode left over after every other named smell is gone. So this check runs every time, not as a diagnosis choice.
|
|
191
|
+
|
|
192
|
+
This exists because a surface can clear every named finding and still be forgettable — competent, safe, the kind of thing a stranger clocks as AI-made in two seconds without any single odor from the catalog above being present.
|
|
193
|
+
|
|
194
|
+
Brand surfaces get stronger type, a more unexpected color choice, a sharper composition, a hero moment with an actual point of view. Product surfaces get stronger hierarchy, a clearer primary action, better density, more useful contrast — confidence, not spectacle. I refuse purple gradients, glass panels, neon on dark, gradient text, and bounce as the answer to "make it stronger" — those are new slop, not a fix.
|
|
195
|
+
|
|
196
|
+
I know this step worked when the focal point jumps out and the surface still feels coherent. One small detail does not count as having run it.
|
|
197
|
+
|
|
198
|
+
The check is mandatory, not conditional on a failed stranger test below. The stranger test is how I *notice* flatness; Push is how I *fix* it, as the last thing deslop does before calling itself done.
|
|
144
199
|
|
|
145
200
|
---
|
|
146
201
|
|
|
147
202
|
## Cohesion Check
|
|
148
203
|
|
|
149
|
-
After fixing all named smells, I scan the full surface for new tension.
|
|
204
|
+
After fixing all named smells and running Push, I scan the full surface for new tension.
|
|
150
205
|
|
|
151
206
|
Sometimes removing one smell exposes another. Sometimes the fixes create visual whiplash between sections. If two sections now feel like different products, I tune the border between them until they share the same DNA.
|
|
152
207
|
|
|
@@ -154,9 +209,15 @@ Sometimes removing one smell exposes another. Sometimes the fixes create visual
|
|
|
154
209
|
|
|
155
210
|
## Verify Like A Designer
|
|
156
211
|
|
|
157
|
-
After applying all fixes, I run a designer verification pass before calling it done.
|
|
212
|
+
After applying all fixes and the closing Push step, I run a designer verification pass before calling it done.
|
|
213
|
+
|
|
214
|
+
**Stranger test**: Would a stranger still say "AI made that" without hesitation? If yes, I missed something — check which of the checks below actually failed rather than looking for a vague "tell."
|
|
215
|
+
|
|
216
|
+
**Structure check**: For every composition-class finding, does it clear the bar from **How The Slop Score Sets The Fix** at the level the score called for — a new dominant focal point, a reordered sequence, a changed text/proof relationship, a transformed grid or flow? If the layout skeleton is identical to before and only the paint changed, the finding is not fixed, no matter what the report checklist says.
|
|
217
|
+
|
|
218
|
+
**Rebuild check**: If the score put this at IDENTITY FAILURE, could the old and new components, cards, and headings be swapped without anyone noticing? If yes, the systemic rebuild didn't go far enough.
|
|
158
219
|
|
|
159
|
-
**
|
|
220
|
+
**Push check**: Did the flatness check run, and if it found flatness, does the pushed area now pass Push's own verification — does the focal point jump out, and does the surface still feel coherent? If an area inside Push's reach still reads as safe and flat, Push was not actually applied, only claimed. Changes outside Push's reach for this tier are a regression, not a push.
|
|
160
221
|
|
|
161
222
|
**Regression check**: Did the fixes break anything new? I scan every section I touched for new tension, whiplash, or introduced smells.
|
|
162
223
|
|
|
@@ -164,15 +225,15 @@ After applying all fixes, I run a designer verification pass before calling it d
|
|
|
164
225
|
|
|
165
226
|
**Judgment check**: Would a working designer approve each decision? Not just accept — actively approve it as the right call for this product.
|
|
166
227
|
|
|
167
|
-
If any check fails, I
|
|
228
|
+
If any check fails, I go back to the specific finding or step that check names and redo it properly — I do not treat "the stranger test failed" as license to invent a new, unrelated fix.
|
|
168
229
|
|
|
169
230
|
---
|
|
170
231
|
|
|
171
232
|
## Ship or Iterate
|
|
172
233
|
|
|
173
|
-
If all
|
|
234
|
+
If all seven verification checks pass, deslop is done.
|
|
174
235
|
|
|
175
|
-
If any check fails, I go back to
|
|
236
|
+
If any check fails, I go back to what it names: an unfixed report finding, a composition-class fix that didn't move enough for its score, or a skipped or token Push step. I do not invent unrelated new work, change product scope, or add features nobody asked for. I finish applying the depth the reports' own score and this file already define.
|
|
176
237
|
|
|
177
238
|
---
|
|
178
239
|
|
|
@@ -182,6 +243,13 @@ If any check fails, I go back to the reports — not to polish, but to find what
|
|
|
182
243
|
- Removing a smell without replacing it with a real decision
|
|
183
244
|
- Polishing around the smell instead of removing it
|
|
184
245
|
- Calling a recolor pass a deslop pass
|
|
246
|
+
- Marking a composition finding fixed because the colors and font changed while the layout skeleton stayed the same
|
|
247
|
+
- Applying the same small, local fix to a composition finding regardless of what the slop score actually says about it
|
|
248
|
+
- Patching an IDENTITY FAILURE surface finding-by-finding instead of rebuilding it as one system
|
|
249
|
+
- Calling deslop done without running the closing Push check
|
|
250
|
+
- Using Push to restyle sections no report flagged on a CLEAN/FAINT surface
|
|
251
|
+
- Restructuring a section no report flagged, below IDENTITY FAILURE
|
|
252
|
+
- Escalating the tier because one broken section tripped several odors at once
|
|
185
253
|
- Fixing only the hero section when the smell is structural
|
|
186
254
|
- Treating Inter as wrong when it is clearly intentional
|
|
187
255
|
- Treating all centered layouts as bad when symmetry is the right lane
|
|
@@ -193,6 +261,9 @@ If any check fails, I go back to the reports — not to polish, but to find what
|
|
|
193
261
|
## How I Know Deslop Worked
|
|
194
262
|
|
|
195
263
|
- Every finding from all three reports has been addressed in real files
|
|
264
|
+
- Every composition-class finding cleared the bar its slop score actually called for — a real rearrangement, not new paint on the old skeleton
|
|
265
|
+
- A surface that scored IDENTITY FAILURE now reads as one rebuilt system, not a pile of old components swapped for new-colored copies
|
|
266
|
+
- The closing Push check ran, and any push it triggered stayed inside its tier's reach and clears its own verification
|
|
196
267
|
- The surface reads as authored, not generated
|
|
197
268
|
- The color strategy cannot be guessed from the industry
|
|
198
269
|
- The type has a project-specific reason
|
|
@@ -206,4 +277,7 @@ STRICT RULE — NEVER BREAK THIS
|
|
|
206
277
|
Deslop checks `.commandcode/design/` for all three reports before touching any file.
|
|
207
278
|
Missing reports are generated on the spot by running the corresponding design mode.
|
|
208
279
|
It never creates extra reports, summaries, analysis files, or documentation beyond the three diagnostic reports.
|
|
209
|
-
After fixes, it always runs the designer verification pass and ships or iterates based on the result.
|
|
280
|
+
After fixes, it always runs the closing Push check, then the designer verification pass, and ships or iterates based on the result.
|
|
281
|
+
A pass that changes only color, type, or decoration while a composition-class finding remains structurally untouched is incomplete, not done — the slop-score-based structure bar governs, not the report checklist.
|
|
282
|
+
A pass that patches an IDENTITY FAILURE surface one finding at a time instead of rebuilding it as one system is incomplete, not done.
|
|
283
|
+
A pass that skips the closing Push check, or answers real flatness with a token gesture, is incomplete, not done — the Push verification governs, not "the report checklist is empty."
|
|
@@ -84,7 +84,7 @@ I do not polish the happy path while the edge states rot.
|
|
|
84
84
|
|
|
85
85
|
**Edge content**: long names, short labels, empty lists, huge lists, slow network, no network, narrow screen, wide screen.
|
|
86
86
|
|
|
87
|
-
**Surface polish**: hover, active, disabled, selected, skeletons, images, favicon, page title, metadata, and no broken assets.
|
|
87
|
+
**Surface polish**: hover, active, disabled, selected, skeletons, images, favicon, page title, metadata, and no broken assets. Every external image or video URL is fetched and verified this session, not assumed — see [media.md](media.md). An unverified `src` is a broken asset until proven otherwise.
|
|
88
88
|
|
|
89
89
|
---
|
|
90
90
|
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
# Media
|
|
2
|
+
|
|
3
|
+
I pick imagery and video that lifts the page the moment it loads, belongs to this project and no other, and never ships broken or rights-unclear.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## I Lock Direction First
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
ERA · LIGHT · PALETTE (3 hexes) · SUBJECT · DISTANCE · FORBIDDEN
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Filled from the brand, not the category. No vibe signal in the brief? I ask for two reference images.
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## Own Photos Beat Stock
|
|
18
|
+
|
|
19
|
+
Before searching, I look for the project's real photos: the brief (attachments, links, live site), the repo (`find . -path ./node_modules -prune -o -type f \( -iname '*.jpg' -o -iname '*.png' -o -iname '*.webp' -o -iname '*.mp4' \) -print`), and existing `src`/`url()` values or CMS hosts in config. Logos, icons, screenshots, and placeholders don't count. If I find nothing and the subject is physical, I ask once: "Do you have photos of the real <subject>?"
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## I Match It To The Project
|
|
24
|
+
|
|
25
|
+
| Project | What lifts it | Look first |
|
|
26
|
+
|---|---|---|
|
|
27
|
+
| Food, café, restaurant | Close, hard-lit plates, steam, hands | Pexels, Unsplash, Kaboompics |
|
|
28
|
+
| Hotel, travel, place | Wide shot at golden or blue hour, one person for scale | Unsplash, Pexels, Wikimedia |
|
|
29
|
+
| Fashion, beauty, craft | Editorial crop, one strong light, texture | Pexels, Unsplash, Burst |
|
|
30
|
+
| SaaS, dev, AI | Material macro, light on glass, slow ambient loop | Pexels Videos, Coverr, Poly Haven |
|
|
31
|
+
| Finance, legal | Architecture, stone, shadow geometry | Unsplash, Openverse |
|
|
32
|
+
| Science, space | Real instrument or observation imagery | NASA, Wikimedia |
|
|
33
|
+
| Culture, editorial, luxury | Public-domain paintings, engravings, maps | The Met, Openverse |
|
|
34
|
+
| Event, music, fitness | Motion, stage light, grain | Pexels Videos, Pixabay, Mixkit |
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## It Earns The Slot
|
|
39
|
+
|
|
40
|
+
"Aesthetic" is the bar, never a query word. Every asset needs: **one subject** the eye lands on in under a second, **real directional light**, **depth**, **calm space for the headline**, **palette fit**, **one detail worth zooming into**, and **2× display resolution**. Gut test: would someone screenshot the page for this image? If not, it's filler.
|
|
41
|
+
|
|
42
|
+
**Video:** a 6–15s seamless loop with one slow move and no cuts. `autoplay muted loop playsinline` + `poster`, still image under `prefers-reduced-motion`, ≤ ~4 MB (re-encode with `ffmpeg -an -crf 28` if available), and a scrim so text passes contrast on every frame.
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
## I Search The Photograph, Not The Subject
|
|
47
|
+
|
|
48
|
+
Query = **[film or camera] + [light] + [subject] + [distance]**, 4–7 words. `healthy food` → `overhead ceramic plate hard shadow film`. Banned: *beautiful, modern, professional, stunning, creative, aesthetic.* Up to five queries per slot across at least two hosts, then the fallback ladder.
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
|
|
52
|
+
## Hosts
|
|
53
|
+
|
|
54
|
+
- **Photo:** Unsplash, Pexels, Pixabay, Burst, Kaboompics, StockSnap
|
|
55
|
+
- **Video:** Pexels, Pixabay, Coverr, Mixkit
|
|
56
|
+
- **Public domain / open:** Openverse, Wikimedia Commons, The Met, NASA. The least overused, and often the most striking.
|
|
57
|
+
- **Texture:** Poly Haven, ambientCG (CC0)
|
|
58
|
+
- **Never:** flat vector packs (unDraw, Storyset). They read as template.
|
|
59
|
+
|
|
60
|
+
Stock sites show curl a bot wall or an empty JavaScript shell, so I search through hosts with a keyless JSON API (Openverse, Wikimedia Commons, The Met keeping only `isPublicDomain` objects, NASA) and take the file URL and licence from the response. Pexels, Pixabay, and Unsplash only if `PEXELS_API_KEY`, `PIXABAY_API_KEY`, or `UNSPLASH_ACCESS_KEY` is already set; I never hardcode a key. I send curl's default User-Agent, never a fake browser one. A 4xx, a retirement notice, or a "Just a moment…" bot wall is a failed fetch, so I move to the next source.
|
|
61
|
+
|
|
62
|
+
---
|
|
63
|
+
|
|
64
|
+
## Reject Test
|
|
65
|
+
|
|
66
|
+
Any one fails it: a stock caption writable in five words · no detail worth a second look · won't sit in PALETTE even duotoned · could appear unchanged on a competitor's site.
|
|
67
|
+
|
|
68
|
+
Hard bans: people at laptops, handshakes, sticky notes, product on white, blue-purple mesh gradients, glowing circuitry, lens flare, watermarks, baked-in text, flat vector people.
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
## I Verify Before It Ships
|
|
73
|
+
|
|
74
|
+
- I never write a media URL from memory or build one from a host's usual URL shape. `source.unsplash.com` is dead, and guessed `images.unsplash.com/photo-<id>` or `images.pexels.com/photos/<id>` URLs are banned. The host's own size parameters (`w=`, `q=`, `fit=`) on a URL I read are fine.
|
|
75
|
+
- `curl -sL -o /dev/null -w '%{http_code} %{content_type}' "<final url>"` must return `200` with `image/*` or `video/*`. Nothing is downloaded yet.
|
|
76
|
+
|
|
77
|
+
---
|
|
78
|
+
|
|
79
|
+
## I Clear The Rights
|
|
80
|
+
|
|
81
|
+
I read the licence on the source page or in the API response before anything is downloaded.
|
|
82
|
+
- **Clear:** CC0 and public domain (Met public-domain objects, Poly Haven, ambientCG); Unsplash, Pexels, Pixabay, Burst, Kaboompics, StockSnap, Coverr, and Mixkit under their own licences. Unsplash+ shows up in normal Unsplash results and is paid: rejected.
|
|
83
|
+
- **Per file:** Openverse and Wikimedia (`license` / `extmetadata.LicenseShortName`). NASA: reject anything credited to a third party, and never imply endorsement.
|
|
84
|
+
- **CC-BY:** only with credit in the footer or `ATTRIBUTION.md`. **CC-BY-SA:** only if the project can share-alike. **NC, ND, unclear, or all rights reserved:** rejected.
|
|
85
|
+
- One verdict line per asset before download: `<source> · <licence as stated> · clear | credit | rejected`.
|
|
86
|
+
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
## I Bring It Into The Project
|
|
90
|
+
|
|
91
|
+
- **Temp first:** scratch pages, candidates, and logs stay in `tmp=$(mktemp -d)`, never the project. `curl -sL "<url>" -o "$tmp/<name>.<ext>"`.
|
|
92
|
+
- **Size:** ~2× the largest display width, as WebP: `cwebp -q 80 -resize <w> 0 in.jpg -o out.webp` or `magick in.jpg -resize <w>x -quality 80 out.webp`. Neither installed: a resized JPEG via `sips -Z <w> in.jpg --out out.jpg`, never the full-size original. `sips` cannot write WebP.
|
|
93
|
+
- **Check:** `file` confirms a real image, not an error page with an image extension.
|
|
94
|
+
- **Place:** in the project's existing asset directory (`public/`, `assets/`, `static/`, or beside a standalone `index.html`). I never hotlink.
|
|
95
|
+
- **Src:** the path the site serves, not the disk path. Vite or Next `public/images/x.webp` is `src="/images/x.webp"`.
|
|
96
|
+
- **Markup:** hero gets `srcset` (two widths) + `sizes`; the rest get `width`, `height`, `loading="lazy"`. Alt text describes what I actually fetched.
|
|
97
|
+
|
|
98
|
+
---
|
|
99
|
+
|
|
100
|
+
## Fewer, Larger, One Set
|
|
101
|
+
|
|
102
|
+
Landing budget: hero, mid-page break, close. One treatment across all of them: either a duotone into the palette (`grayscale(1)` + accent background + `mix-blend-mode: luminosity`) or ~12% SVG grain. One crop ratio, one radius. Assets from different hosts must look like one shoot.
|
|
103
|
+
|
|
104
|
+
---
|
|
105
|
+
|
|
106
|
+
## Fallback Ladder
|
|
107
|
+
|
|
108
|
+
Nothing passed, fetched, or cleared? I never ship a weak asset or a broken `<img>`.
|
|
109
|
+
- **Physical subject:** ask who can supply a real photo → SVG/CSS illustration → a labeled stand-in sized for the real photo.
|
|
110
|
+
- **Non-physical subject:** oversized type (12–20vw) → generated texture → macro of one material → flat color.
|
|
111
|
+
|
|
112
|
+
I say which rung I landed on and why.
|