Screenshot

From rakovi4/continue-framework · View interactive version

Screenshot is an AI agent skill from the GitHub repository rakovi4/continue-framework. Take screenshots of HTML mockups from any version. Use when user wants to capture mockups as PNG images, regenerate screenshots, or mentions /screenshot command.

How to use this skill

Skill file

Screenshot HTML Mockups

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:

Phase 2: Ensure Puppeteer Environment

The centralized Puppeteer runner is in .screenshots-temp/:

  1. Check if .screenshots-temp/node_modules exists:
  1. 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:

Example Invocations

/screenshot                           # All mockups
/screenshot login.html                # Specific file
/screenshot mobile                    # Files containing "mobile"

Design Constraints

Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.