@kenkaiiii/ggcoder 5.86.3 → 5.87.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 (105) hide show
  1. package/README.md +23 -32
  2. package/assets/skills/bulletproof/SKILL.md +3 -1
  3. package/assets/skills/compliance-guard/SKILL.md +1 -1
  4. package/assets/skills/durable/SKILL.md +1 -1
  5. package/assets/skills/lean/SKILL.md +3 -1
  6. package/dist/app-sidecar/progress-manager.d.ts +2 -20
  7. package/dist/app-sidecar/progress-manager.js +2 -15
  8. package/dist/app-sidecar/progress-manager.js.map +1 -1
  9. package/dist/app-sidecar/royale.d.ts +26 -24
  10. package/dist/app-sidecar/royale.js +85 -187
  11. package/dist/app-sidecar/royale.js.map +1 -1
  12. package/dist/app-sidecar.js +32 -40
  13. package/dist/app-sidecar.js.map +1 -1
  14. package/dist/config.d.ts +12 -0
  15. package/dist/config.js +24 -94
  16. package/dist/config.js.map +1 -1
  17. package/dist/core/autopilot-gate.js +2 -3
  18. package/dist/core/autopilot-gate.js.map +1 -1
  19. package/dist/core/bundled-agents.js +7 -27
  20. package/dist/core/bundled-agents.js.map +1 -1
  21. package/dist/core/checklist-items.d.ts +0 -8
  22. package/dist/core/checklist-items.js +0 -8
  23. package/dist/core/checklist-items.js.map +1 -1
  24. package/dist/core/code-retrieval.d.ts +1 -1
  25. package/dist/core/code-retrieval.js +2 -2
  26. package/dist/core/code-retrieval.js.map +1 -1
  27. package/dist/core/mcp/deferred-catalog.d.ts +1 -1
  28. package/dist/core/mcp/deferred-catalog.js +1 -1
  29. package/dist/core/prompt-commands.js +0 -99
  30. package/dist/core/prompt-commands.js.map +1 -1
  31. package/dist/core/skills.d.ts +6 -0
  32. package/dist/core/skills.js +11 -3
  33. package/dist/core/skills.js.map +1 -1
  34. package/dist/core/style-packs/packs.js +1 -1
  35. package/dist/core/subagent-policy.d.ts +6 -0
  36. package/dist/core/subagent-policy.js +21 -2
  37. package/dist/core/subagent-policy.js.map +1 -1
  38. package/dist/core/subagent-receipt.d.ts +2 -2
  39. package/dist/core/subagent-receipt.js +5 -8
  40. package/dist/core/subagent-receipt.js.map +1 -1
  41. package/dist/core/trophies/catalog-more.js +3 -23
  42. package/dist/core/trophies/catalog-more.js.map +1 -1
  43. package/dist/core/trophies/engine.js +0 -4
  44. package/dist/core/trophies/engine.js.map +1 -1
  45. package/dist/core/trophies/types.d.ts +1 -1
  46. package/dist/core/trophies/types.js +0 -2
  47. package/dist/core/trophies/types.js.map +1 -1
  48. package/dist/goals-agent/goal-team.js +3 -4
  49. package/dist/goals-agent/goal-team.js.map +1 -1
  50. package/dist/modes/acp-mode.js +0 -1
  51. package/dist/modes/acp-mode.js.map +1 -1
  52. package/dist/system-prompt.js +1 -0
  53. package/dist/system-prompt.js.map +1 -1
  54. package/dist/tools/index.d.ts +0 -2
  55. package/dist/tools/index.js +0 -6
  56. package/dist/tools/index.js.map +1 -1
  57. package/dist/tools/operations.js +1 -1
  58. package/dist/tools/operations.js.map +1 -1
  59. package/dist/tools/prompt-hints.js +0 -6
  60. package/dist/tools/prompt-hints.js.map +1 -1
  61. package/dist/tools/skill.js +11 -5
  62. package/dist/tools/skill.js.map +1 -1
  63. package/dist/tools/tool-tiers.d.ts +2 -1
  64. package/dist/tools/tool-tiers.js +2 -3
  65. package/dist/tools/tool-tiers.js.map +1 -1
  66. package/dist/ui/App.js +0 -1
  67. package/dist/ui/App.js.map +1 -1
  68. package/dist/ui/components/SkillsOverlay.js +2 -1
  69. package/dist/ui/components/SkillsOverlay.js.map +1 -1
  70. package/package.json +6 -5
  71. package/assets/skills/clarify/SKILL.md +0 -39
  72. package/assets/skills/code-review/SKILL.md +0 -82
  73. package/assets/skills/code-review/references/agent-diffs.md +0 -27
  74. package/assets/skills/code-review/references/tests.md +0 -19
  75. package/assets/skills/evidence-led-ui/LICENSES.md +0 -79
  76. package/assets/skills/evidence-led-ui/SKILL.md +0 -95
  77. package/assets/skills/evidence-led-ui/references/anti-defaults.md +0 -110
  78. package/assets/skills/evidence-led-ui/references/archetypes.md +0 -97
  79. package/assets/skills/evidence-led-ui/references/craft-rulings.md +0 -242
  80. package/assets/skills/evidence-led-ui/references/direction.md +0 -116
  81. package/assets/skills/evidence-led-ui/references/methodology.md +0 -64
  82. package/assets/skills/evidence-led-ui/references/observed-patterns.md +0 -68
  83. package/assets/skills/evidence-led-ui/references/production-contract.md +0 -148
  84. package/assets/skills/evidence-led-ui/references/provenance.md +0 -142
  85. package/assets/skills/evidence-led-ui/references/quality-rubric.md +0 -126
  86. package/assets/skills/evidence-led-ui/references/ui-libraries.md +0 -30
  87. package/assets/skills/refactoring/SKILL.md +0 -72
  88. package/assets/skills/refactoring/references/agent-pitfalls.md +0 -46
  89. package/assets/skills/refactoring/references/legacy.md +0 -70
  90. package/assets/skills/refactoring/references/smells.md +0 -71
  91. package/assets/skills/root-cause/SKILL.md +0 -46
  92. package/assets/skills/shared-language/SKILL.md +0 -32
  93. package/assets/skills/tdd/SKILL.md +0 -42
  94. package/dist/app-sidecar/royale-bug.d.ts +0 -19
  95. package/dist/app-sidecar/royale-bug.js +0 -112
  96. package/dist/app-sidecar/royale-bug.js.map +0 -1
  97. package/dist/app-sidecar/royale-deploy.d.ts +0 -5
  98. package/dist/app-sidecar/royale-deploy.js +0 -76
  99. package/dist/app-sidecar/royale-deploy.js.map +0 -1
  100. package/dist/tools/code-nav.d.ts +0 -29
  101. package/dist/tools/code-nav.js +0 -299
  102. package/dist/tools/code-nav.js.map +0 -1
  103. package/dist/tools/search-code.d.ts +0 -10
  104. package/dist/tools/search-code.js +0 -90
  105. package/dist/tools/search-code.js.map +0 -1
