Agent skill

Stitch Extract Static HTML Skill: Snapshot Any Web App as One File

The stitch-extract-static-html skill snapshots a running web app with headless Chrome and saves one self-contained HTML file, with CSS inlined and images embedded, ready for Stitch.

Install
npx plugins add google-labs-code/stitch-skills --scope project --target claude-code
View on GitHub

Stars, license and last push from GitHub. Install count as reported by the open skills directory.

What is the stitch-extract-static-html skill?

The stitch-extract-static-html skill saves a web app page as a single HTML file. It offers a Puppeteer snapshot or a browser-subagent capture, asks you to choose, inlines stylesheets and images as base64, strips scripts and dev overlays, and supports auth-gated pages, dark mode and chart canvases.

This skill sits in the stitch-design plugin of Google's stitch-skills repository. It captures a UI state from a built web application or React components and returns one HTML file with styles and images folded inside.

Its description says to use it whenever you need to capture a specific UI state, share a static version of a page or prepare assets for Stitch upload, even if the request is only to save the HTML or mock the view.

Two strategies, and you choose

Strategy A, PuppeteerStrategy B, browser subagent
Use whenApp runs locally with no auth wallYou must click or fill forms first
FidelityHighest, computed styles resolvedHigh, rendered DOM
OutputWritten to a file, no size limitMay truncate in agent context
FrameworkAnyAny

The SKILL.md marks this as a checkpoint. The agent must show the comparison, recommend Strategy A, and wait for your explicit choice before it does anything else.

What the Puppeteer snapshot cleans up

  • It reads CSSOM rules from document.styleSheets, so dynamic Vite, Tailwind and CSS-in-JS styles survive.
  • Stylesheet links become style blocks, and img src and srcset values become base64 data URIs.
  • Same-origin icon fonts are inlined so ligatures do not render as plain text.
  • Script tags, Vite hot-reload style blocks and dev overlays are removed.

Who the stitch-extract-static-html skill is for

Best for

  • Developers preparing a page for upload to Stitch, including one snapshot per route.
  • Teams that need a frozen copy of a view, such as a dark mode dashboard or a Storybook story.
  • Apps behind a login, where an auth script signs in before the capture runs.

Not for

  • Capturing sites you do not run. Related: firecrawl-website-design-clone.
  • Reading design tokens. Use the extract-design-md skill, or design-md, for that job.
  • Hands-off automation. The skill pauses twice for your confirmation.

Use it with UiChemy

The output is static HTML for Stitch, not a WordPress page. If a finished design should become an editable WordPress site, UiChemy can build from Figma, Composer or AI to WordPress. Click Get Started on uichemy.com. Related: image-to-code.