mockup-extract

Extract existing UI components into a mockup sandbox with rewritten dependencies.

Updated Dec 25, 2025
One-click install
npx skills add https://github.com/Darsh20009/genmz-shop --skill mockup-extract-darsh20009
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mockup-extract
Source: https://github.com/Darsh20009/genmz-shop/tree/main/.local/skills/mockup-extract
Command: npx skills add https://github.com/Darsh20009/genmz-shop --skill mockup-extract-darsh20009

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Pulling an existing component from the main app into the mockup sandbox enables isolated preview, design iteration, and rapid variant creation without rebuilding from scratch.

Core Features & Use Cases

  • Extracts an existing UI component into the mockup sandbox, rewrites imports, stubs external dependencies, and embeds the result as an iframe on the canvas for accurate visual comparison.
  • Activates automatically when the user asks to redesign, improve, or create variants of a component that already exists in code, ensuring the original source is used as the starting point.
  • Supports design iteration by providing a reusable sandboxed environment to compare alternatives and generate variants from a reference component.

Quick Start

Put my existing navbar on the canvas to begin redesigning it in the mockup sandbox.

Frequently Asked Questions about mockup-extract

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

FAQPage Schema
How do I extract an existing UI component for isolated preview and redesign?

Component extraction pulls an existing UI component from the main app into a mockup sandbox for isolated preview and design iteration. It rewrites imports and stubs external dependencies to ensure the real source is used as the starting point.

Can I create design variants from an existing component without rebuilding it from scratch?

Yes, creating design variants from an existing component uses the mockup sandbox to pull the real source code into an isolated environment. This enables rapid iteration and visual comparison without rebuilding the UI element.

What's the best way to preview a single frontend component in an iframe?

The best way to preview a single frontend component in an iframe is extracting it into a mockup sandbox. This process rewrites dependencies, stubs external calls, and embeds the isolated result directly on the canvas for accurate visual comparison.

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

Dependency rewriting works by stubbing external calls and rewriting imports when a component is pulled into the mockup sandbox. This isolates the UI element from the main app, ensuring it renders correctly in the iframe preview without missing modules.

Do I need to manually rebuild imports when isolating a UI component for design iteration?

No, you do not need to manually rebuild imports when isolating a UI component. The extraction process automatically rewrites imports and stubs external dependencies, allowing you to focus entirely on design iteration within the sandbox preview.

When should I use a mockup sandbox for component extraction instead of editing the main app?

Use a mockup sandbox for component extraction when you need to redesign, improve, or create variants of an existing UI component. It provides a reusable, isolated environment for comparing alternatives safely without affecting the main application codebase.