mockup-extract

Extract UI components into a sandbox with rewritten imports and dependency stubs.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/CRAJKUMARSINGH/M3_Bridge --skill mockup-extract-crajkumarsingh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mockup-extract
Source: https://github.com/CRAJKUMARSINGH/M3_Bridge/tree/main/.local/skills/mockup-extract
Command: npx skills add https://github.com/CRAJKUMARSINGH/M3_Bridge --skill mockup-extract-crajkumarsingh

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Pull existing components from the main app into a mockup sandbox for isolated design iteration, ensuring fidelity by using the real source rather than hand-coded approximations. The extracted component and its dependencies can be rewritten for sandbox imports and embedded as an iframe on the canvas to enable rapid iteration.

Core Features & Use Cases

  • Sandboxed extraction of a target component into artifacts/mockup-sandbox for visual previews.
  • Auto-import rewriting and stubbing of dependencies to isolate the component in the sandbox while preserving behavior.
  • Activation guidance when redesigning, creating variants, or using existing code as a reference to drive design exploration.

Quick Start

Specify the component to extract and review its sandboxed preview at artifacts/mockup-sandbox/preview.

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 a sandbox for isolated design iteration?

To extract a UI component into a sandbox for isolated design iteration, specify the target component's path or name. The system pulls the real source code, rewrites imports, and generates a sandboxed preview for rapid visual exploration.

Can I use an existing application component as a visual reference without hand-coding it?

Yes, you can use an existing application component as a visual reference without hand-coding it. The extraction process preserves the real source code and dependencies, embedding the accurate component directly into a mockup sandbox preview.

How does dependency stubbing work when isolating a component for UI redesign?

Dependency stubbing for UI redesign works by automatically rewriting imports and stubbing external dependencies. This isolates the extracted component within the sandbox environment, preserving its visual behavior while preventing external application conflicts.

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

The best way to create design variants from existing source code is extracting the target component into a mockup sandbox. This allows you to iterate on the real source code in isolation, ensuring high fidelity during rapid design exploration.

Do I need to manually rewrite imports for components extracted to a mockup sandbox?

No, you do not need to manually rewrite imports for components extracted to a mockup sandbox. The extraction process automatically handles import rewriting and dependency stubbing to isolate the component seamlessly.

Where can I preview the results after extracting a component for design iteration?

After extracting a component for design iteration, you can preview the results at the artifacts/mockup-sandbox/preview path. The extracted component is embedded as an iframe on the canvas for immediate visual feedback.