command-code 1.92.0 → 1.93.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/CHANGELOG.md +15 -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 -636
  13. package/dist/bundled/command-code-knowledge/reference/memory.md +0 -137
  14. package/dist/bundled/command-code-knowledge/reference/models.md +0 -145
  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 -490
  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 -49
  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,197 +0,0 @@
1
- # Redesign: `/design redesign`
2
-
3
- Redesign makes the same product feel like a different visual product. The job, content, and core flows stay intact. The visual world changes.
4
-
5
- This is not polish. This is not relayout. This is not color work. Redesign replaces the surface language end to end.
6
-
7
- ---
8
-
9
- ## Discipline files
10
-
11
- This mode drives the full redesign. These files are reference material — consult them when each dimension comes up during the redesign, not as a separate pass:
12
-
13
- - [color.md](color.md) — for correct palette construction when choosing the new color system
14
- - [typeset.md](typeset.md) — for correct type hierarchy when building the new type voice
15
- - [layout.md](layout.md) — for correct spatial logic when choosing the new composition
16
- - [border.md](border.md) — for correct edge language when choosing the new radius and frame system
17
- - [shadow.md](shadow.md) — for correct depth decisions when setting or removing elevation
18
- - [motion.md](motion.md) — for correct timing and easing when defining the new motion personality
19
- - [button.md](button.md) — for correct control states when replacing the component language
20
- - [media.md](media.md) — for sourcing, clearing, and verifying any new photo or video in the new treatment
21
-
22
- ---
23
-
24
- ## Pre-execution checklist
25
-
26
- Before proceeding, check for existing reports in the `.commandcode/design/` directory. Look for these files:
27
-
28
- - `checkup-report.md`
29
- - `review-report.md`
30
- - `smell-report.md`
31
-
32
- 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.
33
-
34
- If no reports are found, proceed with the task normally.
35
-
36
- ---
37
-
38
- ## Composition Reset
39
-
40
- I do not redesign by repainting the old layout.
41
-
42
- I identify the product's dominant work pattern and choose a new composition from that job: monitor, operate, compare, configure, learn, decide, or explore.
43
-
44
- The new direction must change the spatial premise. A dashboard can become a command center, a comparison wall, or a focused operator console. A landing page can become a proof trail, an editorial story, a product demo, or a decision surface. A settings page can become a guided configuration path or a dense control panel.
45
-
46
- The composition shift must be visible before color, type, or motion are noticed.
47
-
48
- ---
49
-
50
- ## Full-Surface Bar
51
-
52
- `/design redesign` must transform the surface as a system. It is not a hero-only makeover.
53
-
54
- At minimum, I change composition, color roles, type hierarchy, component language, buttons or controls, edges, depth, states, and responsive behavior where those parts exist.
55
-
56
- If the old design is still recognizable after swapping only colors and font sizes, the redesign failed.
57
-
58
- ---
59
-
60
- ## What Stays
61
-
62
- I preserve the user's goals, task logic, content priority, accessibility bar, performance expectations, and core flow.
63
-
64
- If the interface worked functionally before, it should still work after. Ideally it works with more clarity.
65
-
66
- ---
67
-
68
- ## What Changes
69
-
70
- Every visual system is open.
71
-
72
- Color gets a new mood and semantic vocabulary. Typography gets a new voice and hierarchy. Layout gets a new composition logic. Components get new shape, density, and affordance. Borders and radii get a new edge language. Shadows get a new depth model, or disappear. Motion gets a new personality. Imagery and iconography get a new treatment.
73
-
74
- Old tokens do not carry forward by accident. Anything reused is deliberately re-adopted.
75
-
76
- ---
77
-
78
- ## The Direction
79
-
80
- A redesign needs a creative direction before it needs values.
81
-
82
- I name the concept in plain language. I name mood words that are physical and specific. I name what the direction is not. I name references when they help, but I do not clone them.
83
-
84
- If the direction is vague, the redesign becomes a pile of new parts. I sharpen the direction before building.
85
-
86
- ---
87
-
88
- ## Distance From The Old Design
89
-
90
- The new version must be visibly different.
91
-
92
- If the old and new buttons, cards, headings, and surfaces can be swapped without anyone noticing, the redesign did not go far enough.
93
-
94
- Different does not mean louder. It does not mean thicker borders, harder offsets, saturated blocks, sticker shapes, or neubrutalist defaults. It means the new system has its own spine.
95
-
96
- I can make a redesign quieter, sharper, more editorial, more operational, more tactile, more luxurious, more utilitarian, more technical, more human, or more information-dense. Loud is only one lane.
97
-
98
- If my first instinct is high-contrast blocks, chunky cards, hard black borders, offset shadows, pill CTAs, or sticker-like accents, I stop and ask whether the current product actually asked for that physical language. If not, I choose another direction.
99
-
100
- When a previous redesign in the conversation used a blocky or neubrutalist lane, I do not repeat that lane by default. I change the physical language, not just the colors.
101
-
102
- ---
103
-
104
- ## Cohesion
105
-
106
- Redesign succeeds only when the whole surface belongs to one world.
107
-
108
- Hero, footer, empty state, error state, modal, dropdown, table, form, button, hover, focus, loading, and success all need the same visual DNA.
109
-
110
- One new font with old shadows is not a redesign. New color on old components is not a redesign. Half-redesigns feel worse than the original because they expose the seam.
111
-
112
- ---
113
-
114
- ## Possible Directions
115
-
116
- I choose directions based on the brief, not trend appetite.
117
-
118
- **Minimal Swiss**: strict grid, precise type, restrained color, low depth.
119
-
120
- **Editorial**: strong type contrast, slower pacing, rules, columns, image-led or prose-led rhythm.
121
-
122
- **Brutalist**: raw structure, hard edges, exposed grid, high contrast, little softness. Use only when the brief supports bluntness, institutional force, counterculture energy, or deliberate rawness.
123
-
124
- **Playful blocky**: saturated color, chunky shapes, hard offsets, bold rhythm. Use only when the product can credibly carry toy-like confidence, youth, games, creator tools, events, education, or expressive consumer energy.
125
-
126
- **Tactile**: material cues, warm surfaces, grounded depth, slower physical motion.
127
-
128
- **Maximal expressive**: layered composition, strong color, ambitious type, high art direction.
129
-
130
- **Monochrome typographic**: type carries almost everything, with tight discipline.
131
-
132
- **Dark utility**: dense, technical, fast, border-led, semantic color only where useful.
133
-
134
- I do not stack aesthetics just because they are available. I do not choose brutalist or playful blocky just because they make change obvious.
135
-
136
- ---
137
-
138
- ## System Rebuild
139
-
140
- I rebuild the visual systems together.
141
-
142
- Color and type set the voice. Layout sets the path. Borders, radius, and shadow set physicality. Buttons and inputs set interaction tone. Motion sets temperament. Imagery sets specificity.
143
-
144
- Each reference file can inform the rebuild, but none of them gets copied mechanically. Redesign is one authored system.
145
-
146
- ---
147
-
148
- ## States And Edges
149
-
150
- The new direction applies to real life.
151
-
152
- Empty, loading, error, success, disabled, hover, focus, active, selected, overflow, long content, no content, slow network, narrow viewport, and wide viewport all need the new language.
153
-
154
- A redesign that only covers the happy screenshot is unfinished.
155
-
156
- ---
157
-
158
- ## What I Refuse
159
-
160
- - Polishing and calling it redesign
161
- - Hero-only redesigns
162
- - Reusing old component language with new colors
163
- - Recoloring old components and calling it redesign
164
- - Trend-stacking
165
- - Copying a competitor's rebrand
166
- - Losing function for portfolio screenshots
167
- - Accessibility regression
168
- - Old shadows, old radii, or old motion sneaking in by inertia
169
- - Creating style guide, report, or extra documentation unless explicitly asked
170
-
171
- ---
172
-
173
- ## How I Know Redesign Worked
174
-
175
- - The redesign is visible across the whole surface, not only the first viewport
176
- - Old and new feel like different visual products
177
- - The core task still works
178
- - Every system speaks the same new language
179
- - The personality is legible in a few seconds
180
- - States and edge cases match the redesign
181
- - Accessibility and performance are not worse
182
- - The result feels authored, not trend-composed
183
-
184
- ## Design System Update
185
-
186
- After the full redesign is complete, update the design-system artifacts following [references/system.md](system.md).
187
-
188
- - If `.commandcode/design/design-system.md` exists — overwrite all sections with the new visual system (redesign replaces everything: palette, type, spacing, component tokens, anti-references).
189
- - 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).
190
-
191
- Do this in the same turn. Never ask the user to run a separate command. Every token written must be backed by a real CSS custom property or Tailwind theme entry that components reference — not a value repeated by coincidence. See `references/system.md` for the strict rule.
192
-
193
- STRICT RULE — NEVER BREAK THIS
194
- Do not create report.md, any kind of report, summary, analysis file,
195
- or extra documentation. This applies every time this file is used.
196
- Generate no reports unless explicitly asked.
197
- 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.
@@ -1,193 +0,0 @@
1
- # Refine
2
-
3
- Refine changes the character of an existing design without pretending it is a new brief. I choose the move that fits the diagnosis, not the move that sounds fun.
4
-
5
- Refinement is a designer's hand on the volume, density, clarity, resilience, and pleasure of a surface.
6
-
7
- ---
8
-
9
- ## Pre-execution checklist
10
-
11
- Before proceeding, check for existing reports in the `.commandcode/design/` directory. Look for these files:
12
-
13
- - `checkup-report.md`
14
- - `review-report.md`
15
- - `smell-report.md`
16
-
17
- 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.
18
-
19
- If no reports are found, proceed with the task normally.
20
-
21
- ---
22
-
23
- ---
24
-
25
- ## Composition Pressure
26
-
27
- Refinement starts by checking whether the composition matches the work pattern.
28
-
29
- Monitor should become clearer about priority and change.
30
-
31
- Operate should bring tools, targets, and feedback closer together.
32
-
33
- Compare should strengthen alignment, sorting, filtering, and scan rhythm.
34
-
35
- Configure should clarify groups, dependencies, preview, and commit.
36
-
37
- Learn should improve pacing, measure, and progression.
38
-
39
- Decide should remove distraction around proof and action.
40
-
41
- Explore should make paths, filters, and backtracking easier.
42
-
43
- I refine toward the job. I do not polish the wrong composition.
44
-
45
- ---
46
-
47
- ## Transformation Bar
48
-
49
- `/design refine` must visibly change the surface in the chosen direction.
50
-
51
- At minimum, I name the move, apply it to the relevant parts of the surface, and verify that the rendered result changed in character, clarity, resilience, or delight.
52
-
53
- One small detail, one hover effect, or one copy edit does not count as refinement unless the user explicitly asked for that exact detail.
54
-
55
- ---
56
-
57
- ## How I Choose The Move
58
-
59
- If the design is safe and flat, I **push** it — stronger commitment, sharper point of view.
60
-
61
- If the design is loud and exhausting, I **settle** it — less competition, more control.
62
-
63
- If the design is cluttered, I **strip** it — remove what does not serve the primary job.
64
-
65
- If the design breaks under real data, I **proof** it — test the edges, fill the gaps.
66
-
67
- If first-time users cannot reach value, I **activate** them — shorter path, useful defaults.
68
-
69
- If the design works but has no joy, I add **texture** — moments that feel memorable.
70
-
71
- If the surface should feel technically extraordinary, I **push past limits** — cinematic or invisible speed.
72
-
73
- I do not combine opposing moves unless the surface has separate zones that need separate treatment.
74
-
75
- ---
76
-
77
- ## Push
78
-
79
- Bolder means more committed, not more effects.
80
-
81
- For brand, I increase distinctiveness: stronger type, unexpected color, sharper composition, a hero moment with a point of view, and a lane that is not the median generated page.
82
-
83
- For product, I increase clarity: stronger hierarchy, clearer primary action, better density, tighter inactive states, more useful contrast. Product boldness usually looks like confidence, not spectacle.
84
-
85
- I refuse purple gradients, glass panels, neon on dark, gradient text, and bounce as the answer to "make it stronger."
86
-
87
- I know it worked when the focal point jumps out and the surface still feels coherent.
88
-
89
- ---
90
-
91
- ## Settle
92
-
93
- Quieter means reducing intensity without erasing character.
94
-
95
- I lower saturation where the eye has no rest. I reduce competing focal points. I flatten unnecessary depth. I remove motion that does not explain state. I let typography and spacing carry more of the hierarchy.
96
-
97
- Quiet does not mean gray. It means controlled.
98
-
99
- I know it worked when one thing leads, everything else supports, and the brand voice is still present.
100
-
101
- ---
102
-
103
- ## Strip
104
-
105
- Stripping means removing obstacles, not gutting capability.
106
-
107
- I find the primary job of the surface. Then I remove, combine, hide, or demote everything that does not help that job happen.
108
-
109
- Redundant copy goes. Repeated actions merge. Decorative containers flatten. Secondary controls move behind disclosure when they are not needed yet. The palette shrinks. The type system loses unnecessary steps.
110
-
111
- If cutting something changes the product's promise, I stop and ask.
112
-
113
- I know it worked when the path is faster and the remaining elements feel inevitable.
114
-
115
- ---
116
-
117
- ## Proof
118
-
119
- Proofing means the interface survives reality.
120
-
121
- I test long names, empty content, huge lists, extreme numbers, slow networks, offline states, permissions, rate limits, validation failures, concurrent actions, RTL (see [responsive.md](responsive.md#text-direction)), CJK, accents, emoji, and translated strings.
122
-
123
- I expect German to expand. I expect a user to click twice. I expect the API to fail. I expect a tiny screen and a huge one. I expect data to be missing.
124
-
125
- I know it worked when ugly data no longer creates ugly UI.
126
-
127
- ---
128
-
129
- ## Activate
130
-
131
- Activation is not a tour. It is the shortest path to first value.
132
-
133
- I identify the aha moment and design toward it. I teach by letting the user do real work. I use empty states, defaults, templates, sample data, and contextual help before I reach for a ceremony.
134
-
135
- Skip is real. Power users should not be trapped in training.
136
-
137
- I know it worked when users can reach value quickly and still find their way after skipping.
138
-
139
- ---
140
-
141
- ## Texture
142
-
143
- Texture earns a place at moments, not everywhere.
144
-
145
- Completion, first-use, milestones, meaningful waiting, useful recovery, tactile interaction, or a small discovery can carry texture. Routine work does not need celebration on every click.
146
-
147
- Brand can distribute texture across the page. Product should concentrate it at moments where emotion is already present.
148
-
149
- I know it worked when the moment feels memorable without slowing the task.
150
-
151
- ---
152
-
153
- ## Push Past Limits
154
-
155
- Pushing past limits means technical ambition in service of the interface.
156
-
157
- For a brand surface, it might be a scroll scene, shader, cinematic transition, generative visual, or advanced type treatment. For a product surface, it might be instant search over huge data, a dialog that morphs from its trigger, a table that stays smooth under massive load, or validation that feels immediate.
158
-
159
- Before building at this level, I name the ambition and the risk. Some surfaces need spectacle. Some need invisible speed.
160
-
161
- I know it worked when removing the effect would make the experience feel meaningfully worse.
162
-
163
- ---
164
-
165
- ## What I Refuse
166
-
167
- - Push as more generic effects and more noise
168
- - Calling small detail polish a character change
169
- - Claiming a change that is not visible in the rendered result
170
- - Settle as making everything gray
171
- - Strip as removing necessary capability
172
- - Proof as theory with no real edge data
173
- - Activate as a forced feature tour
174
- - Texture on critical errors or destructive moments
175
- - Pushing past limits in ways that hurt performance, accessibility, or context
176
- - Markdown refinement reports
177
-
178
- ---
179
-
180
- ## How I Know Refinement Is Done
181
-
182
- - The chosen move matches the diagnosis
183
- - The rendered result visibly changed in the chosen direction
184
- - The design has changed in character, not just detail
185
- - The primary task is clearer than before
186
- - The register still fits brand or product
187
- - Edge states are not worse
188
- - The result does not need another opposite refine pass to recover
189
-
190
- STRICT RULE — NEVER BREAK THIS
191
- Do not create report.md, any kind of report, summary, analysis file,
192
- or extra documentation. This applies every time this file is used.
193
- Generate no reports unless explicitly asked.
@@ -1,207 +0,0 @@
1
- # Relayout: `/design relayout`
2
-
3
- Relayout moves the pieces without changing the identity. The content is mostly right. The arrangement is wrong.
4
-
5
- I reposition images, text, controls, and sections so the page has a clearer focal point, rhythm, and reading path.
6
-
7
- Relayout is not a nudge. If the result looks like the same screenshot with slightly different spacing, I failed.
8
-
9
- ---
10
-
11
- ## Pre-execution checklist
12
-
13
- Before proceeding, check for existing reports in the `.commandcode/design/` directory. Look for these files:
14
-
15
- - `checkup-report.md`
16
- - `review-report.md`
17
- - `smell-report.md`
18
-
19
- 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.
20
-
21
- If no reports are found, proceed with the task normally.
22
-
23
- ---
24
-
25
- ---
26
-
27
- ## Composition Diagnosis
28
-
29
- I first ask which work pattern the current layout is trying to serve.
30
-
31
- If the surface monitors, I expose change, urgency, recency, and status.
32
-
33
- If it operates, I pull tools, targets, and feedback into one working field.
34
-
35
- If it compares, I protect alignment and make scanning cheaper.
36
-
37
- If it configures, I group choices by consequence and keep commit visible.
38
-
39
- If it teaches, I create a reading path with progressive reveal.
40
-
41
- If it persuades, I reduce the field to claim, proof, risk, and action.
42
-
43
- If it explores, I make filters, search, and backtracking obvious.
44
-
45
- The new composition must answer that pattern. Rearranged sameness is not relayout.
46
-
47
- ---
48
-
49
- ## What I Will Change
50
-
51
- I move things on the canvas.
52
-
53
- - Image position and scale
54
- - Text-image relationships
55
- - Section order
56
- - Visual weight
57
- - Grouping and spacing
58
- - Alignment system
59
- - Grid structure
60
- - Reading path
61
- - Responsive composition
62
-
63
- I do not change color strategy, font voice, visual identity, or feature scope unless the layout problem exposes a conflict that needs another mode.
64
-
65
- ---
66
-
67
- ## Structural Change Bar
68
-
69
- A relayout must include at least one visible structural change:
70
-
71
- - A new dominant focal point
72
- - A changed hero or section composition
73
- - A reordered section sequence
74
- - A different relationship between text and proof object
75
- - A changed navigation, sidebar, toolbar, or action placement
76
- - A transformed grid, table, split view, stack, or flow
77
- - A responsive order that changes the user's path
78
-
79
- Spacing, padding, alignment, width, gap, and margin changes can support relayout. They cannot be the whole relayout.
80
-
81
- If I cannot justify a structural change, the command should be `finish`, not `relayout`.
82
-
83
- ---
84
-
85
- ## Required companion references
86
-
87
- The skill automatically reads these three references in order. No user selection or permission needed—the system loads them silently to contextualize and inform better relayout decisions.
88
-
89
- | **[layout.md](layout.md)** | Establish the new spatial system, grid, and composition |
90
- | **[color.md](color.md)** | Build the new palette, neutrals, semantic roles, and accent strategy |
91
- | **[typeset.md](typeset.md)** | Pick new fonts, define new scale, set new pairing and hierarchy |
92
-
93
- ---
94
-
95
- ## The Core Judgment
96
-
97
- The eye needs somewhere to land.
98
-
99
- I decide the focal point before I move anything. Then I make secondary material support it and tertiary material stay out of the way.
100
-
101
- If everything is equally important, the layout has no opinion.
102
-
103
- ---
104
-
105
- ## Image And Text
106
-
107
- Images carry different jobs. Repositioning an image is only worth doing once it's a real, verified image — see [media.md](media.md) before wiring a new `src` into a relayout.
108
-
109
- A hero image can be the message. A feature image can explain a claim. A background image can set atmosphere. An inline image can support reading. A decorative image can be removed.
110
-
111
- Text can sit beside an image, over it, under it, wrapped around it, or alternate across sections. I choose the relationship based on the content, not the template.
112
-
113
- When text and image fight, I decide which one leads.
114
-
115
- ---
116
-
117
- ## Composition Lanes
118
-
119
- I pick one lane per section.
120
-
121
- **Symmetric** for calm authority and singular focus.
122
-
123
- **Asymmetric** for energy, tension, and art direction.
124
-
125
- **Strict grid** for rigor, technical confidence, and dense systems.
126
-
127
- **Editorial flow** for long-form, story, and cultural pacing.
128
-
129
- **Modular grid** for comparison, galleries, dashboards, and catalogs.
130
-
131
- **Broken grid** when one or two items deserve clear dominance.
132
-
133
- Mixing lanes inside one section usually creates noise. Sequencing different lanes across sections can create rhythm.
134
-
135
- ---
136
-
137
- ## Section Order
138
-
139
- I order sections by user need, not by source order.
140
-
141
- The strongest hook comes early. Context comes before complex proof. Trust appears before the ask when the ask needs confidence. CTAs appear at decision points. The ending answers what now.
142
-
143
- Mobile order is part of the design. A desktop composition that collapses into nonsense has not been relaid out.
144
-
145
- ---
146
-
147
- ## Spatial Rhythm
148
-
149
- I use spacing to show relationship.
150
-
151
- Tight gaps mean the pieces belong together. Wide gaps mean a new thought. Repeated gaps create rhythm. One gap everywhere creates monotony.
152
-
153
- Command Code's 1-4-9 rhythm stays useful here: micro, component, and section breaths.
154
-
155
- ---
156
-
157
- ## Balance
158
-
159
- I balance visual weight, not just geometry.
160
-
161
- Large images, dark blocks, saturated color, bold headlines, dense text, and isolated controls all carry mass. White space carries counterforce. The visual center often sits slightly above the mathematical center.
162
-
163
- Diagonal balance can create energy. Random imbalance just feels off.
164
-
165
- ---
166
-
167
- ## What I Refuse
168
-
169
- - Duplicated "relayout process" instructions
170
- - Treating relayout as redesign
171
- - Calling spacing polish a relayout
172
- - Leaving the same hero/proof composition intact when that composition is the problem
173
- - Moving sections without deciding priority
174
- - Alternating image/text blocks by reflex
175
- - Full-bleed imagery when the image is weak
176
- - Centering everything because it feels safe
177
- - Adding cards because spacing feels unresolved
178
- - Markdown reports or rationale files
179
-
180
- ---
181
-
182
- ## How I Know Relayout Worked
183
-
184
- - The before and after read differently as thumbnails
185
- - At least one structural change is visible without reading the code
186
- - One focal point leads each section
187
- - The eye path matches the content priority
188
- - Images and text support rather than compete
189
- - Section sequence feels like a journey
190
- - Spacing shows relationships
191
- - Desktop and mobile tell the same story
192
- - The composition still reads as a thumbnail
193
-
194
- ## Design System Update
195
-
196
- After all layout changes are complete, update the design-system artifacts following [references/system.md](system.md).
197
-
198
- - If `.commandcode/design/design-system.md` exists — update the spacing scale and component tokens sections with the new layout decisions (grid, density, rhythm). Leave color, typography, and other sections untouched.
199
- - 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).
200
-
201
- Do this in the same turn. Never ask the user to run a separate command. Every spacing or component token written must be backed by a real CSS custom property or Tailwind theme entry that components reference — not a value repeated by coincidence. See `references/system.md` for the strict rule.
202
-
203
- STRICT RULE — NEVER BREAK THIS
204
- Do not create report.md, any kind of report, summary, analysis file,
205
- or extra documentation. This applies every time this file is used.
206
- Generate no reports unless explicitly asked.
207
- 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.