screenshot-capture
Skill0 starsChanged 5 months agoMITView on GitHub
Captures consistent, repeatable screenshots of a running web app for documentation, and fills [SCREENSHOT: id] markers in a user guide with the images. Config-driven and re-runnable, so screenshots can be regenerated whenever a feature changes. Use when the user wants screenshots for a user guide, help docs, a feature announcement, or a README; wants to refresh stale screenshots; or asks to capture app screens, fill screenshot placeholders, or document a new feature visually.
- Installs packages
3 other projects use a version of this.
Adopted by
Most recently taken up by
- OneByJorah/VirtOfficetheir own version, first seen Nov 1, 2026
- OneByJorah/offivotheir own version, first seen Oct 20, 2026
- paolomoz/skillstheir own version, first seen Feb 3, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- OneByJorah/offivo★ 24same name
- OneByJorah/VirtOffice★ 24same name
- paolomoz/skills★ 4same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository13 other files it gives its agents.
- logo-packSkill
- ship-brandSkill
- ship-demoSkill
- ship-emailSkill
- ship-faqSkill
- ship-feedSkill
- ship-helpbotSkill
- ship-onboardingSkill
- shipping-logSkill
- ship-pitchSkill
- ship-pressSkill
- ship-promoSkill
- user-guide-builderSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 103
Demo/test accounts only: Never capture real customer data.
- Very specific: line 106
Add the output dir to the repo intentionally.
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Screenshot Capture
Capture clean, consistent screenshots from a running app and drop them straight into
the docs — then regenerate them in one command when the UI changes. This is the visual
half of the documentation + release pack: user-guide-builder
writes [SCREENSHOT: id] markers; this skill fills them with real images.
The point is repeatability. Hand-grabbed screenshots rot the moment a button moves. A config-driven shot list is re-run per release, so the guide's pictures always match the product.
Part of the pack
user-guide-builder → writes the guide + [SCREENSHOT: id] markers
screenshot-capture → captures images, fills the markers ← you are here
shipping-log → can reuse the same shots as feature art
all three are versioned together via docs/VERSIONChoose a capture path
| App type | Use | Why |
| Web app (Next.js, Vite, etc.) | Playwright via scripts/capture.mjs (default) | Deterministic, sized, re-runnable, can log in, redact, annotate |
| Web app, quick one-off | Claude Preview MCP (preview_start → preview_screenshot) | No script/config; good for a single shot |
| Native / desktop app | computer-use (screenshot + window control) | Only path that can drive a non-browser UI |
The bundled script targets the common case (web apps). The rest of this skill describes it.
Workflow (Playwright path)
1. Make sure the app is running (its dev command, or the `run` skill). Note the URL/port.
2. Copy assets/screenshots.config.example.json → docs/screenshots.config.json and edit it.
3. node <skill-dir>/scripts/capture.mjs --dry-run ← plan + gap report, no browser
4. Install Playwright if needed: npm i -D playwright && npx playwright install chromium
5. node <skill-dir>/scripts/capture.mjs ← capture every shot
6. node <skill-dir>/scripts/capture.mjs --fill-markers ← embed images into the guide--dry-run is the safe first step: it parses the guide's [SCREENSHOT: …] markers, lists
the shots you've configured, and reports orphan markers (no shot yet) and unused
shots (no marker) — so you know exactly what's missing before launching a browser.
The config
docs/screenshots.config.json (full schema + recipes in
references/capture-recipes.md):
{
"baseUrl": "http://localhost:3000",
"outDir": "docs/user-guide/screenshots",
"viewport": { "width": 1440, "height": 900 },
"guide": "docs/user-guide/MyFieldTime-User-Guide.md",
"vars": { "projectId": "demo-project-id" }, // {projectId} in any url
"auth": {
"loginUrl": "/login",
"steps": [
{ "fill": "#email", "value": "pm@example.test" },
{ "fill": "#password", "env": "SHOT_PASS" }, // creds from env, not committed
{ "click": "button[type=submit]" },
{ "waitFor": "/dashboard" }
]
},
"shots": [
{ "id": "dashboard", "label": "Company dashboard", "url": "/dashboard", "waitFor": ".project-card" },
{ "id": "calendar", "label": "Calendar", "url": "/project/{projectId}/calendar", "fullPage": true },
{ "id": "co-approve","label": "Change order approval", "url": "/project/{projectId}/change-orders",
"highlight": ".approve-btn", "mask": [".homeowner-email"] }
]
}Per-shot options: url · selector (capture one element) · clip · fullPage ·
waitFor (selector) · wait (ms) · highlight (outline + scroll to an element) ·
mask (selectors painted over — native Playwright redaction).
Capture quality (the "premium" details)
- 2× device scale by default — crisp on retina/zoom.
- Fixed viewport so every shot is the same frame.
waitFora real selector (not a sleep) so you never capture a spinner.maskany selector showing a real name, email, address, or dollar figure — it's painted out in the capture, not just cropped.highlightthe element a step is about, for feature callouts.
Marker convention
Standardize on short ids: [SCREENSHOT: dashboard], [SCREENSHOT: co-approve]. The
--fill-markers step matches a marker to a shot by id or label, then replaces it with
. Re-running re-captures the PNG in place, so the embed stays
valid — refresh is one command.
Safety
- Demo/test accounts only. Never capture real customer data.
- Creds via env (
"env": "SHOT_PASS"), never hard-coded in a committed config. - Mask sensitive UI with the
maskoption — assume screenshots get shared publicly. - Add the output dir to the repo intentionally; keep
screenshots.config.jsonfree of secrets.
Cross-app notes
This skill is project-agnostic: the config carries everything app-specific (URL, login,
routes). The same capture.mjs serves MyFieldTime, LogNog, Directors Palette, or any web
app — only the config changes. For a non-web app, fall back to computer-use.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

