Skip to content
← Back

Review UI code

Check changed UI files against your own theme, by hand or after every agent edit.

Check the files you changed

Check changed JSX, TSX and CSS files in your project:

npx better-design review

Run npx better-design review --help for options.

Check each file your agent edits

Add the review hook to your project:

npx better-design review --install-hook

It adds the hook for Claude Code and for every other agent whose folder the project has. Pick agents with --host claude-code,codex,copilot,cursor,devin or --host all. Findings go back to the agent the way each agent reads them. Codex asks you to approve the hook once with /hooks. Setup with --project adds the hook for the clients it configures. The hook runs the release that installed it; run the command again to move it to a newer release.

Findings name your own theme

The review reads your components.json, the stylesheet it names and your UI folder, so a finding names your own theme colours and your components' variants. The check for classes Tailwind does not generate builds your Tailwind theme, which runs the plugins your stylesheet names, as your build does. The agent hook skips that check.