Skip to main content
skill CX Codex

exa-search · wanshuiyin — Claude Code skill: Exa web search with content

Searches the open web through Exa and returns blogs, docs, news and company pages. Each hit comes back with highlights, full text or a summary.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add wanshuiyin/Auto-claude-code-research-in-sleep --skill exa-search -a claude-code
Open on GitHub

What exa-search does

The skill turns a plain request into Exa parameters: result count, category (research paper, news, company, financial report), content mode (highlights, text, summary, none), domain and date filters. It also runs in reverse. Give it a URL and it looks for pages built like it; give it a list of addresses and it pulls the body of each one.

The work is done by a Python helper, exa_search.py, with three subcommands: search, find-similar and get-contents. The skill walks a fixed path chain to find it — .aris/tools/, tools/, then $ARIS_REPO/tools/ or ~/.aris/repo. If the file is missing, the run stops with an error and a pointer to rerun the installer. There is no quiet switch to a built-in search: output comes from Exa only.

Two things must exist before the first call. Install exa-py with pip install exa-py, and put an Exa key in EXA_API_KEY; a shell profile is the sane place for it. Worth knowing: when the project has a research-wiki/ folder and the query returned papers, those hits get filed into the wiki. Blog posts and news stay out.

What it helps with

  • pull fresh docs and articles on a topic in one call
  • surface pages similar to a given URL
  • grab page text or a summary along with search hits
  • limit results to chosen domains and dates
  • collect recent items within a news category

Example prompts for the agent

  • Search with exa-search for RAG pipeline write-ups, top 5 only
  • /exa-search "diffusion models" — category: research paper
  • Find pages similar to https://arxiv.org/abs/2301.07041

How to install exa-search

1Skills CLI (Vercel)

npx skills add wanshuiyin/Auto-claude-code-research-in-sleep --skill exa-search -a claude-code

2Manually: put the files in place

~/.claude/skills/exa-search/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/exa-search/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about exa-search

How do I install exa-search in Claude Code?

Run npx skills add wanshuiyin/Auto-claude-code-research-in-sleep --skill exa-search -a claude-code. The skill lands at ~/.claude/skills/exa-search/SKILL.md.

What does exa-search do?

It queries Exa across the web and lays out results as a table with titles, URLs, dates and extracted content. Similar-page lookup and content fetching for known URLs come with it.

What does exa-search need to run?

The exa-py package and an EXA_API_KEY environment variable holding your Exa key. The helper exa_search.py must also be reachable through .aris/tools/, tools/ or $ARIS_REPO.

Source text

SKILL.md · MIT
---
name: exa-search
description: AI-powered web search via Exa with content extraction. Use when user says "exa search", "web search with content", "find similar pages", or needs broad web results beyond academic databases (arXiv, Semantic Scholar).
argument-hint: "[search-query-or-url]"
allowed-tools: Bash(*), Read, Write
---

# Exa AI-Powered Web Search

Search query: $ARGUMENTS

## Role & Positioning

Exa is the **broad web search** source with built-in content extraction:

| Skill | Best for |
|------|----------|
| `/arxiv` | Direct preprint search and PDF download |
| `/semantic-scholar` | Published venue papers (IEEE, ACM, Springer), citation counts |
| `/deepxiv` | Layered reading: search, brief, section map, section reads |
| `/exa-search` | Broad web search: blogs, docs, news, companies, research papers — with content extraction |

Use Exa when you need results beyond academic databases, or when you want content (highlights, full text, summaries) extracted alongside search results.

## Constants

- **EXA_FETCHER** — canonical name `exa_search.py`, resolved per
  [`shared-references/integration-contract.md`](../shared-references/integration-contract.md) §2
  (Policy D1 — standalone `/exa-search` has no documented fallback,
  so unresolved helper terminates with an explicit error).
- **MAX_RESULTS = 10** — Default number of results to return.

> Overrides (append to arguments):
> - `/exa-search "RAG pipelines" — max: 5` — top 5 results
> - `/exa-search "diffusion models" — category: research paper` — research papers only
> - `/exa-search "startup funding" — category: news, start date: 2025-01-01` — recent news
> - `/exa-search "transformer" — content: text, max chars: 8000` — full text mode
> - `/exa-search "transformer" — content: summary` — LLM-generated summaries
> - `/exa-search "transformer" — domains: arxiv.org,huggingface.co` — domain filter
> - `/exa-search "https://arxiv.org/abs/2301.07041" — similar` — find similar pages

## Setup

Exa requires the `exa-py` SDK and an API key:

```bash
pip install exa-py
```

Set your API key:
```bash
export EXA_API_KEY=your-key-here
```

