01
It starts by itself
CSS files changed. Runs in Claude Code routine or GitHub Actions.
- ↻ CSS files changed
git status shows changed .css files, or pull_request touches .css
CSS uses tokens, not hardcoded values.
Install the UI4 Review skill and make it a habit: follow https://gethabit.dev/skills/payloadcms/ui4-review.md
78 installs45K starsMIT licenceSource on GitHub ↗

UI4 Review
by payloadcms · 78 installs
The skill
The ui4 review skill helps Payload UI developers review and auto-fix UI4 CSS migrations so components use spacing, radius, elevation and semantic color tokens instead of hardcoded values.
Only when you ask.
The habit
CSS uses tokens, not hardcoded values.
↻ Runs by itselfCSS files changed
When does it start? How does it check its work? What does it remember?
Stops after the changed CSS files of one change set.
Run git status --porcelain filtered to .css files.
Run the six grep checks in one parallel batch.
Fix nesting, legacy variables, old names, raw palette, then hardcoded values.
Flag values with no matching token instead of guessing.
List auto-fixed and flagged lines and a per-file summary table.
It writes only in its own folder and asks you before anything goes out.
Read both lists. If the left one sounds like you, the UI4 Review skill helps.
No. The skill fixes violations right away and only flags unclear ones.
They are the raw palette; components should use semantic --color-* tokens.
Copy the prompt at the top into your agent. It installs the skill from payloadcms/payload and sets up the habit. Or run npx skills add payloadcms/payload --skill ui4-review.
Yes. It is published under MIT. Habit is free too.
Install the UI4 Review skill and make it a habit: follow https://gethabit.dev/skills/payloadcms/ui4-review.md
All payloadcms skills →More design skills →
Works in
Made by payloadcms, published under MIT. Habit links to the original and never changes it. Is this your skill?