Agent skills/Design checks
Design checks
One command checks that new code follows Accordee's design rules. The accordee-review skill runs it at the end of every UI task, and you can run it yourself before you ship.
Run the checks
| Check | What fails |
|---|---|
| Lint | The design rules below, plus the usual Next.js and React rules |
| Type check | TypeScript errors |
| Colour scan | Colours written by hand in inline styles, SVG or CSS |
| Skill files | A component or token missing from the catalog, or the two copies of the skills out of step |
What lint catches
- Hex,
rgb()orhsl()colours in classes, likebg-[#f5f5f5] - Palette classes like
bg-green-50outside the shared status colours (SWATCHESand the other tone maps). Overdue numbers useALERT_TEXTfromsrc/lib/tones.ts. - A font weight above 440, including
font-semiboldandfont-bold - A dark or blurred backdrop behind a dialog, drawer, menu or sheet
- Radix imported directly, instead of the wrappers in
src/components/ui
Each error says how to fix it. The rules are in scripts/lint/accordee-plugin.mjs if you want to change them.
Older code
Some existing screens use palette colours directly. They're listed in eslint-suppressions.json (and colours in styles in scripts/ui/colour-baseline.json), so only new code is checked. As you clean a file up, shorten the lists:
Don't add entries to these lists to make a check pass. Fix the code instead; the error message says how.
The review checklist
After the checks, accordee-review walks through what tools can't see, and it's a good list for a human review too:
- Existing components reused, nothing rebuilt next to them
- One main action per screen
- Empty states for "nothing yet" and "nothing matches"
- Undo on delete, move, mark paid and bulk changes
- Tabular figures for money, counts and dates
- Plain words, sentence case for new labels
- Checked at 1440px and 390px, in light and dark