mockup-extract

Extract UI components into a sandbox mockup with rewritten imports and stubbed dependencies.

Updated Jun 21, 2026
One-click install
npx skills add https://github.com/akhilksap2026/YMSNOW27032026 --skill mockup-extract-akhilksap2026
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mockup-extract
Source: https://github.com/akhilksap2026/YMSNOW27032026/tree/main/replit/.local/skills/mockup-extract
Command: npx skills add https://github.com/akhilksap2026/YMSNOW27032026 --skill mockup-extract-akhilksap2026

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Pulls an existing UI component from the main app into a mockup sandbox for isolation, redesign, and variant creation; ensures the real source code is used as the starting point rather than hand-coded approximations, so you can iterate accurately against the original.

Core Features & Use Cases

  • Extract existing components into artifacts/mockup-sandbox for isolated preview on the canvas.
  • Rewrite imports & stub dependencies to enable the component to run in a sandbox without the full app.
  • Iterate with variants by creating multiple sandboxed representations and comparing visual fidelity.

Quick Start

Identify the target component in the codebase and run the extraction workflow to populate the sandbox with an isolated, iframe-ready mockup.

Frequently Asked Questions about mockup-extract

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

FAQPage Schema
How do I isolate a UI component into a sandbox for visual iteration?

To isolate a UI component into a sandbox for visual iteration, you extract the existing component from the main app, rewrite its imports, and stub external dependencies to run it independently. This allows accurate redesigns against the original source code without hand-coding approximations.

What is the best way to create UI design variants from existing source code?

Creating UI design variants from existing source code involves pulling the implemented component into a mockup sandbox. By isolating the original code and stubbing dependencies, you can generate multiple sandboxed representations to compare visual fidelity and iterate on different visual references.

How does embedding an extracted component in an iframe mockup work?

Embedding an extracted component in an iframe mockup works by placing the isolated component into a specific sandbox artifact directory. The system rewrites imports and stubs external dependencies, allowing the component to render independently within an iframe displayed on the canvas for safe previewing.

Do I need to manually rewrite imports when extracting UI components for preview?

You do not need to manually rewrite imports when extracting UI components for preview. The extraction workflow automatically rewrites imports and stubs external dependencies, enabling the component to run seamlessly within the sandbox environment without requiring the full application context.

Why use a mockup sandbox instead of modifying the main application code directly?

You use a mockup sandbox instead of modifying main application code directly to ensure safe, isolated iteration. This approach uses real source code as the starting point while preventing unintended side effects, allowing you to freely redesign and create variants without breaking the main application.

Can I extract multiple UI components to compare visual fidelity in a mockup?

Yes, you can extract multiple UI components to compare visual fidelity in a mockup. The workflow supports creating multiple sandboxed representations of isolated components, allowing you to iterate with variants and evaluate different visual references side-by-side on the canvas.