command-code 1.93.0 → 1.93.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/package.json +1 -1
  3. package/vsix/commandcode-vscode.vsix +0 -0
  4. package/dist/bundled/agent-browser/SKILL.md +0 -73
  5. package/dist/bundled/command-code-knowledge/SKILL.md +0 -68
  6. package/dist/bundled/command-code-knowledge/live-models.ts +0 -284
  7. package/dist/bundled/command-code-knowledge/reference/byok.md +0 -389
  8. package/dist/bundled/command-code-knowledge/reference/custom-agents.md +0 -341
  9. package/dist/bundled/command-code-knowledge/reference/custom-slash-commands.md +0 -423
  10. package/dist/bundled/command-code-knowledge/reference/headless.md +0 -381
  11. package/dist/bundled/command-code-knowledge/reference/hooks.md +0 -1107
  12. package/dist/bundled/command-code-knowledge/reference/mcp.md +0 -648
  13. package/dist/bundled/command-code-knowledge/reference/memory.md +0 -137
  14. package/dist/bundled/command-code-knowledge/reference/models.md +0 -144
  15. package/dist/bundled/command-code-knowledge/reference/permissions.md +0 -486
  16. package/dist/bundled/command-code-knowledge/reference/plan-mode.md +0 -283
  17. package/dist/bundled/command-code-knowledge/reference/plans.md +0 -16
  18. package/dist/bundled/command-code-knowledge/reference/product-help.md +0 -489
  19. package/dist/bundled/command-code-knowledge/reference/sessions.md +0 -377
  20. package/dist/bundled/command-code-knowledge/reference/skills.md +0 -1009
  21. package/dist/bundled/command-code-knowledge/reference/tools.md +0 -522
  22. package/dist/bundled/config/SKILL.md +0 -18
  23. package/dist/bundled/config/references/permissions.md +0 -27
  24. package/dist/bundled/config/references/settings.md +0 -50
  25. package/dist/bundled/design/SKILL.md +0 -441
  26. package/dist/bundled/design/references/accessibility.md +0 -404
  27. package/dist/bundled/design/references/border.md +0 -161
  28. package/dist/bundled/design/references/button.md +0 -192
  29. package/dist/bundled/design/references/checkup.md +0 -162
  30. package/dist/bundled/design/references/color.md +0 -245
  31. package/dist/bundled/design/references/create.md +0 -291
  32. package/dist/bundled/design/references/design-html.md +0 -227
  33. package/dist/bundled/design/references/deslop.md +0 -283
  34. package/dist/bundled/design/references/finish.md +0 -156
  35. package/dist/bundled/design/references/interaction.md +0 -186
  36. package/dist/bundled/design/references/layout.md +0 -216
  37. package/dist/bundled/design/references/media.md +0 -112
  38. package/dist/bundled/design/references/motion.md +0 -237
  39. package/dist/bundled/design/references/redesign.md +0 -197
  40. package/dist/bundled/design/references/refine.md +0 -193
  41. package/dist/bundled/design/references/relayout.md +0 -207
  42. package/dist/bundled/design/references/report-html.md +0 -235
  43. package/dist/bundled/design/references/responsive.md +0 -233
  44. package/dist/bundled/design/references/review.md +0 -164
  45. package/dist/bundled/design/references/setup.md +0 -119
  46. package/dist/bundled/design/references/severity.md +0 -111
  47. package/dist/bundled/design/references/shadow.md +0 -164
  48. package/dist/bundled/design/references/smell.md +0 -211
  49. package/dist/bundled/design/references/style-3d.md +0 -23
  50. package/dist/bundled/design/references/style-bento.md +0 -21
  51. package/dist/bundled/design/references/style-editorial.md +0 -23
  52. package/dist/bundled/design/references/style-futuristic.md +0 -21
  53. package/dist/bundled/design/references/style-glassmorphism.md +0 -52
  54. package/dist/bundled/design/references/style-maximalism.md +0 -20
  55. package/dist/bundled/design/references/style-minimalism.md +0 -21
  56. package/dist/bundled/design/references/style-neo-brutalism.md +0 -21
  57. package/dist/bundled/design/references/style-retro-futurism.md +0 -21
  58. package/dist/bundled/design/references/style-swiss.md +0 -20
  59. package/dist/bundled/design/references/style.md +0 -77
  60. package/dist/bundled/design/references/surface.md +0 -163
  61. package/dist/bundled/design/references/system.md +0 -73
  62. package/dist/bundled/design/references/typeset.md +0 -210
  63. package/dist/bundled/design/references/variants.md +0 -193
  64. package/dist/bundled/design/references/voice.md +0 -184
  65. package/dist/bundled/design/references/writing.md +0 -174
  66. package/dist/bundled/loop/SKILL.md +0 -16
  67. package/dist/bundled/mod-builder/SKILL.md +0 -135
  68. package/dist/bundled/mod-builder/examples/block-dangerous-commands.ts +0 -41
  69. package/dist/bundled/mod-builder/examples/custom-entry-renderer.ts +0 -32
  70. package/dist/bundled/mod-builder/examples/custom-tool.ts +0 -53
  71. package/dist/bundled/mod-builder/examples/flags-and-options.ts +0 -29
  72. package/dist/bundled/mod-builder/examples/input-shortcuts.ts +0 -41
  73. package/dist/bundled/mod-builder/examples/kitchen-sink.ts +0 -129
  74. package/dist/bundled/mod-builder/examples/lifecycle-hooks.ts +0 -64
  75. package/dist/bundled/mod-builder/examples/model-router.ts +0 -43
  76. package/dist/bundled/mod-builder/examples/observe-events.ts +0 -30
  77. package/dist/bundled/mod-builder/examples/pane-and-buttons.ts +0 -60
  78. package/dist/bundled/mod-builder/examples/pane-form.ts +0 -68
  79. package/dist/bundled/mod-builder/examples/permission-policy.ts +0 -34
  80. package/dist/bundled/mod-builder/examples/redact-secrets.ts +0 -46
  81. package/dist/bundled/mod-builder/examples/slash-command.ts +0 -33
  82. package/dist/bundled/mod-builder/examples/spinner-count.ts +0 -47
  83. package/dist/bundled/mod-builder/examples/stream-filter.ts +0 -70
  84. package/dist/bundled/mod-builder/reference/api.md +0 -140
  85. package/dist/bundled/mod-builder/reference/hooks-and-events.md +0 -347
  86. package/dist/bundled/mod-builder/reference/overview.md +0 -271
  87. package/dist/bundled/mod-builder/reference/packaging.md +0 -187
  88. package/dist/bundled/mod-builder/reference/ui.md +0 -253
  89. package/dist/bundled/mod-builder/reference/verify.md +0 -67
  90. package/dist/bundled/skill-builder/SKILL.md +0 -104
  91. package/dist/cli.mjs +0 -16
  92. package/dist/index.mjs +0 -2
