stitch::extract-static-html

Inline CSS and images into a self-contained HTML snapshot from a web application.

Updated Jun 7, 2026
One-click install
npx skills add https://github.com/vikingokft/vikingo-studio-skills --skill stitch-extract-static-html
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: stitch::extract-static-html
Source: https://github.com/vikingokft/vikingo-studio-skills/tree/main/design/extract-static-html
Command: npx skills add https://github.com/vikingokft/vikingo-studio-skills --skill stitch-extract-static-html

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Inline CSS and images into a self-contained HTML snapshot from any web application.

Core Features & Use Cases

  • Capture a running UI as a portable HTML file with all assets inlined.
  • Supports Puppeteer-based deterministic snapshots or interactive browser subagent flows.
  • Produces a self-contained HTML ready for Stitch upload or sharing.

Quick Start

Run the Puppeteer snapshot to generate a self-contained HTML file from a running app.

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 create a self-contained HTML snapshot with inlined CSS and images?

A self-contained HTML snapshot inlines all CSS and images into a single portable file. This Skill uses deterministic Puppeteer scripts or interactive browser subagents to capture running UI states and embed assets locally.

Does the asset inlining workflow support React and Vue applications?

Yes, the asset inlining workflow supports React, Vue, Svelte, and vanilla HTML applications. It captures the rendered DOM state across these frameworks and processes the output using AST parsing utilities to embed external resources.

What is the best way to capture a specific UI state for portable sharing?

The best way to capture a specific UI state for portable sharing is using deterministic Puppeteer-based snapshots. This approach renders the exact application state and embeds all assets locally into a self-contained file ready for upload.

Can I use interactive browser subagents instead of Puppeteer for HTML extraction?

Yes, you can use interactive browser subagent flows as an alternative to deterministic Puppeteer snapshots for HTML extraction. Both workflows capture the UI and enforce asset inlining to produce a portable self-contained page.

Why does the HTML snapshot process require Babel dependencies?

The HTML snapshot process requires Babel dependencies including @babel/parser, @babel/traverse, and @babel/generator to parse, traverse, and generate code during post-processing. These utilities allow deterministic DOM manipulation for asset inlining.

When should I not use Puppeteer for web-automation asset inlining?

You should not use Puppeteer for web-automation asset inlining when you need to capture interactive user journeys rather than a static DOM state. In such cases, interactive browser subagent flows provide a more suitable alternative for HTML extraction.