# Image Search

> Search the web for images (photos, logos, graphics) and download them with Typst embedding code. Use when the user needs real-world images, company logos, or existing graphics for documents.

- **Type:** Skill
- **Install:** `agentstack add skill-clearsmog-claude-skills-image-search`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [clearsmog](https://agentstack.voostack.com/s/clearsmog)
- **Installs:** 0
- **Category:** [AI & ML](https://agentstack.voostack.com/c/ai-and-ml)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [clearsmog](https://github.com/clearsmog)
- **Source:** https://github.com/clearsmog/claude-skills/tree/main/image-search
- **Website:** https://github.com/clearsmog/claude-skills

## Install

```sh
agentstack add skill-clearsmog-claude-skills-image-search
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

Parse `$ARGUMENTS` into flags for the bundled script and run it in **one** Bash call. The script handles search, download, filename generation, and Typst code output.

Flags: `query` (positional), `--logo`, `--stock`, `--url `, `-d` dir, `-o` output, `-n` count, `--size`, `--type`, `--width`, `--caption "..."`

Pass `--typst` when generating images for Typst documents (the typical case). If `--output`/`-o` is not given, omit it (script auto-generates from query + dir).

Run exactly one command:

```bash
SERPAPI_KEY="$SERPAPI_KEY" uv run --script {baseDir}/scripts/image_search.py "" --typst [other flags...]
```

If SERPAPI_KEY is empty in this shell, read it directly from fish universal variables (avoids shell greeting pollution): `` `printf '%b' "$(sed -n 's/.*SERPAPI_KEY://p' ~/.config/fish/fish_variables)"` ``.

For `--stock` mode, also forward Unsplash/Pexels keys if available:
```bash
SERPAPI_KEY="$SERPAPI_KEY" UNSPLASH_ACCESS_KEY="$UNSPLASH_ACCESS_KEY" PEXELS_API_KEY="$PEXELS_API_KEY" uv run --script {baseDir}/scripts/image_search.py "" --stock --typst [other flags...]
```

Print the script's stdout to the user. Done.

## Modes

| Mode | Flag | Behavior |
|------|------|----------|
| Image search (default) | none | SerpAPI -> DuckDuckGo fallback -> download best match |
| Logo lookup | `--logo` | Logo.dev -> image search fallback |
| Stock photos | `--stock` | Unsplash -> Pexels -> image search fallback (license-clear) |
| Direct URL | `--url ` | Download image directly from URL |

## Environment

Zero API keys required — works via DuckDuckGo by default. Each key unlocks a better tier:

| Key | Purpose |
|-----|---------|
| `SERPAPI_KEY` | Google Images (best quality) |
| `UNSPLASH_ACCESS_KEY` | Stock photos via Unsplash |
| `PEXELS_API_KEY` | Stock photos via Pexels |

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [clearsmog](https://github.com/clearsmog)
- **Source:** [clearsmog/claude-skills](https://github.com/clearsmog/claude-skills)
- **License:** MIT
- **Homepage:** https://github.com/clearsmog/claude-skills

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-clearsmog-claude-skills-image-search
- Seller: https://agentstack.voostack.com/s/clearsmog
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