@@ -1,242 +0,0 @@
1
- # Interface Craft Rulings
2
-
3
- ## Contents
4
-
5
- 1. Icons, never emoji
6
- 2. Uniform geometry and alignment
7
- 3. Reuse before invention
8
- 4. Motion without generic hover lift
9
- 5. Typography and Google Fonts loading
10
- 6. Contrast as a release requirement
11
- 7. Consistency and flow
12
- 8. UI copy punctuation
13
- 9. Final craft check
14
-
15
- These are binding defaults for UI implementation and review. They reflect Ken's product taste, current accessibility guidance, current web-font delivery guidance, established design-system motion/grid practices, and the pinned observational corpus. Override one only when the user explicitly requests the exception or the existing product has a stronger documented rule.
16
-
17
- ## 1. Icons, never emoji
18
-
19
- Do not use emoji as interface icons, bullets, status marks, empty-state decoration, or visual shorthand unless the user explicitly requests emoji.
20
-
21
- 1. Inspect the project for an existing icon system and reuse it.
22
- 2. If none exists and adding a dependency is allowed, choose one coherent stack-specific package. Default to Lucide for a restrained line system. Use Material Symbols when variable fill/weight/optical sizing fits an existing Google/Material language. Use Phosphor when the product needs a broader weight range and a softer illustrative voice.
23
- 3. Do not mix icon families within one product surface.
24
- 4. Do not hand-draw substitute SVGs when the selected package already has the icon.
25
- 5. Match icon stroke/fill weight, optical size, control size, and color role across repeated components.
26
- 6. Prefer visible text beside unfamiliar actions. Decorative icons are hidden from assistive technology. Icon-only buttons receive an accessible name on the button, a visible tooltip where useful, and at least a 44 by 44 CSS-pixel target.
27
-
28
- Lucide's current accessibility guidance recommends visible labels in most cases, consistent icon treatment, keyboard access, adequate contrast, and a 44 by 44 target wrapper. Material Symbols provides variable fill, weight, grade, and optical-size axes; use those axes systematically rather than mixing arbitrary styles.
29
-
30
- ## 2. Uniform geometry and alignment
31
-
32
- Uniformity means shared geometry, not equal visual importance.
33
-
34
- - Establish container edges, columns, gutters, spacing tokens, control heights, border positions, and text baselines before styling individual sections.
35
- - Repeated sections align to the same key lines. Cards in the same family share padding, header placement, border treatment, and action placement.
36
- - Vertical dividers meet related horizontal boundaries cleanly. Avoid one-pixel drift, almost-aligned edges, arbitrary indents, and section widths that change without a content reason.
37
- - Use one spacing rhythm. Prefer existing project tokens; otherwise derive a compact 4 or 8 pixel scale appropriate to density.
38
- - Preserve alignment through responsive recomposition. Mobile may change order or layout, but repeated controls and content edges remain internally consistent.
39
- - Break the grid only to express real hierarchy, media behavior, or editorial emphasis. A deliberate exception should be visible as an exception, not look accidental.
40
-
41
- ### Shared content rails and spacing ownership
42
-
43
- Establish one page-shell or container primitive that owns the default max-width and responsive inline gutters. Reuse it for navigation, headers, breadcrumbs, main content, adjacent sections, and footers. A full-bleed background or divider may span the viewport, but its inner content returns to the shared rail. A navbar that is slightly wider or narrower than the page body, or neighboring sections with almost-matching edges, is a craft failure unless the user or content explicitly requires a different composition.
44
-
45
- Use the project's spacing tokens for repeated section padding, stack gaps, grid gaps, and component insets. The parent layout owns spacing between siblings; each component owns its internal padding. Do not combine ad hoc child margins, wrapper padding, and arbitrary offsets until one section merely looks close to another. A deliberate nested rail, breakout, or asymmetric section needs a visible hierarchy or content reason and must resolve cleanly at every breakpoint.
46
-
47
- Test by drawing vertical guides through navigation, header, main, repeated sections, and footer at narrow, intermediate, desktop, and wide sizes. Their inner edges and breakpoint changes must align exactly by default. Compare repeated vertical gaps and section padding side by side; equal roles use equal tokens.
48
-
49
- ### Control icon insets
50
-
51
- A select, dropdown, or combobox chevron is part of the control anatomy, not decoration pasted onto its edge. Give every trailing icon a deliberate `inset-inline-end` that follows the control's horizontal-padding token. Reserve `padding-inline-end` for the outer inset, icon width, and a readable gap so labels, selected values, placeholders, loading indicators, clear buttons, and long or localized content never collide with it. An icon at `right: 0`, touching the border, or squeezed into an unreserved text area is a craft failure.
52
-
53
- Keep the icon optically centered and preserve the full control hit area. Native select text padding does not reliably reposition the browser-drawn arrow. Choose one path: retain native appearance and verify it on supported platforms, or reuse a shared native-select wrapper with `appearance: none` and one decorative custom chevron. Do not build a custom ARIA select merely to move an arrow.
54
-
55
- For the custom-arrow path, the wrapper owns positioning, the select reserves `padding-inline-end`, and the icon has its own `inset-inline-end`, `pointer-events: none`, and assistive-technology hiding. Reserve at least inset + icon width + text gap using shared tokens; 40px is not a universal requirement. Remove the native indicator only with a visible replacement, including in forced-colors mode. Check that exactly one arrow renders and clicking directly on it still opens the select. Use logical inline properties and verify RTL rather than hard-coding right-side geometry.
56
-
57
- Test every control size with the longest plausible value, 200% text zoom, narrow width, RTL, disabled/error/loading states, and both native and custom rendering paths. The trailing inset should visually belong to the same spacing rhythm as the leading content inset.
58
-
59
- Carbon's grid guidance uses consistent mini-unit multiples, key lines, fixed padding within breakpoints, and type aligned to box padding. Apply the principle through the project's own grid rather than copying Carbon's exact values.
60
-
61
- ## 3. Reuse before invention
62
-
63
- Before creating any token, component, style, or interaction:
64
-
65
- 1. Search the project for the same semantic role.
66
- 2. Reuse the existing component and variant when it meets the need.
67
- 3. Extend the nearest primitive when the need is genuinely new.
68
- 4. Create a new primitive only when reuse or extension would distort semantics.
69
-
70
- Do not duplicate button systems, card shells, form controls, modal behavior, status colors, spacing scales, icon wrappers, focus rings, or motion curves. Reuse class utilities and design tokens where they already exist. Same function means same label, icon, accessible name, state treatment, and placement across pages.
71
-
72
- ## 4. Motion without generic hover lift
73
-
74
- Every interactive component must provide clear feedback for relevant hover, focus, press, selected, expanded, loading, success, and error states. Feedback should not feel abrupt when an interpolated transition improves comprehension.
75
-
76
- Default motion behavior:
77
-
78
- - Do not use generic `translateY` hover lift, bobbing, floating, card jumping, or indiscriminate scale-up.
79
- - Prefer background, foreground, border, underline, icon fill/weight, opacity, and restrained shadow transitions.
80
- - Press feedback should feel connected to activation. Prefer color, inset, fill, or a brief controlled compression only when it matches the material model.
81
- - Animate state and continuity, not decoration. Do not add ambient or perpetual motion to make a static layout feel designed.
82
- - Never use `transition: all`. Name the properties that are allowed to interpolate.
83
- - Avoid animating layout properties such as `width`, `height`, `top`, and `left` unless spatial change is the meaning and performance is verified.
84
- - Keep focus indication immediate and visible. A transition must never delay awareness of keyboard focus.
85
-
86
- ### No sticky pointer focus
87
-
88
- DOM focus can legitimately remain after a click or native popup dismissal. Having focus and painting a focus indicator are separate decisions. Text-entry controls may legitimately match `:focus-visible` after pointer activation; user/browser preferences may also require visible focus. Do not treat these as stale-ring bugs. Genuine selected, expanded, validation, and drag states must retain their own semantics and styling.
89
-
90
- #### Diagnose the painted layer first
91
-
92
- Reproduce the exact interaction sequence. Inspect the active element, `:focus`, `:focus-visible`, ancestor `:focus-within`, state attributes/classes, and computed styles on the control, wrapper, and `::before`/`::after`. Trace outlines, borders, box shadows (including ring utilities), backgrounds, and glass reflections to their winning rules. Record which layer draws the unwanted edge and which event leaves it visible. A screenshot cannot distinguish these causes.
93
-
94
- Fix that owner and inspect its callers. One shared primitive or utility owns the focus indicator and its width, offset, and color tokens. Do not add a second editor-local ring, blanket ancestor highlight, specificity escalation, or `!important` patch over the shared rule. Keep material decoration and selection separate from focus. Reuse the established restrained indicator, but never force a universal hairline at the expense of visibility, contrast, forced colors, or platform requirements. Verify the combined painted result, not outline width alone.
95
-
96
- #### Modality without keyboard regressions
97
-
98
- Prefer native `:focus-visible` and existing accessible primitives. Add or change custom modality handling only for a reproduced supported-browser defect; use one shared policy, not per-control document listeners.
99
-
100
- - Pointer interaction may hide only the inappropriate pointer-originated treatment; it must not blur the control or clear real selection.
101
- - Tab and Shift+Tab reveal focus immediately. Composite widgets must also reveal focus when their supported navigation keys move it. Preserve keyboard and assistive-technology focus return after overlays and programmatic moves.
102
- - Do not equate every `keydown` with navigation. Space, Enter, typing, modifier-only keys, and global shortcuts must not blindly resurrect a stale ring on the last pointer-focused control. Nor should they blindly clear an existing keyboard indicator. Keep activation and text-entry behavior intact; if a key opens a menu or moves focus, the destination still needs appropriate focus feedback.
103
- - Never fix rings using blanket `outline: none`, a Tab-only global accessibility policy, prevented native key behavior, or forced blur.
104
-
105
- #### Required interaction regression matrix
106
-
107
- For changes to focus, control edges, or dropdown anatomy, run applicable rows in a real browser. Add regressions to existing browser tests where available; otherwise record manual steps and results. Do not invent a new test suite just for this check.
108
-
109
- | Sequence or state | Required result |
110
- |---|---|
111
- | Pointer open → choose option or dismiss → Space/Enter or an unrelated shortcut → Tab → click blank space | No custom stale ring is resurrected merely by a keydown; native activation still works; Tab immediately reveals the correct focus target; pointer cleanup preserves genuine states. Test selection and dismissal separately. |
112
- | Tab/Shift+Tab → activate → Escape/close → resume navigation | Visible focus throughout keyboard use, correct return target, no trap; supported arrow-key navigation also works. |
113
- | Pointer into text input → type; keyboard into input → type | Caret, editing, and appropriate visible focus remain intact. |
114
- | Selected/expanded/error control inside a glass wrapper, with and without keyboard focus | Each state remains correct; no duplicate local/shared ring or unintended container-wide edge. Inspect computed styles and rendered output. |
115
- | Every affected shared-control variant, long value, narrow width, 200% text zoom, RTL | One chevron; measured inset and reserved text area do not collide; arrow hit area works. |
116
- | Supported browser/webview, themes, forced colors, and touch where applicable | Focus and chevron remain visible and operable; record unavailable combinations as unverified. Native popup behavior needs native interaction, not just a programmatic value change. |
117
-
118
- Report the reproduced cause, shared owner changed, tested sequences and browser/platform, and any remaining uncertainty. An initial-state screenshot, class-name assertion, or source review alone does not establish that interaction regressions passed.
119
-
120
- Reuse existing motion tokens first. If none exist, begin with these restrained bands, then tune by component size and distance:
121
-
122
- | Role | Typical duration | Use |
123
- |---|---:|---|
124
- | Immediate micro-feedback | 70 to 110 ms | button, toggle, icon fill, press |
125
- | Standard state change | 140 to 200 ms | color, border, background, small disclosure |
126
- | Entrance or panel continuity | 180 to 240 ms | menu, popover, drawer, inserted feedback |
127
- | Exit | 120 to 180 ms | dismissal and removal |
128
-
129
- For a neutral productive curve, Carbon documents `cubic-bezier(0.2, 0, 0.38, 0.9)` for standard productive motion, with separate entrance and exit curves. Use local easing when available.
130
-
131
- The pinned observational corpus supports restrained hover treatment: Tesla and Lamborghini explicitly prefer color-only interactions over scale/translate; Vercel uses underline or surface changes; Linear uses a controlled color/surface state; Sanity uses a consistent interactive color. These are observations of selected surfaces, not universal brand rules. Refero content was not accessed because no authorized Refero MCP or user-provided export was available.
132
-
133
- Reduced motion is mandatory. Under `prefers-reduced-motion: reduce`, remove non-essential travel, parallax, scale, and spatial choreography. Preserve state feedback through immediate color, border, text, icon, or opacity changes. WCAG 2.2 SC 2.3.3 treats disabling non-essential interaction animation as the accessible direction.
134
-
135
- ## 5. Typography that carries intent
136
-
137
- Reuse the project's established type system first. For net-new web work without an established type system, choose an intentional family or pairing that matches the subject, language coverage, density, and reading mode.
138
-
139
- Do not choose Arial, Helvetica, or a bare `system-ui` stack as the visible design direction for net-new aesthetic work. They remain acceptable technical fallbacks and may remain correct for an existing system or native-platform surface.
140
-
141
- ### Current Google Fonts inspiration
142
-
143
- The following families were present in Google Fonts metadata fetched 14 July 2026. Popularity positions in that metadata included DM Sans 23, Manrope 37, Lora 43, Bricolage Grotesque 45, Plus Jakarta Sans 51, Space Grotesk 79, Instrument Serif 92, Geist 125, IBM Plex Mono 129, Source Serif 4 133, Instrument Sans 140, Newsreader 148, Geist Mono 149, and DM Mono 168. Popularity is discovery evidence, not a command to use the highest-ranked family.
144
-
145
- | Pairing | Best fit | Role split |
146
- |---|---|---|
147
- | Instrument Sans + Instrument Serif | editorial brands, culture, thoughtful commerce | sans for UI/body, serif for display or pull quotes |
148
- | Manrope + IBM Plex Mono | precise product UI, operations, technical SaaS | sans for interface, mono for data and technical labels |
149
- | Plus Jakarta Sans + Source Serif 4 | trustworthy services, education, research | sans for navigation/UI, serif for long reading |
150
- | DM Sans + DM Mono | clean application UI, data products | sans for hierarchy, mono for identifiers and code |
151
- | Space Grotesk + Newsreader | modern editorial/product hybrids | grotesk for display/UI, serif for narrative |
152
- | Bricolage Grotesque + Lora | playful or crafted consumer products | expressive sans for display, serif for supporting warmth |
153
- | Geist + Geist Mono | restrained developer tools | sans for UI, mono for code/data |
154
- | Noto Sans + Noto Serif | multilingual products | broad-script sans/serif system |
155
-
156
- Use one family when role, weight, width, size, and tracking provide enough hierarchy. Add a second family only for a clear role contrast. Two families are usually sufficient; a third requires a specific content role.
157
-
158
- ### Loading Google Fonts
159
-
160
- When network font loading is acceptable, connect the selected pair through the Google Fonts CSS API. Request only used families, styles, scripts, and weights. Use `display=swap`, preconnect to both Google Fonts origins, and test fallback metrics and layout shift.
161
-
162
- ```html
163
- <link rel="preconnect" href="https://fonts.googleapis.com" />
164
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
165
- <link
166
- rel="stylesheet"
167
- href="https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap"
168
- />
169
- ```
170
-
171
- Do not connect Google Fonts when privacy, offline operation, CSP, performance budgets, or project policy prohibit third-party font requests. Self-host approved WOFF2 files instead. Google and web.dev guidance recommends early discovery, preconnect for third-party font origins, explicit `font-display`, limited variants, and testing cumulative layout shift.
172
-
173
- ## 6. Contrast is a release requirement
174
-
175
- Never use faint light-gray text on white, faint dark-gray text on black, or low-contrast borders/icons merely to look refined.
176
-
177
- - Normal text meets at least 4.5:1 against its actual background.
178
- - Large text meets at least 3:1.
179
- - Meaningful icons, control boundaries, focus indicators, and graphical objects meet at least 3:1 against adjacent colors.
180
- - Muted, secondary, placeholder, metadata, and disabled text remain intentionally legible. Disabled controls have a WCAG exception, but their meaning should not disappear.
181
- - Do not round a failing ratio upward. W3C explicitly notes that 4.499:1 fails 4.5:1.
182
- - Aim above the minimum for small, thin, long-form, or mission-critical text. Verify computed colors rather than judging from a screenshot alone.
183
- - Do not use color as the only status cue. Pair color with text, shape, icon, or pattern.
184
-
185
- ### No soft semantic tint-on-tint
186
-
187
- Do not default badges, buttons, toasts, alerts, cards, selected states, status rows, or icon medallions to the familiar `soft`, `subtle`, `surface`, or `tonal` formula: a low-opacity red, green, amber, blue, or purple background paired with saturated same-hue text or icons, often finished with a same-hue border. The border is optional; the same-hue tinted surface plus same-hue foreground is the rejected pattern.
188
-
189
- Choose the replacement from the product's existing aesthetic and the component's role. Viable directions include a neutral surface with an isolated semantic icon, dot, or edge; a solid semantic fill with neutral high-contrast text; monochrome treatment; a product accent; plain typography; or another coherent local material model. These are options, not a new house style. Preserve hierarchy, measured contrast, and a non-color cue for status.
190
-
191
- Retain tint-on-tint only when the user explicitly asks for it or exact reuse of an established design-system variant is required by scope. Existing examples are evidence to inspect, not permission to spread the treatment into new component families.
192
-
193
- ## 7. Consistency and flow
194
-
195
- A polished interface feels like one system from section to section, component to component, and page to page.
196
-
197
- - Repeated navigation stays in the same relative order.
198
- - Repeated functions keep the same component, label, icon, accessible name, and state behavior.
199
- - Page templates share container widths, header logic, spacing cadence, and section transitions.
200
- - A section should hand off to the next through intentional spacing, border, surface, continuation, or hierarchy. Avoid random background bands and arbitrary rhythm resets.
201
- - Keep primary action placement predictable within a flow. Do not move the same action between card header, footer, and floating affordance without a reason.
202
- - Preserve user orientation during loading, filtering, navigation, and responsive changes.
203
- - Review adjacent screens together, not as isolated screenshots.
204
-
205
- WCAG 2.2 SC 3.2.3 requires repeated navigation to keep the same relative order, and SC 3.2.4 requires components with the same function to be identified consistently. These accessibility requirements also reduce visual and cognitive friction for everyone.
206
-
207
- ## 8. UI copy punctuation
208
-
209
- Do not generate em dashes in user-facing UI copy unless the user explicitly requests them or supplied brand/source copy already uses them and must remain unchanged.
210
-
211
- Prefer a period, comma, colon, parentheses, or a rewritten sentence. Preserve exact quoted or legal source text. This is a product voice ruling, not a claim that em dashes are inaccessible.
212
-
213
- ### Copy must earn its space
214
-
215
- Apply this to new UI and changed components, regardless of product, platform, or visual style. Sufficient information at the right moment is the goal, not maximum brevity.
216
-
217
- - **Labels first:** Start with clear labels, controls, and relevant status. Do not automatically fill components with subtitles, descriptions, helper paragraphs, or footer notes simply because a slot exists.
218
- - **Justify supporting text:** Include it only to resolve ambiguity, prevent a likely mistake, explain a meaningful consequence, or help recovery. Ask: “Does this text add information needed here that the interface does not already communicate?” Remove it if not.
219
- - **One fact, one place:** Do not restate headings, labels, actions, status, or nearby explanations in supporting prose. Repeat only when a separate decision context genuinely requires it; accessible names and necessary instructions must remain complete.
220
- - **Right information, right moment:** Show state-specific guidance in that state. Make optional setup details and troubleshooting available through discoverable, accessible contextual help. Complete states through behavior and timely feedback, not permanent paragraphs explaining every possible outcome.
221
- - **Essential guidance stays visible:** Keep necessary instructions, safety warnings, costs, consent, and irreversible consequences visible at the point of decision before action. Do not hide them in tooltips or disclosures merely to simplify the screen. Preserve required legal and supplied exact wording.
222
- - **Familiar words:** Describe what people can do and what happens. Use implementation details only when the audience needs them for the task; accuracy alone does not justify their presence.
223
- - **Remove before compressing:** Reduce redundant content before shrinking text, squeezing spacing or hit targets, truncating necessary information, or accepting avoidable scrolling. There is no universal word limit, sentence limit, or ban on scrolling; substantive content, localization, and accessibility may require more space.
224
- - **Verify in context:** Inspect the rendered screen at its intended window sizes and relevant states, including text scaling. Check repeated meaning, reading effort, and whether supporting copy delays reaching the task, not merely whether everything fits. Check that removing or relocating text has not made the next action or its consequences ambiguous. Source review alone leaves the rendered check unverified.
225
-
226
- ## Final craft check
227
-
228
- Before calling UI work complete, verify:
229
-
230
- - no emoji used as UI imagery;
231
- - one coherent icon family, with accessible names and target sizes;
232
- - shared key lines, control heights, spacing, borders, and component geometry;
233
- - existing components/tokens reused before new ones were created;
234
- - every relevant interaction has purposeful, non-abrupt feedback;
235
- - no generic hover lift or `transition: all`;
236
- - reduced motion preserves state meaning;
237
- - typography is intentional, loaded efficiently, and stable during fallback;
238
- - all text and meaningful non-text contrast is measured;
239
- - no soft semantic tint-on-tint treatment was introduced without an explicit user request or required existing-system match;
240
- - repeated navigation/actions remain consistent across sections and pages;
241
- - supporting copy adds necessary information at the right moment, without redundant descriptions or avoidable scrolling; essential instructions and consequences remain visible;
242
- - generated UI copy contains no em dashes unless explicitly allowed.
@@ -1,116 +0,0 @@
1
- # Picking a Direction
2
-
3
- ## Contents
4
-
5
- 1. Content first
6
- 2. The thesis template
7
- 3. Type
8
- 4. Colour (OKLCH, measured)
9
- 5. Spacing, density, radius
10
- 6. Imagery
11
- 7. Motion
12
- 8. Platform features worth using (verified Baseline status)
13
- 9. Responsiveness and INP practice
14
-
15
- Use for net-new UI, redesigns, or when the existing product leaves an axis free. If the project already has a system, preserve it and skip to § 8–9.
16
-
17
- ## 1. Content first
18
-
19
- Before any layout:
20
-
21
- 1. Write the real headline, primary action label, and the copy for every section, in the user's vocabulary.
22
- 2. Gather or write realistic data: longest names, empty values, large numbers, 0/1/many items, localized strings.
23
- 3. Rank it: what must be seen first, second, and what is the one action.
24
- 4. Only then pick layout. If a section has nothing true to say, delete the section, do not design a container for it.
25
-
26
- Fixtures must be labelled as fixtures. Never invent proof (`references/anti-defaults.md` § 4).
27
-
28
- ## 2. The thesis template
29
-
30
- Write this before code (in `DESIGN.md` for broad work, in notes otherwise). Max ~12 lines.
31
-
32
- ```
33
- Subject + audience + single job:
34
- Signature (one memorable device, from the subject's world):
35
- Type: display / body / utility roles, families, scale ratio
36
- Colour: 4–6 named OKLCH tokens + intended contrast pairs
37
- Space/density: base unit, scale, density mode
38
- Radius + material: scale by role; surface model (flat / tonal / bordered / elevated)
39
- Imagery: source and treatment, or "none"
40
- Motion: the one orchestrated moment + feedback durations/easing
41
- Alignment: rail width, grid, left/center rule
42
- Rejected defaults: which slop tells this plan avoided and what replaced them
43
- ```
44
-
45
- Then run the neighbour test from `references/anti-defaults.md` § 7 on the plan and revise once.
46
-
47
- ## 3. Type
48
-
49
- - One family or two; if two, make them clearly different (e.g. a characterful display + a quiet text face, or a serif text + a grotesque UI face). Three only when a mono is needed for code.
50
- - Choose from the subject: technical precision, warmth, editorial authority, playfulness. Name the reason in the thesis.
51
- - Avoid Inter/Geist/system-ui as the identity of a marketing or brand surface. They remain fine for dense application chrome or when the project already uses them.
52
- - Scale: one ratio (e.g. 1.2 for dense apps, 1.25–1.333 for marketing) mapped to named tokens; no ad-hoc sizes.
53
- - Measure: body text under ~75 characters; serif body gets slightly more line-height.
54
- - Use `text-wrap: balance` on headings and `text-wrap: pretty` on paragraphs as progressive enhancement.
55
- - Tabular numerals (`font-variant-numeric: tabular-nums`) for columns of figures.
56
- - Loading and font candidates: `references/craft-rulings.md` § 5.
57
-
58
- ## 4. Colour (OKLCH, measured)
59
-
60
- - Start from one brand hue derived from the subject or existing brand. Not violet/indigo by default.
61
- - Define tokens in `oklch()` (Baseline widely available). Build ramps by stepping lightness (L) at fixed hue; reduce chroma (C) near the light and dark ends so colours stay in gamut.
62
- - Neutrals: tint toward the brand hue with very low chroma (about 0.005–0.02) instead of stock `slate`/`zinc`.
63
- - Roles, not hues: `bg`, `surface`, `text`, `text-muted`, `border`, `accent`, `accent-contrast`, `focus`, `danger`, `success`. Components consume roles only.
64
- - Accent covers a small share of the screen; status colours are reserved for status.
65
- - Themes: `light-dark()` (Baseline newly available) or `prefers-color-scheme` tokens; tune dark neutrals separately rather than inverting.
66
- - Contrast is measured, not eyeballed. WCAG 2.2 AA: 4.5:1 normal text, 3:1 large text, 3:1 for UI component boundaries, icons, and focus indicators against adjacent colours. Compute ratios from the resolved sRGB values (browser devtools, axe, or a script) for every text/background pair in both themes and record them. OKLCH lightness is a design aid, not a WCAG measurement.
67
- - `color-mix()` (Baseline widely available) for hover/pressed derivations from tokens instead of new hard-coded values.
68
-
69
- ## 5. Spacing, density, radius
70
-
71
- - One base unit (4 or 8 px) and a named scale; no off-scale values.
72
- - Density by task: data-dense tools use compact rows and small gaps; marketing uses generous section spacing. Do not mix densities within one view without reason.
73
- - Group with proximity first, then alignment, then borders, then fills. Shadows last and with one reason.
74
- - Radius scale by role (e.g. inputs and buttons share one, overlays another, avatars full). Never one radius for everything by reflex.
75
- - One shared content rail (`references/craft-rulings.md` § Shared content rails).
76
-
77
- ## 6. Imagery
78
-
79
- Priority: real product UI at readable scale → real photography of the subject → real data visualised → typography alone. Generated or stock illustration only when requested. Every image needs dimensions (no layout shift), meaningful `alt` or empty `alt` if decorative, and responsive sources.
80
-
81
- ## 7. Motion
82
-
83
- - One orchestrated moment per page at most (a load sequence or one reveal). Everything else is feedback to user action.
84
- - Feedback: about 100–200 ms for hover/press, about 200–300 ms for panels; ease-out for entering, ease-in for leaving. Use tokens.
85
- - Animate `transform` and `opacity`; name transitioned properties.
86
- - Every motion has a `prefers-reduced-motion` path that keeps meaning.
87
- - Auto-playing motion longer than 5 s needs pause/stop/hide (WCAG 2.2.2).
88
-
89
- ## 8. Platform features worth using (stable Baseline)
90
-
91
- Stable rows only (SNAPSHOT, re-checked 22 Oct 2026). Baseline status moves monthly: for any feature not listed, or any "not yet Baseline" call, check https://webstatus.dev or the MDN compatibility table live before deciding, and record the date you checked.
92
-
93
- | Feature | Baseline | Use by default? |
94
- | --- | --- | --- |
95
- | Container queries (size) | Widely available | Yes, for components that live in varying containers. |
96
- | `:has()` | Widely available | Yes, for parent/state styling instead of JS class toggling. |
97
- | `oklch()` / `oklab()`, `color-mix()` | Widely available | Yes, for tokens. |
98
- | `<dialog>`, `inert` | Widely available | Yes, for modals and disabling background regions. |
99
- | Subgrid | Widely available | Yes, for aligning card internals across a row. |
100
- | Popover API | Newly available (Jan 2025) | Yes for menus/tooltips/popovers, with tested focus behaviour. |
101
- | `text-wrap: balance`, `light-dark()`, `@starting-style`, `details name` | Newly available | Yes; content must work without the enhancement. |
102
- | Same-document view transitions | Newly available (Oct 2025) | Yes as progressive enhancement with reduced-motion opt-out. |
103
- | CSS anchor positioning | Newly available (Jan 2026, Firefox 147) | Yes for tooltips/menus when the support policy allows; keep a fallback position otherwise. |
104
-
105
- "Newly available" means supported in current versions of all core browsers but not yet for 30 months; check the project's support policy before relying on it without a fallback.
106
-
107
- ## 9. Responsiveness and INP practice
108
-
109
- Interaction to Next Paint (INP) is the Core Web Vital for responsiveness; "good" is 200 ms or less at the 75th percentile (web.dev, SNAPSHOT).
110
-
111
- - Paint feedback first: update the pressed/pending state synchronously, then do heavy work after yielding (`await scheduler.yield()` where supported, otherwise `setTimeout`/`requestAnimationFrame` fallback).
112
- - Keep event handlers small; debounce typing-driven filtering; virtualize long lists; avoid layout thrash (read then write).
113
- - Prefer CSS state (`:has()`, `:focus-visible`, popover, `<details>`) over JS-driven re-renders for simple UI state.
114
- - Use `content-visibility: auto` for long offscreen sections when it does not break find-in-page or anchors in the target browsers.
115
- - Reserve space for images, ads, embeds, and async content to avoid layout shift.
116
- - Report measurements as RUNTIME only when measured; otherwise say unmeasured.
@@ -1,64 +0,0 @@
1
- # Corpus Methodology
2
-
3
- ## Scope
4
-
5
- This skill analyzes the MIT-licensed public `DESIGN.md` snapshot from [`VoltAgent/awesome-design-md`](https://github.com/VoltAgent/awesome-design-md) at commit `664b3e78fd1a298ba11973822da988483256d4b4` (retrieved 2026-07-13).
6
-
7
- The archive contains **74/74 discovered `design-md/*/DESIGN.md` files**. The approved planning estimate said 75, while the upstream README badge at the pinned commit says 73 and omits the present `slack` file. Archive-tree enumeration is the authoritative count for this snapshot.
8
-
9
- These files are independent analyses of public websites. They are not official brand design systems, and a frequency in this corpus is not a universal design rule.
10
-
11
- ## Deterministic extraction
12
-
13
- The counts were produced on 13 July 2026 by a standard-library Node analyzer that verified each source's SHA-256, parsed headings and frontmatter, and wrote deterministic observations. The raw corpus, the analyzer and its generated data are not bundled (removed 22 October 2026 to keep the package small); the derived counts below and in `references/observed-patterns.md` are the retained record. Re-deriving a count means reading the sources at the pinned upstream commit.
14
-
15
- At extraction version 1, **64/74 documents** use frontmatter plus prose and **10/74** use numbered prose without frontmatter. All **74/74** are parsed; unsupported files would be retained with an explicit reason rather than silently dropped. Counts come from extraction version 1 at source commit `664b3e…`.
16
-
17
- ## What the parser measures
18
-
19
- - **Color:** hexadecimal values, nearby semantic role language, accent count, surface ladder, HSL distributions, hue bins, and semantic-state mentions. It never averages colors into a recommended hex value.
20
- - **Typography:** family strings, display/body/utility/code role language, font sizes, weights, tracking, line-height, and explicit line-length guidance.
21
- - **Layout:** declared spacing scales, inferred 4/5/8px bases only when scale evidence has at least 60% coverage, section spacing, max-width declarations, density language, and named composition patterns.
22
- - **Shape and material:** radius values tied to radius language, pill/sharp-corner mentions, borders, dividers, shadows, blur, gradients, imagery, and surface-separation language.
23
- - **Components and states:** buttons, inputs, cards, navigation, tables, CTA language, hover, focus, press/active, disabled, loading, empty, error, and semantic color states.
24
- - **Motion and access:** motion terms, durations, easing, reduced-motion language, accessibility, focus, keyboard, and contrast language.
25
- - **Rules and motifs:** explicit do/do-not lines and sentences that identify a signature, motif, or defining characteristic.
26
-
27
- ## Statistics and missing data
28
-
29
- Numeric outputs use min, first quartile, median, third quartile, max, and an explicit sample count. Frequencies always store `{ count, denominator }`. Unknown values remain `null`, `false`, or empty arrays and do not enter numeric sample counts.
30
-
31
- Hue is reported in 30-degree bins because linear averaging is invalid across the 0°/360° boundary. Color recommendations must use semantic role and brief fit, never a corpus-average color.
32
-
33
- Co-occurrences mean two terms or policies appeared in the same analysis; they do not prove a causal design relationship. Representative slugs are the most extraction-complete records, not quality rankings. Contrasts are selected from a non-dominant inferred theme.
34
-
35
- ## Categories and archetypes
36
-
37
- The manifest preserves the ten upstream README groupings, including the two-file Retro Web section, and marks the present-but-uncatalogued `slack` file separately instead of inventing an upstream category. The analyzer separately maps documents into six usable product archetypes plus a zero-coverage mobile/native category:
38
-
39
- - marketing/brand;
40
- - application UI;
41
- - dashboards/data-dense tools;
42
- - commerce/marketplaces;
43
- - editorial/content;
44
- - documentation/developer tools;
45
- - mobile/native (**0 documents**).
46
-
47
- This mapping is analytical judgment, recorded in the (unbundled) analyzer; it is not supplied by upstream. A source appears in exactly one analytical archetype so denominators remain auditable.
48
-
49
- ## Known limitations
50
-
51
- - The corpus overrepresents technology marketing and developer products: marketing/brand has **29/74 documents**, while editorial has **5/74** and mobile/native has **0/74** (commit `664b3e…`, extraction v1).
52
- - Mention detection records what an analysis discusses, including prohibitions. Policy classifiers distinguish direct “no shadows/gradients” language from subtle treatment where possible, but nuanced prose still needs human review.
53
- - Font-family counts include fallbacks and substitutes; they are evidence of documented vocabulary, not the number of fonts loaded by a website.
54
- - Radius vocabularies can include component exceptions. Use the component rule and local project token set before the corpus-wide distribution.
55
- - The files describe selected public surfaces, often marketing pages, not every state in the underlying product.
56
- - No screenshots, brand assets, paid files, private requests, fonts, website media, or Refero data are included.
57
-
58
- ## Product-owner rulings and production standards versus corpus evidence
59
-
60
- `references/craft-rulings.md` contains Ken's binding product defaults for emoji, icons, alignment, reuse, motion, UI punctuation, typography, contrast, consistency, and flow. `references/production-contract.md` contains the separate pass/fail implementation floor for semantics, accessibility, forms, resilience, performance, platform behavior, tokens, trust, and verification. Neither document presents its requirements as corpus frequencies. `references/provenance.md` records the current standards and implementation sources that support them.
61
-
62
- ## How to use the evidence
63
-
64
- Select the matching archetype first. Read corpus-wide findings only as context, inspect two aligned sources and one useful contrast, then test the choice against the actual product brief and existing project. If the local product contradicts the corpus, the product wins.
@@ -1,68 +0,0 @@
1
- # Observed Patterns
2
-
3
- ## Evidence key
4
-
5
- Unless a paragraph says otherwise, every count below comes from a deterministic extraction (version 1) of [`VoltAgent/awesome-design-md`](https://github.com/VoltAgent/awesome-design-md) at commit `664b3e78fd1a298ba11973822da988483256d4b4`. The raw files and generated data are not bundled; read the sources upstream. Fractions are **observed documents / relevant documents**; numeric distributions state their sample count. These are observations, not defaults.
6
-
7
- ## Theme is conditional, not a premium preset
8
-
9
- The inferred primary theme is dark in **40/74**, mixed in **19/74**, and light in **15/74** analyses. The skew reflects a corpus rich in developer tools, AI products, and cinematic brands. Commerce is much less one-sided—light **5/12**, dark **4/12**, mixed **3/12**—so “dark equals premium” is not supported as a cross-product rule.
10
-
11
- Aligned dark references: `sanity`, `voltagent`. Useful light contrast: `airbnb`.
12
-
13
- ## Surface separation favors restraint
14
-
15
- Shadow policy is classified as subtle in **45/74**, absent in **28/74**, and merely mentioned in **1/74** analyses. This is stronger evidence for restrained elevation than for one universal “no shadows” rule. Use borders, tonal steps, spacing, or subtle shadows according to material logic and information density.
16
-
17
- Examples: `vercel` and `linear.app` use precise containment; `airbnb` shows where soft elevation remains appropriate for a tactile consumer marketplace.
18
-
19
- ## Gradients are disputed, not forbidden
20
-
21
- Gradients are positively mentioned in **35/74**, directly discouraged in **23/74**, and unclassified in **16/74** analyses. A blanket gradient ban contradicts the corpus. Gradients earn their place when they carry brand, light, depth, data, or media meaning; they fail when they merely signal “modern AI.”
22
-
23
- Aligned use: `stripe`, `framer`. Contrast: `vercel`.
24
-
25
- ## Accent count is a range, not a palette recipe
26
-
27
- Per-document accent-role extraction has **74 samples**: Q1 **3**, median **5**, Q3 **8**. These counts include shades and semantic variants, so they do not imply five competing CTA colors. Build a semantic hierarchy—canvas, surface, text, border, action, status—then reserve the highest-chroma signal for the screen’s single job.
28
-
29
- The hue corpus is intentionally not averaged. Role and contrast matter more than a synthetic “average blue.”
30
-
31
- ## Spacing scales converge more than compositions
32
-
33
- A spacing base was inferable in **73/74** documents: Q1 **4px**, median **4px**, Q3 **8px**. Section-spacing extraction has **434 samples**: Q1 **24px**, median **40px**, Q3 **64px**. Treat this as evidence for a coherent scale, not permission to paste a 4px system over an existing project.
34
-
35
- Grid language appears in **73/74** analyses, full-bleed composition in **54/74**, single-column behavior in **44/74**, sidebars in **27/74**, asymmetry in **10/74**, split layouts in **10/74**, and masonry in **1/74**. “Uses a grid” is therefore not a signature. The signature must come from content-specific composition inside the grid.
36
-
37
- ## Radius is component-specific
38
-
39
- Extracted radius values have **764 samples**: Q1 **4px**, median **12px**, Q3 **24px**. Pill language appears somewhere in **73/74**, while sharp-corner language appears in **16/74**. Because these counts include both uses and warnings, neither pills nor square corners should become a global default.
40
-
41
- Constrain the local vocabulary by component role: controls may be compact, media cards may follow imagery, and badges may be pill-shaped without making every container a capsule. `kraken` explicitly limits buttons to 12px; `sanity` contrasts pill CTAs with 3–6px utility surfaces; `tesla` is a sharp, reduced contrast.
42
-
43
- ## Typography separation is selective
44
-
45
- Explicit display/body family separation appears in **11/74** analyses. Font-family vocabulary per document has **74 samples** with median **4**, but that number includes fallbacks and suggested substitutes. The useful lesson is to assign roles deliberately, not to load four fonts.
46
-
47
- Use a second family when it creates a subject-specific register, such as editorial versus utility, human versus technical, or display versus code. Keep one family when weight, width, scale, and tracking already provide sufficient hierarchy. Compare `sanity` (display plus mono technical voice) with `mastercard` (one-font discipline). For net-new type inspiration and current Google Fonts pairings, use `craft-rulings.md`; do not convert corpus frequency into a generic font default.
48
-
49
- ## Motion is underdocumented
50
-
51
- Motion language appears in **41/74** analyses. Only **11 extracted duration samples** exist, with Q1 **200ms**, median **200ms**, and Q3 **225ms**. Reduced-motion language appears in **0/74**. That zero is a corpus gap, not evidence that reduced-motion support is optional.
52
-
53
- Default to no ambient motion, not no feedback. Every relevant interaction should acknowledge hover, focus, press, selection, expansion, loading, success, or error without an abrupt or generic jump. Prefer short color, border, underline, icon, opacity, or restrained shadow transitions over scale/translate hover lift, and always provide a reduced-motion path.
54
-
55
- ## Interaction coverage drops after the happy path
56
-
57
- Mentions by state are: pressed/active **67/74**, error **62/74**, focus **61/74**, hover **57/74**, disabled **46/74**, loading **8/74**, empty **1/74**. Keyboard language appears in only **8/74** analyses.
58
-
59
- The corpus is strongest on styling and weak on product-state completeness. Implementation must add loading, empty, keyboard, and reduced-motion behavior even when the selected reference is silent.
60
-
61
- ## Archetype differences matter
62
-
63
- - Application UI documents mention focus in **7/7** and motion in **5/7**; use interaction precision, not a landing-page spectacle.
64
- - Dashboard/data-dense documents mention focus in **5/5** and keyboard behavior in **3/5**; prioritize scan paths and operability.
65
- - Documentation/developer-tool documents are dark in **11/16**, but one is light and four are mixed; dark remains a tendency, not a requirement.
66
- - Editorial/content documents mention motion in only **1/5** and asymmetry in **3/5**; pacing and hierarchy matter more than animated chrome.
67
- - Commerce/marketplace documents show the broadest theme split and use subtle shadow policy in **8/12**; imagery, trust, and transaction clarity determine material treatment.
68
- - Marketing/brand has **29/74** documents, so its patterns must not leak unexamined into product UI.