Downloads original photo and video files from a public Amazon Photos shared album via Amazon Drive's JSON API using Playwright. No login required. Verifies file sizes.
Ships in productivity-tools. 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; scripts run unread.
Self-Evolving Skill: This skill improves through use. If instructions are wrong, parameters drifted, or a workaround was needed — fix this file immediately, don't defer. Only update for real, reproducible issues.
Download every original file from a public Amazon Photos shared album — the kind of link you get from "Share → Copy link", e.g. https://www.amazon.ca/photos/share/qGAyl…. No Amazon login is needed for a public share; the album authorizes anonymously via its shareId.
heic-to-jpeg-bundle skill).Amazon Photos is a React app over Amazon Drive's /drive/v1/ JSON API. A public share exposes, with just the shareId as auth:
GET /drive/v1/shares/<shareId> → the root SHARED_COLLECTION node id.GET /drive/v1/nodes/<root>/children?limit=1… → the album folder node id.GET /drive/v1/nodes/<album>/children?filters=…image*+OR+video*…&limit=200… → the list of asset nodes (name, contentProperties.contentType, size).GET /drive/v1/nodes/<id>/contentRedirection?download=true&shareId=… → the original bytes.The script runs the JSON calls inside a headless Chrome page (via Playwright) so they carry the exact cookies/headers the web app uses, then writes each file under its real name and verifies the byte size against contentProperties.size. A manifest.json records every node id, name, type, and size.
bun, playwright-core, and Google Chrome installed.# one-time, in the dir you'll run from (or any scratch dir):
mkdir -p ~/scratch/amazon-album && cd ~/scratch/amazon-album
bun add playwright-core
SKILL_DIR="$(dirname "$(find ~/.claude ~/eon -path '*/amazon-photos-album-download/scripts/download-album.ts' 2>/dev/null | head -1)")"
ALBUM_OUT="$(mktemp -d)/album-originals" # temporary by default — see "Keep the pointer, not the copy"
ALBUM_URL="https://www.amazon.ca/photos/share/REPLACE_WITH_SHARE_ID" \
ALBUM_OUT="$ALBUM_OUT" \
bun "$SKILL_DIR/download-album.ts"
# ...read or convert the files, record the share URL + node ids from manifest.json, then:
rm -r -- "$(dirname "$ALBUM_OUT")"
Then convert + bundle for sharing:
BUNDLE="$(dirname "$(find ~/.claude ~/eon -path '*/heic-to-jpeg-bundle/scripts/make-bundle.sh' 2>/dev/null | head -1)")"
bash "$BUNDLE/make-bundle.sh" --src "$ALBUM_OUT" --zip --zip-cap-mib 25
| Env | Default | Meaning |
|---|---|---|
ALBUM_URL | (required) | The /photos/share/<id> URL |
ALBUM_OUT | ./album-originals | Output directory |
ALBUM_INCLUDE | image | image, image,video, or all |
ALBUM_PROFILE_DIR | ~/.cache/amazon-album/chrome | Persistent Chrome profile dir |
ALBUM_CHROME_CHANNEL | chrome | Playwright Chrome channel |
ALBUM_PAUSE_MS | 800 | Delay between downloads (be gentle) |
/photos/share/<id> URL, but the root's child is the photo itself (kind: FILE) rather than an album folder, and listing its children returns nothing. The script detects this and downloads that one node (log line file=<id> instead of album=<id>); before 2026-11-24 it reported total=0 for such links.ALBUM_INCLUDE=image keeps just still images; widen it if you want videos.contentRedirection?download=true returns the original, not a thumbnail. The album-listing tempLinks can be downsized (the app requests lowResThumbnail=true); always pull originals via contentRedirection./drive/v1/ from plain curl fails — the share auth rides on the browser context. The script uses page.evaluate (JSON) + context.request (binaries), both inside the loaded album context.contentProperties.size (±2%); the manifest.json verified count should equal selected./drive/v1/ requests to re-derive the endpoints.manifest.json) instead of committing or archiving the images. Values read from a photo (a serial, a date) belong in the record; the image files do not. Re-download with this skill whenever they are needed again.heic-to-jpeg-bundle password ZIP is the cautious default).After running, before closing:
verified < selected? Investigate the failed nodes (rate limiting, a node type without contentRedirection); note the fix.download-album.ts + the steps above.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
amazon-photos, album-download, playwright, photo-backup, amazon-drive
Other plugins' skills for the same job
8 skills in this plugin
/calendar-event-manageruser wants to create a macOS Calendar event with sound alarms and paired Reminders, schedule a meeting, RSVP to an invitation, or set reminders./gdrive-accessAccess Google Drive via CLI with 1Password OAuth: list files, download, and sync folders. TRIGGERS - google drive, gdrive, drive folder, download drive, sync drive./imessage-queryQuery macOS iMessage database (chat.db) via SQLite. Decode NSAttributedString messages, handle tapbacks, search conversations./productivity-tools:amazon-photos-album-download [Amazon Photos share URL]from productivity-tools
npx claudepluginhub terrylica/cc-skills --plugin productivity-tools