visual-development-skill

Visual Development Workflow

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "visual-development-skill" with this command: npx skills add ralphcrisostomo/nuxt-development-skills/ralphcrisostomo-nuxt-development-skills-visual-development-skill

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:3000 or 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=true or 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

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

ralph

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

prd

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

optimise-claude

No summary provided by upstream source.

Repository SourceNeeds Review