# Exa Search > Kit de búsqueda web con Exa, orientado a contenido científico y técnico: búsqueda semántica con filtro de artículos de investigación y dominios académicos, y extracción de contenido de URLs por lotes. Fuente: https://skillsagentes.com/skills/k-dense-ai/scientific-agent-skills/exa-search Markdown: https://skillsagentes.com/skills/k-dense-ai/scientific-agent-skills/exa-search.md Repositorio: https://github.com/K-Dense-AI/scientific-agent-skills Autor: K-Dense-AI Licencia: MIT Actualizado: hace 28 días Coste de contexto: 142 tok instalada, 1.3k tok al activarse, 5.5k tok con todos los archivos del bundle Bundle: 5 archivos, 21 KB Permisos que pide: ninguno declarado ## Instalación Un skill son archivos markdown: los mismos archivos valen para cualquier agente y lo único que cambia es el directorio de destino, es decir la bandera `--agent`. Añade `-g` para instalarlo en todos los proyectos de la máquina. ```bash # Claude Code npx -y skills add K-Dense-AI/scientific-agent-skills --skill exa-search --agent claude-code # Cursor npx -y skills add K-Dense-AI/scientific-agent-skills --skill exa-search --agent cursor # Codex npx -y skills add K-Dense-AI/scientific-agent-skills --skill exa-search --agent codex # Gemini CLI npx -y skills add K-Dense-AI/scientific-agent-skills --skill exa-search --agent gemini # Windsurf npx -y skills add K-Dense-AI/scientific-agent-skills --skill exa-search --agent windsurf # Cline npx -y skills add K-Dense-AI/scientific-agent-skills --skill exa-search --agent cline ``` ## Qué hace - Realiza búsquedas web semánticas y de palabras clave con Exa, con opción de sesgar hacia artículos de investigación (category="research paper") - Filtra por dominios académicos (arxiv.org, nature.com, pubmed, etc.) para priorizar fuentes revisadas por pares - Extrae el contenido de una o varias URLs a la vez, incluidos PDFs académicos - Cita fuentes académicas incluyendo autores, año y DOI cuando están disponibles ## Cuándo usarla - Buscar en la web, investigar un tema o encontrar información actual - La consulta es científica o técnica y conviene priorizar artículos de investigación o dominios académicos - El usuario da una URL o pide leer/extraer el contenido de una página, artículo o PDF concreto - Se necesita extraer varias URLs en una sola llamada (extracción por lotes) ## Qué la activa - "Busca artículos de investigación recientes sobre este tema" - "Extrae el contenido de estas tres URLs académicas" - "Busca solo en dominios académicos como arxiv.org y nature.com" - "Descarga y resume este PDF académico" ## Antes de instalar - Requiere el SDK exa-py, una clave EXA_API_KEY y acceso a internet. - Variables de entorno: EXA_API_KEY, SKILL_PATH - makes network requests - needs API credentials ## Archivos - SKILL.md — 5 KB - references/web-extract.md — 2 KB - references/web-search.md — 5 KB - scripts/exa_extract.py — 3 KB - scripts/exa_search.py — 6 KB ## SKILL.md Reproducido tal cual desde K-Dense-AI/scientific-agent-skills bajo MIT. Esta sección es el documento original y está en inglés. # Exa Web Toolkit A skill for web-powered research tasks backed by [Exa](https://exa.ai): web search and URL extraction. Exa's index combines high-quality keyword and semantic retrieval, which makes it well-suited to scientific, technical, and conceptual queries. ## Routing — pick the right capability Read the user's request and match it to one of the capabilities below. Read the corresponding reference file for detailed instructions before running commands. | User wants to... | Capability | Where | |---|---|---| | Look something up, research a topic, find current info | **Web Search** | `references/web-search.md` | | Fetch content from a specific URL (webpage, article, PDF) | **Web Extract** | `references/web-extract.md` | | Install or authenticate | **Setup** | Below | ### Decision guide - **Default to Web Search** for topic lookups, research questions, or "what is X?" queries. When the topic is scientific or technical, pass `--category "research paper"` to bias toward scholarly sources, and/or an academic `--include-domains` allowlist. See `references/web-search.md` for the two-pass academic strategy. - **Use Web Extract** when the user provides a URL or asks you to read/fetch a specific page. Prefer this over the built-in WebFetch for batch extraction (multiple URLs in one call) and for academic PDFs. ### Academic source priority For technical or scientific queries, prefer academic and scientific sources: - Peer-reviewed journal articles and conference proceedings over blog posts or news - Preprints (arXiv, bioRxiv, medRxiv) when peer-reviewed versions aren't available - Institutional and government sources (NIH, WHO, NASA, NIST) over commercial sites - Primary research over secondary summaries Two levers to steer Exa toward scholarly content: 1. `--category "research paper"` biases retrieval toward scholarly sources. 2. `--include-domains` with a scholarly allowlist (arxiv.org, nature.com, pubmed.ncbi.nlm.nih.gov, etc.) restricts the domain pool. Combine both for strictly academic results. See `references/web-search.md` for the full pattern. When citing academic sources, include author names and publication year where available (e.g., [Smith et al., 2025](url)) in addition to the standard citation format. If a DOI is present, prefer the DOI link. --- ## Setup This skill uses the [`exa-py`](https://github.com/exa-labs/exa-py) Python SDK. The scripts in `scripts/` declare their dependencies via PEP 723 inline metadata, so you can run them directly with `uv run` without a separate install step: ```bash uv run --with exa-py python "$SKILL_PATH/scripts/exa_search.py" --help ``` If you prefer a persistent install: ```bash uv pip install "exa-py>=1.14.0" ``` ### Authentication All commands read the API key from the `EXA_API_KEY` environment variable. Get your Exa API key at [dashboard.exa.ai/api-keys](https://dashboard.exa.ai/api-keys). First, check if a `.env` file exists in the project root and contains `EXA_API_KEY`. If so, load it: ```bash dotenv -f .env run -- uv run --with exa-py python "$SKILL_PATH/scripts/exa_search.py" "your query" ``` If `dotenv` isn't available, install it: `uv pip install python-dotenv[cli]`. If there's no `.env`, export the key for the session: ```bash export EXA_API_KEY="your-key" ``` Verify by running any script with `--help` — it will exit cleanly if the key is set and auth-check runs only when a real query is made. ### Tracking header Every script in this skill sets the `x-exa-integration` request header to `k-dense-ai--scientific-agent-skills` so Exa can attribute usage from the K-Dense AI scientific-agent-skills repo to this integration. Do not remove or rename this header when adapting the scripts. --- ## Files in this skill - `SKILL.md` — this file (routing and setup) - `references/web-search.md` — detailed web search reference with academic strategy - `references/web-extract.md` — URL content extraction reference - `scripts/exa_search.py` — CLI wrapper around `client.search_and_contents` - `scripts/exa_extract.py` — CLI wrapper around `client.get_contents` ## Dónde encaja - Categoría: [Investigación](https://skillsagentes.com/categorias/investigacion.md) — Investigación estructurada, búsqueda de fuentes y síntesis. - Creador: [K-Dense-AI](https://skillsagentes.com/creators/k-dense-ai.md) — 163 skills en el directorio - [Todas las skills](https://skillsagentes.com/skills.md) - [Ranking de instalaciones](https://skillsagentes.com/ranking.md) ## Otras skills del mismo repositorio - [Citation Management](https://skillsagentes.com/skills/k-dense-ai/scientific-agent-skills/citation-management.md): Gestión integral de citas académicas: busca en OpenAlex, PubMed y Google Scholar, extrae metadatos precisos, valida citas y genera entradas BibTeX correctamente formateadas. - [Scientific Slides](https://skillsagentes.com/skills/k-dense-ai/scientific-agent-skills/scientific-slides.md): Crea decks de diapositivas y presentaciones para charlas de investigación: PowerPoint, presentaciones de conferencia, seminarios, defensas de tesis. Da estructura, plantillas, guía de tiempos y validación visual. - [Literature Review](https://skillsagentes.com/skills/k-dense-ai/scientific-agent-skills/literature-review.md): Realiza revisiones bibliográficas sistemáticas y completas usando varias bases académicas (PubMed, arXiv, bioRxiv, Semantic Scholar). Genera markdown y PDF con citas verificadas en varios estilos (APA, Nature, Vancouver). - [Infographics](https://skillsagentes.com/skills/k-dense-ai/scientific-agent-skills/infographics.md): Crea infografías profesionales con Nano Banana Pro AI y refinamiento iterativo inteligente. Usa Gemini 3.6 Flash para revisar la calidad e integra investigación con Perplexity Sonar. Soporta 10 tipos, 8 estilos y paletas para daltonismo. - [Latex Posters](https://skillsagentes.com/skills/k-dense-ai/scientific-agent-skills/latex-posters.md): Crea pósteres de investigación profesionales en LaTeX con beamerposter, tikzposter o baposter, para conferencias y comunicación científica: layout, colores, columnas múltiples e integración de figuras. --- Skills Agentes · [Índice de páginas en markdown](https://skillsagentes.com/sitemap.md) · [Inicio](https://skillsagentes.com/index.md)