download-gemini-images — скилл для Claude Code: скачать картинки
Скилл выгружает картинки из открытого чата Gemini через вашу залогиненную сессию Chrome и складывает их в ZIP по порядку.
npx skills add daymade/claude-code-skills --skill download-gemini-images -a claude-codeЧто делает download-gemini-images
Скилл открывает лайтбоксы Gemini и забирает оттуда крупные версии изображений, а не превью-миниатюры со страницы. Работает через плагин Chrome, потому что чаты Gemini обычно требуют вашей активной сессии Google. Свежий браузер без логина тут не поможет.
Порядок такой: скилл подхватывает уже открытую вкладку Gemini или открывает переданный вами URL, затем импортирует scripts/download_gemini_images.mjs в сессии node_repl и запускает выгрузку. Имена файлов идут по порядку ленты — image_01.jpg, image_02.jpg и дальше. Упаковка в ZIP делается скриптом scripts/package_images.sh, он же прогоняет zip -T и сверяет, что в архиве те же файлы в том же порядке.
Если автоматика по лайтбоксам не сработала, а страница видна, есть запасной путь через pageAssets — но он обычно отдаёт превью 512px вместо крупных файлов. Об этом скилл сообщает отдельно. Если Gemini просит войти, работа останавливается до вашего логина в Chrome.
Какие задачи решает
- выгрузить все картинки из длинного чата Gemini одним разом
- получить крупные версии изображений, а не превью-миниатюры
- сложить скачанное в ZIP с сохранением порядка из ленты
- переименовать файлы по порядку вместо случайных имён из загрузок
- забрать картинки из чата, не выходя из своей сессии Google
Примеры запросов агенту
- скачай все картинки из этого чата Gemini и упакуй в ZIP
- выгрузи изображения из gemini.google.com/app, ожидаю 20 штук
- сохрани картинки из открытой вкладки Gemini по порядку
Как установить download-gemini-images
1Через Skills CLI (Vercel)
npx skills add daymade/claude-code-skills --skill download-gemini-images -a claude-code2Вручную: положить файлы
~/.claude/skills/download-gemini-images/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/download-gemini-images/
1Через Skills CLI (Vercel)
npx skills add daymade/claude-code-skills --skill download-gemini-images -a codex2Вручную: положить файлы
.agents/skills/download-gemini-images/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add daymade/claude-code-skills --skill download-gemini-images -a cursor2Вручную: положить файлы
.cursor/skills/download-gemini-images/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install daymade/claude-code-skills download-gemini-images2Вручную: положить файлы
.github/skills/download-gemini-images/SKILL.md1Через Skills CLI (Vercel)
npx skills add daymade/claude-code-skills --skill download-gemini-images -a gemini-cli2Командой платформы
gemini skills install https://github.com/daymade/claude-code-skills --path download-gemini-imagesВручную: положить файлы
.devin/skills/download-gemini-images/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add daymade/claude-code-skills --skill download-gemini-images -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Из того же набора64
Похожие
Рядом в теме «Браузер и парсинг»
Все скиллы по теме «Браузер и парсинг» →Вопросы о download-gemini-images
Как установить download-gemini-images в Claude?
Выполните npx skills add daymade/claude-code-skills --skill download-gemini-images -a claude-code. Скилл встанет в ~/.claude/skills/download-gemini-images/SKILL.md.
Что делает download-gemini-images?
Скачивает изображения из чата Gemini через вашу залогиненную сессию Chrome, открывая лайтбоксы ради крупных версий файлов, и собирает их в ZIP с именами по порядку ленты.
Что делать, если автоматика по лайтбоксам не сработала?
Скилл переключается на pageAssets и забирает превью. Обычно это JPEG 512px, а не крупные файлы из лайтбокса, и скилл предупредит вас об этом.
Исходный текст
SKILL.md · MIT
---
name: download-gemini-images
description: Download, export, save, or package images from a Google Gemini conversation/chat/app page, especially uploaded images or generated image previews visible in a Gemini thread. Use when the task needs logged-in Chrome/Gemini state, opening Gemini image lightboxes, downloading the larger displayed image files, renaming them in order, and producing a ZIP archive.
---
# Download Gemini Images
## Overview
Download Gemini conversation images from the user's logged-in Chrome session. Prefer the lightbox image over thumbnail/page-preview assets because Gemini often exposes a larger `blob:` image only after the user opens a preview.
## Workflow
1. Use the Chrome plugin, not a fresh unauthenticated browser, because Gemini conversations usually require the user's existing Google session.
2. Bootstrap Chrome per the Chrome skill, claim the already-open Gemini tab if it exists, or open the user-provided Gemini URL in Chrome.
3. Import and run `scripts/download_gemini_images.mjs` from a `node_repl` JS call after `browser` is available.
4. Package the output directory with `scripts/package_images.sh`.
5. Report the ZIP path, image count, and any lower-resolution fallback.
6. Finalize Chrome control after downloads are complete, keeping the user's original Gemini tab open when appropriate.
## Main Script
Resolve the script path relative to this skill directory, then import it in the same Node REPL session used for Chrome automation:
```js
var { downloadGeminiImagesFromChrome } = await import("/absolute/path/to/download-gemini-images/scripts/download_gemini_images.mjs");
var result = await downloadGeminiImagesFromChrome({
browser,
tabUrlIncludes: "gemini.google.com/app",
expectedCount: 20,
outputDir: `${nodeRepl.homeDir}/Downloads/gemini_conversation_images_${new Date().toISOString().slice(0, 10).replaceAll("-", "")}`
});
nodeRepl.write(JSON.stringify(result, null, 2));
```
Set `expectedCount` only when the user gave a specific count. Omit it to download every visible `Show the uploaded image in a lightbox` button.
## Packaging
After the main script returns `outputDir`, run:
```bash
/absolute/path/to/download-gemini-images/scripts/package_images.sh "$outputDir" "$HOME/Downloads/gemini_conversation_images.zip"
```
The packaging script creates the ZIP, runs `zip -T`, and verifies that the archive contains the same ordered image files as the directory.
## Fallback
If lightbox automation fails but the page is visibly loaded, use the tab `pageAssets` capability:
```js
var pageAssets = await tab.capabilities.get("pageAssets");
var inventory = await pageAssets.list();
var uploaded = inventory.assets.filter(a => a.kind === "image" && a.url.includes("lh3.googleusercontent.com/gg/"));
var bundle = await pageAssets.bundle({ inventoryId: inventory.id, assetIds: uploaded.map(a => a.id) });
nodeRepl.write(JSON.stringify(bundle, null, 2));
```
This usually captures 512px preview JPEGs, not the larger lightbox files. Tell the user when this fallback is used.
## Notes
- Do not inspect browser cookies, local storage, passwords, or session stores.
- Downloading files is an inbound transfer and does not require confirmation by itself.
- If Gemini asks the user to log in, pause and ask the user to complete login in Chrome.
- If the user wants the images in the same order as the thread, use the script's ordered names: `image_01.jpg`, `image_02.jpg`, etc.
© daymade · MIT · daymade/claude-code-skills