exa-search
Search the web, retrieve page contents, get cited answers, and gather research or code context using the local Exa CLI. Use this skill whenever the user wants Exa-powered web research, semantic search, recent source discovery, domain-filtered search, similar-page discovery, URL content extraction, or web-grounded answers with citations. Common scenarios include finding current sources before summarizing a topic, searching with domain or date filters, pulling page text from known URLs, finding pages similar to a reference URL, and gathering compact web context for technical questions. Prefer this skill when the user explicitly mentions Exa or when Exa CLI is the intended search tool.
- License 许可
- MIT
- 所属仓库
- zuzu59/z-skills
- 最近更新
- 2026-09-30
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- exa-search
- description
- Search the web, retrieve page contents, get cited answers, and gather research or code context using the local Exa CLI. Use this skill whenever the user wants Exa-powered web research, semantic search, recent source discovery, domain-filtered search, similar-page discovery, URL content extraction, or web-grounded answers with citations. Common scenarios include finding current sources before summarizing a topic, searching with domain or date filters, pulling page text from known URLs, finding pages similar to a reference URL, and gathering compact web context for technical questions. Prefer this skill when the user explicitly mentions Exa or when Exa CLI is the intended search tool.
02 资源文件 1
- 参考文档agents/openai.yaml194 B
03 SKILL.md 正文
Exa Search
Use the local exa-cli installation to search the web, inspect URLs, and produce grounded answers.
Quick Start
Prefer exa-cli from PATH.
If it is missing, check ~/.local/bin/exa-cli.
The local project source is ~/.cli/exa-cli.
Verify availability and auth before doing substantive work:
exa-cli --help
exa-cli auth test
If exa-cli is not installed at all, clone and link the local CLI:
git clone https://github.com/melvynx/exa-cli.git ~/.cli/exa-cli
cd ~/.cli/exa-cli && bun install && bun run build
mkdir -p ~/.local/bin
ln -sf ~/.cli/exa-cli/dist/exa-cli.js ~/.local/bin/exa-cli
chmod +x ~/.local/bin/exa-cli
# ensure ~/.local/bin is on PATH (add to ~/.zshrc if missing):
# export PATH="$HOME/.local/bin:$PATH"
If authentication is missing or invalid:
exa-cli auth set <token>
exa-cli auth test
Workflow
- Choose the smallest command that matches the task.
- Use
--jsonwhen calling the CLI programmatically. - Start with concise output, then add
--text,--summary, or--highlightsonly when needed. - Use domain, date, and category filters when freshness or source quality matters.
- Summarize findings with the returned URLs so the final answer stays grounded.
Command Selection
Use exa-cli search query for normal web research and source discovery.
exa-cli search query --query "latest AI research" --json
exa-cli search query --query "best React frameworks" --type neural --num-results 5 --json
exa-cli search query --query "SpaceX news" --start-date 2024-01-01 --category news --summary --json
Use exa-cli search find-similar when you already have one strong URL and want neighboring sources.
exa-cli search find-similar --url "https://example.com" --num-results 5 --json
Use exa-cli contents get when you already know the URL or URLs and need the page content.
exa-cli contents get --urls "https://example.com" --text --json
exa-cli contents get --urls "https://a.com,https://b.com" --summary --json
Use exa-cli answer query when the user wants a direct answer grounded in web citations.
exa-cli answer query --query "What is the latest valuation of SpaceX?" --json
exa-cli answer query --query "Who won the 2024 election?" --text --json
Use exa-cli context get when you need compact research or code context under a token budget.
exa-cli context get --query "how to use React hooks" --tokens-num 4000 --json
exa-cli context get --query "Python async await patterns" --tokens-num 8000 --json
Query Guidance
Use the user's full intent as the query whenever possible. Avoid single-word queries unless the task is intentionally broad.
Prefer these patterns:
- Current events or recent changes: add
--start-date,--end-date, or a date in the query. - Source curation: add
--include-domainsor--exclude-domains. - Narrowing intent: use
--categoryfornews,company,research_paper,pdf, ortweet. - Deep inspection: add
--text,--summary, or--highlightsonly after you have the right result set.
Common Patterns
Domain-filtered search:
exa-cli search query --query "React server components caching" --include-domains react.dev,nextjs.org --json
Recent news scan:
exa-cli search query --query "OpenAI funding" --category news --start-date 2026-03-01 --num-results 5 --json
Follow-up content fetch after search:
exa-cli contents get --urls "https://example.com/post-1,https://example.com/post-2" --text --json
Grounded answer first, manual inspection second:
exa-cli answer query --query "What changed in Bun's package manager recently?" --json
Error Handling
If exa-cli auth test fails, tell the user the Exa token is missing or invalid and ask them to authenticate with exa-cli auth set.
If the CLI is missing from PATH, try ~/.local/bin/exa-cli before assuming it is not installed.
If a query returns weak results:
- Rewrite the query with more concrete intent.
- Add filters for domain, category, or date.
- Switch from
answer querytosearch querypluscontents getwhen you need tighter control over sources.
Common Mistakes
- Do not start with
--texton broad searches unless you actually need page bodies. - Do not use vague one-word queries when a full natural-language query is available.
- Do not rely on
answer queryalone for high-stakes topics if you should inspect the cited URLs directly. - Do not fetch contents for many URLs before narrowing the result set with search.
04 同仓库更多 Skills
writing-great-skills
Reference for writing and editing skills well — the vocabulary and principles that make a skill predictable.
use-style
Apply named visual style guides to landing pages, app shells, and UI. Use for $use-style, /useskill, list styles, or styles like ios-app, grid, vercel, black-grid, stripe, linear, raycast, gumroad, dusk, or luma.
use-goal
Use when the user asks to create, draft, set, start, or refine a Codex or Claude Code `/goal` objective for persistent multi-turn work.
use-fable
Orchestrator mode for Fable: Fable thinks, plans, and reviews while Codex CLI and subagents execute all heavy work. Use when the user invokes /use-fable, says 'use fable', 'fable mode', 'orchestrator mode', or wants to save Fable tokens/rate limits.
use-delegate
Delegation mode: the host agent (Claude or Codex) plans and reviews while heavy work runs on cheap executors: OpenCode Kimi K3, Codex GPT-5.6 terra/sol. Use when the user invokes /use-delegate, says 'use delegate', 'delegate mode', 'orchestrator mode', or wants to save tokens/rate limits.
use-artifacts
Create Claude-style local HTML artifacts under ~/.agents/artifacts. Use for plans, prototypes, visualizations, dashboards, diagrams, options, or substantial reusable content, with a portable local runtime and no Anthropic API.