CLI без настройки для скачивания полноразмерных изображений по ссылкам iCloud, Dropbox, Google Photos и Google Drive.

Звёзды486
Форки53
Авторaiskillstore
Обновлённоя 17 2026

Установка

SKILL.md

GIIL — Get Image [from] Internet Link

A zero-setup CLI that downloads full-resolution images from cloud photo shares. The missing link between your iPhone screenshots and remote AI coding sessions.

Why This Exists

The primary use case: Remote AI-Assisted Debugging

You're SSH'd into a remote server running Claude Code, Codex, or another AI assistant. You need to debug a UI issue on your iPhone, but how do you get that screenshot to your remote terminal?

Without giil:

Download image locally → SCP to server → Tell AI the path
Email yourself → Download on server → Hope it works
Set up complex file sync between devices

With giil:

giil "https://share.icloud.com/photos/0a1Abc_xYz..." --json
# {"path": "/tmp/icloud_20240115_143022.jpg", "width": 1170, ...}

One command. AI sees it instantly. No file transfers, no context switching.

The Workflow

iPhone Screenshot → iCloud Sync → Photos.app Share Link → Paste to SSH → giil Downloads → AI Analyzes

Why Cloud Shares Are Hard

ProblemWhy It's HardHow giil Solves It
JavaScript-heavy SPAsStandard curl/wget can't execute JSHeadless Chromium via Playwright
Dynamic image loadingImages load asynchronously from CDNNetwork interception captures CDN responses
No direct download linksURLs are session-specific and expireClicks Download button or intercepts live requests
Copy/paste loses qualityManual screenshots compress imagesCaptures original resolution from source
HEIC format on AppleMany tools can't process HEIC/HEIFPlatform-aware conversion (sips/heif-convert)

Quick Start

# Install
curl -fsSL "https://raw.githubusercontent.com/Dicklesworthstone/giil/main/install.sh?v=3.0.0" | bash

# Download single image
giil "https://share.icloud.com/photos/02cD9okNHvVd-uuDnPCH3ZEEA"

# JSON output (best for AI workflows)
giil "https://share.icloud.com/photos/..." --json

# Download entire album
giil "https://share.icloud.com/photos/..." --all --output ~/album

Note: First run downloads Playwright Chromium (~200MB, cached in ~/.cache/giil/).

Supported Platforms

