mockup-extract

Extract UI components into an isolated mockup sandbox with iframe embedding.

Updated Apr 18, 2026
One-click install
npx skills add https://github.com/Mo7amed-Mahmoud/ZeinaGuard-Pro --skill mockup-extract-mo7amed-mahmoud
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mockup-extract
Source: https://github.com/Mo7amed-Mahmoud/ZeinaGuard-Pro/tree/main/.local/skills/mockup-extract
Command: npx skills add https://github.com/Mo7amed-Mahmoud/ZeinaGuard-Pro --skill mockup-extract-mo7amed-mahmoud

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Pull an existing UI component from the main app into a dedicated mockup sandbox so it can be previewed on the canvas and used as a starting point for design iteration.

Core Features & Use Cases

  • Extracts the component and its dependencies into the mockup sandbox and rewrites imports for isolation.
  • Embeds the result as an iframe on the canvas for accurate visual comparison.
  • Supports redesigns, variants, and visual references built on real source code rather than hand-coded approximations.
  • Automatically stubs external dependencies to keep the sandbox self-contained.

Quick Start

Ask to extract a component from the main app and load it into the mockup sandbox so you can preview and iterate on 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 a UI component into an isolated mockup sandbox for design iteration?

To extract a UI component into a mockup sandbox, the tool pulls the component and its dependencies from the main app, rewrites imports, stubs external dependencies, and embeds the result as an iframe on the canvas for visual comparison.

Can I preview extracted UI components in isolation without breaking the main application source code?

Yes, you can preview extracted UI components in isolation while preserving real source code integrity. The sandbox automatically stubs external dependencies to keep the environment self-contained without altering the main application's codebase.

What is dependency rewriting and import stubbing used for when creating a mockup sandbox?

Dependency rewriting and import stubbing are used to isolate components in a mockup sandbox by replacing external module references with self-contained stubs, ensuring the UI component renders accurately without requiring the full application environment.

Does iframe embedding work for accurate visual comparison of redesign variants?

Iframe embedding works effectively for accurate visual comparison of redesign variants. It renders the isolated component on the canvas, allowing designers to compare live alternatives built on real source code rather than hand-coded approximations.

What's the best way to start redesigning a component using a mockup sandbox?

The best way to start redesigning a component is to ask the tool to extract the specific component from the main app and load it into the mockup sandbox, which then automatically handles dependency isolation and iframe embedding for iteration.

When should I not use component extraction for UI previews?

You should not use component extraction for UI previews if your component lacks clear external dependencies to stub or if the main application environment cannot be easily isolated, as the sandbox requires dependency rewriting to function properly.