Get a key from [exa.ai](https://exa.ai).

## Workflow

### Step 1: Parse Arguments

Parse `$ARGUMENTS` for:
- **query**: The search query (required) or a URL (for `find-similar` mode)
- **similar**: If present, use `find-similar` mode instead of search
- **max**: Override MAX_RESULTS
- **category**: `research paper`, `news`, `company`, `personal site`, `financial report`, `people`
- **content**: `highlights` (default), `text`, `summary`, `none`
- **max chars**: Max characters for content extraction
- **type**: Search type — `auto` (default), `neural`, `fast`, `instant`
- **domains**: Comma-separated include domains
- **exclude domains**: Comma-separated exclude domains
- **include text**: Phrase that must appear in results
- **exclude text**: Phrase to exclude from results
- **start date**: ISO 8601 date — only results after this
- **end date**: ISO 8601 date — only results before this
- **location**: Two-letter ISO country code

### Step 2: Locate Script

Resolve `$EXA_FETCHER` via the canonical strict-safe chain (see
[`shared-references/integration-contract.md`](../shared-references/integration-contract.md) §2).
Policy D1 cascade: there is no native inline fallback for Exa
(retrieval requires the `exa-py` SDK + API key, which lives in the
fetcher), so unresolved helper means the SKILL cannot produce its
primary output — fail with explicit remediation.

```bash
cd "$(git rev-parse --show-toplevel 2>/dev/null || pwd)" || exit 1
if [ -z "${ARIS_REPO:-}" ] && [ -f .aris/installed-skills.txt ]; then
    ARIS_REPO=$(awk -F'\t' '$1=="repo_root"{print $2; exit}' .aris/installed-skills.txt 2>/dev/null) || true
fi
if [ -z "${ARIS_REPO:-}" ] && [ -f "$HOME/.aris/repo" ]; then
    ARIS_REPO=$(cat "$HOME/.aris/repo" 2>/dev/null) || true
fi
EXA_FETCHER=".aris/tools/exa_search.py"
[ -f "$EXA_FETCHER" ] || EXA_FETCHER="tools/exa_search.py"
[ -f "$EXA_FETCHER" ] || { [ -n "${ARIS_REPO:-}" ] && EXA_FETCHER="$ARIS_REPO/tools/exa_search.py"; }
[ -f "$EXA_FETCHER" ] || {
  echo "ERROR: exa_search.py not resolved at .aris/tools/, tools/, \$ARIS_REPO/tools/, or via ~/.aris/repo." >&2
  echo "       Fix: rerun bash tools/install_aris.sh or smart_update.sh (refreshes ~/.aris/repo), export ARIS_REPO, or copy the helper to tools/." >&2
  echo "       Also ensure 'exa-py' is installed: pip install exa-py" >&2
  exit 1
}
```

### Step 3: Execute Search

**Standard search:**
```bash
python3 "$EXA_FETCHER" search "QUERY" --max 10 --content highlights
```

**With filters:**
```bash
python3 "$EXA_FETCHER" search "QUERY" --max 10 \
  --category "research paper" \
  --start-date 2025-01-01 \
  --content text --max-chars 8000
```

**Find similar pages:**
```bash
python3 "$EXA_FETCHER" find-similar "URL" --max 5 --content highlights
```

**Get content for known URLs:**
```bash
python3 "$EXA_FETCHER" get-contents "URL1" "URL2" --content text
```

### Step 4: Present Results

Format results as a structured table:

```
| # | Title | Authors | Venue/Publisher | URL | Date | Key Content |
|---|-------|---------|-----------------|-----|------|-------------|
```

For each result:
- Show title and URL
- Show published date if available
- Show highlights, text excerpt, or summary depending on content mode
- Flag particularly relevant results
- **For `category: "research paper"` hits only** — also record authors
  (from Exa's `author`/`authors` fields, or fallback: parse from the
  result snippet) and venue/publisher (from `publisher`, `source`, or
  the domain hosting the paper). These are needed by Step 6's wiki
  hook; if either is unavailable for a given hit, skip wiki ingest
  for that one hit and log a note.

### Step 5: Offer Follow-up

After presenting results, suggest:
- **Deepen**: "I can fetch full text for any of these results"
- **Find similar**: "I can find pages similar to any result"
- **Narrow**: "I can re-search with domain/date/text filters"

### Step 6: Update Research Wiki (if active, research-paper results only)

**Required when `research-wiki/` exists AND the search returned
results of `category: "research paper"`**; skip silently otherwise.
General web results (blog posts, docs, news) are **not** ingested —
the wiki is for papers only.

When the predicates hold, resolve `$WIKI_SCRIPT` per the canonical
chain at
[`shared-references/wiki-helper-resolution.md`](../shared-references/wiki-helper-resolution.md)
(Variant B — warn-and-skip). For each research paper hit, try to
recover an arXiv ID from the URL (`arxiv.org/abs/<id>`); if present,
use `--arxiv-id`. Otherwise fall back to manual metadata:

```bash
if [ -d research-wiki/ ] and query category was "research paper":
    cd "$(git rev-parse --show-toplevel 2>/dev/null || pwd)" || exit 1
    ARIS_REPO="${ARIS_REPO:-$(awk -F'\t' '$1=="repo_root"{print $2; exit}' .aris/installed-skills.txt 2>/dev/null)}"
    if [ -z "${ARIS_REPO:-}" ] && [ -f "$HOME/.aris/repo" ]; then
      ARIS_REPO=$(cat "$HOME/.aris/repo" 2>/dev/null) || true
    fi
    WIKI_SCRIPT=".aris/tools/research_wiki.py"
    [ -f "$WIKI_SCRIPT" ] || WIKI_SCRIPT="tools/research_wiki.py"
    [ -f "$WIKI_SCRIPT" ] || { [ -n "${ARIS_REPO:-}" ] && WIKI_SCRIPT="$ARIS_REPO/tools/research_wiki.py"; }
    [ -f "$WIKI_SCRIPT" ] || {
      echo "WARN: research_wiki.py not found; exa-search results delivered, wiki ingest skipped. Fix: bash tools/install_aris.sh or smart_update.sh (refreshes ~/.aris/repo), export ARIS_REPO, or cp <ARIS-repo>/tools/research_wiki.py tools/." >&2
      WIKI_SCRIPT=""
    }
    [ -n "$WIKI_SCRIPT" ] && for each research-paper hit in results:
        if URL matches arxiv.org/abs/<id>:
            python3 "$WIKI_SCRIPT" ingest_paper research-wiki/ \
                --arxiv-id "<id>"
        else:
            python3 "$WIKI_SCRIPT" ingest_paper research-wiki/ \
                --title "<title>" --authors "<authors joined by , >" \
                --year <year> --venue "<venue or publisher>"
```

The helper handles slug / dedup / page / index / log — **do not
handwrite `papers/<slug>.md`**. See
[`shared-references/integration-contract.md`](../shared-references/integration-contract.md).

## Key Rules
- Always check that `EXA_API_KEY` is set before searching
- Default to `highlights` content mode for a good balance of speed and context
- Use `category: "research paper"` when the user is clearly looking for academic content
- Use `text` content mode when the user needs full page content
- Combine with `/arxiv` or `/semantic-scholar` for comprehensive literature coverage

© wanshuiyin · MIT · wanshuiyin/Auto-claude-code-research-in-sleep

Similar skills

Everything for AI and ML →

exa-search by other authors comes first.

exa-search affaan-m Wires Exa neural search into your agent: fresh web pages, code examples, company and people lookups. Useful when you need search instead of model guesswork. CX Codex +1 4,500installs exa-search K-Dense-AI Skill for searching scientific and technical content via Exa with text extraction from pages and PDFs in batches. Supports filtering by publication category and academic domains. CX Codex +1 1,700installs skill-creator official anthropics Creates and refines skills, then tests them with prompts, evaluations, and performance checks. 414,180installs writing-for-agents Matt Pocock Guidance for writing skills and agent-facing documents. Use it when editing AGENTS.md, CLAUDE.md, or reference files reached from them. 466,719installs media-use heygen-com Finds or generates media for HyperFrames videos, including voiceovers, music, cutouts, and color grades. Stores files locally in assets. CX Codex +1 1,100,000installs mcp-builder official anthropics This skill walks through building an MCP server in TypeScript or Python, from reading the protocol spec to writing tests and evaluation questions. 130,949installs subagent-driven-development Jesse Vincent This skill runs an implementation plan through fresh subagents for independent tasks and reviews each result. Use it for multi-step work in one session. CX Codex 237,746installs orchestration stablyai Coordinates supervised Orca workers with task DAGs, decision gates, and threaded messages. Fits workflows that split work across multiple agents. CX Codex +1 349,800installs

From the same set78

figure-spec Builds editable SVG diagrams from structured FigureSpec JSON. Use it for architecture, workflow, and pipeline figures where layout and connections must stay precise. CX Codex +1 456installs jurisdiction-format Recompiles a patent draft into filing format for CNIPA, USPTO or EPO. Handy once the claims and description are written and the national formatting is the last thing left. CX Codex +1 455installs vast-gpu Evaluates training tasks, rents cost-effective GPU instances on vast.ai, and manages their lifecycle. Handy when you need cloud compute without local hardware. CX Codex +1 453installs writing-systems-papers Lays out a 10–12 page systems paper for OSDI, SOSP, ASPLOS, NSDI and EuroSys paragraph by paragraph: page budget per section and what goes in each. CX Codex +1 447installs experiment-queue Orchestrates ML experiments on remote SSH GPU servers. Manages OOM retries, cleans stale screen sessions, and coordinates multi-seed wave execution. CX Codex +1 437installs overleaf-sync Keeps a local paper directory and an Overleaf project in sync, so collaborators edit in the web UI while ARIS audits run on the local copy. CX Codex +1 441installs paper-illustration-image2 Generates publication-quality academic figures via a local Codex app-server bridge. It uses Claude for planning and visual review while offloading raster rendering to Codex. CX Codex +1 439installs qzcli A skill that lets your agent drive GPU compute jobs on the 启智 platform through qzcli, a kubectl-style CLI. CX Codex +1 426installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor