/screenote:screenotefrom screenote
Capture an HTTP(S) page or publish explicit PNG/JPEG files through the Screenote JSON CLI.
Ships in screenote. 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.
Read and follow the shared CLI contract completely.
Load the shipped workflow contract and use
its screenote command sequence and response keys as the authority for the
deterministic CLI portion. This skill remains authoritative for browser capture
and user intent.
Canonical CLI order: project list, optional explicit project create, then
one snapshot --manifest publication for all selected viewport captures.
Use the bundled ../../scripts/screenote-cli.sh; do not invoke unapproved CLI
commands or another transport.
The public grammar is:
screenote [git_commit=COMMIT] [desktop|tablet|mobile] <URL-or-page|image-path...>
An initial viewport selects one viewport. For a browser target without that
prefix, capture desktop 1280×800, tablet 768×1024, and mobile 390×844. For
explicit image paths, the prefix applies to a single file; otherwise infer a
canonical viewport from the image width and use desktop for a noncanonical
width. An optional git_commit must contain 7-40 hexadecimal characters and
supplies immutable manifest provenance when the invocation is outside a Git
worktree. A target is required. If a legacy request starts with screenote feedback,
return a migration message that directs the user to the
feedback [viewport] [filter] skill and stop.
Capture and existing-image upload are mutations and require explicit capture/upload/share intent. Do not publish merely because a URL, attachment, or local path appears in context.
.png, .jpg, or .jpeg paths, including
file-backed conversation attachments, as existing-image upload only when the
user's request names or shares them for Screenote publication.Detect screenote on PATH; never install it. Run the launcher's non-secret
--check-contract, then the allowlisted project list preflight. Project precedence is explicit --project, then
SCREENOTE_PROJECT, then CLI config. Validate accessibility and never guess an
ambiguous project.
If the user explicitly asks to create an exact missing project, invoke
project create --name <exact-name> without global --project, validate the
returned project.id and exact project.name, and use that id for uploads. If
the exact project already exists, select it without creating a duplicate. If a
request merely names a missing upload destination, ask before creating it.
Never create from missing_project alone, an inferred repository name, an
empty list, or an ambiguous name. Noninteractive input must contain an exact
name and explicit create directive. Exit 3 during creation stops the flow;
project-scoped credentials cannot be substituted for user-scoped OAuth.
Handle JSON failures exactly: exit 2 missing_token suggests
screenote --base-url https://screenote.ai login only as separate interactive
guidance or SCREENOTE_TOKEN noninteractively; exit 2
missing_project explains --project, SCREENOTE_PROJECT, and config; exit 3
reports invalid/expired authorization; every other nonzero exit stops with the
original machine-readable diagnostic. Noninteractive runs never prompt, read
stdin, or open a browser.
This mode does not start browser automation and does not require viewport preflight. It replaces browser verification with deterministic local image validation and a private copy:
Create a unique mktemp -d directory with mode 0700.
For each explicit source, invoke the shipped helper with every value as a distinct argv element:
../../scripts/screenote_flow.py prepare-existing-image \
--source SOURCE --directory PRIVATE_DIRECTORY [--viewport VIEWPORT]
Require exit zero and parse its complete JSON. The helper rejects missing,
unreadable, empty, oversized, malformed, extension-mismatched, or symlinked
sources; validates complete PNG chunk/checksum or JPEG frame/scan structure
plus positive dimensions; and writes a new mode-0600 private copy without
changing the user-owned source.
If a conversation image has no host-exposed readable path, ask the user for a file-backed attachment or path. Do not capture a replacement.
Never pass the original user-supplied path to the Screenote CLI. Use a
user-supplied remote review label or a generic label such as Existing screenshot; never copy the source path or basename into --title, --page,
comments, or other remote metadata.
Stop before remote mutation if preparation fails. When multiple explicit
images represent viewport variants of one screen, reuse the exact same page and
title and distinguish them only through viewport and their private filename.
Otherwise give each independent screen its own page/title group.
Create a unique mktemp -d directory with mode 0700 and capture files mode
0600. Generate each PNG path directly beneath it and refuse an existing
file, overwrite, symlink, or path escape.
Use one page label and one version title for the logical screen. Use native browser automation serially. For every selected viewport:
Stop on the first failed capture unless the user explicitly approves a reduced set. Close browser state before any remote mutation.
Resolve immutable manifest metadata before publication. Prefer an explicit
validated git_commit from the request; otherwise resolve the current worktree
commit:
git rev-parse --verify HEAD
date -u +"%Y-%m-%dT%H:%M:%SZ"
The commit must contain 7-40 hexadecimal characters. If neither an explicit
commit nor a Git worktree commit is available, ask for one interactively or
return a missing-input error noninteractively; never invent a commit.
Create one manifest only after every selected browser capture or existing-image
copy is ready. Invoke the shipped helper with every dynamic value as a distinct
argv element and repeat --entry once per image:
../../scripts/screenote_flow.py prepare-snapshot-manifest \
--directory PRIVATE_DIRECTORY \
--git-commit GIT_COMMIT \
--taken-at TAKEN_AT \
--entry PAGE TITLE VIEWPORT PRIVATE_BASENAME \
[--entry PAGE TITLE VIEWPORT PRIVATE_BASENAME ...]
Require exit zero and parse its complete JSON. The helper writes a new
mode-0600 snapshot.json, rejects missing/private-path escapes, duplicate
(page, title, viewport) tuples, multiple screen groups under one
case-insensitive Page identity, invalid metadata, and more than 100 images. A
Page identifies one stable screen across runs, not a category within a run.
For one screen, every viewport entry must repeat the exact same page and title.
Publish exactly once:
../../scripts/screenote-cli.sh --project PROJECT_ID snapshot --manifest PRIVATE_MANIFEST --wait 2m
The command emits JSON Lines. Success requires exit zero and a final
snapshot_ready event containing review_url. Any other terminal shape or
nonzero exit is a failure; keep the unchanged private directory so the same
manifest can resume.
Report the viewports, project, and final review URL. State whether the upload
used fresh browser captures or existing images and explain that the viewport
switcher changes variants within the same version. After publication succeeds,
delete only plugin-owned captures/copies, manifest, and
their private directory unless retention was explicitly requested; never
delete or modify a user-owned source image. On any failure, keep the unchanged
private directory, report its exact recovery path, and never overwrite it on
retry. Tell the user to run feedback after annotating the Screenote review.
What SKILL.md sets; muted values are Claude Code's defaults
3 skills in this plugin
Other plugins' skills for the same job
npx claudepluginhub ivankuznetsov/agent-plugins --plugin screenote