Turn any AI agent into an AI Scientist. The #1 Agent Skills library for science, used by 250,000+ scientists worldwide. 177 ready-to-use validated skills plus 100+ scientific databases covering biology, chemistry, medicine, and drug discovery. Compatible with Cursor, Claude Code, Codex, Pi, Antigravity, and the open Agent Skills standard.
Python agent-skillsai-scientistbioinformaticschemoinformaticsclaudeclaude-skillsclaudecodeclinical-researchcomputational-biologydata-analysisdrug-discoverygenomicsmaterials-sciencemetabolomicsproteomicsscientific-computingscientific-visualization
review feedback: drop find-similar; remove summary; remove neural/tweet/linkedin profile/pdf; add deep search mode; rebrand integration header to k-dense-ai--scientific-agent-skills; link dashboard.exa.ai/api-keys
Teo Gonzalez Collazo8e6540e97143
diff --git a/docs/scientific-skills.md b/docs/scientific-skills.mdindex 2ce2a8d9..8e365e03 100644--- a/docs/scientific-skills.md+++ b/docs/scientific-skills.md@@ -206,5 +206,5 @@- **What-If Oracle** - Run structured What-If scenario analysis with multi-branch possibility exploration. Use for speculative questions, scenario planning, risk analysis, contingency planning, strategic options evaluation, stress-testing ideas, and thinking through consequences before committing### Web Search & Information Retrieval-- **Exa Search** - Neural (embedding-based) web search, URL content extraction, and find-similar-by-URL via the Exa API. Use for semantic search where keyword matching falls short, scholarly filtering via `category="research paper"` plus academic domain allowlists, batch URL extraction with optional LLM summaries, and surfacing pages related to a reference URL (more papers like this one, competitors of this company)+- **Exa Search** - Web search and URL content extraction via the Exa API. Use for high-quality web search tuned for scientific and technical content, scholarly filtering via `category="research paper"` plus academic domain allowlists, and batch URL extraction- **Parallel Web** - Search the web, extract URL content, and run deep research using the Parallel Chat API and Extract API. Use for web searches, research queries, and general information gathering with synthesized summaries and citationsdiff --git a/scientific-skills/exa-search/SKILL.md b/scientific-skills/exa-search/SKILL.mdindex 1398a4c7..56eb364a 100644--- a/scientific-skills/exa-search/SKILL.md+++ b/scientific-skills/exa-search/SKILL.md@@ -1,6 +1,6 @@---name: exa-search-description: "Web toolkit powered by Exa, with neural (embedding-based) search tuned for scientific and technical content. Use this skill when the user needs to search the web, fetch/extract URL content, or find pages similar to a reference URL. Covers: web search (semantic lookups, research, current info — with optional research-paper category and academic domain filtering), URL extraction (fetching pages, articles, academic PDFs, with optional LLM summaries), and find-similar (given a seed URL, surface related papers, articles, or companies via neural embeddings). Use this skill for web-related tasks when the user wants semantic/neural search, scholarly filtering via category=research paper, or similarity retrieval from a seed URL. Triggers on requests to search, look up, fetch a page, extract an article, find papers like <URL>, or find competitors of <company URL>."+description: "Web toolkit powered by Exa, tuned for scientific and technical content. Use this skill when the user needs to search the web or fetch/extract URL content. Covers: web search (semantic lookups, research, current info — with optional research-paper category and academic domain filtering) and URL extraction (fetching pages, articles, academic PDFs in batch). Use this skill for web-related tasks when the user wants high-quality search or scholarly filtering via category=research paper. Triggers on requests to search, look up, fetch a page, or extract an article."compatibility: Requires exa-py Python SDK, an EXA_API_KEY, and internet access.license: MITmetadata:@@ -11,7 +11,7 @@ metadata:# Exa Web Toolkit-A skill for web-powered research tasks backed by [Exa](https://exa.ai): semantic (neural) web search, URL extraction, and find-similar. Exa's index is embedding-based, which makes it well-suited to scientific, technical, and conceptual queries where the right answer isn't obvious from keyword matches alone.+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@@ -21,15 +21,12 @@ Read the user's request and match it to one of the capabilities below. Read the|---|---|---|| 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` |-| Find pages similar to a reference URL (more papers like this one, competitors of this company) | **Find Similar** | `references/find-similar.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 where you want a focused LLM summary alongside the raw text.-- **Use Find Similar** when the user has a seed URL and wants related content — "more papers like this", "competitors of <company>", "follow-up work to <paper>". This is an Exa specialty: neural embeddings surface semantically related pages that keyword search will miss.-- If the user only describes a topic (no URL), use Web Search, not Find Similar.+- **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@@ -40,7 +37,7 @@ For technical or scientific queries, prefer academic and scientific sources:- Primary research over secondary summariesTwo levers to steer Exa toward scholarly content:-1. `--category "research paper"` biases the neural retrieval itself.+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.@@ -65,7 +62,7 @@ uv pip install "exa-py>=1.14.0"### Authentication-All commands read the API key from the `EXA_API_KEY` environment variable. Get a key at [exa.ai/dashboard](https://exa.ai/dashboard).+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:@@ -85,7 +82,7 @@ Verify by running any script with `--help` — it will exit cleanly if the key i### Tracking header-Every script in this skill sets the `x-exa-integration` request header to `scientific-agent-skills` so Exa can attribute usage to this integration. Do not remove this header when adapting the scripts.+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.---@@ -94,7 +91,5 @@ Every script in this skill sets the `x-exa-integration` request header to `scien- `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-- `references/find-similar.md` — find-similar-by-URL reference- `scripts/exa_search.py` — CLI wrapper around `client.search_and_contents`- `scripts/exa_extract.py` — CLI wrapper around `client.get_contents`-- `scripts/exa_find_similar.py` — CLI wrapper around `client.find_similar_and_contents`diff --git a/scientific-skills/exa-search/references/find-similar.md b/scientific-skills/exa-search/references/find-similar.mddeleted file mode 100644index a059d990..00000000--- a/scientific-skills/exa-search/references/find-similar.md+++ /dev/null@@ -1,57 +0,0 @@-# Find Similar--Find pages similar to: $ARGUMENTS--## When to use--Use **find-similar** when the user already has a reference URL — a specific paper, article, company homepage, or blog post — and wants more like it. Find-similar uses Exa's neural embeddings to surface pages that are semantically related to the seed URL rather than keyword-matched.--Common patterns:-- "Find more papers like this one: <arxiv URL>"-- "Show me competitors of <company URL>"-- "Find follow-up / citation-style work to <paper URL>"-- "What other posts cover the same angle as <blog URL>?"--When the user only describes a topic (no URL), use **web-search** instead.--## Command--Choose a short, descriptive filename (e.g., `similar-to-mixtral`, `egfr-related-work`). Use lowercase with hyphens, no spaces.--```bash-uv run --with exa-py python "$SKILL_PATH/scripts/exa_find_similar.py" "$URL" \- --num-results 10 \- --exclude-source-domain \- --text --highlights \- -o "$FILENAME.json"-```--`--exclude-source-domain` drops results from the same domain as the seed URL. Useful when the seed is from a large site (nature.com, arxiv.org) and you want cross-domain coverage rather than sibling articles on the same platform.--## Refinement options--- `--category "research paper"` when the seed is a scholarly URL and you want only scholarly results back-- `--include-domains` / `--exclude-domains` for tighter filtering on top of the neural match-- `--start-published-date YYYY-MM-DD` to restrict to a time window (e.g., only find recent follow-ups to an older seed paper)--## Academic source strategy--For papers, always add `--category "research paper"`:--```bash-uv run --with exa-py python "$SKILL_PATH/scripts/exa_find_similar.py" "$URL" \- --category "research paper" \- --num-results 15 \- --exclude-source-domain \- --text --highlights \- -o "$FILENAME.json"-```--This biases results toward other scholarly work rather than news write-ups or blog posts about the seed paper.--## Response format--Same conventions as web search:-- Every claim cited inline as `[Author et al., Year](url)` for academic results or `[Source Title](url)` otherwise-- Mandatory **Sources** section at the end, grouped by Academic / Peer-reviewed vs. Other-- Mention the output file path (`$FILENAME.json`) so the user can ask follow-up questionsdiff --git a/scientific-skills/exa-search/references/web-extract.md b/scientific-skills/exa-search/references/web-extract.mdindex 0d6b9b85..30cd51b3 100644--- a/scientific-skills/exa-search/references/web-extract.md+++ b/scientific-skills/exa-search/references/web-extract.md@@ -18,16 +18,14 @@ Content modes:- `--text` (default if nothing else is passed) returns full-text content- `--highlights` returns extracted passages instead of full text-- `--summary "focus area"` returns an LLM summary focused on the given aspect## Academic content handling-When extracting from academic sources (arXiv, PubMed, journal sites, conference proceedings), prefer `--summary` with a focused query, or combine `--text` with `--summary`:+When extracting from academic sources (arXiv, PubMed, journal sites, conference proceedings), use `--text` to get the full paper text:```bashuv run --with exa-py python "$SKILL_PATH/scripts/exa_extract.py" "$URL" \--text \- --summary "abstract, methodology, key findings, and conclusions" \-o "$FILENAME.json"```@@ -42,10 +40,9 @@ Return content as:For academic papers, include structured metadata when available:- **Authors:** list of authors (from the `author` field)- **Published:** from `published_date`-- **Abstract / Summary:** from `summary` if requestedThen the extracted content, with these rules:-- Keep content verbatim — do not paraphrase or summarize unless `--summary` was used+- Keep content verbatim — do not paraphrase or summarize- Parse lists exhaustively — extract EVERY numbered/bulleted item- Strip only obvious noise: nav menus, footers, ads- Preserve all facts, names, numbers, dates, quotesdiff --git a/scientific-skills/exa-search/references/web-search.md b/scientific-skills/exa-search/references/web-search.mdindex 5e881762..6f991fef 100644--- a/scientific-skills/exa-search/references/web-search.md+++ b/scientific-skills/exa-search/references/web-search.md@@ -8,7 +8,6 @@ Choose a short, descriptive filename based on the query (e.g., `ai-chip-news`, ````bashuv run --with exa-py python "$SKILL_PATH/scripts/exa_search.py" "$ARGUMENTS" \- --num-results 10 \--text --highlights \-o "$FILENAME.json"```@@ -19,15 +18,14 @@ uv run --with exa-py python "$SKILL_PATH/scripts/exa_search.py" "$ARGUMENTS" \| Mode | When to use ||---|---|-| `auto` (default) | Exa picks neural vs. keyword per query. Use this unless you have a reason not to. |-| `neural` | Force semantic/embedding retrieval. Best for conceptual or exploratory queries ("papers that propose *alternatives* to attention"). |+| `auto` (default) | Exa's general-purpose search. Use this unless you have a reason not to. || `fast` | Lowest latency. Use for simple lookups where speed matters more than nuance. |+| `deep` | Slowest but highest quality. Use for hard, conceptual, or exhaustive research queries where recall matters more than latency. |**Content modes** — add any combination:- `--text` returns full-text content per result- `--highlights` returns the most relevant passages (good signal-to-noise, lower token cost than full text)-- `--summary` returns an LLM summary; pass a focus string to direct it, e.g. `--summary "experimental methods and sample size"`Default to `--highlights` for broad searches (cheaper, more skimmable). Add `--text` only when you need to quote or extract in detail.@@ -36,7 +34,7 @@ Default to `--highlights` for broad searches (cheaper, more skimmable). Add `--t- `--start-published-date YYYY-MM-DD` / `--end-published-date YYYY-MM-DD` for time-sensitive queries- `--include-domains domain1.com,domain2.com` to restrict to an allowlist- `--exclude-domains spam.com,low-quality.com` to drop a blocklist-- `--category "research paper"` to bias toward scholarly content (also: `company`, `news`, `pdf`, `github`, `tweet`, `personal site`, `linkedin profile`, `financial report`, `people`)+- `--category "research paper"` to bias toward scholarly content (also: `company`, `news`, `github`, `personal site`, `financial report`, `people`)- `--user-location US` for locale-specific results## Academic source strategy@@ -48,7 +46,6 @@ For scientific or technical queries, Exa has two strong levers:```bashuv run --with exa-py python "$SKILL_PATH/scripts/exa_search.py" "$ARGUMENTS" \--category "research paper" \- --num-results 10 \--text --highlights \-o "$FILENAME-academic.json"```@@ -62,8 +59,7 @@ For stricter academic filtering, combine the category with an explicit domain al```bashuv run --with exa-py python "$SKILL_PATH/scripts/exa_search.py" "$ARGUMENTS" \--category "research paper" \- --include-domains "arxiv.org,biorxiv.org,medrxiv.org,pubmed.ncbi.nlm.nih.gov,ncbi.nlm.nih.gov,nature.com,science.org,cell.com,pnas.org,nih.gov,semanticscholar.org,scholar.google.com,ieee.org,acm.org,springer.com,wiley.com" \- --num-results 15 \+ --include-domains "arxiv.org,biorxiv.org,medrxiv.org,pubmed.ncbi.nlm.nih.gov,nature.com,science.org" \--text --highlights \-o "$FILENAME-academic.json"```@@ -85,9 +81,9 @@ Parse the JSON output. Each result includes:- `title`, `url`, `published_date`, `author`- `score` — Exa's relevance score for the query-- `text` (if `--text`), `highlights` + `highlight_scores` (if `--highlights`), `summary` (if `--summary`)+- `text` (if `--text`), `highlights` + `highlight_scores` (if `--highlights`)-**Snippet fallback** — any combination of content fields may be present. Cascade through them: prefer `highlights` (tight, pre-selected passages), fall back to `summary`, fall back to a truncated slice of `text`. Never assume exactly one is present.+**Snippet fallback** — any combination of content fields may be present. Cascade through them: prefer `highlights` (tight, pre-selected passages), fall back to a truncated slice of `text`. Never assume exactly one is present.## Response formatdiff --git a/scientific-skills/exa-search/scripts/exa_extract.py b/scientific-skills/exa-search/scripts/exa_extract.pyindex b66992ad..56061e3f 100644--- a/scientific-skills/exa-search/scripts/exa_extract.py+++ b/scientific-skills/exa-search/scripts/exa_extract.py@@ -9,7 +9,7 @@ Example:uv run exa_extract.py \\https://arxiv.org/abs/2401.04088 \\https://www.nature.com/articles/s41586-024-07566-y \\- --text --summary "methods and key findings" \\+ --text \\-o extracted.json"""from __future__ import annotations@@ -31,7 +31,7 @@ except ImportError:sys.exit(2)-EXA_INTEGRATION_HEADER = "scientific-agent-skills"+EXA_INTEGRATION_HEADER = "k-dense-ai--scientific-agent-skills"@dataclass@@ -45,17 +45,14 @@ class ExtractedDocument:published_date: str | Nonetext: str | None = Nonehighlights: list[str] = field(default_factory=list)- summary: str | None = None-def _build_contents(text: bool, highlights: bool, summary: str | None) -> dict[str, Any]:+def _build_contents(text: bool, highlights: bool) -> dict[str, Any]:contents: dict[str, Any] = {}if text:contents["text"] = Trueif highlights:contents["highlights"] = True- if summary is not None:- contents["summary"] = {"query": summary} if summary else Trueif not contents:# Default to full text when the caller doesn't pick anything.contents["text"] = True@@ -71,7 +68,6 @@ def _to_typed(item: Any) -> ExtractedDocument:published_date=getattr(item, "published_date", None),text=getattr(item, "text", None),highlights=list(getattr(item, "highlights", None) or []),- summary=getattr(item, "summary", None),)@@ -84,7 +80,7 @@ def run(args: argparse.Namespace) -> dict[str, Any]:client = Exa(api_key=api_key)client.headers["x-exa-integration"] = EXA_INTEGRATION_HEADER- contents = _build_contents(args.text, args.highlights, args.summary)+ contents = _build_contents(args.text, args.highlights)response = client.get_contents(urls=args.urls, **contents)typed = [_to_typed(item) for item in getattr(response, "results", []) or []]@@ -100,13 +96,6 @@ def build_parser() -> argparse.ArgumentParser:parser.add_argument("urls", nargs="+", help="One or more URLs to extract.")parser.add_argument("--text", action="store_true", help="Return full-text content.")parser.add_argument("--highlights", action="store_true", help="Return extracted highlight snippets.")- parser.add_argument(- "--summary",- nargs="?",- const="",- default=None,- help="Return LLM summary. Optional value is a query to focus the summary.",- )parser.add_argument("-o", "--output", default=None, help="Write JSON to this file (default: stdout).")return parserdiff --git a/scientific-skills/exa-search/scripts/exa_find_similar.py b/scientific-skills/exa-search/scripts/exa_find_similar.pydeleted file mode 100644index 0914b166..00000000--- a/scientific-skills/exa-search/scripts/exa_find_similar.py+++ /dev/null@@ -1,182 +0,0 @@-#!/usr/bin/env python3-# /// script-# requires-python = ">=3.11"-# dependencies = ["exa-py>=1.14.0"]-# ///-"""Find pages similar to a given URL via Exa's find_similar endpoint.--Example:- uv run exa_find_similar.py \\- https://arxiv.org/abs/2401.04088 \\- --num-results 10 \\- --exclude-source-domain \\- --text --highlights \\- -o similar.json-"""-from __future__ import annotations--import argparse-import json-import os-import sys-from dataclasses import asdict, dataclass, field-from typing import Any--try:- from exa_py import Exa-except ImportError:- print(- "exa_py not installed. Run: uv pip install exa-py (or invoke with: uv run --with exa-py)",- file=sys.stderr,- )- sys.exit(2)---EXA_INTEGRATION_HEADER = "scientific-agent-skills"---@dataclass-class SimilarResult:- """Typed view of a single find-similar result for JSON export."""-- title: str | None- url: str- id: str | None- author: str | None- published_date: str | None- score: float | None- text: str | None = None- highlights: list[str] = field(default_factory=list)- summary: str | None = None---def _split_csv(value: str | None) -> list[str] | None:- if not value:- return None- items = [item.strip() for item in value.split(",") if item.strip()]- return items or None---def _build_contents(text: bool, highlights: bool, summary: str | None) -> dict[str, Any] | None:- contents: dict[str, Any] = {}- if text:- contents["text"] = True- if highlights:- contents["highlights"] = True- if summary is not None:- contents["summary"] = {"query": summary} if summary else True- return contents or None---def _to_typed(item: Any) -> SimilarResult:- return SimilarResult(- title=getattr(item, "title", None),- url=getattr(item, "url", ""),- id=getattr(item, "id", None),- author=getattr(item, "author", None),- published_date=getattr(item, "published_date", None),- score=getattr(item, "score", None),- text=getattr(item, "text", None),- highlights=list(getattr(item, "highlights", None) or []),- summary=getattr(item, "summary", None),- )---def run(args: argparse.Namespace) -> dict[str, Any]:- api_key = os.environ.get("EXA_API_KEY")- if not api_key:- print("EXA_API_KEY environment variable is not set.", file=sys.stderr)- sys.exit(2)-- client = Exa(api_key=api_key)- client.headers["x-exa-integration"] = EXA_INTEGRATION_HEADER-- contents = _build_contents(args.text, args.highlights, args.summary)-- kwargs: dict[str, Any] = {- "url": args.url,- "num_results": args.num_results,- "exclude_source_domain": args.exclude_source_domain,- }- if include := _split_csv(args.include_domains):- kwargs["include_domains"] = include- if exclude := _split_csv(args.exclude_domains):- kwargs["exclude_domains"] = exclude- if args.start_published_date:- kwargs["start_published_date"] = args.start_published_date- if args.end_published_date:- kwargs["end_published_date"] = args.end_published_date- if args.category:- kwargs["category"] = args.category-- if contents is not None:- response = client.find_similar_and_contents(**kwargs, **contents)- else:- response = client.find_similar(**kwargs)-- typed = [_to_typed(item) for item in getattr(response, "results", []) or []]- return {- "url": args.url,- "num_results": len(typed),- "results": [asdict(result) for result in typed],- }---def build_parser() -> argparse.ArgumentParser:- parser = argparse.ArgumentParser(description="Find pages similar to a URL with Exa.")- parser.add_argument("url", help="Seed URL to find similar pages for.")- parser.add_argument("--num-results", type=int, default=10, help="Number of results (1-100).")- parser.add_argument(- "--exclude-source-domain",- action="store_true",- help="Exclude results from the same domain as the seed URL.",- )- parser.add_argument("--include-domains", default=None, help="Comma-separated allowlist.")- parser.add_argument("--exclude-domains", default=None, help="Comma-separated blocklist.")- parser.add_argument("--start-published-date", default=None, help="ISO date, e.g. 2024-01-01.")- parser.add_argument("--end-published-date", default=None, help="ISO date, e.g. 2024-12-31.")- parser.add_argument(- "--category",- default=None,- choices=[- "company",- "research paper",- "news",- "pdf",- "github",- "tweet",- "personal site",- "linkedin profile",- "financial report",- "people",- ],- help="Bias results toward a content category.",- )- parser.add_argument("--text", action="store_true", help="Return full-text content per result.")- parser.add_argument("--highlights", action="store_true", help="Return extracted highlight snippets.")- parser.add_argument(- "--summary",- nargs="?",- const="",- default=None,- help="Return LLM summary. Optional value is a query to focus the summary.",- )- parser.add_argument("-o", "--output", default=None, help="Write JSON to this file (default: stdout).")- return parser---def main(argv: list[str] | None = None) -> int:- args = build_parser().parse_args(argv)- payload = run(args)- text = json.dumps(payload, indent=2, ensure_ascii=False)- if args.output:- with open(args.output, "w", encoding="utf-8") as fh:- fh.write(text)- print(f"Wrote {len(payload['results'])} results to {args.output}")- else:- print(text)- return 0---if __name__ == "__main__":- sys.exit(main())diff --git a/scientific-skills/exa-search/scripts/exa_search.py b/scientific-skills/exa-search/scripts/exa_search.pyindex 8b3b43e9..84b54ff4 100644--- a/scientific-skills/exa-search/scripts/exa_search.py+++ b/scientific-skills/exa-search/scripts/exa_search.py@@ -9,10 +9,7 @@ Uses the Exa Python SDK. Auth via the EXA_API_KEY environment variable.Example:uv run exa_search.py "transformer architectures" \\- --num-results 10 \\--category "research paper" \\- --include-domains arxiv.org,nature.com \\- --start-published-date 2024-01-01 \\--text --highlights \\-o results.json"""@@ -35,7 +32,7 @@ except ImportError:sys.exit(2)-EXA_INTEGRATION_HEADER = "scientific-agent-skills"+EXA_INTEGRATION_HEADER = "k-dense-ai--scientific-agent-skills"@dataclass@@ -51,7 +48,6 @@ class SearchResult:text: str | None = Nonehighlights: list[str] = field(default_factory=list)highlight_scores: list[float] = field(default_factory=list)- summary: str | None = Nonedef _split_csv(value: str | None) -> list[str] | None:@@ -61,15 +57,12 @@ def _split_csv(value: str | None) -> list[str] | None:return items or None-def _build_contents(text: bool, highlights: bool, summary: str | None) -> dict[str, Any] | None:+def _build_contents(text: bool, highlights: bool) -> dict[str, Any] | None:contents: dict[str, Any] = {}if text:contents["text"] = Trueif highlights:contents["highlights"] = True- if summary is not None:- # Empty string means "use default summary"; any other string is a custom query- contents["summary"] = {"query": summary} if summary else Truereturn contents or None@@ -86,7 +79,6 @@ def _result_to_typed(item: Any) -> SearchResult:text=getattr(item, "text", None),highlights=highlights,highlight_scores=scores,- summary=getattr(item, "summary", None),)@@ -100,7 +92,7 @@ def run(args: argparse.Namespace) -> dict[str, Any]:# Attribute API usage to this skill for integration tracking.client.headers["x-exa-integration"] = EXA_INTEGRATION_HEADER- contents = _build_contents(args.text, args.highlights, args.summary)+ contents = _build_contents(args.text, args.highlights)kwargs: dict[str, Any] = {"query": args.query,@@ -141,8 +133,8 @@ def build_parser() -> argparse.ArgumentParser:parser.add_argument("--type",default="auto",- choices=["auto", "neural", "fast"],- help="Search type. 'auto' lets Exa pick; 'neural' forces semantic; 'fast' is lowest latency.",+ choices=["auto", "fast", "deep"],+ help="Search type. 'auto' is Exa's general-purpose search; 'fast' is lowest latency; 'deep' is highest quality at higher latency.",)parser.add_argument("--num-results", type=int, default=10, help="Number of results (1-100).")parser.add_argument(@@ -152,11 +144,8 @@ def build_parser() -> argparse.ArgumentParser:"company","research paper","news",- "pdf","github",- "tweet","personal site",- "linkedin profile","financial report","people",],@@ -169,13 +158,6 @@ def build_parser() -> argparse.ArgumentParser:parser.add_argument("--user-location", default=None, help="Two-letter ISO country code.")parser.add_argument("--text", action="store_true", help="Return full-text content per result.")parser.add_argument("--highlights", action="store_true", help="Return extracted highlight snippets.")- parser.add_argument(- "--summary",- nargs="?",- const="",- default=None,- help="Return LLM summary. Optional value is a query to focus the summary.",- )parser.add_argument("-o", "--output", default=None, help="Write JSON to this file (default: stdout).")return parserdiff --git a/scientific-skills/exa-search/tests/test_exa_search.py b/scientific-skills/exa-search/tests/test_exa_search.pyindex bbea2656..673a291a 100644--- a/scientific-skills/exa-search/tests/test_exa_search.py+++ b/scientific-skills/exa-search/tests/test_exa_search.py@@ -6,7 +6,7 @@ skill root:python -m unittest discover -s tests -vTests cover: CLI argument plumbing, the content-options builder (text /-highlights / summary), CSV splitting for domain lists, the content fallback+highlights), CSV splitting for domain lists, the content fallbackcascade, and the x-exa-integration header wiring."""from __future__ import annotations@@ -46,7 +46,6 @@ def _fake_result(**overrides):"text": "Full paper text here","highlights": ["The Transformer relies entirely on self-attention"],"highlight_scores": [0.87],- "summary": None,}defaults.update(overrides)return SimpleNamespace(**defaults)@@ -60,37 +59,25 @@ class BuildContentsTests(unittest.TestCase):self.extract_mod = _load_script("exa_extract")def test_search_no_flags_returns_none(self):- self.assertIsNone(self.search_mod._build_contents(False, False, None))+ self.assertIsNone(self.search_mod._build_contents(False, False))def test_search_text_only(self):- self.assertEqual(self.search_mod._build_contents(True, False, None), {"text": True})+ self.assertEqual(self.search_mod._build_contents(True, False), {"text": True})def test_search_highlights_only(self):self.assertEqual(- self.search_mod._build_contents(False, True, None),+ self.search_mod._build_contents(False, True),{"highlights": True},)- def test_search_summary_default_is_boolean_true(self):+ def test_search_text_and_highlights_combine(self):self.assertEqual(- self.search_mod._build_contents(False, False, ""),- {"summary": True},- )-- def test_search_summary_with_query(self):- self.assertEqual(- self.search_mod._build_contents(False, False, "key findings"),- {"summary": {"query": "key findings"}},- )-- def test_search_all_three_combine(self):- self.assertEqual(- self.search_mod._build_contents(True, True, "methods"),- {"text": True, "highlights": True, "summary": {"query": "methods"}},+ self.search_mod._build_contents(True, True),+ {"text": True, "highlights": True},)def test_extract_defaults_to_text_when_nothing_specified(self):- self.assertEqual(self.extract_mod._build_contents(False, False, None), {"text": True})+ self.assertEqual(self.extract_mod._build_contents(False, False), {"text": True})class SplitCsvTests(unittest.TestCase):@@ -136,19 +123,17 @@ class ResultTypingTests(unittest.TestCase):self.assertEqual(typed.highlight_scores, [])def test_highlights_only_response(self):- """Content fallback: when only highlights are present, text/summary must stay None."""- item = _fake_result(text=None, summary=None, highlights=["snippet A", "snippet B"])+ """Content fallback: when only highlights are present, text must stay None."""+ item = _fake_result(text=None, highlights=["snippet A", "snippet B"])typed = self.mod._result_to_typed(item)self.assertIsNone(typed.text)- self.assertIsNone(typed.summary)self.assertEqual(typed.highlights, ["snippet A", "snippet B"])- def test_summary_only_response(self):- item = _fake_result(text=None, highlights=[], highlight_scores=[], summary="A summary.")+ def test_text_only_response(self):+ item = _fake_result(highlights=[], highlight_scores=[])typed = self.mod._result_to_typed(item)- self.assertIsNone(typed.text)+ self.assertEqual(typed.text, "Full paper text here")self.assertEqual(typed.highlights, [])- self.assertEqual(typed.summary, "A summary.")class IntegrationHeaderAndFlowTests(unittest.TestCase):@@ -179,7 +164,10 @@ class IntegrationHeaderAndFlowTests(unittest.TestCase):def test_integration_header_is_set(self):_, client, _ = self._run_with_mock(["what is attention", "--highlights"])- self.assertEqual(client.headers.get("x-exa-integration"), "scientific-agent-skills")+ self.assertEqual(+ client.headers.get("x-exa-integration"),+ "k-dense-ai--scientific-agent-skills",+ )def test_calls_search_and_contents_when_contents_requested(self):_, client, _ = self._run_with_mock(["query", "--text"])