
Arxiv Search
Query arXiv from an agent or terminal for relevant preprint titles and abstracts while exploring a technical idea.
Overview
arxiv-search is an agent skill for the Idea phase that searches arXiv and returns formatted paper titles and summaries for a query.
Install
npx skills add https://github.com/langchain-ai/deepagents --skill arxiv-searchWhat is this skill?
- Python CLI entry point with query string and configurable --max-papers (default 10)
- Uses arxiv client with relevance sorting and formatted Title plus Summary blocks
- Returns explicit pip install hint when the arxiv package is missing
- Suitable as a callable query_arxiv helper inside larger agent toolchains
- Handles empty result sets and surfaces query errors as readable strings
- Default max_papers: 10
- CLI flag --max-papers to override result count
Adoption & trust: 1.3k installs on skills.sh; 24.2k GitHub stars; 2/3 security scanners passed (skills.sh audits).
What problem does it solve?
You need credible preprint references for a new AI or technical direction but do not want to context-switch out of your coding agent to search manually.
Who is it for?
Builders sketching RAG, agents, or ML features who want quick arXiv relevance-ranked abstracts inside an automated workflow.
Skip if: Paywalled journal-only research, legal/medical advice grounded in peer-reviewed clinical trials, or workflows requiring full PDF parsing and citation graphs.
When should I use this skill?
You need arXiv preprint titles and summaries for a technical query during research or agent planning.
What do I get? / Deliverables
You receive a bounded list of arXiv hits with titles and abstracts you can paste into notes, specs, or deeper reading queues.
- Formatted multi-paper text block with Title and Summary per hit
Recommended Skills
Journey fit
How it compares
Lightweight arXiv CLI integration for agents, not a semantic scholarly database or automated systematic review pipeline.
Common Questions / FAQ
Who is arxiv-search for?
Solo builders and agent authors who need fast open-access paper discovery while ideating on technical products or research-backed features.
When should I use arxiv-search?
During Idea research when exploring competitors’ academic angles, verifying whether a technique already has preprints, or seeding reading lists before validation and build planning.
Is arxiv-search safe to install?
Review the Security Audits panel on this Prism page; the skill performs outbound arXiv API queries—avoid pasting secrets into queries and audit the script if you vendor it into production agents.
SKILL.md
READMESKILL.md - Arxiv Search
#!/usr/bin/env python3 """arXiv Search. Searches the arXiv preprint repository for research papers. """ import argparse def query_arxiv(query: str, max_papers: int = 10) -> str: """Query arXiv for papers based on the provided search query. Parameters ---------- query : str The search query string. max_papers : int The maximum number of papers to retrieve (default: 10). Returns: The formatted search results or an error message. """ try: import arxiv # type: ignore[import-not-found] except ImportError: return "Error: arxiv package not installed. Install with: pip install arxiv" try: client = arxiv.Client() search = arxiv.Search( query=query, max_results=max_papers, sort_by=arxiv.SortCriterion.Relevance ) results = "\n\n".join( [ f"Title: {paper.title}\nSummary: {paper.summary}" for paper in client.results(search) ] ) return results or "No papers found on arXiv." except Exception as e: return f"Error querying arXiv: {e}" def main() -> None: """Main entry point for the arXiv search CLI tool.""" parser = argparse.ArgumentParser(description="Search arXiv for research papers") parser.add_argument("query", type=str, help="Search query string") parser.add_argument( "--max-papers", type=int, default=10, help="Maximum number of papers to retrieve (default: 10)", ) args = parser.parse_args() query_arxiv(args.query, max_papers=args.max_papers) if __name__ == "__main__": main() --- name: arxiv-search description: Searches arXiv for preprints and academic papers, retrieves abstracts, and filters by topic. Use when the user asks to find research papers, search arXiv, look up preprints, find academic articles in physics, math, CS, biology, statistics, or related fields. --- # arXiv Search Skill ## Usage Run the bundled Python script using the absolute skills directory path from your system prompt: ```bash .venv/bin/python [YOUR_SKILLS_DIR]/arxiv-search/arxiv_search.py "your search query" [--max-papers N] ``` - `query` (required): Search query string - `--max-papers` (optional): Maximum results to retrieve (default: 10) ### Example ```bash .venv/bin/python ~/.deepagents/agent/skills/arxiv-search/arxiv_search.py "deep learning drug discovery" --max-papers 5 ``` Returns title and abstract for each matching paper, sorted by relevance. ## Dependencies Requires the `arxiv` Python package. If missing, install with: ```bash .venv/bin/python -m pip install arxiv ```