使用方法
- 复制安装命令,在自己的智能体环境安装前先检查源码包。
- 从原始文档核对所需工具、凭据和支持的宿主。
- 说明输入材料与期望交付物,并对照来源检查输出。
npx skills add https://github.com/21st-dev/skill --skill 21st-ui-review开始前需了解
- 安装不包含模型订阅、API 额度或访问文件的权限。
- 仓库星数和安装量反映活跃情况,不等于独立质量或安全测试。
按源仓库内容呈现,保留标题、案例、代码、表格、链接以及原文引用的演示图片。
Review UI with evidence
Separate deterministic defects from subjective design recommendations.
Workflow
- Read
.21st/design.json, project instructions, and the relevant source. - Run the deterministic review first:
21st review <path>
21st review <path> --json- Inspect the actual component composition and runtime states. Validate claims
against code rather than inferring behavior from names.
- Group findings into:
- deterministic defects;
- design-system drift;
- accessibility and interaction defects;
- responsive risks;
- subjective product/design recommendations.
- Prioritize by user impact and include exact file and line attribution.
- Use
21st review <path> --fixonly for deterministic, low-ambiguity fixes.
Never silently redesign, change brand identity, or alter product behavior.
- Run relevant project tests after fixes and rerun review to prove resolution.
Review priorities
- semantic controls and accessible names;
- keyboard access, focus visibility, and dialog/menu behavior;
- image alternatives and meaningful labels;
- touch target size and disabled/loading states;
- responsive overflow and fixed-width assumptions;
- reduced-motion handling;
- hardcoded visual values that conflict with project tokens;
- duplicate primitives instead of existing components;
- inconsistent typography, radius, spacing, shadows, and icons;
- fake data, placeholder copy, or missing empty/error states.
Output
Lead with actionable findings ordered by severity. Keep subjective suggestions clearly labeled. If no issue is proven, say so and state what was inspected.



