/alexop-skills:screenshotting-appsfrom alexop-skills
Generates annotated screenshot documentation for web apps and websites — local dev servers or live sites. Use when asked to "screenshot the app", "document the app", "visual docs", "screenshot documentation", "show me the app", "screenshot <url>", or "document this website".
Ships in alexop-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Generate a markdown document with annotated screenshots of any web app or live website.
agent-browser CLI installed globally (npm i -g agent-browser && agent-browser install)https:// if missing):
agent-browser open https://example.com && agent-browser wait --load networkidle
agent-browser find text "Accept" click
Or snapshot to find the accept button ref, then click the ref directly:
agent-browser snapshot -i -s "[role=dialog], [class*=cookie], [class*=consent]" -c
agent-browser click @e1 # Use the ref from snapshot
Verify it's gone: agent-browser is visible "[role=dialog]" or agent-browser wait "[role=dialog]" --state hiddenpackage.json)agent-browser --ignore-https-errors open https://localhost:<port>agent-browser open <url> && agent-browser wait --load networkidleagent-browser screenshot --annotate docs/screenshots/_survey.png
Read the output legend to understand what's on the page (buttons, links, inputs mapped to @e refs).agent-browser snapshot -i -s "header, nav, [role=navigation]" -c
For deep DOM: agent-browser snapshot -i -c -d 3grep -r "path:" src/router or similar) since not all routes may be linked from the nav.Workflow per page: validate selectors → annotate → check for FAILED → verify screenshot → fix or continue.
Setup (run once before all screenshots):
agent-browser set viewport 1440 900
export AGENT_BROWSER_SCREENSHOT_DIR=docs/screenshots
Block ads and tracking scripts that create overlays or slow page loads (live sites):
agent-browser network route "**/*.doubleclick.net/**" --abort
agent-browser network route "**/googlesyndication.com/**" --abort
agent-browser network route "**/analytics.js" --abort
agent-browser network route "**/gtm.js" --abort
Resolve the annotation script path (checks common install locations):
ANNOT_JS="$(find . .claude .agents ~/skills -path '*/app-screenshots/references/annotate.js' 2>/dev/null | head -1)"
[ -z "$ANNOT_JS" ] && echo "ERROR: annotate.js not found — check skill installation"
For each page:
agent-browser open <url> && agent-browser wait --load networkidle
For live sites, add agent-browser wait 2000 for lazy-loaded content. Chain when you don't need intermediate output: agent-browser open <url> && agent-browser wait --load networkidle && agent-browser wait 2000
agent-browser find text "Accept" click
agent-browser wait "[class*=overlay]" --state hidden
For complex or iframed banners, see references/live-sites.md.
Always test selectors first. Failed selectors produce invisible annotations.
Use eval --stdin with heredoc for complex JS (avoids shell quoting issues):
agent-browser eval --stdin <<'EVALEOF'
const sels = ['selector1', 'selector2'];
sels.map(s => {
const el = document.querySelector(s);
if (!el) return 'MISSING: ' + s;
const r = el.getBoundingClientRect();
return 'OK: ' + s + ' (' + Math.round(r.width) + 'x' + Math.round(r.height) + ')';
}).join('\n')
EVALEOF
Quick match count check: agent-browser get count "<selector>"
If MISSING, use agent-browser snapshot -i -c to discover correct selectors and refs. Do not annotate with broken selectors. See references/selectors.md for tips.
For elements below the fold, scroll them into view first: agent-browser scrollintoview "<selector>"
Use eval --stdin to inject the annotation script safely:
agent-browser eval --stdin <<EVALEOF
$(cat "$ANNOT_JS")
annotateMulti([
{sel: 'selector', label: 'Label', type: 'box'},
{sel: 'selector', label: 'Label', type: 'click'}
])
EVALEOF
CRITICAL: If output starts with FAILED:, fix selectors before screenshotting. Clear and retry:
agent-browser eval "clearAnnotations()"
Annotation types:
click — filled circle + arrow + numbered label. Use for buttons, links, inputs.box — dashed border + numbered label. Use for sections, cards, containers.circle (default) — capped-radius dashed circle + arrow + numbered label. General callouts.Colors auto-rotate: red, blue, green, amber, purple. Each annotation is auto-numbered (1, 2, 3...) for cross-referencing in markdown.
MAX 3 annotations per screenshot. Split into multiple screenshots if needed (e.g., 03a-top.png, 03b-actions.png).
Type selection rules:
click for small elements (buttons, links, icons) — capped circle won't explodebox for medium regions (cards, form groups, sidebars) — follows element shapecircle or box on full-width elements (navbars, headers) — annotate specific items within them insteadWhat to annotate per page type:
agent-browser screenshot <NN>-<page-name>.png
Zero-padded numbering: 01-homepage.png, 02-category.png, etc. Use --full for full-page screenshots when content extends below the fold.
Read the screenshot file you just captured and check:
If any issues: agent-browser eval "clearAnnotations()", fix the problem, re-annotate, and re-screenshot. Do not proceed with a bad screenshot.
For search, menus, modals, hover states — use the snapshot → refs → interact pattern:
# 1. Snapshot to get refs
agent-browser snapshot -i
# 2. Interact using refs (more reliable than CSS selectors)
agent-browser click @e5 # Click search input by ref
agent-browser type @e5 "shoes"
agent-browser wait 2000
# 3. Annotate the result
agent-browser eval --stdin <<EVALEOF
$(cat "$ANNOT_JS")
annotateMulti([{sel: '[class*=suggest]', label: 'Suggestions', type: 'box'}])
EVALEOF
# 4. Screenshot
agent-browser screenshot 05-search-results.png
# 5. Verify — read the screenshot and check quality
Note: Refs inside iframes work directly — no frame switching needed for interaction.
For complex interactions (checkout flows, multi-step wizards), record a video alongside screenshots:
agent-browser record start docs/screenshots/checkout-flow.webm
# ... perform the interaction steps, taking screenshots along the way ...
agent-browser record stop
Link the video in the markdown: [Watch checkout flow](screenshots/checkout-flow.webm)
To document mobile layouts:
# Use device emulation (sets viewport + user agent together)
agent-browser set device "iPhone 14"
Then follow the same annotate → screenshot → verify workflow. Name files with a -mobile suffix: 01-homepage-mobile.png.
To return to desktop: agent-browser set viewport 1440 900
Note: On narrow viewports, prefer max 2 annotations per screenshot to avoid crowding.
Filename: docs/<domain>-screenshots.md (live sites) or docs/app-screenshots.md (local).
Use numbered references (1), (2), (3) in descriptions to cross-reference the annotation badges visible in each screenshot.
# <Site/App Name> - Visual Guide
Brief description of the site/app.
**URL:** <base-url>
**Date:** <today's date>
**Annotation key:** Red = primary actions, Blue = secondary elements, Green = content areas
---
## <Page Name>
1-3 sentences describing the page. Reference annotations by number:
"The **Search bar** (1) supports autocomplete. Use the **Category nav** (2) to browse departments.
The **Hero banner** (3) rotates seasonal promotions."

