Loading...
Loading...
Search and download images via Google Custom Search API with LLM-powered selection. This skill should be used when finding images for articles, presentations, research documents, or enriching Obsidian notes with relevant visuals. Supports simple queries, batch processing from JSON config, automatic config generation from terms, and full note enrichment with automatic image insertion below headings.
npx skill4agent add glebis/claude-skills google-image-search/opt/homebrew/bin/llm.envGoogle-Custom-Search-JSON-API-KEY=your_key
Google-Custom-Search-CX=your_cx
OPENROUTER_API_KEY=your_openrouter_keypython3 ~/.claude/skills/google-image-search/scripts/google_image_search.py \
--query "neural interface wearable device" \
--output-dir ./images \
--num-results 5python3 ~/.claude/skills/google-image-search/scripts/google_image_search.py \
--config image_queries.json \
--output-dir ./images \
--llm-selectpython3 ~/.claude/skills/google-image-search/scripts/google_image_search.py \
--generate-config \
--terms "AlterEgo wearable" "sEMG electrodes" "BCI headset" \
--output my_queries.jsonpython3 ~/.claude/skills/google-image-search/scripts/google_image_search.py \
--enrich-note ~/Brains/brain/Research/neural-interfaces.md| Option | Description |
|---|---|
| Simple single query |
| JSON config for batch |
| Generate config from |
| Enrich Obsidian note |
| Where to save images |
| Return URLs only, no download |
| Use LLM to pick best image (default: on) |
| Disable LLM selection |
| Results per query (default: 5) |
| Show what would be done |
{
"id": "unique-id",
"heading": "Display Heading",
"description": "Context for what image to find",
"query": "Google search query",
"numResults": 5,
"selectionCriteria": "What makes a good image",
"requiredTerms": ["must", "have"],
"optionalTerms": ["bonus", "terms"],
"excludeTerms": ["stock", "clipart"],
"preferredHosts": ["official-site.com"],
"selectionCount": 2
}references/api_config_reference.md.obsidianAttachments![[image.png|alt text]]| File | Purpose |
|---|---|
| Main entry point |
| Google Custom Search API |
| Credentials and config handling |
| Image download with magic bytes |
| Keyword-based scoring |
| LLM selection and term extraction |
| Vault detection and enrichment |
| Markdown output generation |