capture-screens — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited capture-screens (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
_On startup, use Read to load ~/.claude/skills/capture-screens/preferences.md. If missing, use defaults below._
Defaults:
url: http://localhost:3000output: screenshotsviewport: 1440x900highlight: truehighlight-color: #FF4B4Bwait-ms: 800_On startup, use Bash to detect the current working directory. Use this for default output path resolution._
Check $ARGUMENTS:
help → show help, stopconfig → run config flow, stopreset → delete preferences file, confirm, stopcapture-screens — Automated contextual screenshot capture via Playwright
Usage:
/capture-screens [context] Interactive — prompts for missing inputs
/capture-screens [context] --url <url> App URL to capture
/capture-screens [context] --features <f1,f2,...> Comma-separated routes or feature names
/capture-screens [context] --output <dir> Output directory (default: screenshots/)
/capture-screens [context] --no-highlight Skip CSS highlight injection
/capture-screens [context] --viewport <WxH> Viewport size (default: 1440x900)
/capture-screens [context] --auth <instructions> How to authenticate, e.g. "login as [email protected] / pass123"
/capture-screens [context] --inject-js <file> Path to a JS file to evaluate before capturing (e.g. to seed state)
/capture-screens config Set persistent preferences
/capture-screens reset Clear preferences
/capture-screens help This help
Context argument:
Free-text description of what you're capturing. Used to generate semantic
filenames and manifest descriptions. Example:
"Checkout flow — cart summary, shipping form, payment step, confirmation"
Examples:
/capture-screens "Settings page — profile tab, notifications, billing"
/capture-screens "Onboarding flow" --url https://staging.myapp.com --auth "skip login, go to /onboarding"
/capture-screens "Admin dashboard" --url http://localhost:3000 --no-highlight --output docs/screenshots
/capture-screens "Product tour" --inject-js seed-demo-state.js
Output:
{output}/ ← semantically-named PNGs
{output}/manifest.json ← filename → description map (for downstream skills)
{output}/capture-report.md ← human-readable summary with descriptions
Current preferences:
(shown from preferences.md)Use AskUserQuestion to collect:
http://localhost:3000)screenshots)1440x900)#FF4B4B)800)Save to ~/.claude/skills/capture-screens/preferences.md.
Delete ~/.claude/skills/capture-screens/preferences.md and confirm: "Preferences cleared. Using defaults."
If no preferences file exists, show:
First time using /capture-screens? Run /capture-screens config to set your defaults, or continue — sensible defaults will be used.Then proceed.
Parse $ARGUMENTS for:
--flag--url <url> — app URL (fallback: preferences → http://localhost:3000)--features <list> — comma-separated routes or feature names--output <dir> — output directory (fallback: preferences → screenshots)--no-highlight — skip CSS highlight injection--viewport <WxH> — e.g., 1440x900--auth <instructions> — how to authenticate (e.g., "login as [email protected] / password")--inject-js <file> — path to a JS file to evaluate before capturing (for any custom state setup: localStorage, cookies, mocked APIs, etc.)If context description is missing, ask:
What are you capturing? Describe the product area and key states to document. Example: "Checkout flow — cart, shipping, payment, confirmation page"
If features are missing, derive a capture plan from the context description. Ask to confirm:
Based on your description, I'll capture: [list of routes/states]. Anything to add or remove?
Create the output directory:
mkdir -p {output}--url via browser_navigatebrowser_resize to {viewport}browser_snapshot to verify the page loadedAuthentication — if the page requires login:
--auth was provided, follow those instructions using browser_type and browser_clickIf --inject-js <file> was provided:
browser_evaluatebrowser_navigate to let the app pick up any injected stateThis is the escape hatch for any app-specific state seeding — localStorage, sessionStorage, cookies, API mocking, feature flags, etc. The skill itself has no opinion about what the JS does.
Inject once into the page via browser_evaluate:
const style = document.createElement('style');
style.id = '__capture-highlight-style';
style.textContent = `
[data-capture-highlight] {
outline: 3px solid {highlight-color} !important;
outline-offset: 3px !important;
border-radius: 4px !important;
box-shadow: 0 0 0 6px {highlight-color}22 !important;
}
`;
document.head.appendChild(style);
window.__captureHighlight = (selector) => {
document.querySelectorAll('[data-capture-highlight]')
.forEach(el => el.removeAttribute('data-capture-highlight'));
const el = selector ? document.querySelector(selector) : null;
if (el) {
el.setAttribute('data-capture-highlight', '');
el.scrollIntoView({ block: 'center', behavior: 'instant' });
}
};
window.__captureClearHighlight = () => {
document.querySelectorAll('[data-capture-highlight]')
.forEach(el => el.removeAttribute('data-capture-highlight'));
};For each item in the capture plan:
browser_navigate (or browser_click for tabs/buttons within the same page)browser_wait_for — target a meaningful selector (main content area, data table, heading) or fall back to {wait-ms} msbrowser_snapshot to understand the current page structurebrowser_evaluate: window.__captureHighlight('{selector}')browser_take_screenshot{output}/{filename}.png{ filename, description, route, timestamp }browser_evaluate: window.__captureClearHighlight()Within-page states (tabs, modals, dropdowns, hover states):
browser_click to open the state, screenshot, then restore to neutral state before moving onOn failure: log the error and skip — never abort the full session for one bad step.
`{output}/manifest.json`:
{
"capturedAt": "{ISO timestamp}",
"url": "{app url}",
"viewport": "{WxH}",
"context": "{context description}",
"screenshots": [
{
"filename": "settings-profile-tab-overview.png",
"description": "Settings page — Profile tab showing name, avatar, and account details",
"route": "/settings/profile",
"selector": ".profile-form"
}
]
}`{output}/capture-report.md`:
# Screenshot Capture Report
**Context:** {context description}
**URL:** {url}
**Captured:** {timestamp}
**Count:** {N} screenshots → `{output}/`
## Screenshots
### {Feature Area}
**File:** `{filename}.png`
**Route:** `{route}`
**Description:** {description}
---Captured {N} screenshots → {output}/
✓ {filename1}.png — {description}
✓ {filename2}.png — ...
Manifest: {output}/manifest.json
Report: {output}/capture-report.mdList any skipped steps and their errors at the end.
{feature}-{sub-feature}-{state}.png (2-3 levels, kebab-case)checkout-payment-form-filled.png not checkout-3.png-open, -empty, -active, -selected, -error when the UI state matters-2.pngbrowser_snapshot first to understand page structure before deciding what to highlight and capture~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.