Skip to content
Back to skills

Screenshot

ASecurity

Capture a screenshot of a URL or route with one command. Use whenever the user wants to take a screenshot, capture a page, see what a route looks like, or visually verify a page. Supports mobile viewport with --mobile and unauthenticated mode with --no-auth.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 11, 2026
developmentjavascriptjavabashreacttestingapifrontend

Works with

  • api
  • mcp

Security analysis

A100/100

Scanned November 11, 2026

npx -y skills add makigjuro/cloud-app-blueprint --skill screenshot --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Screenshot?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Screenshot
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/makigjuro-screenshot/badge)](https://www.skillsdirectory.com/skills/makigjuro-screenshot)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: screenshot
description: Capture a screenshot of a URL or route with one command. Use whenever the user wants to take a screenshot, capture a page, see what a route looks like, or visually verify a page. Supports mobile viewport with --mobile and unauthenticated mode with --no-auth.
allowed-tools: mcp__plugin_react-developer_playwright__browser_navigate, mcp__plugin_react-developer_playwright__browser_wait_for, mcp__plugin_react-developer_playwright__browser_take_screenshot, mcp__plugin_react-developer_playwright__browser_evaluate, mcp__plugin_react-developer_playwright__browser_close, mcp__plugin_react-developer_playwright__browser_resize
user-invocable: true
argument-hint: "{url-or-route} [--mobile] [--no-auth]"
---

# Screenshot

Capture a screenshot of a URL or route. Nothing else — no tables, no analysis, just the image.

## Arguments

- `{url-or-route}` — URL or route path (default: `/`). If starts with `/`, prepends `http://localhost:{DEV_PORT}`.
- `--mobile` — Resize viewport to 375x667 (iPhone SE) before capturing
- `--no-auth` — Skip authentication (use for login page or public pages)

## Configuration

Read `blueprint.json` from the project root at the start of execution. Extract:
- `FRONTEND_PATH` = `frontend.path` (default: `web`)
- `DEV_PORT` = `frontend.devPort` (default: `5173`)

If `blueprint.json` does not exist, auto-detect by checking `package.json` dependencies.

### Auth Configuration

Check `blueprint.json` for `localDev.authConfig`:

```json
{
  "localDev": {
    "authConfig": {
      "storageKey": "auth-storage",
      "state": {
        "isAuthenticated": true,
        "token": "dev-token"
      },
      "formFields": {
        "apiKey": "dev-api-key-1"
      }
    }
  }
}
```

If `localDev.authConfig` is not present, use a generic dev auth pattern:
1. Check for an auth store file (e.g., `auth-store.ts`, `useAuthStore.ts`) to find the localStorage key and expected shape
2. Fall back to injecting: `localStorage.setItem('auth-storage', JSON.stringify({ state: { isAuthenticated: true }, version: 0 }))`

## Process

Playwright tools are `mcp__plugin_react-developer_playwright__<tool>`; short names below (e.g. `browser_navigate`) refer to those.

### Step 1: Resolve URL

If the argument starts with `/`, prepend `http://localhost:{DEV_PORT}`. Otherwise use the full URL as-is.

### Step 2: Authenticate (unless --no-auth)

Skip this step if `--no-auth` is passed or the URL is not on `localhost:{DEV_PORT}`.

Navigate to `http://localhost:{DEV_PORT}` first to establish the origin, then inject auth via localStorage.

If `localDev.authConfig` is defined in `blueprint.json`, use that directly:
```javascript
localStorage.setItem('{storageKey}', JSON.stringify({authConfig.state}))
```

Otherwise, detect the auth store pattern from the codebase:
```bash
# Find auth store to determine localStorage key and shape
grep -rl "persist\|localStorage\|auth" {FRONTEND_PATH}/src/store/ {FRONTEND_PATH}/src/stores/ {FRONTEND_PATH}/src/hooks/ 2>/dev/null | head -3
```

Read the auth store file, extract the `name` (localStorage key) and expected state shape, then inject appropriate values.

### Step 3: Resize (if --mobile)

If `--mobile` is passed, resize the browser to `375, 667`.

### Step 4: Navigate and Capture

1. `browser_navigate` to the resolved URL
2. Wait for the page's main heading or a known element's text to appear with `browser_wait_for` (it accepts text to appear/disappear, or a time in seconds); fall back to a short time wait (2–3 s)
3. `browser_take_screenshot`

### Step 5: Cleanup

Close the browser session with `browser_close`.

## Output

Just show the screenshot. No markdown tables, no analysis, no status reports.

If the page shows an error or blank content, mention it briefly alongside the screenshot.

## Error Handling

- **Frontend not running:** Report that `localhost:{DEV_PORT}` isn't responding and suggest starting the dev server.
- **Auth redirect:** If not using `--no-auth` and the page redirects to `/login`, the auth injection may have failed. Retry once with a page reload.

## Related Skills

- `/smoke-test` for testing multiple routes with console/network checks
- `/verify-feature` for post-implementation browser verification

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.