generate-readme-screenshots
Skill by coder
Regenerates the coder project's README screenshots from Storybook stories as high-resolution WebP files. Use it when visual diffs appear in readme screenshot stories or when a user asks to update README images.
Install generate-readme-screenshots
Built from the published package, never by AI.
git clone --depth 1 https://github.com/coder/xum /tmp/xum && mkdir -p ~/.claude/skills && cp -r /tmp/xum/.xum/skills/generate-readme-screenshots ~/.claude/skills/generate-readme-screenshotsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install generate-readme-screenshots in Claude Code
git clone --depth 1 https://github.com/coder/xum /tmp/xum && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/xum/.xum/skills/generate-readme-screenshots ~/.gemini/antigravity-cli/skills/generate-readme-screenshotsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install generate-readme-screenshots in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
The generate-readme-screenshots skill regenerates the README images in docs/img as WebP files. It states that these screenshots are not captured by hand. They come from seven Storybook stories in App.readmeScreenshots.stories.tsx, rendered at a 1900 by 1188 viewport with device scale factor 2, giving 3800 by 2376 native captures. Playwright takes each capture and Sharp converts it to WebP at quality 90.
The workflow builds Storybook with make storybook-build, serves the build on port 6006, and runs a Bun capture script. Stories with interactions, such as GitStatusPopover and ContextManagementDialog, are retried up to three times. The skill is for maintainers of the coder project who need to refresh README assets after visual diffs, story or mock data changes, or a user request. It stops if bun, playwright, sharp or python3 is missing.
Written from the project's SKILL.md and checked against it.
What it can do
- Build StorybookRuns make storybook-build to produce the storybook-static folder in the repo root.
- Capture all screenshotsRuns the capture script over all seven README screenshot stories in sequence.
- Capture a single storyRegenerates one story with the --story option, for example CodeReview.
- Retry interactive storiesRetries stories with playInteraction up to three times when UI timing is flaky.
- Verify output sizesChecks the width and height of each generated docs/img WebP file with Sharp.
- Check prerequisitesVerifies bun, playwright, sharp and python3 before running and stops if any are missing.
What you need
- Bun
- Playwright
- Sharp
- Python 3
Try asking
- Regenerate the README screenshots after my CodeReview story changed.
- Capture only the GitStatusPopover README screenshot again.
- Check that all seven README WebP files are present at the right size.
Good to know
- Only seven stories are covered: CodeReview, AgentStatusSidebar, GitStatusPopover, PlanMermaidWithCosts, CostsTabRich, ContextManagementDialog and MobileServerMo
- Capture uses viewport-only screenshots, not full-page, so overflowing content needs a story layout change.
- Interactive stories can fail under sequential load and may need single-story reruns.
- The source says there is no ProductHero screenshot story, because the README uses xum-demo.gif as its hero media.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .xum/skills/generate-readme-screenshots/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to generate-readme-screenshots
All alternatives →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.
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.
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.
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.
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.
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.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
generate-readme-screenshots: common questions
When should README screenshots be regenerated?
The source says to regenerate them when visual diffs are flagged in a README screenshot story, when story or mockFactory.ts data changes, when shared UI components change, or on explicit user request.
Why does the capture script need Storybook running on port 6006?
The source says the capture script expects Storybook at http://localhost:6006, so the static build is served there with python3 before the script runs.
Are the README screenshots captured by hand?
No. The source says the docs/img WebP files are deterministically generated from Storybook stories and are not manually captured.
How do I install generate-readme-screenshots?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is generate-readme-screenshots free?
The code is published under the AGPL-3.0 licence. The service it connects to may have its own pricing.
Is generate-readme-screenshots safe to use?
It scores 77 of 100. Grades: maintenance A, licence C, quality A. 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 generate-readme-screenshots?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
