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 abdulsamad1366

Extracts a self-contained static HTML file from a running web app or React components. It inlines CSS and images so the output can be shared or uploaded to Stitch.

  • Score 48
  • 0 stars
  • 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/abdulsamad1366/Hardware-Platform /tmp/Hardware-Platform && mkdir -p ~/.claude/skills && cp -r /tmp/Hardware-Platform/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 agent skill captures a web page as a single static HTML file. Its default strategy launches headless Chrome with Puppeteer, captures the fully rendered DOM, inlines linked stylesheets as style blocks, and converts images to base64 data URIs. It also removes scripts and dev overlays. A second strategy uses a browser subagent to interact with the page before saving its DOM, and a last-resort fallback flattens a React component into a MockPage.jsx file.

The skill suits developers who need to capture a specific UI state, share a static copy of a page, or prepare assets for Stitch upload. The user must choose a strategy before the skill proceeds, and it asks for confirmation after the local server starts.

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

What it can do

  • Puppeteer snapshotCaptures the rendered DOM of a local URL into a self-contained HTML file with inlined CSS and images.
  • Browser subagent captureNavigates, clicks and fills forms in the page, then extracts the DOM for pages that need interaction first.
  • Static fallbackFlattens React components into a single MockPage.jsx file for apps that cannot run locally.
  • Image and CSS inliningConverts src and srcset images to base64 and inlines linked stylesheets and CSS url() paths.
  • Multi-page captureRuns the snapshot script once per route to produce separate HTML files for each page.
  • Display optionsSupports flags for dark mode class, removing fixed elements, full-height viewport and title override.

What you need

  • Node.js with puppeteer available
  • npx tsx to run the scripts
  • A web app running locally, such as with npm run dev
  • Stitch account for uploading the output

Try asking

  • Save the home page of my local app as a static HTML file for Stitch
  • Snapshot the dashboard route in dark mode and remove cookie banners
  • Mock the pricing view as a self-contained HTML file

Good to know

  • Browser subagent output may truncate for large pages in the agent context.
  • Pages behind a login wall need the static fallback method.
  • Next.js optimized images are only inlined while the dev server is running.
  • The static fallback is a last resort and requires manual flattening of components.

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 →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

stitch-extract-static-html: common questions

What is the difference between the two strategies?

Strategy A uses Puppeteer and is the recommended default, with the highest fidelity and no size limit on output. Strategy B uses a browser subagent and is for pages that need clicks or form input first.

Does it work with React, Vue and Next.js?

The source says it works with any framework, and gives notes for React with Vite, Next.js, Vue and Nuxt, Svelte, Storybook and SSR with Webpack.

Can it capture a page that requires login?

The source says pages that require login should use the static fallback described in the appendix.

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 public, but no licence file was found, so check the repository before commercial use.

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

It scores 48 of 100. Grades: maintenance C, licence F, 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: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

stitch-extract-static-html Install

Add to stack

Loading.