Skill library

Agent skill Review & testing

21st UI Review

Review an existing web interface and identify concrete refinements.

  • UI review
  • Accessibility

Install the skill

Installation method

Run the command from your project root with Node.js and npm.

npx skills@latest add 21st-dev/skill --skill 21st-ui-review --agent claude-code --yes

Check this file in your project.claude/skills/21st-ui-review/SKILL.md

Other ways to install
  • Choose an assistant interactively

    npx skills@latest add 21st-dev/skill --skill 21st-ui-review

    Select your assistant and choose the project installation scope.

    Official instructions

The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. Use a local checkout and a target file or directory. The Skill and the 21st CLI are installed separately. The tested @21st-dev/cli 1.18.1 requires Node.js 18 or later.

View operation manual

What this skill helps with

  • Review an existing web interface and identify concrete refinements.

Good for

  • Visual quality review
Review inputs
Project instructions, .21st/design.json when present, target code, and real UI states.
CLI
21st review <path> prints findings. Add --json for machine-readable output, or --fix for the supported deterministic fixes.
Runtime evidence
Inspect browser interaction, responsive layouts, empty and loading states, and the real components.
Deliverable
A prioritized audit, exact file and line references, and rechecked fixes when requested.
Skill name
21st-ui-review
Repository
21st-dev/skill

Use the static report as a starting point

A blind automatic repair

Run the UI checker with --fix on the whole project.

Static findings can miss interaction behavior. A broad fix pass can affect code outside the requested screen.

A review grounded in the real screen

  1. Name a route and its source path.
  2. Run the report for that scope and check outcomes in the browser.
  3. Apply a confirmed correction, inspect the diff, and rerun the same checks.

21st UI Review operation manual

Review a catalog search page or check a notification menu using the same source and browser scope. Fill in bracketed project details before sending a prompt.

Compare the 21st review output with a real search, no results, and narrow-screen use.

  1. Read the baseline and scan one path

    Confirm the scope and record the first pass against the real source.

    • Replace <path> with the existing component file or a scoped directory.
    Prompt · Step 1
    Use the installed 21st-ui-review skill to inspect [catalog route] and [source path]. Locate project instructions and .21st/design.json if present. Confirm the installed 21st CLI and report its version. From the project root, run 21st review for the named source path with --json and start with the read-only report. If 21st is only available as an npm package, use npx --yes --package @21st-dev/cli 21st review with the same path and flag. Record the number of files, exact rule and file locations, and exit status. Ask for the source path if ambiguous. Report a missing CLI or zero files reviewed as a setup result.
    21st review "<path>"
    21st review "<path>" --json
  2. Confirm which findings affect the real UI

    Walk the catalog at comparable states on a phone-width and desktop-width viewport.

    • The review records whether the CLI inspected the intended files.
    • Each evidenced defect identifies a user impact and reproducible state.
    Prompt · Step 2
    Use 21st-ui-review to validate [catalog route] and [source path]. Recover the preceding CLI output or rerun the read-only 21st review if it is missing. On a running local preview, try a real search, filter the results, and reach no-results, loading, and recovery states with safe fixtures where available. Check keyboard navigation, focus, disabled and loading states, and overflow at narrow and wide widths. Confirm each reported issue against the actual markup or UI. Group findings by deterministic defects, design drift, accessibility and interaction, responsive risks, and subjective recommendations. Give exact file and line evidence and explicitly mark unavailable browser or test states.
  3. Fix the approved finding and recheck it

    Choose the smallest scoped repair and confirm that it resolves the original issue.

    • The approved failure no longer occurs in the same scenario.
    • Any automatic edit stays within the approved path and rules.
    Prompt · Step 3
    Use 21st-ui-review to fix [approved finding] at [source path and route]. Reproduce the original issue before editing. Apply a scoped manual fix, or use 21st review with --fix only if the reported fixable rule is supported and every resulting edit on that path is approved. Inspect the diff, preserving the existing visual direction and product behavior. Rerun the exact read-only CLI check and relevant project tests, then verify the original user task in the browser. Report what the rule engine fixed, what you verified in the browser, and any remaining findings.

Find the next evidence for a review

Start with the project context and the CLI report, then use the real preview to resolve uncertain behavior.

Need locations in a structured reportCLI output
Command or reference
21st review <path> --json
Examples
Record filesReviewed and each finding’s rule ID, file, line, and severity.
A component seems inconsistent with the design systemDesign context
Command or reference
.21st/design.json
Examples
Find the documented rule and compare it with the component and computed styles.
The CLI reports a fixable ruleScoped fix
Command or reference
21st review <path> --fix
Examples
Confirm the exact target and rule before enabling edits. Inspect the changed file and rerun review.
The report is clean but focus still disappearsBrowser
Command or reference
SKILL.md · Review priorities
Examples
Follow the actual keyboard path to the point where focus is lost and cite the relevant code.

21st UI Review troubleshooting

Do I need a 21st account to run local review?

The local deterministic review ran in the tested CLI without credentials. Install the CLI separately from the Skill and use your project’s preview for runtime checks.

Which findings will --fix repair?

The tested CLI 1.18.1 repaired a target="_blank" link without rel. It still reported a missing image alt attribute in the test fixture. Use the reported fixable field and inspect the diff, since the supported rule set can change.

What if .21st/design.json is missing?

Use the existing project instructions and tokens as the design reference. State which rules you verified and which need a reference from the team. The CLI can still review a local source path.