upload-screenshots
Upload a ticket's before/after pictures to Tick-it with presign_screenshot_upload and confirm_screenshot instead of committing them. Use when a UI change needs its pictures, or on /tick-it:upload-scre
Files1
View on GitHubSKILL.mdskills/upload-screenshots/SKILL.md
GitHubUpload the picture files in a folder for a ticket ($ARGUMENTS: the ticket key, then the folder; the repository is the origin remote's owner/name).
node ${CLAUDE_PLUGIN_ROOT}/scripts/upload-screenshots.mjs plan <dir>prints the{ name, type }of each picture.- Call
presign_screenshot_upload(repository, ticket, name, type) for each. Save the answers as a JSON array in a scratch file: each answer'surlandheaders, plus thenameyou passed. node ${CLAUDE_PLUGIN_ROOT}/scripts/upload-screenshots.mjs put <dir> <presigned.json>PUTs each file and prints{ "confirm": [{ "name" }] }for those accepted.- Call
confirm_screenshot(repository, ticket, name) for each name printed. Only then is a picture confirmed. Never commit the pictures.
Before review, run node ${CLAUDE_PLUGIN_ROOT}/scripts/ui-evidence-check.mjs <ticket key>: it fails a UI change (design.uiPaths in .tick-it/config.json) that commits pictures, and a <name>-before/<name>-after pair in the pictures folder with identical bytes (the sample does not show the change). It does not ask Tick-it whether pictures were uploaded; /tick-it done does.