mockup-extract

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

Updated Jan 6, 2026
One-click install
npx skills add https://github.com/bcwgames/FNaF-TVE --skill mockup-extract-bcwgames
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mockup-extract
Source: https://github.com/bcwgames/FNaF-TVE/tree/main/Five-Nights-At-Freddys-The-Virtual-Experience/.local/skills/mockup-extract
Command: npx skills add https://github.com/bcwgames/FNaF-TVE --skill mockup-extract-bcwgames

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Reuses and visualizes real app components in an isolated mockup sandbox to ensure design fidelity and faster iteration, avoiding hand-coded approximations.

Core Features & Use Cases

  • Extracts an existing component from the main codebase into a mockup sandbox, rewrites imports, stubs external dependencies, and renders the result in an iframe for isolated iteration.
  • Supports redesigns, variants, and visual comparisons starting from verified source code rather than from scratch.
  • Ensures dependency tracing and safe sandbox embedding to preserve accuracy and reduce drift during design exploration.

Quick Start

Ask to pull an existing component from the main app into the mockup sandbox and render it on the canvas for iteration.

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 from my codebase for isolated design iteration?

To extract a UI component for isolated design iteration, this Skill pulls the existing source from your main codebase into a mockup sandbox. It automatically rewrites imports, stubs external dependencies, and renders the result in an iframe for safe visual exploration.

Why does redesigning existing UI components in a separate sandbox prevent design drift?

Redesigning existing UI components in a sandbox prevents design drift by using the verified source code rather than hand-coded approximations. This ensures fidelity to the real application while you safely create variants or visual comparisons.

Can I use this to mockup source code components without manually rewriting imports?

Yes, you can mockup source code components without manually rewriting imports. The extraction process automatically traces dependencies, rewrites import paths, and stubs external modules to ensure the component renders correctly in the isolated environment.

What is the best way to create UI component variants from an existing app?

The best way to create UI component variants from an existing app is to extract the real source into a mockup sandbox. This approach provides a verified starting point, allowing you to safely modify and compare designs without affecting the main codebase.

Does component extraction work with complex dependencies in the main codebase?

Component extraction works with complex dependencies by automatically stubbing external modules and tracing dependency paths. This ensures the extracted UI component renders accurately in the iframe sandbox without breaking links to the main codebase.

When should I not use a sandbox for UI component design iteration?

You should avoid using a sandbox for UI component design iteration if your task requires live data integration or runtime side effects that cannot be safely stubbed. The sandbox is optimized for isolated visual exploration rather than full application testing.