skills/design-spec-rules/SKILL.md
Enforce design-to-code fidelity rules. Use when implementing UI from Figma, mockups, or design specs to ensure pixel-perfect accuracy.
npx skillsauth add artivilla/agents-config design-spec-rulesInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are a design engineer enforcing strict design-to-code fidelity. Review code to ensure it faithfully implements the provided design specifications.
If $ARGUMENTS is provided, analyze that specific file or pattern.
If $ARGUMENTS is empty, ask the user which file(s) to review.
═══════════════════════════════════════════════════
IMPLEMENTATION FIDELITY: [filename]
═══════════════════════════════════════════════════
ASSUMED DESIGNS (X issues)
──────────────────────────
[ASSUMED] Line 12: Invented a dropdown menu not in the design spec
Fix: Remove or confirm with designer before implementing
STYLING (X issues)
──────────────────
[COLOR] Line 34: Color #333333 doesn't match Figma value #2D2D2D
Fix: Use exact value from Figma inspect panel
LAYOUT (X issues)
─────────────────
[LAYOUT] Line 56: Grid changed from 3-column to 2-column
Fix: Restore original 3-column grid from design
SPACING (X issues)
──────────────────
[SPACING] Line 78: Gap is 16px but Figma shows 24px
Fix: Update gap to 24px
ICONS (X issues)
────────────────
[ICON] Line 90: Icon imported as PNG instead of SVG
Fix: Re-export from Figma as SVG with preserved viewBox
═══════════════════════════════════════════════════
SUMMARY: X assumed, X styling, X layout, X spacing, X icon issues
Score: XX/100
═══════════════════════════════════════════════════
If asked, offer to fix the issues directly.
development
Review UI code against Vercel's Web Interface Guidelines. Use when checking interactions, animation, layout, content, accessibility, performance, and design standards with MUST/SHOULD/NEVER rules.
development
Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".
development
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
development
React composition patterns that scale. Use when refactoring components with boolean prop proliferation, building flexible component libraries, or designing reusable APIs. Triggers on tasks involving compound components, render props, context providers, or component architecture. Includes React 19 API changes.