PlatformURL PatternsMethodBrowser Required
iCloudshare.icloud.com/photos/*, icloud.com/photos/#*4-tier capture strategyYes
Dropboxdropbox.com/s/*, dropbox.com/scl/fi/*Direct curl (raw=1)No
Google Photosphotos.app.goo.gl/*, photos.google.com/share/*URL extraction + =s0 modifierYes
Google Drivedrive.google.com/file/d/*, drive.google.com/open?id=*Multi-tier with auth detectionYes

Dropbox Fast Path: Direct curl download with no browser overhead—typically 1-2 seconds.

Google Photos Full-Res: Automatically appends =s0 to CDN URLs for maximum resolution.

Four-Tier Capture Strategy

giil implements a fallback strategy to maximize reliability:

1. Download Button (Highest Quality)

  • Locates visible Download button using 9 selector patterns
  • Clicks and waits for browser download event
  • Obtains original file (no re-encoding losses)
  • Works with HEIC/HEIF originals

2. Network Interception (Full Resolution)

  • Monitors all HTTP responses for CDN patterns (cvws.icloud-content.com, etc.)
  • Filters by content-type (image formats only)
  • Captures largest image buffer (>10KB threshold to skip thumbnails)
  • Works even if UI elements are obscured

3. Element Screenshot

  • Queries for image elements using 10 selector patterns
  • Verifies element is visible and ≥100×100 pixels
  • Takes PNG screenshot of the element

4. Viewport Screenshot (Last Resort)

  • Captures visible viewport (1920×1080)
  • Always succeeds if page loads
  • Useful for debugging page state

Command Reference

Basic Usage

giil <url> [options]

Options

FlagDefaultDescription
--output DIR.Output directory
--preserveoffKeep original bytes (skip MozJPEG compression)
--convert FMT—Convert to: jpeg, png, webp
--quality N85JPEG quality 1-100
--base64offOutput base64 to stdout (no file saved)
--jsonoffOutput JSON metadata
--alloffDownload all photos from album
--timeout N60Page load timeout in seconds
--debugoffSave debug artifacts on failure
--verboseoffShow detailed progress
--traceoffEnable Playwright tracing for deep debugging
--print-urloffOutput resolved CDN URL (don't download)
--debug-dir DIR.Directory for debug artifacts
--updateoffForce reinstall dependencies

Output Modes

Default: File Path

giil "https://share.icloud.com/photos/XXX"
# stdout: /current/dir/icloud_20240115_143245.jpg

Scripting:

IMAGE_PATH=$(giil "..." --output ~/Downloads 2>/dev/null)

JSON Mode

giil "https://share.icloud.com/photos/XXX" --json

Success:

{
  "ok": true,
  "schema_version": "1",
  "platform": "icloud",
  "path": "/absolute/path/to/icloud_20240115_143245.jpg",
  "datetime": "2024-01-15T14:32:45.000Z",
  "sourceUrl": "https://cvws.icloud-content.com/...",
  "method": "network",
  "size": 245678,
  "width": 4032,
  "height": 3024
}

Error:

{
  "ok": false,
  "schema_version": "1",
  "platform": "icloud",
  "error": {
    "code": "AUTH_REQUIRED",
    "message": "Login required - link is not publicly shared",
    "remediation": "The file is not publicly shared. The owner must enable public access."
  }
}
FieldDescription
methodCapture strategy: download, network, element-screenshot, viewport-screenshot, direct
error.codeError code (see Exit Codes)
error.remediationSuggested fix

Base64 Mode

# Decode to file
giil "..." --base64 | base64 -d > image.jpg

# Create data URI
echo "data:image/jpeg;base64,$(giil '...' --base64)" > uri.txt

# Pipe to API
giil "..." --base64 | curl -X POST -d @- https://api.example.com/upload

URL-Only Mode

giil "https://share.icloud.com/photos/XXX" --print-url
# stdout: https://cvws.icloud-content.com/B/...

Useful for external downloaders, caching, or debugging.

Album Mode

Download entire shared albums with --all:

giil "https://share.icloud.com/photos/XXX" --all --output ~/album

How It Works

  1. Load album page
  2. Detect thumbnail grid (11 selector strategies)
  3. For each thumbnail: click → capture → close → next
  4. Output one path/JSON per photo

Album Features

  • Resilient: Continues to next photo if one fails
  • Indexed filenames: _001, _002, etc. for ordering
  • Rate limiting: 1 second delay between photos (polite downloading)
  • Exponential backoff: Automatic retry on rate limit signals

Album Output

# Default
/path/to/album/icloud_20240115_143245_001.jpg
/path/to/album/icloud_20240115_143246_002.jpg

# With --json
{"path": "...001.jpg", "method": "download", "width": 4032, ...}
{"path": "...002.jpg", "method": "network", "width": 3024, ...}

Image Processing Pipeline

EXIF Datetime Extraction

Priority order for filename generation:

  1. DateTimeOriginal (when photo was taken)
  2. CreateDate
  3. DateTimeDigitized
  4. ModifyDate
  5. Current time (fallback)

HEIC/HEIF Conversion

PlatformToolNotes
macOSsipsBuilt-in, always available
Linuxheif-convertRequires libheif-examples package
# Install HEIC support on Linux
sudo apt-get install libheif-examples  # Debian/Ubuntu
sudo dnf install libheif-tools         # Fedora

MozJPEG Compression (Default)

By default, giil compresses with MozJPEG for optimal size/quality:

  • 40-50% smaller than standard JPEG at equivalent quality
  • Quality 85 (configurable via --quality)
  • Use --preserve to keep original bytes

Filename Format

icloud_YYYYMMDD_HHMMSS[_NNN][_counter].jpg
        │              │      │
        │              │      └── Collision counter (if file exists)
        │              └── Album index (--all mode only)
        └── Date/time from EXIF or capture time

Download Verification

giil validates downloads through three stages:

1. Content-Type Validation

Validates HTTP Content-Type matches expected image types.

2. Magic Bytes Detection

Verifies binary signature regardless of server claims:

FormatMagic Bytes
JPEGFF D8 FF
PNG89 50 4E 47
GIF47 49 46 38
WebPRIFF container with WEBP
HEIC/HEIFISO base media file (ftyp box)

3. HTML Error Page Detection

Rejects HTML content that indicates an error page instead of an image.

Exit Codes

CodeNameDescription
0SuccessImage captured and saved/output
1Capture FailureAll capture strategies failed
2Usage ErrorInvalid arguments or missing URL
3Dependency ErrorNode.js, Playwright, or Chromium issue
10Network ErrorTimeout, DNS failure, unreachable host
11Auth RequiredLogin redirect, password required, not publicly shared
12Not FoundExpired link, deleted file, 404
13Unsupported TypeVideo, Google Doc, or non-image content
20Internal ErrorBug in giil (please report!)

Scripting:

giil "https://share.icloud.com/photos/XXX" 2>/dev/null
case $? in
    0) echo "Success!" ;;
    10) echo "Network issue - retry later" ;;
    11) echo "Link not public - ask owner to share" ;;
    12) echo "Link expired" ;;
    *) echo "Failed with code $?" ;;
esac

Environment Variables

Runtime Variables

VariableDescriptionDefault
XDG_CACHE_HOMEBase cache directory~/.cache
GIIL_HOMEgiil runtime directory$XDG_CACHE_HOME/giil
PLAYWRIGHT_BROWSERS_PATHCustom Chromium cache$GIIL_HOME/ms-playwright
GIIL_NO_GUMDisable gum stylingunset
GIIL_CHECK_UPDATESEnable update checkingunset

Installer Variables

VariableDescriptionDefault
DESTCustom install directory~/.local/bin
GIIL_SYSTEMInstall to /usr/local/binunset
GIIL_VERIFYVerify SHA256 checksumunset
GIIL_VERSIONInstall specific versionlatest

File Locations

PathPurpose
~/.local/bin/giilMain script
~/.cache/giil/Runtime directory
~/.cache/giil/node_modules/Playwright, Sharp, exifr
~/.cache/giil/extractor.mjsGenerated Node.js script
~/.cache/giil/ms-playwright/Chromium browser cache

Debug Artifacts (on failure with --debug)

FileContents
giil_debug_<timestamp>.pngFull-page screenshot
giil_debug_<timestamp>.htmlPage DOM content

Performance

PhaseFirst RunSubsequent
Chromium download30-60sSkipped (cached)
Browser launch2-3s2-3s
Page load3-10s3-10s
Image capture1-5s1-5s
Total40-80s5-15s

Dropbox: 1-2 seconds (direct curl, no browser).

Troubleshooting

"Auth required" error

The link isn't publicly shared. Owner must enable public access in their cloud settings.

Timeout errors

Increase timeout: giil "..." --timeout 120

Wrong/small image captured

Run with --debug to see page state. Report issue with debug artifacts.

HEIC conversion fails on Linux

sudo apt-get install libheif-examples  # Debian/Ubuntu
sudo dnf install libheif-tools         # Fedora

Chromium fails to launch

giil "..." --update
# Or manually:
cd ~/.cache/giil && npx playwright install --with-deps chromium

Debugging

# Verbose output
giil "..." --verbose

# Debug artifacts on failure
giil "..." --debug

# Playwright trace (generates trace.zip)
giil "..." --trace
npx playwright show-trace ~/.cache/giil/trace.zip

Installation

# One-liner (recommended)
curl -fsSL "https://raw.githubusercontent.com/Dicklesworthstone/giil/main/install.sh?v=3.0.0" | bash

# Verified installation
GIIL_VERIFY=1 curl -fsSL .../install.sh | bash

# System-wide
GIIL_SYSTEM=1 curl -fsSL .../install.sh | bash

# Manual
curl -fsSL https://raw.githubusercontent.com/Dicklesworthstone/giil/main/giil -o ~/.local/bin/giil
chmod +x ~/.local/bin/giil

Uninstallation

rm ~/.local/bin/giil
rm -rf ~/.cache/giil
rm -rf ~/.cache/ms-playwright  # If no other Playwright tools

Security & Privacy

  • Local execution: All processing happens on your machine
  • No telemetry: No data sent anywhere except to cloud services
  • No authentication stored: Uses public share mechanism
  • No cookies saved: Browser context is ephemeral
  • Temp file cleanup: Downloaded files cleaned up after processing

Integration with Flywheel

ToolIntegration
Claude CodeDownload screenshots for visual debugging via SSH
NTMShare images between multi-agent sessions
Agent MailAttach downloaded images to agent messages
CASSSearch sessions that used giil for image context

Вставить в README

Ссылка на карточку для вашего README — без картинок и счётчиков.

[DarkPlay: giil](https://darkplay.ru/ai/skills/aiskillstore-marketplace-giil)

Из того же репозитория

when-profiling-performance-use-performance-profiler Система профилирования производительности, поиска узких мест и оптимизации. ★486 when-managing-token-budget-use-token-budget-advisor Управление бюджетом токенов: оценка расхода, анализ сложности, стратегии разбиения. ★486 when-optimizing-agent-learning-use-reasoningbank-intelligence Адаптивное обучение с ReasoningBank: распознавание паттернов и оптимизация стратегий. ★486 when-optimizing-prompts-use-prompt-architect Фреймворк для анализа, создания и улучшения промптов на основе доказательных техник. ★486 when-optimizing-prompts-use-prompt-optimization-analyzer Диагностика промптов: оценка качества, поиск антипаттернов и лишних токенов. ★486 when-orchestrating-swarm-use-swarm-orchestration Оркестрация сложного роя агентов с декомпозицией задач и синтезом результатов. ★486 when-releasing-software-use-github-release-management Оркестрация релизов GitHub: версионирование, тестирование, деплой и откат. ★486 when-reviewing-github-pr-use-github-code-review Ревью pull request в GitHub с параллельным анализом специализированными агентами. ★486

Похожие скиллы и другие разделы каталога

Популярное в разделе «Скиллы»

Самые востребованные скиллов раздела по установкам и звёздам.

find-skillsvercel-labs · Помогает находить и устанавливать навыки агентов по запросам вроде «как сделать X»…
4 400 000 устан.
grill-memattpocock · Настойчивое интервью для доработки плана или дизайна.
1 600 000 устан.
hyperframesheygen-com · Обязательная точка входа для любых задач по видео, анимации и motion-графике в…
1 600 000 устан.
hyperframes-cliheygen-com · Цикл разработки HyperFrames CLI: init, add, render, preview, publish и другие команды.
1 600 000 устан.
agent-browservercel-labs · CLI для автоматизации браузера для ИИ-агентов: навигация по страницам, заполнение форм…
1 600 000 устан.
media-useheygen-com · Agent Media OS: единый навык для медиа в HyperFrames — BGM, SFX, изображения, голос, LUT.
1 500 000 устан.
hyperframes-registryheygen-com · Установка и подключение блоков реестра в композиции HyperFrames через add и catalog.
1 400 000 устан.
grill-with-docsmattpocock · Настойчивое интервью для доработки плана или дизайна, попутно создающее документацию (ADR…
1 300 000 устан.
improve-codebase-architecturemattpocock · Поиск в кодовой базе возможностей для углубления, визуальный HTML-отчёт о них и детальный…
1 300 000 устан.
tddmattpocock · Разработка через тестирование (TDD): red-green-refactor и интеграционные тесты.
1 300 000 устан.

Лучшие ИИ-инструменты для генерации изображений

Генерация изображений

Подборка нейросетей для генерации изображений от фотореализма до концепт-арта. Сервисы, которые экономят часы ручной работы, создавая визуал для блогов, рекламы и дизайна за минуты

MagviMagvi
По запросу
5.0
DALL-E 3OpenAI
По подписке
5.0
SupaLabSupalab
По запросу
5.0
Freestyling.aiFreestyling
Есть бесплатный тариф
4.9
ArtGeneration.meArtgeneration
Есть бесплатный тариф
4.9
BigjpgBigjpg
По запросу
4.9
Художник от VKVK
Бесплатно
4.9
Wonderink — ИИ-книги
Есть бесплатный тариф
4.8
Avato AI12ai
По запросу
4.8
Virton AIVirton
По запросу
4.8

Лучшие ИИ-инструменты для генерации видео

Генерация видео

Подборка нейросетей для генерации и монтажа видео. Инструменты, которые превращают текст в готовые ролики, экономят часы на съемках и постпродакшне. Подходит для SMM-специалистов,

VEED.IOVeed
По запросу
5.0
MootionMootion
По запросу
5.0
FlyviFlyvi
Есть бесплатный тариф
4.9
Google Veo 3.1Google
Платно
4.9
Sora (OpenAI)OpenAI
Платно
4.9
PikaPika
Платно
4.9
captions space
Есть бесплатный тариф
4.8
Клайп
Есть бесплатный тариф
4.8
viralpulse.appViralpulse
По запросу
4.8
Viral Maker AIViral-maker
Есть бесплатный тариф
4.8

Лучшие ИИ-инструменты для генерации текста и копирайтинга

Генерация текста и копирайтинг

Подборка нейросетей для генерации текстов и копирайтинга. Сервисы, которые помогают создавать статьи, посты и рекламные объявления с нуля или по черновику, экономя часы рутинной ра

NeuroscribeNeuroscribe
Есть бесплатный тариф
5.0
GoGPTGogpt
По запросу
5.0
ChatsonicChatsonic
По запросу
4.9
НейроТекстерNeuro-texter
По запросу
4.9
ChatGPTOpenAI
По подписке
4.9
Редактум
Есть бесплатный тариф
4.8
ChadGPTChadgpt
По запросу
4.8
Cosmo ScribeCosmoscribe
Есть бесплатный тариф
4.8
Memo HelperCopilot33
По запросу
4.8
LibraChatLibrachat
Есть бесплатный тариф
4.8