Applied while it builds
Point Claude Code, Cursor, Codex, Kimi, or any AGENTS.md tool at the skill. It applies the rules while it builds.
Fourteen design rules with measurements you can check. Built for agents, engineers, and designers.
Repeated radii. Accent on every icon. Text crowding a corner. Dark text on a bright button. These mistakes hide in code but stand out on screen. Sleak names each one, gives you a number to check, and shows the smallest fix.
The rules work with any tool. Use the same guide whether a person or an agent writes the interface.
Point Claude Code, Cursor, Codex, Kimi, or any AGENTS.md tool at the skill. It applies the rules while it builds.
Each short reference explains one decision with a measurement, the reasoning behind it, and a before-and-after example.
Run the checklist, fix issues by category, and use the included CSS without waiting for a design review.
Each maps to a reference with the full logic, CSS, and an audit. The mono line is what you verify.
Nested corners share one curve axis; padding is the gap between them.
parent − padding = child 02Kickers weaken when repeated; the heading carries the section.
≤ 1 per page · hero: none 03Full accent pulls the eye to the one primary task, not decoration.
1 focal point / view 04Tinted darks take the accent's hue, so nothing clashes.
sat > 0 → hue = accent 05Readable by the math and by perception, checked on the render, not the token.
WCAG 4.5 + APCA Lc 75 06Line length, alignment, and size matched to viewing distance.
≈ 55ch · 7–12 words 07Separate with space and surface tiers, not edge-to-edge rules.
0 full-bleed dividers 08Whole cards click; icons sit in a square with uneven horizontal padding.
icon side ≈ ½ text side 09Prefer subtle over none; one expressive moment; vary the recipe.
≤ 150ms · ease-out 10Lead with the action; drop the fluff; be specific.
verb + object 11Names, focus, keyboard, targets, and cues beyond colour.
≥ 24px pointer · 44px touch 12Design every state and use real elements, not the happy path alone.
every state · real elements 13Tokens as one source of truth, lean sets, atomic components.
tokens · lean sets · atomic 14How to decide what to build: research, framing, low-fi iteration, feedback.
guess less · story first · test earlyUse the steps in order. Verify the rendered pixels because source code can hide contrast and geometry problems.
Pin the product, audience, and constraints. Match the existing system first.
Scan against the checklist. Flag issues by category and severity, High before ship.
Apply the smallest change that fixes the decision. Each reference has the CSS.
Re-run the checklist on the rendered output. Contrast and geometry hide in the gap between source and screen.
“Good design decisions are often invisible in code and obvious on screen. I wrote Sleak to name those decisions, attach a number you can check, and help people and agents apply them the same way.”
Point any coding agent at the guide. It reads SKILL.md on demand and applies the rules while it works.
# detects Codex, Claude Code, Cursor, and more
npx skills add aaoa-dev/Sleak
Add --global for an all-projects install, or choose an agent with --agent codex. Humans can start at SKILL.md or open any reference directly.