koi-design-laws
koi-design-laws
Shared rulebook for all koi design skills (koi-page, koi-new-page, koi-critique, koi-distill, koi-bolder, koi-figcraft-screen, koi-craft, koi-taste). Those skills decide what to build; this skill decides whether it is correct.
Every rule here has a stable id (L3, G1, R7...), a measurable check, and a common violation. Cite ids in every critique and every self-review. A rule without a measured value in the report does not count as checked.
Laws are product-agnostic. Examples use a generic operational e-commerce tool (dense tables, product cards, prices in BRL, SKUs, multiple sales channels) only to make checks concrete. When a product design system exists, its tokens override the generic numbers here as long as they still pass the measurable floor (contrast, target size, grid).
When to read
| Situation | Read |
|---|---|
| Critique / review / audit of an existing screen | reference/checklist.md first, then the files named by failing lines |
| New screen from scratch | laws-of-ux.md -> gestalt.md -> grid-alignment.md -> color-theory.md -> typography.md -> interaction.md -> brand-perception.md, then checklist.md |
| Redesign of a screen | checklist.md on the current screen (baseline), then the new-screen order, then checklist.md again (delta) |
| Small tweak (spacing, one component) | grid-alignment.md measurement procedure + affected checklist group |
| Before saying "done" | checklist.md in full. Always. |
| FigCraft frame | grid-alignment.md measurement procedure using absoluteBounds |
| Code (Next.js / shadcn) | Same procedure using getBoundingClientRect() at 1440, 1280 and 375 widths |