.claude/skills/screenshot/SKILL.md
Take screenshots of HTML mockups from any version. Use when user wants to capture mockups as PNG images, regenerate screenshots, or mentions /screenshot command.
npx skillsauth add rakovi4/continue-example screenshotInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Automate taking screenshots of HTML mockups using Puppeteer from a centralized runner location.
/screenshot [folder/file]
Default location: ProductSpecification/stories/*/mockups/
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 patternThe centralized Puppeteer runner is in .screenshots-temp/:
.screenshots-temp/node_modules exists:
cd .screenshots-temp && npm installExecute 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
Report to user:
screenshots/ subfolder)/screenshot # All mockups
/screenshot login.html # Specific file
/screenshot mobile # Files containing "mobile"
mobile/ parent directory use mobile viewport (390x844).mockup-card element when present.mockup-card not foundscreenshots/ subfolder next to each HTML file (per-directory, not centralized)node_modules/, screenshots/, and screenshots-live/ directories.screenshots-temp/testing
Run use-case module tests quickly. Use when user wants to run use-case tests or mentions /test-usecase command.
development
Generate BDD test specifications for story in 6 categories (API, UI, Load, Infrastructure, Security, Integration). Use when user wants to create test cases or mentions /test-spec command.
testing
Review tests to replace loose validation (contains, isNotNull, isNotEmpty) with strict validation (isEqualTo on parsed fields). Use when user wants to improve test assertions or mentions /test-review command.
development
Run frontend tests. Use when user wants to run frontend unit tests or mentions /test-frontend command.