# webpage-screenshotter

webpage-screenshotter captures full-page website screenshots with Playwright and returns the image as Base64. Useful when an agent needs a visual copy of a URL.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 167 installs · ★ 2 repo stars
- Author: rkreddyp
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/rkreddyp/investrecipes/tree/HEAD/.claude/skills/webpage-screenshotter/SKILL.md
- Updated: 2025-11-23
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/webpage-screenshotter

## What it does

The skill opens a URL in Chromium through Playwright and writes a full-page capture to `screenshot.png`. Its main flow waits for `domcontentloaded`, reloads the page, then encodes the PNG as Base64. It can also write to a custom path or process several URLs in one run.

The default setup uses a `1920x1080` viewport, a `0.5` device scale factor, and a `120000` millisecond timeout. Pages that need more time can use `load` or `networkidle`, with an optional visible-element wait. A navigation timeout is caught before the flow continues.

The Python implementation imports `playwright`, so that package must be available in the runtime before the example can run. That dependency is the main setup point to check in a local environment.

## Requirements
- Works with: Playwright

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add rkreddyp/investrecipes --skill webpage-screenshotter -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/webpage-screenshotter/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/webpage-screenshotter/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add rkreddyp/investrecipes --skill webpage-screenshotter -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/webpage-screenshotter/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add rkreddyp/investrecipes --skill webpage-screenshotter -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/webpage-screenshotter/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install rkreddyp/investrecipes .claude/skills/webpage-screenshotter
```

2. **Manually: put the files in place**
- File: `.github/skills/webpage-screenshotter/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add rkreddyp/investrecipes --skill webpage-screenshotter -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/rkreddyp/investrecipes --path .claude/skills/webpage-screenshotter
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/webpage-screenshotter/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add rkreddyp/investrecipes --skill webpage-screenshotter -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/rkreddyp/investrecipes/tree/HEAD/.claude/skills/webpage-screenshotter/SKILL.md

## When to use it
- capture a complete webpage image
- write a screenshot to a chosen path
- turn PNG data into Base64
- collect screenshots from multiple URLs

## Example prompts
- Capture a full-page screenshot of `https://example.com` and return it as Base64.
- Save a screenshot of `https://example.com` to `homepage.png` after all page resources load.
- Process this list of URLs and return a Base64 result for each page.

## Similar
- [browser-navigation](https://affpapa.org/en/nevibecode/skills/browser-navigation.md) — skill · 120 installs
- [browser-screenshot-diff](https://affpapa.org/en/nevibecode/skills/browser-screenshot-diff.md) — skill · 697 installs
- [scrape-webpage](https://affpapa.org/en/nevibecode/skills/scrape-webpage.md) — skill · 1900 installs
- [web-debug](https://affpapa.org/en/nevibecode/skills/web-debug.md) — skill · 4500 installs
- [testing-webapps](https://affpapa.org/en/nevibecode/skills/testing-webapps.md) — skill · 192 installs
- [webapp-testing](https://affpapa.org/en/nevibecode/skills/eyadsibai-webapp-testing.md) — skill · 178 installs

From the same set: [rkreddyp/investrecipes](https://affpapa.org/en/nevibecode/by/rkreddyp/investrecipes.md) — 5 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
