mockup-extract

Extract a UI component and its dependencies into a mockup sandbox for isolated preview.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/sftwrstef/sol --skill mockup-extract-sftwrstef
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: mockup-extract
Source: https://github.com/sftwrstef/sol/tree/main/.local/skills/mockup-extract
Command: npx skills add https://github.com/sftwrstef/sol --skill mockup-extract-sftwrstef

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enables designers and engineers to isolate and experiment with existing UI components by extracting them from the main app into a sandbox, preserving real source structure for accurate styling and behavior.

Core Features & Use Cases

  • Extract an existing component and its dependencies into the mockup sandbox, enabling visual inspection and rapid iteration.
  • Rewrite imports, stub external dependencies, and embed the result as an iframe on the canvas for isolated previews.
  • Activate automatically when the user asks to redesign, improve, or create variants of components that already exist in the codebase.

Quick Start

Extract the target component into the mockup sandbox and view its isolated preview on the canvas.

Frequently Asked Questions about mockup-extract

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

FAQPage Schema
How does iframe embedding work when extracting a UI component into a sandbox?▼

The iframe embedding mechanism works by rewriting imports and stubbing external dependencies for the extracted component. The result is then embedded as an iframe on the canvas using the sandbox's /preview URL for isolated visual inspection.

When should I use component extraction instead of redesigning UI directly in the codebase?▼

Yes, pulling existing UI into a mockup sandbox requires a dedicated mockup sandbox environment. This environment handles the import rewriting and iframe embedding necessary to display the isolated component via its /preview URL.

Does component extraction handle external dependencies automatically?▼

You should use component extraction when redesigning, creating variants, or using existing components as visual references. It allows you to experiment with UI components rapidly in a sandbox without affecting the main codebase.

Can I create UI variants using a sandbox environment?▼

Yes, component extraction provides automatic dependency handling. When pulling an existing UI component into the mockup sandbox, the process rewrites imports and stubs external dependencies to ensure the isolated preview functions correctly.

Can I create UI variants using a sandbox environment?▼

Yes, you can create UI variants by pulling an existing component into the mockup sandbox environment. This setup supports rapid design iteration and visual inspection by isolating the component and its dependencies from the main application.