component-from-capture

Generate an Astro screen page from a captured UI image using prebuilt components.

Updated Nov 8, 2025
One-click install
npx skills add https://github.com/ntaksh42/windows-design-astro-components --skill component-from-capture
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: component-from-capture
Source: https://github.com/ntaksh42/windows-design-astro-components/tree/main/.claude/skills/component-from-capture
Command: npx skills add https://github.com/ntaksh42/windows-design-astro-components --skill component-from-capture

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Images of UI designs are translated into working pages by composing existing Windows Forms–style Astro components.

Core Features & Use Cases

  • Capture analysis: identifies UI elements, layout, colors, and sizes
  • Component mapping: uses available components to recreate the UI
  • Auto-layout: builds a page structurally similar to the capture
  • Validation steps: checks props and fidelity

Quick Start

Provide an image by paste or path; the Skill outputs a screen page at src/pages/screen-{name}.astro and a plan for verification.

Frequently Asked Questions about component-from-capture

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert a UI capture into an Astro page?

Image-to-screen conversion analyzes a UI capture to extract layout, elements, colors, and text, then assembles existing Astro components into a ready-to-build page. Provide an image by paste or file path; the Skill generates a screen page at src/pages/screen-{name}.astro with validated imports and props.

Can I use this to rebuild a Windows Forms design as an Astro component?

Yes. The Skill maps Windows Forms–style UI elements from a capture onto existing Astro components, reconstructing layout and element properties—type, position, size, color, text—to produce a structurally faithful Astro page without hand-coding.

What happens if my captured layout doesn't match the available components?

The Skill works exclusively with prebuilt components and validates props and fidelity during assembly. If a layout element cannot be recreated with available components, the output plan identifies gaps so you can adjust the capture or extend your component library before building.

Do I need to manually adjust colors, sizes, or text after conversion?

The Skill extracts and applies element properties—colors, sizes, and text—directly from the capture during component assembly. The generated page is validated and ready to build; manual tweaks depend on how precisely the capture details and component options align.

What's the fastest way to turn design screenshots into working Astro pages?

Design-to-code conversion via UI capture analysis eliminates manual component selection and prop entry. Paste or upload a screenshot; the Skill automatically identifies elements, maps them to components, and outputs a complete, ready-to-build Astro page with layout and styling applied.

Does this work with complex layouts or just simple screens?

The Skill handles layout analysis using containers and panels to enforce structural fidelity to the capture. Complexity depends on capture clarity and component availability; the validation plan surfaces any layout elements that cannot be faithfully recreated with existing components.