---
When documenting differences between staging and production, or before/after a redesign:
# Visual pixel diff between two URLs
agent-browser diff url https://staging.example.com https://prod.example.com
# Diff against a baseline screenshot
agent-browser diff screenshot --baseline docs/screenshots/01-homepage-before.png
# Accessibility tree diff (detect structural changes)
agent-browser diff snapshot
Include diff screenshots in the markdown to highlight what changed.
# Remove network intercepts
agent-browser network unroute
agent-browser close
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
Generated from the plugin's indexed repository (alexanderop/skills) — no native marketplace selected
npx claudepluginhub p/alexanderop-alexop-skills17 skills in this plugin
/blog-generatorGenerates a self-contained, deeply-technical "deep dive" blog post as a single offline-capable HTML file — AstroPaper aesthetic, light/dark toggle, Mermaid diagrams (CDN), Shiki syntax highlighting (CDN ESM). Use when the user types "$blog" or "$blog-post", asks to "write a blog post", "deep dive blog", "generate a blog post about how X works", "explain X in a blog post so I can rebuild it", "in-depth post about", or wants a long-form publishable HTML article reverse-engineering a codebase, library, or architecture (not a quick summary, not an interactive walkthrough)./c4-architectureGenerate architecture documentation using C4 model Mermaid diagrams. Use when asked to create architecture diagrams, document system architecture, visualize software structure, create C4 diagrams, or generate context/container/component/deployment diagrams. Triggers include "architecture diagram", "C4 diagram", "system context", "container diagram", "component diagram", "deployment diagram", "document architecture", "visualize architecture"./checkReview current changes with parallel subagents/clone-repoVendor a library's source code into the current repo as a git subtree under `repos/<name>/`, then wire it into AGENTS.md as reference material so coding agents read real source instead of fighting stale docs. Use when the user types "$clone-repo <url>", "/clone-repo <url>", "vendor <url>", "clone <url> as a subtree", "add <url> as reference for the agent", "feed <url> to the agent", "just clone the repo <url>", or otherwise asks to set up a third-party repo as agent-readable context./fix-pipelineCheck GitHub pipeline status and plan fixes if failing/good-docs-writerTurn a topic into a structured blog-post draft for a developer audience, using The Good Docs Project templates as the structural backbone. Classifies the post intent (explainer, walkthrough, recipe, quickstart, debug story, release post, cheat sheet) via an internal index, fetches the matching Good Docs template (bundled locally from gitlab.com/tgdp/templates), then adapts it to blog voice (hook, narrative, takeaways, CTA). TRIGGER on: "good-docs-writer", "write a blog post about X", "draft a blog post on X", "blog post for X", or the explicit form "$good-docs-writer <intent> <topic>".