nuxt-visual-development
SKILL.md
Visual Development Workflow
When developing or modifying any visual element (components, pages, layouts, styling), you must visually verify your work using Playwright screenshots and Compodium. Do not rely on code alone for UI changes.
Setup
- Start the dev server in the background:
bun run dev - Wait for the server to be ready (listen on
localhost:3000or the next available port)
Verifying Pages and Layouts
Use Playwright to screenshot full pages after making changes:
npx playwright screenshot --wait-for-timeout=3000 http://localhost:3000/your-page /tmp/screenshot.png
Then read the screenshot with the Read tool to visually inspect the result.
- Always screenshot the page after each meaningful visual change (layout shifts, new sections, styling updates)
- For dark mode, append
?dark=trueor toggle via the app and take a second screenshot - For responsive design, use
--viewport-size=375,812(mobile) and--viewport-size=1280,720(desktop)
Verifying Individual Components
Use Compodium to preview components in isolation at http://localhost:3000/__compodium__/devtools.
Screenshot the Compodium renderer to inspect a specific component:
npx playwright screenshot --wait-for-timeout=3000 "http://localhost:3000/__compodium__/devtools" /tmp/compodium.png
Compodium auto-discovers all components in app/components/ — no stories needed.
Iteration Loop
- Make a visual change (template, styles, component props)
- Screenshot the affected page or component
- Read the screenshot to verify the result
- If it doesn't look right, adjust and repeat
- Only move on when the visual output matches the intent
Key Flags
| Flag | Purpose |
|---|---|
--wait-for-timeout=3000 |
Wait for hydration/rendering |
--viewport-size=375,812 |
Mobile viewport |
--viewport-size=1280,720 |
Desktop viewport |
--full-page |
Capture entire scrollable page |
--color-scheme dark |
Force dark color scheme |
Weekly Installs
6
Repository
ralphcrisostomo…t-skillsFirst Seen
11 days ago
Security Audits
Installed on
amp6
cline6
opencode6
cursor6
kimi-cli6
codex6