stitch::extract-static-html

Extract self-contained static HTML by inlining CSS and base64-encoding images.

Updated Jan 9, 2026
One-click install
npx skills add https://github.com/v1nizx/dateapp-mobile --skill stitch-extract-static-html-v1nizx
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: stitch::extract-static-html
Source: https://github.com/v1nizx/dateapp-mobile/tree/main/plugins/stitch-design/skills/extract-static-html
Command: npx skills add https://github.com/v1nizx/dateapp-mobile --skill stitch-extract-static-html-v1nizx

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires puppeteer, @babel/parser, @babel/traverse, @babel/generator, and includes scripts (resource) components.

What problem does it solve?

This skill solves the difficulty of sharing or archiving specific UI states from dynamic web applications, ensuring that complex React or framework-based components can be viewed as static, portable HTML files without needing a live backend.

Core Features & Use Cases

  • High-Fidelity Snapshots: Uses Puppeteer to capture fully rendered DOM states, including computed styles and inlined assets.
  • Flexible Capture Strategies: Offers both automated headless browser snapshots and manual subagent interaction for complex, authenticated, or state-dependent views.
  • Use Case: Use this to generate a static mock of a dashboard or a specific error state for design review or documentation, even if the original app requires a complex local environment to run.

Quick Start

Use the stitch::extract-static-html skill to capture a snapshot of the local application running on port 5173 and save it to the stitch directory.

Frequently Asked Questions about stitch::extract-static-html

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

FAQPage Schema
How do I capture static HTML from a React component without a live backend?

You can capture static HTML from a React component by using Puppeteer to render the UI and inline all CSS and base64 images. This creates a portable HTML file viewable without a live backend.

What is the best way to snapshot a specific UI state from a local development server?

The best way to snapshot a specific UI state is to run this skill against your local development server. It uses Puppeteer for automated headless rendering or manual browser subagent interaction to capture the exact DOM state into a static file.

Does Puppeteer support extracting HTML from state-dependent or authenticated web views?

Puppeteer supports extracting HTML from state-dependent views by combining automated snapshots with manual browser subagent interaction. This flexible strategy ensures complex authenticated DOM states are successfully extracted.

How do I inline CSS and base64 encode images when extracting a web snapshot?

To inline CSS and base64 encode images during web snapshot extraction, the skill processes the fully rendered Puppeteer DOM. It automatically computes styles and converts assets into a self-contained HTML format.

When should I use automated headless browser snapshots over manual DOM extraction?

Use automated headless browser snapshots for standard fully rendered views, while manual DOM extraction via subagent interaction is better suited for complex, state-dependent, or authenticated web views requiring specific interactions.