@@ -1,283 +0,0 @@
1
- # Deslop: `/design deslop`
2
-
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
-
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
-
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
-
9
- ---
10
-
11
- ## Prerequisites: All Three Reports
12
-
13
- Before I touch anything, I check `.commandcode/design/` for all three reports:
14
-
15
- - `smell-report.md`
16
- - `checkup-report.md`
17
- - `review-report.md`
18
-
19
- **If any report is missing**, I generate it before proceeding:
20
-
21
- - Missing `smell-report.md` → read [smell.md](smell.md) and run `/design smell`
22
- - Missing `checkup-report.md` → read [checkup.md](checkup.md) and run `/design checkup`
23
- - Missing `review-report.md` → read [review.md](review.md) and run `/design review`
24
-
25
- I never skip a missing report. Each one surfaces a different class of problem and the fix priority depends on all three together.
26
-
27
- ---
28
-
29
- ## How I Work From The Reports
30
-
31
- I read all three reports front to back, then extract and rank every finding by severity:
32
-
33
- 1. **Critical checkup vitals first** — anything scored Critical in `checkup-report.md` blocks shipping and gets fixed before anything else
34
- 2. **Review failures second** — low-scoring lenses in `review-report.md` (first impression, hierarchy, color voice, type voice, interaction feel)
35
- 3. **Strong smells last** — clustered or strong tells from `smell-report.md`; faint isolates get cleaned after everything above is resolved
36
-
37
- For each finding I address:
38
-
39
- 1. **I name the reflex it came from** — what lazy default produced this pattern
40
- 2. **I pick a deliberate replacement** — not the opposite, not a different default, but a choice tied to the project
41
- 3. **I apply the change to real files** — no markdown mockups, no commentary-only passes
42
- 4. **I verify the result** — the old pattern is gone and the new choice reads as intentional
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
-
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.
47
-
48
- ---
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
-
80
- ## The Odors And Their Antidotes
81
-
82
- ### Tech Gradient
83
-
84
- Blue-violet, indigo-cyan, purple-to-teal glossy energy. The visual shorthand for "AI startup."
85
-
86
- **Fix**: I build a palette with a specific reason. The hue must come from the product's domain, not the industry. A logistics tool might earn slate and amber. A reading app might earn warm paper and ink. I refuse purple-to-cyan and blue-violet-to-indigo as category reflexes.
87
-
88
- ### Generic Tech Hue
89
-
90
- Blue-purple as the primary identity for anything vaguely technical.
91
-
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.
93
-
94
- ### Feature Tile Grid — composition-class
95
-
96
- Icon, heading, one sentence, repeated in a uniform grid until the section stops meaning anything.
97
-
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.
99
-
100
- ### Accent Rail
101
-
102
- A colored stripe on one side of cards or callouts that simulates structure.
103
-
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.
105
-
106
- ### Unearned Blur
107
-
108
- Frosted glass panels applied because the surface never committed to a depth system.
109
-
110
- **Fix**: I remove the blur. If depth is needed, I build a real elevation system with shadow, border, or opacity layers. If depth isn't needed, the element becomes opaque and sits flat in the composition.
111
-
112
- ### Stat Monument
113
-
114
- An oversized number cluster filling space where a real product story belongs.
115
-
116
- **Fix**: I replace stats with proof. A number alone proves nothing. I convert stat blocks into case language — a before/after, a customer outcome, a specific metric with context, or a product capability shown in action. If the stat is real and meaningful, I give it a sentence, not a monument.
117
-
118
- ### Icon Topper
119
-
120
- A rounded-square icon placed above every section heading with no function beyond filling the template.
121
-
122
- **Fix**: I remove the icon. Section headings do not need a decoration above them. If the icon carries real meaning, I bring it inline with the heading text. If it doesn't, it goes.
123
-
124
- ### Bounce Everywhere
125
-
126
- Motion that turns every interaction into a toy. Elastic easing applied because it was available.
127
-
128
- **Fix**: I audit every animated element. I keep motion that reveals state, responds to input, or marks meaningful transitions. I strip motion that is purely decorative. What remains uses sharp deceleration curves — quart, quint, or expo out. No bounce. No elastic.
129
-
130
- ### Default Type
131
-
132
- A common family used with no voice, no scale, no reason. The font that appeared because no choice was made.
133
-
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.
135
-
136
- ### Center Stack — composition-class
137
-
138
- Everything aligned to the safe middle because no composition decision was made.
139
-
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.
141
-
142
- ---
143
-
144
- ## Domain Default Trap
145
-
146
- If the visual direction can be guessed from the industry alone, the design hasn't found itself yet.
147
-
148
- A note-taking app as cream and rounded sans. A developer tool as dark with terminal mono. A health product as white and calm blue. A legal platform as navy and serif.
149
-
150
- **Fix**: I identify the domain default and break it in at least one dimension — unexpected saturation, a different temperature, an unusual composition, a deliberate texture, or a specific art direction choice that only fits this product.
151
-
152
- ---
153
-
154
- ## Fixing Order
155
-
156
- I work in this order because each fix ripples into the next:
157
-
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.
159
- 2. **Color** — tech gradient, generic tech hue, domain default trap. These set the mood.
160
- 3. **Type** — default type. This gives the surface its voice.
161
- 4. **Depth** — unearned blur, stat monument. These are spatial decisions.
162
- 5. **Motion** — bounce everywhere. Motion comes last because it reacts to the settled composition.
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.
166
-
167
- I don't jump to color before fixing composition. A new palette on a broken layout is still broken.
168
-
169
- ---
170
-
171
- ## What A Fixed Smell Looks Like
172
-
173
- A smell is fixed when:
174
-
175
- - The old pattern is not visible anywhere on the surface
176
- - The replacement is not another template reflex — it's a specific choice
177
- - The choice would survive the prompt changing — it belongs to the product, not the request
178
- - The section or element still does its job, now with intention
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.
199
-
200
- ---
201
-
202
- ## Cohesion Check
203
-
204
- After fixing all named smells and running Push, I scan the full surface for new tension.
205
-
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.
207
-
208
- ---
209
-
210
- ## Verify Like A Designer
211
-
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.
219
-
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.
221
-
222
- **Regression check**: Did the fixes break anything new? I scan every section I touched for new tension, whiplash, or introduced smells.
223
-
224
- **Reality check**: Are the changes real and visible in actual files? No commentary-only passes count.
225
-
226
- **Judgment check**: Would a working designer approve each decision? Not just accept — actively approve it as the right call for this product.
227
-
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.
229
-
230
- ---
231
-
232
- ## Ship or Iterate
233
-
234
- If all seven verification checks pass, deslop is done.
235
-
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.
237
-
238
- ---
239
-
240
- ## What I Refuse
241
-
242
- - Fixing a smell by swapping in a different AI default
243
- - Removing a smell without replacing it with a real decision
244
- - Polishing around the smell instead of removing it
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
253
- - Fixing only the hero section when the smell is structural
254
- - Treating Inter as wrong when it is clearly intentional
255
- - Treating all centered layouts as bad when symmetry is the right lane
256
- - Adding decoration to hide generic structure
257
- - Creating any reports, summaries, or documentation beyond the work itself
258
-
259
- ---
260
-
261
- ## How I Know Deslop Worked
262
-
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
267
- - The surface reads as authored, not generated
268
- - The color strategy cannot be guessed from the industry
269
- - The type has a project-specific reason
270
- - The composition is not the median generated landing page
271
- - Repeated sections have hierarchy and variation
272
- - A stranger would not immediately say the page was generated
273
- - No new smells were introduced
274
- - The product still works and still does its job
275
-
276
- STRICT RULE — NEVER BREAK THIS
277
- Deslop checks `.commandcode/design/` for all three reports before touching any file.
278
- Missing reports are generated on the spot by running the corresponding design mode.
279
- It never creates extra reports, summaries, analysis files, or documentation beyond the three diagnostic reports.
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."
@@ -1,156 +0,0 @@
1
- # Finish: `/design finish`
2
-
3
- Finish is the last pass before I would let someone use the thing without apology.
4
-
5
- This is not redesign. This is not review. This is where small failures stop being small because they are the only things left.
6
-
7
- Finish is not a storytelling mode. I do not claim polish that is not visible in the interface.
8
-
9
- ---
10
-
11
- ## Discipline files
12
-
13
- Finish drives the pre-ship pass — these are correctness references for when this mode touches each dimension, not additional passes to run:
14
-
15
- - [border.md](border.md) — consult when fixing edge consistency or radius decisions
16
- - [shadow.md](shadow.md) — consult when auditing depth and elevation coherence
17
- - [motion.md](motion.md) — consult when verifying or repairing transition quality
18
- - [button.md](button.md) — consult when checking button states, hierarchy, and disabled treatment
19
- - [writing.md](writing.md) — consult when tightening labels, errors, and empty state copy
20
-
21
- ---
22
-
23
- ## Pre-execution checklist
24
-
25
- Before proceeding, check for existing reports in the `.commandcode/design/` directory. Look for these files:
26
-
27
- - `checkup-report.md`
28
- - `review-report.md`
29
- - `smell-report.md`
30
-
31
- If any of these files exist, read the report content and use it as context for your analysis. Prioritize issues flagged in the reports and reference specific findings when making changes.
32
-
33
- If no reports are found, proceed with the task normally.
34
-
35
- ---
36
-
37
- ## Composition Final Check
38
-
39
- Before I call a surface finished, I check whether the composition still matches the work.
40
-
41
- Monitor must expose status and change without making the user hunt.
42
-
43
- Operate must keep actions near objects and feedback immediate.
44
-
45
- Compare must preserve alignment and scanning.
46
-
47
- Configure must make dependencies and commit state obvious.
48
-
49
- Learn must keep reading flow and progress intact.
50
-
51
- Decide must leave one clear next action.
52
-
53
- Explore must keep search, filters, results, and return paths legible.
54
-
55
- If the composition is wrong, finish does not mean polish. It means send the surface to relayout or redesign.
56
-
57
- ---
58
-
59
- ## My Posture
60
-
61
- I use the interface like a real person. I click, tab, wait, fail, resize, search, submit, delete, undo, refresh, and come back.
62
-
63
- I do not polish the happy path while the edge states rot.
64
-
65
- ---
66
-
67
- ## What Finish Catches
68
-
69
- **Empty states** that explain what belongs there and how to start.
70
-
71
- **Error states** that preserve input and offer recovery.
72
-
73
- **Loading states** that appear quickly and resolve clearly.
74
-
75
- **Focus states** that make keyboard use visible and predictable.
76
-
77
- **Mobile behavior** that does not crush, hide, or overflow.
78
-
79
- **iOS Safari input zoom**: every `input`, `select`, and `textarea` uses at least `1rem` (16px) font-size on narrow screens, a sub-16px form element triggers iOS Safari auto-zoom on focus, breaking layout. Fix guidance: [responsive.md](responsive.md#ios-safari-input-zoom).
80
-
81
- **Performance feel**: no obvious shift, lag, oversized media, or janky motion.
82
-
83
- **Copy** that is specific, calm, and consistent.
84
-
85
- **Edge content**: long names, short labels, empty lists, huge lists, slow network, no network, narrow screen, wide screen.
86
-
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
-
89
- ---
90
-
91
- ## Applied-Only Rule
92
-
93
- I verify every completion claim before I say it.
94
-
95
- I only say I fixed something if I changed the implementation and verified the effect.
96
-
97
- If I add animation, I verify that motion is visible in the rendered UI. A transition class, unused keyframe, or style that never fires does not count.
98
-
99
- If I add hover, focus, loading, empty, error, disabled, or success states, I verify at least one real way to see each state or I describe it as prepared but not currently visible.
100
-
101
- If I adjust spacing, I verify the page changed visually at the target viewport.
102
-
103
- If I inspect an issue and decide no change is needed, I say that plainly.
104
-
105
- Before the final response, I compare the list of claims I am about to make against the actual file diff and the rendered interface. Any claim that is not proven gets removed or rewritten as intended but not completed.
106
-
107
- ---
108
-
109
- ## Subtraction
110
-
111
- Finish is often removal.
112
-
113
- I remove decoration that does not carry meaning. I remove motion that does not explain state. I remove colors that do not have jobs. I remove copy that repeats itself. I remove borders and shadows that only add noise.
114
-
115
- If I cannot explain why something remains, it goes.
116
-
117
- ---
118
-
119
- ## What I Use From Earlier Work
120
-
121
- If previous smell, checkup, or review reports exist, I read the markdown reports before changing the interface. The markdown findings are the actionable source. The HTML reports are user-facing artifacts, not the source I work from.
122
-
123
- The report does not decide for me. It points to places I should verify.
124
-
125
- ---
126
-
127
- ## What I Refuse
128
-
129
- - Shipping without empty, loading, error, success, focus, and disabled states where they apply
130
- - Polishing color while the flow still fails
131
- - Hiding broken layout behind animation
132
- - Leaving placeholder copy, dead links, missing alt text, or broken assets
133
- - Calling a surface finished without using it
134
- - Claiming animation, states, or polish that I cannot see in the result
135
- - Listing changes that were not applied to real files
136
- - Creating a finish report
137
-
138
- ---
139
-
140
- ## How I Know Finish Is Done
141
-
142
- - I checked every claimed change against the diff and the visible result
143
- - Every claimed change maps to a file edit or a verified rendered behavior
144
- - The core flow works under real use
145
- - The roughest states have been forced and fixed
146
- - Keyboard, touch, and narrow layouts are usable
147
- - Copy is specific and consistent
148
- - Performance feels stable
149
- - Nothing obvious makes me wince
150
- - The remaining issues, if any, are explicit tradeoffs, not neglected details
151
- - Form inputs use at least 16px font-size on mobile — iOS Safari auto-zoom does not fire on focus
152
-
153
- STRICT RULE — NEVER BREAK THIS
154
- Do not create report.md, any kind of report, summary, analysis file,
155
- or extra documentation. This applies every time this file is used.
156
- Generate no reports unless explicitly asked.
@@ -1,186 +0,0 @@
1
- # Interaction Design `/design interaction`
2
-
3
- Interaction is behavior under pressure. Hover, focus, press, touch, typing, waiting, failure, recovery. This is where polished visuals either become usable software or fall apart.
4
-
5
- Motion shows behavior. This file decides what the behavior is.
6
-
7
- ---
8
-
9
- ## Discipline files
10
-
11
- Interaction drives the behavior pass — consult these when each dimension comes up during interaction work, not as separate passes to layer on:
12
-
13
- - [button.md](button.md) — for correct button states and the full control system when auditing interactive elements
14
- - [motion.md](motion.md) — for correct transition timing and easing when specifying state-change animation
15
- - [accessibility.md](accessibility.md) — for the mechanics behind every behavior in this file: focus rings, tabindex and roving tabindex, focus trapping and restoration, APG keyboard patterns, form labels and error announcement, live regions, and hit-area math
16
-
17
- ---
18
-
19
- ## Interaction Follows Composition
20
-
21
- The work pattern decides where controls live and how feedback returns.
22
-
23
- Monitor screens prioritize filters, alert acknowledgement, drill-down, and live refresh.
24
-
25
- Operate screens prioritize command bars, shortcuts, direct manipulation, undo, and fast feedback.
26
-
27
- Compare screens prioritize sort, filter, selection, pinned context, and preserved scroll position.
28
-
29
- Configure screens prioritize dependencies, validation, preview, save state, and reversible commits.
30
-
31
- Learn screens prioritize progress, reveal, completion, and graceful exit.
32
-
33
- Decide screens prioritize one primary path, visible reassurance, and clear escape.
34
-
35
- Explore screens prioritize search, filter, browse, reset, and backtracking.
36
-
37
- Controls do not float around the page because they look balanced. They sit where the work needs them.
38
-
39
- ---
40
-
41
- ## Behavior Bar
42
-
43
- `/design interaction` adds missing behavior. It is not hover polish.
44
-
45
- At minimum, I inspect and repair hover, active, focus-visible, keyboard path, touch targets, disabled, loading, empty, error, success, overflow, destructive recovery, and overlay behavior where those states apply.
46
-
47
- If an interaction cannot be triggered in the current UI, I either wire a visible trigger or say the state is implemented but not currently reachable.
48
-
49
- ---
50
-
51
- ## Every Control Has A Life
52
-
53
- I design controls beyond the resting state.
54
-
55
- - Idle tells the user what exists
56
- - Hover invites pointer users
57
- - Focus guides keyboard users
58
- - Active confirms touch or press
59
- - Disabled explains unavailable action
60
- - Loading keeps the system accountable
61
- - Selected marks current context
62
- - Error explains a problem
63
- - Success confirms completion
64
- - Empty teaches what belongs here
65
- - Overflow keeps real content from breaking the surface
66
-
67
- If a component can enter a state, I account for it.
68
-
69
- ---
70
-
71
- ## Focus Is Architecture
72
-
73
- Focus rings are not decoration. They are the map for keyboard users.
74
-
75
- I make focus visible, consistent, and confident. It needs enough contrast, enough offset, and the same vocabulary across the surface.
76
-
77
- I never remove focus without a replacement. I never make focus so subtle that only the designer can find it.
78
-
79
- ---
80
-
81
- ## Touch Is Physical
82
-
83
- The visual icon can be small. The hit area cannot.
84
-
85
- On touch devices, controls need enough room for fingers, not cursors. Adjacent links need breathing room. Swipe gestures need visible alternatives. Pinch-to-zoom stays available for readable text.
86
-
87
- If a feature only exists on hover, it does not exist for touch users.
88
-
89
- The floor is 24×24px, the working target is 44×44px for touch and 40×40px for desktop when density permits. A small visible control keeps its size and gets an expanded hit area from a pseudo-element on the wrapping label or button — never on the `<input>`, which does not render pseudo-elements reliably. Two interactive elements never have overlapping hit areas: if an expanded area would collide, I shrink it to the largest size that does not. Exact math, exceptions, and recipes: [accessibility.md](accessibility.md#hit-areas).
90
-
91
- I detect input mode rather than screen size — `pointer: coarse` for sizing, `hover: hover` for hover affordances — and add `touch-action: manipulation` so taps do not wait out the double-tap-zoom delay.
92
-
93
- ---
94
-
95
- ## Direction-Aware Controls
96
-
97
- On a product that supports RTL languages, controls that encode reading direction must mirror: back/forward navigation, chevrons, breadcrumbs, carousels, swipe-to-dismiss, and drag handles aligned to text flow. Controls with universal meaning do not: play/pause, checkmarks, the brand mark, media scrubbers.
98
-
99
- I check this with the actual `dir="rtl"` rendering, not by eyeballing the LTR version. Logical sizing and spacing belong in layout; see [responsive.md](responsive.md#text-direction).
100
-
101
- ---
102
-
103
- ## Keyboard Path
104
-
105
- A complete keyboard path is a product feature.
106
-
107
- Tab order follows the visual and conceptual flow. Enter and Space activate. Arrow keys move within grouped widgets. Escape closes temporary surfaces. Focus returns to the trigger after overlays close.
108
-
109
- I test the primary task without a mouse. If I get stuck, the design is broken.
110
-
111
- ---
112
-
113
- ## Forms
114
-
115
- Forms are where users quit, so I make them calm.
116
-
117
- Labels stay visible. Placeholders show examples, not identity. Required fields are clear. Errors appear near the field and preserve input. Validation timing matches the kind of error: format after blur, required on submit, availability after a short wait.
118
-
119
- Every error answers what happened and how to recover. Blame is forbidden.
120
-
121
- I keep submit enabled until the request starts. A submit button disabled until the form is valid hides the very thing that must be fixed — I let the user submit, then focus the first invalid field, which is both the fix path and the announcement. Once the request starts, the button disables with a spinner and **keeps its original label**. Every field gets the right `type`, an `inputmode` that summons the right mobile keyboard, and an `autocomplete` token so password managers and one-time-code autofill work. I never block paste, and I never filter characters as the user types — I accept the input, trim it, and validate after. Markup and announcement mechanics: [accessibility.md](accessibility.md#forms).
122
-
123
- On mobile, I verify every `input`, `select`, and `textarea` uses a font-size of at least 16px. A sub-16px form element triggers iOS Safari auto-zoom on focus, shifting layout and forcing the user to pinch back — it breaks the interaction, not just the visuals. Fix guidance and the specificity gotcha: [responsive.md](responsive.md#ios-safari-input-zoom).
124
-
125
- ---
126
-
127
- ## Overlays
128
-
129
- Modals are for decisions that need interruption. They are not default containers.
130
-
131
- Long forms get pages. Information gets inline disclosure. Success gets a toast or inline confirmation. Destructive, legal, financial, or irreversible moments can earn a dialog.
132
-
133
- Temporary surfaces escape clipping, stack correctly, close predictably, and keep focus sane.
134
-
135
- ---
136
-
137
- ## Undo Beats Confirm
138
-
139
- When an action is recoverable, I prefer undo. Confirm dialogs are for irreversible, legal, financial, destructive, or bulk actions.
140
-
141
- A good destructive flow names the object, states the consequence, and gives the safe escape equal dignity.
142
-
143
- ---
144
-
145
- ## Loading And Failure
146
-
147
- The interface must respond quickly, even when the system cannot finish quickly.
148
-
149
- Blank waiting is not acceptable. A loading state appears soon. Long waits get progress or expectation. Every loading state resolves into success, error, timeout, or cancellation.
150
-
151
- Failure keeps the user's work. Recovery is visible. Retry is available when retry makes sense.
152
-
153
- ---
154
-
155
- ## What I Refuse
156
-
157
- - Hover with no focus equivalent
158
- - Calling hover tweaks an interaction pass
159
- - Unreachable states described as finished
160
- - Placeholder-only labels
161
- - Disabled controls with no explanation when context matters
162
- - Spinners replacing whole layouts without shape
163
- - Dropdowns clipped by parent containers
164
- - Menus that cannot be used with keyboard
165
- - Modals that trap nothing
166
- - Errors that say only "Error" or "Invalid"
167
- - Gesture-only actions with no visible fallback
168
-
169
- ---
170
-
171
- ## How I Know Interaction Works
172
-
173
- - Every claimed interaction can be triggered or is honestly marked unreachable
174
- - The core task works by mouse, touch, and keyboard
175
- - Focus is always visible and logical
176
- - Loading, empty, error, success, and overflow states are handled
177
- - Destructive paths are reversible or clearly confirmed
178
- - Overlays close and return focus correctly
179
- - Form errors help without punishing
180
- - The interface feels responsive even during waits
181
- - Form inputs on mobile use at least 16px font-size — no iOS Safari auto-zoom on focus
182
-
183
- STRICT RULE — NEVER BREAK THIS
184
- Do not create report.md, any kind of report, summary, analysis file,
185
- or extra documentation. This applies every time this file is used.
186
- Generate no reports unless explicitly asked.