Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

smart-image-finder

БесплатноЗапускает вложенные скриптыНе проверен

Smart image search and download tool for AI agents. Three methods: news website extraction, Brave image search, AI generation. Use cases: article…

jiaxiaojunQAQот jiaxiaojunQAQ★ 35 звёзд на GitHub

Об этом скилле

Smart Image Finder

A complete solution for AI agents to find high-quality images for articles, dashboards, and content creation.

No browser required — all methods work via command line in the background.

Core Methods

Method Best For Pros Cons
News Site Extraction Specific news events Authentic, high-res, authoritative Need to know source
Brave Image Search General keywords Fast, free, good relevance Variable quality
AI Generation Concept art, custom visuals Fully customizable Requires good prompts

Method 1: News Website High-Res Extraction (No Browser)

Workflow: curl + grep (Recommended)

Extract image URLs directly from HTML without opening a browser:

# Step 1: Fetch page HTML and extract image URLs
curl -sL "https://www.reuters.com/world/article-slug/" | \
  grep -oE 'https://www\.reuters\.com/resizer/v2/[^"]+\.jpg[^"]*' | head -3

# Step 2: Download with HD parameters
curl -sL -o photo.jpg "https://www.reuters.com/resizer/v2/xxx.jpg?width=3000&quality=100"

# Step 3: Verify it's actually an image
file photo.jpg  # Should show: JPEG image data

Source-Specific Extraction Patterns

# Reuters
curl -sL "$URL" | grep -oE 'https://www\.reuters\.com/resizer/v2/[^"]+\.jpg[^"]*' | head -3

# TechCrunch
curl -sL "$URL" | grep -oE 'https://techcrunch\.com/wp-content/uploads/[^"]+\.(jpg|png)' | head -3

# Bloomberg
curl -sL "$URL" | grep -oE 'https://assets\.bwbx\.io/images/[^"]+\.(jpg|webp)' | head -3

# BBC
curl -sL "$URL" | grep -oE 'https://ichef\.bbci\.co\.uk/news/[0-9]+/[^"]+\.jpg' | head -3

# France24
curl -sL "$URL" | grep -oE 'https://s\.france24\.com/media/display/[^"]+\.jpg' | head -3

# Spaceflight Now (WordPress)
curl -sL "$URL" | grep -oE 'https://spaceflightnow\.com/wp-content/uploads/[^"]+\.jpg' | head -3

# ThePaper (澎湃)
curl -sL "$URL" | grep -oE 'https://imagepphcloud\.thepaper\.cn/pph/image/[^"]+\.jpg' | head -3

Verified Sources (Direct Download Works)

Tech/AI Category

Source CDN Pattern HD Parameters Notes
TechCrunch techcrunch.com/wp-content/uploads/ ?w=2048 Most stable ✅
Bloomberg assets.bwbx.io/images/ Direct HD WebP format

Politics/International Category

Source CDN Pattern HD Parameters Notes
Reuters reuters.com/resizer/v2/ ?width=3000&quality=100 Most stable ✅
BBC ichef.bbci.co.uk/news/1024/ /1024/ max Limited to 1024px
NBC News media-cldnry.s-nbcnews.com/image/ Direct download Medium size
France24 s.france24.com/media/display/ w:1920 Adjustable ✅

Space/Science Category

Source CDN Pattern HD Parameters Notes
Spaceflight Now spaceflightnow.com/wp-content/uploads/ Remove size suffix WordPress standard

Chinese Sources

Source CDN Pattern Notes
ThePaper (澎湃) imagepphcloud.thepaper.cn/pph/image/ Direct download ✅

Sources Requiring Manual Save

Source Issue Workaround
Guardian URL signature validation Right-click save
The Verge Complex CDN format Use Brave search instead
Wired Page protection Manual save
CNN URL extraction difficult Use Brave search instead
AP News Parameter adjustment fails Save original manually

HD Parameter Quick Reference

# Reuters
?width=3000&quality=100

# TechCrunch
?w=2048

# BBC (replace number in URL)
/1024/  # Max available

# France24
w:1920

# NBC News (URL parameter)
t_fit-1500w

Method 2: Brave Image Search (No Browser)

Best for: Quick general-purpose images, automated workflows.

Basic Usage

# Set API Key (first time)
export BRAVE_API_KEY="your_api_key"

# Search images
curl -s "https://api.search.brave.com/res/v1/images/search?q=keyword&count=10" \
  -H "X-Subscription-Token: $BRAVE_API_KEY" | jq '.results[] | {title, url: .properties.url, width: .properties.width}'

# Get first image URL directly
curl -s "https://api.search.brave.com/res/v1/images/search?q=SpaceX%20Starship&count=1" \
  -H "X-Subscription-Token: $BRAVE_API_KEY" | jq -r '.results[0].properties.url'

Rate Limiting ⚠️

Brave API has rate limits. When making multiple searches:

# Add delay between requests (1-2 seconds recommended)
for query in "query1" "query2" "query3"; do
  curl -s "https://api.search.brave.com/res/v1/images/search?q=$query&count=1" \
    -H "X-Subscription-Token: $BRAVE_API_KEY" | jq -r '.results[0].properties.url'
  sleep 2  # Wait 2 seconds between requests
done

Best practices:

  • Free tier: ~1 request/second max
  • Add sleep 1 or sleep 2 between batch requests
  • If you get 429 (rate limited), wait 60 seconds bef
Полный SKILL.md на GitHub

Установить smart-image-finder в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

README.md_meta.jsonscripts/download.shscripts/verify.sh

FAQ

Что делает скилл smart-image-finder?

Smart image search and download tool for AI agents. Three methods: news website extraction, Brave image search, AI generation. Use cases: article illustrations, news thumbnails, dashboard images, social media posts. Triggers: find image, search photo, download picture, news image, AI generate image, article illustration

Как установить скилл smart-image-finder?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл smart-image-finder запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить smart-image-finder с