Instructions
When to Use
- Use to build or audit SkillCodex-style documentation UIs.
- Prefer
skillcodex-browser-uifor the full four-route browser. - Prefer
accessibility-auditfor WCAG scoring beyond design rules.
This skill merges doc UI implementation (formerly documentation-ui) and UI review (audit).
Canonical rules live in design-guidelines.md only. STRICT UI ONLY - no backend, API, DB, auth.
Motion: use shell + optional motion leaf from design-guidelines.md: Tier 0 div + CARD_HOVER everywhere by default; Tier 2 framer-motion only in a dedicated *Motion.tsx with 'use client'. Never mix motion.div and layout div in one file - split or drop Framer. Skeletons: always animate-pulse on div, never motion.
Mode A - Build / implement doc UI
Use when the user wants a premium documentation-style interface (like skills.sh structure: browse, search, detail, outcomes visible - but no fake install counts).
- Apply design-guidelines.md end-to-end (including testimonials with avatar images and buttons with
cursor-pointer, hover,focus-visible, and motion ondivunless a client-only leaf needs Framer). - Tailwind-first, mobile-first, mandatory skeletons (
animate-pulseon<div>, notmotion). - pnpm for new app; match user lockfile in existing repos; npm for
@skillcodex/skills. - Optional Next:
next/image,next/link. Optional framer-motion in client files only. - Data: data-source.md.
Output: pnpm commands, file paths, checklist pass/fail.
Mode B - Audit / review existing UI
Use when the user asks to review, audit, or check accessibility.
- Read project TSX against design-guidelines.md.
- If file missing locally, fetch
https://raw.githubusercontent.com/bh611627/skillcodex/main/references/design-guidelines.md. - Flag: missing skeletons, weak whitespace, custom CSS over Tailwind, gradient-heavy backgrounds, glassmorphism, sales-led landing or vendor metric dashboard chrome, a11y gaps; testimonials without alt on avatars; buttons without pointer/hover/focus;
motion/motion.divin Server Components (Next) without'use client'; shell vs leaf violations (Framer mixed with layout in one file); wrong named style or layout table row for stated industry. - Optional deep pass: Vercel
web-interface-guidelines/main/command.md.
Output: grouped file:line findings + checklist. No preamble.
Outcomes
- Build: components wired, skeletons on load, theme + tokens,
pnpm devworks. - Audit: actionable list or explicit pass.
Output Rules
State which mode. Then evidence (files or findings).
Scope and boundaries
- Frontend documentation UIs only - not sales-led marketing sites.
Safety
- Build: edit UI files; user runs pnpm.
- Audit: suggest only; public raw URLs for guidelines.
Troubleshooting
- framer-motion / motion.div in Server Components: add
'use client'to that file or replace withmotionlessdiv + Tailwind. - pnpm vs npm: pnpm for app scripts; npm for installing
@skillcodex/skills. - Skeletons missing: use
animate-pulseon<div>, not Framer, unless client-only.
Related skills
skillcodex-browser-ui- full doc browsersemantic-html-css- structure baselineaccessibility-audit- WCAG audit after UI
GitHub: https://github.com/bh611627/skillcodex/tree/main/skills/web-design-guidelines/SKILL.md
npm: https://www.npmjs.com/package/@skillcodex/skills