diff --git a/docs/skill-optimizer/web-design-guidelines/improved-skill/command.md b/docs/skill-optimizer/web-design-guidelines/improved-skill/command.md new file mode 100644 index 0000000..1429dfc --- /dev/null +++ b/docs/skill-optimizer/web-design-guidelines/improved-skill/command.md @@ -0,0 +1,187 @@ +--- +description: Review UI code for Vercel Web Interface Guidelines compliance +argument-hint: +--- + +# Web Interface Guidelines + +Review these files for compliance: $ARGUMENTS + +Read files, check against rules below. Output concise but comprehensive—sacrifice grammar for brevity. High signal-to-noise. + +## Output Format + +Findings must be emitted in this shape, not as a prose audit. The +default "design review report" shape (Setext headings, numbered +bullets, line-range parentheticals) is wrong here: `file:line` +citations are editor-clickable in VS Code / Cursor / Zed, terse +lines scale when reviewing many files, and one finding per line +lets downstream tooling parse output without an LLM in the loop. + +Group by file. Use `file:line` format (VS Code clickable). Terse findings. + +```text +## src/Button.tsx + +src/Button.tsx:42 - icon button missing aria-label +src/Button.tsx:18 - input lacks label +src/Button.tsx:55 - animation missing prefers-reduced-motion +src/Button.tsx:67 - transition: all → list properties + +## src/Modal.tsx + +src/Modal.tsx:12 - missing overscroll-behavior: contain +src/Modal.tsx:34 - "..." → "…" + +## src/Card.tsx + +✓ pass +``` + +State issue + location. Skip explanation unless fix non-obvious. No preamble. + +## Rules + +### Accessibility + +- Icon-only buttons need `aria-label` +- Form controls need `