generate-readme-screenshots

Regenerate README screenshots from Storybook stories using Playwright and Sharp.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/latticeHQ/latticeWorkbench --skill generate-readme-screenshots
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: generate-readme-screenshots
Source: https://github.com/latticeHQ/latticeWorkbench/tree/main/.lattice/skills/generate-readme-screenshots
Command: npx skills add https://github.com/latticeHQ/latticeWorkbench --skill generate-readme-screenshots

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires playwright, sharp, and includes scripts (resource) components.

What problem does it solve?

Chromatic visual diffs or story data/layout changes can leave README visuals out of sync; this Skill regenerates high-resolution README screenshots from Storybook stories, updating the corresponding assets deterministically.

Core Features & Use Cases

  • Deterministic generation of README screenshots from App.readmeScreenshots.stories.tsx and associated mock data.
  • Automated build, static server, and capture pipeline using Playwright and Sharp.
  • Supports batch regeneration after updates to Storybook components or documentation.

Quick Start

Run the capture pipeline to regenerate all README screenshots after updating Storybook.

Frequently Asked Questions about generate-readme-screenshots

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Storybook screenshots for a README?

To automate Storybook screenshots for a README, this Skill runs a capture pipeline using Playwright and Sharp. It builds the static server, captures high-resolution WebP assets, and outputs them directly into your static image directory.

Why are my Chromatic visual diffs showing out of sync README screenshots?

Chromatic visual diffs flag out of sync README screenshots when story data or layout changes occur. Regenerating high-resolution screenshots deterministically updates the corresponding WebP assets to resolve these visual discrepancies.

Can I batch regenerate Storybook screenshots after updating documentation?

Yes, you can batch regenerate Storybook screenshots after updating documentation. The Skill coordinates the build and static server to capture all updated README visuals from the specified stories file.

Does Playwright work with Sharp for WebP image processing in screenshot automation?

Playwright works with Sharp for WebP image processing in screenshot automation by using Playwright to capture high-resolution browser output and Sharp to process and convert the captured images into WebP assets.

What is the best way to update static image assets when Storybook components change?

The best way to update static image assets when Storybook components change is running an automated capture pipeline. It deterministically regenerates README screenshots from the updated stories and mock data.

Do I need a static server to capture high-resolution Storybook screenshots?

You need a static server to capture high-resolution Storybook screenshots because the pipeline builds and serves the stories locally. Playwright then captures the rendered output from this server for Sharp to process.