mockup-extract

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

18|4|Updated Apr 3, 2026
One-click install
npx skills add https://github.com/El3tar-cmd/DevHive-Cli --skill mockup-extract-el3tar-cmd
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mockup-extract
Source: https://github.com/El3tar-cmd/DevHive-Cli/tree/main/skills/mockup-extract
Command: npx skills add https://github.com/El3tar-cmd/DevHive-Cli --skill mockup-extract-el3tar-cmd

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Pull existing UI components from the main app into the mockup sandbox so they can be previewed on the canvas and used as a starting point for design iteration. This ensures fidelity to real code, avoids hand-coding approximations, and streamlines iteration.

Core Features & Use Cases

  • Extract the target component and its dependencies into artifacts/mockup-sandbox for isolated preview.
  • Rewrite imports, stub external dependencies, and embed the result as an iframe on the canvas for side-by-side comparison.
  • Activate when users request to view, redesign, or create variants of existing UI components.

Quick Start

Trigger the mockup-extract skill to pull a target component from your main app into artifacts/mockup-sandbox, rewrite imports, stub dependencies, and embed the sandbox’s preview URL for iterative design.

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 into a sandbox for isolated preview?

To extract an existing UI component into a sandbox for isolated preview, the Skill pulls the target component and its dependencies, rewrites imports, and stubs external dependencies to embed a preview URL on the canvas.

How do I mock external dependencies when previewing frontend components?

To mock external dependencies when previewing frontend components, the Skill automatically stubs external dependencies and rewrites imports during the component extraction process, enabling isolated evaluation in the mockup sandbox without the main app.

What is the best way to redesign existing UI components without losing code fidelity?

The best way to redesign existing UI components without losing code fidelity is to extract the real code into a mockup sandbox, avoiding hand-coding approximations and providing a true starting point for iterative design evaluation.

Can I use an iframe to compare UI design variants side-by-side?

Yes, you can use an iframe to compare UI design variants side-by-side because the Skill embeds the mockup sandbox's preview URL directly on the canvas after extracting the target component and rewriting its dependencies.

Do I need to manually rewrite imports when pulling a component into a sandbox?

No, you do not need to manually rewrite imports when pulling a component into a sandbox because the Skill automatically rewrites imports and stubs external dependencies during the component extraction process.