SKILL

stitch::extract-static-html

Extract self-contained static HTML from a built web application or React components by inlining CSS and images. Use this skill 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 user just asks to 'save the HTML' or 'mock the view'.

Target: Design & content creation. Automatically collected · unverified.

Excerpt from the author’s documentation

Extracted from a fixed version of SKILL.md in its original language. This is the author’s documentation; installation, compatibility and runtime results have not been verified by this site.

Read the original English text

Topics in the source

  • Extract Static HTML
  • Which Strategy to Use
  • Strategy A: Puppeteer Snapshot (Recommended)
  • Prerequisites
  • Workflow
  • Script Flags
  • What It Does Automatically
  • Framework Notes

Extract a self-contained static HTML file from any web application. You MUST ask the user to choose which strategy to use before proceeding. Present the options clearly, recommend Strategy A as the preferred default, and provide a brief pros/cons summary for each option to help them make an informed decision. | | Strategy A (Puppeteer) | Strategy B (Browser Subagent) | | :--- | :--- | :--- | | When | App runs locally, no auth wall | Need to interact with page first (click, fill forms) | | Fidelity | Highest — computed styles resolved | High — rendered DOM | | Setup | Zero — no mock needed | Zero — no mock needed | | Framework | Any | Any | | Output | Writes to file — no size limit | May truncate in agent context | [!WARNING] Checkpoint — User Confirmation Required. You MUST ask the user which strategy they prefer before proceeding. Present the comparison table above, recommend Strategy A as the default, and wait for explicit approval. Do NOT make the decision yourself or proceed until the user confirms. Launches headless Chrome, captures the fully rendered DOM, and produces a self-contained HTML file with all CSS inlined and images as base64. Works with any framework — no MockPage.

This is an excerpt. Refer to the complete source and its current requirements.

Source repository
google-labs-code/stitch-skills
Source file
plugins/stitch-design/skills/extract-static-html/SKILL.md
Fixed revision
0337446dadde6f8c94210444e2aa9d546126480f
Read the complete original documentation ↗

Requirements

  • Only the author’s Skill metadata is included. Read the full instructions to check dependencies, licensing and conditions of use.

A small first task

先阅读原作者说明,再决定是否在自己的 AI 工具中使用。

Instructions for your AI tool

Author documentation is not live verification by this site. Without evidence, we do not mark a resource as compatible, safe or free.

Sources and evidence

This record was collected automatically. Its documentation, suitability and runtime behavior have not been manually verified.

Author: Google Stitch Skills · original repository metadata. Documentation review: Not reviewed. Last source check: 2026-11-09T14:01:41.130Z.

Categories are inferred from names, descriptions and paths. They do not establish compatibility.

License and attribution

Apache-2.0. Third-party content and copyright remain with their authors. Refer to the original license and terms.

Original license ↗

Synchronization, copying and user-reported success do not mark a resource as runtime-tested.

Limitations and notes

  • Collecting metadata does not mean this site has installed, adapted, runtime-tested or security-reviewed the resource.