Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

stitch-extract-static-html

Skill by Reihantt6

Extracts a self-contained static HTML file from a running web app or React components by inlining CSS and images. It is for designers and developers who want a fixed copy of a UI state to share or upload to Stitch.

  • Score 54
  • 2 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install stitch-extract-static-html

Built from the published package, never by AI.

git clone --depth 1 https://github.com/Reihantt6/sns-myagent /tmp/sns-myagent && mkdir -p ~/.claude/skills && cp -r /tmp/sns-myagent/agent/skills/stitch-extract-static-html ~/.claude/skills/stitch-extract-static-html

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install stitch-extract-static-html in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill captures a page from a locally running web application and saves it as one HTML file. The main method is a Puppeteer snapshot script. It launches headless Chrome, captures the rendered DOM and the CSS rules from the page, inlines stylesheets, and converts images and icon fonts to base64 data URIs. It also removes scripts, Vite dev style blocks and dev overlays. Options cover dark mode, removing fixed elements such as cookie banners, canvas charts, and a custom auth script for login-gated pages.

The skill asks the user to choose a strategy before it runs. A browser subagent option is available when the page must be clicked or filled in first, though large output may truncate. A MockPage.jsx fallback is described for cases where the app cannot run at all. The skill is aimed at people who need a static snapshot of a specific UI state, such as a route, a dark mode view, or an error or empty screen.

Written from the project's SKILL.md and checked against it.

What it can do

  • Puppeteer snapshotLaunches headless Chrome and writes a self-contained HTML file for a given URL.
  • CSS and image inliningInlines stylesheets and converts images and icon fonts to base64 data URIs.
  • Multi-page captureRuns the snapshot script once per route to produce one HTML file per page.
  • Auth script supportRuns a user-supplied auth module so login-gated pages can be captured.
  • Canvas inliningConverts canvas charts from ECharts, Chart.js or D3 to base64 images with a flag.
  • Clean-up optionsRemoves fixed elements, scripts and dev overlays, and can set dark mode on the html element.
  • Browser subagent captureCaptures the rendered DOM after clicks, scrolls or form input in a browser subagent.

What you need

  • Node.js
  • Puppeteer
  • A locally running web app (for example npm run dev)
  • npx tsx to run the scripts

Try asking

  • Save the home page of my local app at localhost:5173 as static HTML
  • Capture the dashboard route with dark mode and remove the cookie banner
  • Make a static HTML copy of my Next.js app pages for Stitch upload

Good to know

  • The app must be running locally for the Puppeteer snapshot.
  • Browser subagent output may truncate on large pages.
  • The MockPage.jsx method is a last resort and needs manual flattening of components.
  • Next.js optimized images are only inlined while the dev server is running.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: agent/skills/stitch-extract-static-html/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to stitch-extract-static-html

All alternatives →
paperbananadwzhu-pku
94

PaperBanana generates publication-quality academic diagrams from a paper's methodology text and figure caption. It is aimed at researchers preparing figures for venues such as NeurIPS, ICML, and ACL.

AAA Skill 7.7k
technical-wireframe-info-layoutMengTo
94

Creates a monochrome technical wireframe design system for dark diagnostic interfaces. It covers layout, typography, info labels, widgets and an exploded wireframe centerpiece. It is for designers and developers building teardown, systems dashboard or specification-style screens.

AAA Skill 8.5k
spline-3d-integrationsickn33
94

Guides an AI assistant through embedding interactive Spline.design 3D scenes in web projects. It covers vanilla, React, Next.js, Vue and iframe setups, for developers adding 3D to websites.

AAA Skill 50k
code-slice-heroheygen-com
94

Code Slice Hero is a HyperFrames headline block. A tiled surface flips cell by cell to reveal a second headline behind the first, at 1920×1080 and 8 seconds.

AAA Skill 92k
patentfigdavila7
94

Generates patent-office-compliant figures and converts drawings through the PatentFig AI API. Built for patent filers who need USPTO or EPO line art, CAD-ready vectors, or filing-ready TIFF, PDF, or PNG files.

AAA Skill 34k
framed-tech-dark-border-gradientMengTo
94

Creates a framed dark technical design system for AI assistants, using border-gradient shells, asymmetrical grid panels, and mono labels. Suited to premium, instrument-like interfaces that need visible boundaries. Published by MengTo.

AAA Skill 8.5k

Compare with paperbanana, technical-wireframe-info-layout or spline-3d-integration

stitch-extract-static-html: common questions

Does it work with React, Vue or Angular apps?

The source says the Puppeteer snapshot works with any framework and lists notes for React with Vite, Next.js, Angular, Vue, Nuxt, Svelte and Storybook.

How do I capture pages behind a login?

Write a small auth script that exports a default async function taking a Puppeteer page, then pass it with the --auth-script flag. The script navigates to the URL, runs the auth function and then navigates to the original URL again.

Why are my images missing from the output?

The source suggests increasing the --wait value so images load. For srcset entries that fail, the script removes them so the inlined src is used.

How do I install stitch-extract-static-html?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is stitch-extract-static-html free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is stitch-extract-static-html safe to use?

It scores 54 of 100. Grades: maintenance C, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to stitch-extract-static-html?

Similar skills: paperbanana, technical-wireframe-info-layout, spline-3d-integration, code-slice-hero.

stitch-extract-static-html Install

Add to stack

Loading.