/diffy:upload-screenshotfrom diffy
Captures a running app inside Diffy's screenshot-worker Docker container and uploads the screenshot set to Diffy, returning a screenshot ID. Use for local UI capture for Diffy visual testing.
Ships in diffy. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Capture a running app inside Diffy's screenshot-worker Docker container, upload the generated
screenshot set, and return a SCREENSHOT_ID. The container is Diffy's production rendering runtime: the
worker reads the project's pages, breakpoints, and advanced settings itself, re-bases each page onto
your local URL, captures every page × breakpoint with the container's Chromium, uploads the set, and
returns the ID — so there is no local upload.json to build and no separate screenshot:create-uploaded
call. The container reaches your host dev server via host.docker.internal (the runner rewrites
localhost/127.0.0.1 for you).
Do not upload pre-existing image files or pre-built payloads, create a visual diff, or summarize diff results in this skill.
$PLUGIN_DIR below = the diffy plugin root (the folder containing .claude-plugin/ and
scripts/), i.e. two levels up from this SKILL.md.
Local vs remote (only if unclear): this skill captures the running app on this machine inside
Diffy's screenshot-worker Docker container. Diffy can instead screenshot a deployed environment
on its own servers — that is the remote-screenshot skill. If the user hasn't made clear which
they want, ask whether to capture local (here) or remote (Diffy captures on app.diffy.website);
if remote, switch to remote-screenshot.
diffywebsite2/screenshot-worker) — the same Chromium/fonts/Playwright runtime Diffy uses in
production, so every user renders identically. Docker must be installed and running. Check the
whole setup with:
node "$PLUGIN_DIR/scripts/run-worker.mjs" --check
If it reports the setup is incomplete, do a one-time setup: tell the user it will pull the worker
image (~1.1 GB) and fetch the worker code, then run:
node "$PLUGIN_DIR/scripts/run-worker.mjs" --provision
That pulls the image, clones the worker code into a cache dir (~/.cache/diffy/diffy-worker), and
installs its deps inside the container; later runs reuse it. Advanced: set DIFFY_WORKER_DIR to
a worker checkout you manage, or DIFFY_WORKER_IMAGE to pin a different image tag. Surface
run-worker.mjs's own messages rather than guessing.~/.diffy-cli/diffy-cli.yaml (or
$DIFFYCLI_CONFIG, or $DIFFY_API_KEY). If none exists, run diffy auth:login <API_KEY> after
the user provides the key (from https://app.diffy.website/#/keys).Required input:
PROJECT_IDAPP_URL, the base URL of the running app to capture, for example http://localhost:3000If APP_URL is missing, ask the user for it. This skill always captures the running app; it never
uploads existing image files.
APP_URL is reachable (accept any HTTP response — a 401/403/404 at / still means the
server is up):
curl -s -o /dev/null -w "%{http_code}" "<APP_URL>"
If this returns 000 (no connection), ask the user to start their dev server first.SCREENSHOT_ID=$(node "$PLUGIN_DIR/scripts/run-worker.mjs" \
--project-id=<PROJECT_ID> --url="<APP_URL>" --name="<snapshot-name>")
Progress logs (per page/breakpoint) stream to stderr; stdout is just the numeric SCREENSHOT_ID.
The pages, breakpoints, and advanced capture settings all come from the Diffy project itself — you
do not pass them here.If the command exits non-zero, show its stderr (it explains missing worker setup, auth, or an unreachable app) and stop. Do not fall back to any other capture method.
After upload, write metadata to .diffy-skills/uploads/<snapshot-name>/metadata.json:
{
"projectId": 12345,
"screenshotId": 67890,
"snapshotName": "snapshot-20260706-120000",
"appUrl": "http://localhost:3000",
"capturedAt": "2026-07-06T12:00:00Z"
}
Return:
running app via screenshot-worker container)Stop there. Tell the user to use compare-screenshots when they want to compare this screenshot set.
This skill writes metadata under .diffy-skills/; offer to add .diffy-skills/ to the repo's
.gitignore if it is not already ignored.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub diffywebsite/diffy-cli --plugin diffy9 skills in this plugin
/compare-environmentsCompare two environments of a Diffy project server-side with project:compare — Diffy screenshots both environments on its own servers and produces a visual-regression diff, returning a diff ID. Use when the user wants to compare prod vs staging, prod vs a custom/PR/UAT URL, or two arbitrary URLs remotely, without capturing anything locally. This runs on Diffy's servers; to compare a locally running app on THIS machine instead, use the visual-diff skill. If the user is ambiguous about local vs remote, ask./compare-screenshotsCreate a Diffy visual diff from two existing screenshot set IDs with diff:create. Use when the user asks to compare screenshots, compare two uploaded screenshot sets, create a diff from screenshot IDs, or get a diff ID for before/after screenshots./Other plugins' skills for the same job