google-image-search by glebis/claude-skills
npx skills add https://github.com/glebis/claude-skills --skill google-image-search使用 Google 自定义搜索 API 搜索图片,具备智能评分和基于 LLM 的选择功能。
/opt/homebrew/bin/llm 的 llm CLI将凭据存储在 .env 文件中:
Google-Custom-Search-JSON-API-KEY=your_key
Google-Custom-Search-CX=your_cx
OPENROUTER_API_KEY=your_openrouter_key
搜索单个术语:
python3 ~/.claude/skills/google-image-search/scripts/google_image_search.py \
--query "neural interface wearable device" \
--output-dir ./images \
--num-results 5
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
从 JSON 配置处理多个查询:
python3 ~/.claude/skills/google-image-search/scripts/google_image_search.py \
--config image_queries.json \
--output-dir ./images \
--llm-select
使用 LLM 从术语列表创建 JSON 配置:
python3 ~/.claude/skills/google-image-search/scripts/google_image_search.py \
--generate-config \
--terms "AlterEgo wearable" "sEMG electrodes" "BCI headset" \
--output my_queries.json
从笔记中提取视觉术语,查找图片,并插入到标题下方:
python3 ~/.claude/skills/google-image-search/scripts/google_image_search.py \
--enrich-note ~/Brains/brain/Research/neural-interfaces.md
此模式:
| 选项 | 描述 |
|---|---|
--query TEXT | 简单的单个查询 |
--config FILE | 用于批处理的 JSON 配置 |
--generate-config | 从 --terms 生成配置 |
--enrich-note FILE | 丰富 Obsidian 笔记 |
--output-dir DIR | 保存图片的位置 |
--urls-only | 仅返回 URL,不下载 |
--llm-select | 使用 LLM 选择最佳图片(默认:开启) |
--no-llm-select | 禁用 LLM 选择 |
--num-results N | 每个查询的结果数(默认:5) |
--dry-run | 显示将要执行的操作 |
每个条目支持:
{
"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。
图片根据以下标准评分:
评分后,LLM 根据以下条件从候选图片中挑选最佳图片:
LLM 会评估真实性、清晰度以及对技术受众的相关性。
在 Obsidian 知识库中时:
.obsidian 文件夹自动检测知识库根目录Attachments)![[image.png|alt text]]| 文件 | 用途 |
|---|---|
google_image_search.py | 主入口点 |
api.py | Google 自定义搜索 API |
config.py | 凭据和配置处理 |
download.py | 使用魔数字节下载图片 |
evaluate.py | 基于关键字的评分 |
llm_select.py | LLM 选择和术语提取 |
obsidian.py | 知识库检测和丰富 |
output.py | Markdown 输出生成 |
每周安装数
186
代码仓库
GitHub 星标数
61
首次出现
2026 年 1 月 24 日
安全审计
安装于
opencode165
gemini-cli164
cursor160
codex157
github-copilot154
kimi-cli146
Search for images using Google Custom Search API with intelligent scoring and LLM-based selection.
/opt/homebrew/bin/llmStore credentials in .env:
Google-Custom-Search-JSON-API-KEY=your_key
Google-Custom-Search-CX=your_cx
OPENROUTER_API_KEY=your_openrouter_key
Search for a single term:
python3 ~/.claude/skills/google-image-search/scripts/google_image_search.py \
--query "neural interface wearable device" \
--output-dir ./images \
--num-results 5
Process multiple queries from JSON config:
python3 ~/.claude/skills/google-image-search/scripts/google_image_search.py \
--config image_queries.json \
--output-dir ./images \
--llm-select
Create JSON config from a list of terms using LLM:
python3 ~/.claude/skills/google-image-search/scripts/google_image_search.py \
--generate-config \
--terms "AlterEgo wearable" "sEMG electrodes" "BCI headset" \
--output my_queries.json
Extract visual terms from note, find images, and insert below headings:
python3 ~/.claude/skills/google-image-search/scripts/google_image_search.py \
--enrich-note ~/Brains/brain/Research/neural-interfaces.md
This mode:
| Option | Description |
|---|---|
--query TEXT | Simple single query |
--config FILE | JSON config for batch |
--generate-config | Generate config from --terms |
--enrich-note FILE | Enrich Obsidian note |
--output-dir DIR | Where to save images |
--urls-only |
Each entry supports:
{
"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
}
See references/api_config_reference.md for full documentation.
Images are scored based on:
After scoring, LLM picks the best image from top candidates based on:
The LLM evaluates authenticity, clarity, and relevance for technical audiences.
When in an Obsidian vault:
.obsidian folderAttachments)![[image.png|alt text]]| File | Purpose |
|---|---|
google_image_search.py | Main entry point |
api.py | Google Custom Search API |
config.py | Credentials and config handling |
download.py | Image download with magic bytes |
evaluate.py | Keyword-based scoring |
llm_select.py | LLM selection and term extraction |
Weekly Installs
186
Repository
GitHub Stars
61
First Seen
Jan 24, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
opencode165
gemini-cli164
cursor160
codex157
github-copilot154
kimi-cli146
Skills CLI 使用指南:AI Agent 技能包管理器安装与管理教程
31,600 周安装
| Return URLs only, no download |
--llm-select | Use LLM to pick best image (default: on) |
--no-llm-select | Disable LLM selection |
--num-results N | Results per query (default: 5) |
--dry-run | Show what would be done |
obsidian.py | Vault detection and enrichment |
output.py | Markdown output generation |