In the Skill's Own Terms
Produces a single self-contained HTML file from a running web app by launching headless Chrome through Puppeteer, capturing the fully rendered DOM, inlining CSSOM rules and converting images to base64 data URIs. It works with any framework — React/Vite, Next.js, Angular, Vue/Nuxt, Svelte, Storybook — with no MockPage.jsx required.
The skill forces the agent to ask which of two capture strategies to use before proceeding, recommending the Puppeteer snapshot, and to pause for confirmation after the local server starts. Flags cover wait time, viewport, dark mode, fixed-element removal, canvas inlining and an auth script for login-gated pages. A documented appendix flattens React components into a manual MockPage.jsx when the app cannot run locally.
What it produces
- A self-contained HTML file per captured route, with styles inlined and images embedded as base64.
- One file per route when you capture several views, for example home, pricing and dashboard.
- Charts serialized from canvas elements into base64 images when the canvas flag is used.
How It Works
- 01Let the User Pick a Strategy
Before any extraction the agent presents the A/B comparison, recommends the Puppeteer route and waits for an explicit choice.
- 02Run the Snapshot Script per Route
One command per URL, writing each capture to its own file in .stitch with a fixed wait after network idle.
- 03Let the Script Inline the Page
CSSOM rules, linked stylesheets, images, srcset sources and same-origin icon fonts are folded into the file so nothing depends on a running server.
- 04Adjust Flags to the Framework
Wait times and URLs differ by stack, for example a longer wait when the framework hydrates server-rendered markup.
- 05Authenticate Gated Pages
An auth module runs inside the Puppeteer session, after which the script returns to the original URL with the session in place.
- 06Fall Back to a Mock Only if Needed
When the app cannot boot at all, the appendix route flattens components into one JSX file instead of capturing a live render.