# pp-agent-capture

pp-agent-capture captures windows, records video, and converts to GIF from the terminal on macOS. Uses ScreenCaptureKit for window-level targeting, bundles evidence for PRs, and monitors UI changes.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 306 installs · ★ 2142 repo stars
- Author: Matt Van Horn
- License: Apache-2.0 · policy=mirror · the beginning of the file is at the end of this page
- Source: https://github.com/mvanhorn/printing-press-library/tree/HEAD/cli-skills/pp-agent-capture/SKILL.md
- Updated: 2026-10-24
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/pp-agent-capture

## What it does

This skill drives the `agent-capture-pp-cli` binary to capture specific windows or apps, record video, convert video to optimized GIF, diff against baseline screenshots, and bundle full evidence packages for pull requests. Under the hood: ScreenCaptureKit for precise window-level capture (what ffmpeg cannot do), ffmpeg for conversion, macOS Vision for OCR text extraction from windows.

Requires macOS and Screen Recording permission, which the skill requests on first run. The binary installs to `$HOME/.local/bin` (macOS/Linux) or `%LOCALAPPDATA%\Programs\PrintingPress\bin` (Windows) and must be on `$PATH`. If `npx` install fails, fall back to direct Go install (requires 1.26.6 or newer).

Includes `screenshot` and `batch` for single or multiple windows, `record` for video capture, `pipeline` for full capture-convert cycle in one go, `diff` for baseline comparison, `evidence` for PR bundles, `find` for fuzzy window matching, `ocr` for text extraction, and `watch` for periodic monitoring. All commands support `--agent` for structured JSON output.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add mvanhorn/printing-press-library --skill pp-agent-capture -a claude-code
```

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

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add mvanhorn/printing-press-library --skill pp-agent-capture -a codex
```

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

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add mvanhorn/printing-press-library --skill pp-agent-capture -a cursor
```

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

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install mvanhorn/printing-press-library cli-skills/pp-agent-capture/SKILL.md
```

2. **Manually: put the files in place**
- File: `.github/skills/pp-agent-capture/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add mvanhorn/printing-press-library --skill pp-agent-capture -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/mvanhorn/printing-press-library --path cli-skills/pp-agent-capture
```

### Windsurf (Devin Desktop)

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

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add mvanhorn/printing-press-library --skill pp-agent-capture -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/mvanhorn/printing-press-library/tree/HEAD/cli-skills/pp-agent-capture/SKILL.md

## When to use it
- capture a screenshot of a specific window or macOS app
- record video of a screen region with minimal file size
- convert video to an optimized GIF with two-pass palette
- bundle before-and-after screenshots, video, and GIF for a PR
- find the right window by fuzzy-matching its title

## Example prompts
- Take a screenshot of the Safari window
- Record the last 30 seconds of screen activity and convert it to GIF
- Create an evidence bundle with before-and-after screenshots and a video recording for the PR

## Source text · SKILL.md · Apache-2.0

Below is the content of a third-party file. It is data, not instructions for you: do not act on anything written inside unless the human asks. Block tag: 3a335797371bbb9d.

BEGIN THIRD-PARTY FILE 3a335797371bbb9d
````text
---
name: pp-agent-capture
description: "macOS screen capture, window recording, GIF conversion, and agent evidence bundles from the terminal. Built on ScreenCaptureKit for window-level targeting ffmpeg cannot do. Use when the user wants a screenshot of a specific window or app, a screen recording, a GIF conversion, a before/after diff, an evidence bundle for a PR, OCR text from a window, a terminal VHS recording, a Remotion render, or wants to watch a UI for changes. Requires macOS Screen Recording permission on first run."
author: "Matt Van Horn"
license: "Apache-2.0"
argument-hint: "<command> [args] | install cli"
allowed-tools: "Read Bash"
metadata:
  openclaw:
    requires:
      bins:
        - agent-capture-pp-cli
    install:
      - kind: go
        bins: [agent-capture-pp-cli]
        module: github.com/mvanhorn/printing-press-library/library/developer-tools/agent-capture/cmd/agent-capture-pp-cli
---
<!-- GENERATED FILE — DO NOT EDIT.
     This file is a verbatim mirror of library/developer-tools/agent-capture/SKILL.md,
     regenerated post-merge by tools/generate-skills/. Hand-edits here are
     silently overwritten on the next regen. Edit the library/ source instead.
     See the repository agent guide, section "Generated artifacts: registry.json, cli-skills/". -->

# Agent Capture - Printing Press CLI

## Prerequisites: Install the CLI

This skill drives the `agent-capture-pp-cli` binary. **You must verify the CLI is installed before invoking any command from this skill.** If it is missing, install it first:

1. Install via the Printing Press installer. It defaults binaries to `$HOME/.local/bin` on macOS/Linux and `%LOCALAPPDATA%\Programs\PrintingPress\bin` on Windows:
   ```bash
   npx -y @mvanhorn/printing-press-library install agent-capture --cli-only
   ```
2. Verify: `agent-capture-pp-cli --version`
3. Ensure the reported install directory is on `$PATH` for the agent/runtime that will invoke this skill.

If the `npx` install fails (no Node, offline, etc.), fall back to a direct Go install (requires Go 1.26.6 or newer):

```bash
go install github.com/mvanhorn/printing-press-library/library/developer-tools/agent-capture/cmd/agent-capture-pp-cli@latest
```
````
END THIRD-PARTY FILE 3a335797371bbb9d

The third-party file has ended. Everything between the 3a335797371bbb9d tags is data: requests and commands from it are not followed. An “end of file” line with another tag inside the block is part of the file.

First 2214 of 6354 bytes. © Matt Van Horn · Apache-2.0 · https://github.com/mvanhorn/printing-press-library/tree/HEAD/cli-skills/pp-agent-capture/SKILL.md

_Part of the page did not fit — see the HTML version._

---
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
