Screenshot HTML Mockups
SkillMediaTake screenshots of HTML mockups from any version. Use when user wants to capture mockups as PNG images, regenerate screenshots, or mentions /screenshot command.
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the Screenshot HTML Mockups skill
What this skill tells your AI
The instructions your AI receives, as published by rakovi4/continue-framework in .claude/skills/screenshot/SKILL.md and read by ahel’s review.
Automate taking screenshots of HTML mockups using Puppeteer from a centralized runner location.
Usage
/screenshot [folder/file]
Mockups Location
Default location: ProductSpecification/stories/*/mockups/ and ProductSpecification/stories/done/*/mockups/ — a closed story's mockups are still the design reference for the screens it owns (.claude/rules/workflow.md, "Resolving a story folder"), so a no-argument run covers both. Enumerate stories/*/mockups/ and then stories/done/*/mockups/; a single stories/*/mockups/ glob silently misses every archived story, since the archived ones sit one level deeper. Their mockups also carry a deeper <script src> prefix — .claude/templates/ui/mockup-generation-rules.md, "Script import path".
Workflow
Phase 1: Determine Scope
Parse user input to determine target:
Folder/file filtering:
/screenshot— All mockups in default location/screenshot login.html— Single file/screenshot 01_auth— Files matching pattern
Phase 2: Ensure Puppeteer Environment
The centralized Puppeteer runner is in .screenshots-temp/:
- Check if
.screenshots-temp/node_modulesexists:- If not: run
cd .screenshots-temp && npm install
- If not: run
- This only needs to happen once, not per-mockup-directory
Phase 3: Run Screenshot Script
Execute from the centralized location:
cd .screenshots-temp && node take-screenshots.js [target]
Examples:
# All mockups in default directory
cd .screenshots-temp && node take-screenshots.js
# Specific file (relative to repo root)
cd .screenshots-temp && node take-screenshots.js ../ProductSpecification/stories/01-create-task/mockups/desktop/create-task.html
# Directory with HTML files
cd .screenshots-temp && node take-screenshots.js ../ProductSpecification/stories/01-create-task/mockups/desktop/
# Filter by filename pattern
cd .screenshots-temp && node take-screenshots.js ../ProductSpecification/stories/01-create-task/mockups/ mobile
Phase 4: Output Summary
Report to user:
- Number of screenshots taken
- Output location (screenshots saved alongside HTML files or in
screenshots/subfolder) - Any failures encountered
Example Invocations
/screenshot # All mockups
/screenshot login.html # Specific file
/screenshot mobile # Files containing "mobile"
Design Constraints
- Mobile detection: Files in a
mobile/parent directory use mobile viewport (390x844) - Desktop viewport: 1400x900
- Element selector: Crop to
.mockup-cardelement when present - Fallback: Full page screenshot if
.mockup-cardnot found - Format: PNG
- Output:
screenshots/subfolder next to each HTML file (per-directory, not centralized) - Skip:
node_modules/,screenshots/, andscreenshots-live/directories
Notes
- Puppeteer is pre-installed in
.screenshots-temp/ - No npm installation needed in mockup directories
- Screenshots are deterministic for visual regression testing
- Re-running overwrites existing screenshots
Signals
- GitHub stars
- 51
- Forks
- 14
- Last commit
- Sep 2026
Advanced
- Catalog kind
- skill
- Gateway key
screenshot-rakovi4- Source
- github.com/rakovi4/continue-framework