Skip to content
mcp/skillhub

Agent Skill

stitch::extract-static-html skill

stitch::extract-static-htmlgoogle-labs-code/stitch-skillsplugins/stitch-design/skills/extract-static-html/SKILL.md

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'.

8.5kApache-2.0

always on

73 tokname + description

once used

2,684 tokSKILL.md body

bundled files

33 scripts

repo stars

8.5kGitHub

Install the stitch::extract-static-html skill

Skills CLI (Claude Code, Codex, Cursor and others)

npx skills add https://github.com/google-labs-code/stitch-skills --skill 'stitch::extract-static-html'

Claude Code, by hand (all projects)

git clone --depth 1 https://github.com/google-labs-code/stitch-skills.git /tmp/stitch-skills
mkdir -p ~/.claude/skills
cp -R /tmp/stitch-skills/plugins/stitch-design/skills/extract-static-html ~/.claude/skills/extract-static-html

For one project only, copy the folder into .claude/skills/ in that project instead. The agent picks it up when a task matches its description.

What it costs your context

Agent Skills load in three steps. Tokens counted with the o200k tokenizer; your model's count will differ a little.

WhenWhat loadsCost
Every sessionName and description73 tok
When the agent uses itThe SKILL.md instructions2,684 tok
Only if opened3 bundled files (101 KB)varies

Until it is used, stitch::extract-static-html costs about 19× less than the median MCP server we measured (1,362 tokens on every turn). Installing all 16 skills from google-labs-code/stitch-skills would load 801 tokens of descriptions. Skills vs MCP study

Checks

  • Ships scripts the agent can run. Read them before installing.
  • The name breaks the specification (lowercase letters, digits and single hyphens, up to 64 characters).

Pre-approved tools (allowed-tools): stitch*:*, Bash, Read, Write, web_fetch. The agent can use these without asking while the skill is active.

Checked 2026-10-22 · method

What's inside

The headings of its SKILL.md. Read the full file on GitHub.

  • Extract Static HTML
  • Which Strategy to Use
  • Strategy A: Puppeteer Snapshot (Recommended)
  • Prerequisites
  • Workflow
  • Script Flags
  • What It Does Automatically
  • Framework Notes
  • Troubleshooting
  • Auth-Gated Pages
  • Strategy B: Browser Subagent Capture
  • Workflow
  • Appendix: Static Fallback (MockPage.jsx)
  • When to Use
  • Quick Reference
  • MockPage.jsx Rules
  • Post-Processing

More skills from google-labs-code/stitch-skills

All skills in this repo
  1. design-mdgoogle-labs-code/stitch-skills

    Analyze Stitch projects and synthesize a semantic design system into DESIGN.md files

    64k17 tok idle · 1,679 in use
  2. enhance-promptgoogle-labs-code/stitch-skills

    Transforms vague UI ideas into polished, Stitch-optimized prompts. Enhances specificity, adds UI/UX keywords, injects design system context, and structures output for better generation results.

    8.5k42 tok idle · 1,531 in use
  3. react-vite-dashboardgoogle-labs-code/stitch-skills

    Convert Stitch designs into production React + Vite dashboards with TanStack Query, accessible tokens from DESIGN.md, and Web3-ready patterns (ethers/viem).

    8.5k37 tok idle · 820 in use
  4. remotiongoogle-labs-code/stitch-skills

    Generate walkthrough videos from Stitch projects using Remotion with smooth transitions, zooming, and text overlays

    8.5k122 tok idle · 2,946 in use
  5. shadcn-uigoogle-labs-code/stitch-skills

    Expert guidance for integrating and building applications with shadcn/ui components, including component discovery, installation, customization, and best practices.

    8.5k131 tok idle · 2,134 in use
  6. site-mdgoogle-labs-code/stitch-skills

    Analyze a project description or site requirements and synthesize a project constitution into SITE.md for the Stitch Build Loop

    8.5k24 tok idle · 661 in use
  7. stitch-loopgoogle-labs-code/stitch-skills

    Teaches agents to iteratively build websites using Stitch with an autonomous baton-passing loop pattern

    8.5k22 tok idle · 2,613 in use
  8. stitch::code-to-designgoogle-labs-code/stitch-skills

    Convert frontend code (Vite, React, Angular, Vue, etc.) to a Stitch Design by chaining static HTML extraction, design system extraction, and file upload. **ALWAYS** use this skill when the user's intent is to move existing web apps or React/Angular/Vue components into Stitch (e.g., requests to "save", "migrate", or "upload"). You must use this skill even for simple "save" operations, as it is the only way to ensure the design system is extracted and assets are properly linked.

    8.5k115 tok idle · 718 in use