mockup-extract

Extract UI components into a mockup sandbox with rewritten imports and iframe embedding.

Updated Apr 6, 2026
One-click install
npx skills add https://github.com/CatRabbit499/Digital_Portfolio --skill mockup-extract-catrabbit499
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mockup-extract
Source: https://github.com/CatRabbit499/Digital_Portfolio/tree/main/templatemo_600_prism_flux/projects/CS-240/Lab-Portfolio/Lab-Portfolio-Dec_8_2025/.local/skills/mockup-extract
Command: npx skills add https://github.com/CatRabbit499/Digital_Portfolio --skill mockup-extract-catrabbit499

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Pull an existing UI component from the main app into a separate mockup sandbox so it can be previewed, redesigned, or extended without touching the live app.

Core Features & Use Cases

  • Sandbox extraction of an existing component into mockup/ for visual reference and iteration.
  • Rewrite imports, stub external dependencies, and embed the result as an iframe on the canvas.
  • Supports design variants, comparisons, and iteration starting from code in the repository.

Quick Start

Extract the target component into the mockup sandbox and open its preview to begin design iteration.

Frequently Asked Questions about mockup-extract

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

FAQPage Schema
How do I isolate an existing UI component for visual redesign without affecting the live app?

You can isolate an existing UI component by extracting it into a mockup sandbox, which preserves real source code behavior while enabling safe visual preview and design iteration away from the live app.

Can I sandbox a frontend component and stub its external dependencies for design iteration?

Yes, sandboxing a frontend component involves rewriting imports to local mock paths and stubbing external dependencies, allowing the extracted component to render correctly within the isolated mockup environment.

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

Creating UI design variants is best achieved by pulling the target component into a mockup sandbox, where you can freely iterate and compare visual changes starting from the real codebase without modifying production files.

Do I need a mockup sandbox environment to preview extracted UI components as an iframe?

Yes, a mockup sandbox environment is required to extract and preview UI components, as the process embeds the isolated result as an iframe on the canvas with updated local mock paths for accurate rendering.

How does dependency rewriting work when pulling a component into a mockup sandbox?

Dependency rewriting updates the extracted component's imports to point to local mock paths, effectively stubbing external dependencies so the component can function independently within the mockup sandbox iframe.

Are there limitations when extracting multiple components into the mockup sandbox for visual reference?

The primary limitation is that the component must be compatible with iframe embedding and dependency stubbing; complex components with deeply integrated external state may require extensive import rewriting to function correctly in the mockup sandbox.