/diffy:compare-environmentsfrom diffy
Compares two Diffy project environments remotely on Diffy's servers and returns a diff ID. Useful for visual regression testing across prod, staging, or PR URLs without local screenshots.
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.
Read when SKILL.md points to them.
Compare two environments of a Diffy project entirely on Diffy's servers and return a DIFF_ID. Diffy
screenshots both sides remotely and diffs them in a single command — nothing is captured on this machine.
This is the remote analog of the visual-diff skill.
Local vs remote (only if unclear): this skill captures both sides remotely on Diffy's servers
(app.diffy.website). To compare a running app on this machine (baseline → edit → compare), use the
visual-diff skill instead. If the user hasn't said which they want — e.g. a bare "compare my UI" with
no deployed environments named — ask whether to run remote (here) or local; if local, switch to
visual-diff.
For exact command syntax and result fields, consult reference/diffy-cli-remote.md in this skill folder.
diffy from PATH../vendor/bin/diffy exists in the current repo, use that./usr/local/bin may need sudo; Homebrew on Apple Silicon uses
/opt/homebrew/bin):
wget -O /usr/local/bin/diffy https://github.com/diffywebsite/diffy-cli/releases/latest/download/diffy.phar && chmod a+x /usr/local/bin/diffy~/.diffy-cli/diffy-cli.yaml must exist. If it does not, run
diffy auth:login <API_KEY> after the user provides the key (key from https://app.diffy.website/#/keys).Required input:
PROJECT_IDENV1 and ENV2 — the two environments to compare. Each is one of production, staging,
development, or custom (short aliases prod, stage, dev are accepted). Treat ENV1 as the
baseline/before side and ENV2 as the after side unless the user says otherwise.If either environment is missing, ask which two to compare. Confirm the configured environment URLs are set
with diffy project:get <PROJECT_ID> when in doubt.
Configured environments (URLs stored on the project):
diffy project:compare <PROJECT_ID> <ENV1> <ENV2> --wait --name="<diff-name>"
When a side is a one-off custom URL, pass --env1Url / --env2Url (with optional basic auth
--env1User/--env1Pass, --env2User/--env2Pass):
# production vs a PR/UAT build
diffy project:compare <PROJECT_ID> prod custom --env2Url="https://pr-123.example.com" --wait --name="PR 123"
# two arbitrary URLs, with a GitHub check tied to a commit
diffy project:compare <PROJECT_ID> custom custom \
--env1Url="https://site-a.com" --env2Url="https://site-b.com" \
--commit-sha="29b872765b21387b7adfd67fd16b7f11942e1a56" --wait
Notes:
DIFF_ID to stdout — capture it with $(...):
DIFF_ID=$(diffy project:compare <PROJECT_ID> prod stage --wait).--wait polls every 10s until the diff completes (default --max-wait=1200 seconds). Without it the
diff runs in the background and Diffy notifies by email/Slack; the ID is still returned immediately.--name labels the diff in the Diffy UI. If the user gives a name use it exactly; otherwise use a
concise generated one, e.g. prod vs stage 2026-07-06.--commit-sha=<sha> attaches a GitHub check for the given commit (CI use).existing
environment with --screenshot1=<id> / --screenshot2=<id>, e.g.
diffy project:compare <PROJECT_ID> existing prod --screenshot1=<ID> --wait.Write metadata to .diffy-skills/diffs/last-diff.json:
{
"projectId": 12345,
"env1": "production",
"env2": "staging",
"diffId": 333,
"name": "prod vs stage 2026-07-06",
"waited": true,
"createdAt": "2026-07-06T12:00:00Z"
}
Return:
Stop there. Tell the user to use get-diff-info <DIFF_ID> for the changed-page/breakpoint breakdown and
the shareable report link.
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-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./create-projectCreate a Diffy project with the diffy CLI from user-provided project details. Use when the user asks to create a Diffy project, set up a new project in Diffy, or turn a base URL, pages, and breakpoints into a new Diffy project. Requires the user to provide base_url and returns the created project ID./get-diff-infoFetch and summarize Diffy diff status, result JSON, changed percentage, per-page and per-breakpoint differences, JUnit output, or recent diff lists. Use when the user asks for diff info, diff results, changed pages, percent changed, report link, or whether a Diffy diff is complete.Other plugins' skills for the same job