screenshot
БесплатноБез исполняемых скриптовНе проверенBoot a fresh isolated dev server for a package, drive a real Chrome instance via PinchTab to a route, and capture a screenshot — the happy-path way to…
от shepherdjerred★ 85 звёзд на GitHubОб этом скилле
Screenshot Skill
Visually verify a frontend change without a manual browser session: boots a package's dev server on an isolated free port (never reusing an existing listener), drives a real PinchTab-controlled Chrome tab to a route, screenshots it, and cleans up its tab, leases, and server tree on exit.
Prerequisite: PinchTab must already be running (pinchtab health). See the
pinchtab-helper skill for setup — this tool is a thin wrapper around the
pinchtab CLI, not a new browser-automation stack.
Commands
toolkit screenshot <package> [route] [options]
toolkit screenshot --list # print the registry
| Option | Meaning |
|---|---|
--out <path> |
Output PNG path (default: a tmp path, printed) |
--wait-for-selector <s> |
CSS selector to poll for before capturing (default: fixed settle delay) |
--timeout <ms> |
Default 60000 |
--discord-id <id> |
Authenticate as this Discord ID, for packages that require it (e.g. scout-app); defaults to a fake test user. Pass the real owner ID to see owner-gated UI. |
--env KEY=VALUE |
Repeatable; passes env vars to the spawned dev server (e.g. VITE_CONTRACT_HASH=…) |
--viewport <WxH> |
e.g. 1280x800 |
--theme <light|dark> |
CSS prefers-color-scheme emulation |
--full-page |
Capture the full scrollable page, not just the viewport |
--json |
Machine-readable {path, url, durationMs} |
Registry
Zero-auth packages (packages/toolkit/src/lib/screenshot/catalog.ts):
sjer-red, stocks-sjer-red, cooklang-rich-preview, better-skill-capped,
scout-marketing, mario-kart-frontend, pokemon-frontend.
Auth-gated: scout-app (packages/scout-for-lol) — boots the full
dev:web stack (backend + Vite) and signs in via the backend's
/api/dev/login dev-only route (registered only when environment=dev
AND ENABLE_DEV_LOGIN=true, which dev:web sets — so it never ships
enabled to beta/prod) instead of a real Discord OAuth click-through.
Explicitly out of scope (different tooling needed, not attempted here):
tasks-for-obsidian (native SwiftUI — needs a simulator/device).
Examples
# Plain zero-auth package
toolkit screenshot stocks-sjer-red /
# Scout's authenticated web app, as a specific (real) Discord user
toolkit screenshot scout-app /app/ --discord-id 160509172704739328
# Dark mode, custom viewport, wait for content before capturing
toolkit screenshot sjer-red /blog --theme dark --viewport 1440x900 \
--wait-for-selector "article"
Limitations (v1)
- No network-response mocking. PinchTab has no request-interception
primitive comparable to Playwright's
page.route(), so this tool can show what a route currently renders authenticated as a given user — it cannot fake a backend response to force an otherwise-unreachable state. If a screenshot needs a specific backend-driven state that can't occur locally (e.g. a genuine version-hash mismatch between frontend and backend), the practical path is a PinchTab profile with a real login against the actual deployed environment showing that state, not this tool. - Setup cost: PinchTab itself must be running and configured
(
pinchtab-helperskill) — this tool does not install or launch the PinchTab daemon. - Isolated ports per invocation. A fresh spawn prefers the package's catalog
default port when free and allocates an unused loopback port when busy,
passing
--ignore-lock --port <port>(Astro),--port <port> --strictPort(Vite), orSCOUT_DEV_*_PORToverrides (scout-app) so concurrent worktrees never collide or capture an unrelated server.
One-time setup
pinchtab health # c
Установить screenshot в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
BashReadFAQ
Что делает скилл screenshot?
Boot a fresh isolated dev server for a package, drive a real Chrome instance via PinchTab to a route, and capture a screenshot — the happy-path way to visually verify a frontend change in this monorepo.
Как установить скилл screenshot?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл screenshot запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic