exa
Exa Web Search & Content Extraction
Real-time web search and content extraction powered by Exa AI.
Usage
Use the Python script at scripts/exa.py. Requires EXA_API_KEY environment variable.
Web Search
# Basic search
python scripts/exa.py search --query "latest AI research"
# Fast search for simple queries
python scripts/exa.py search --query "node.js version" --type fast
# Deep search for comprehensive results
python scripts/exa.py search --query "React server components" --type deep --num-results 10
# With full text content
python scripts/exa.py search --query "GraphQL best practices" --text
# Filter by domain
python scripts/exa.py search --query "LLM research" --include-domains "arxiv.org,paperswithcode.com"
# Filter by date
python scripts/exa.py search --query "AI news" --start-date "2025-01-01T00:00:00.000Z"
Extract URL Content
# Extract from documentation
python scripts/exa.py contents --urls "https://docs.python.org/3/tutorial/classes.html"
# Multiple URLs
python scripts/exa.py contents --urls "https://example.com/page1,https://example.com/page2"
# Prefer live content
python scripts/exa.py contents --urls "https://example.com/page" --livecrawl preferred
Code Examples
# Find code examples
python scripts/exa.py code --query "React useState hook examples"
# Quick syntax lookup
python scripts/exa.py code --query "Python list comprehension" --tokens 2000
# Detailed patterns
python scripts/exa.py code --query "GraphQL resolver patterns" --tokens 15000
Search Types
| Type | Use Case | Speed |
|---|---|---|
fast |
Quick lookups, simple queries | Fastest |
auto |
General purpose (default) | Medium |
deep |
Complex research, comprehensive | Slowest |
When to Use Each Command
Use search |
Use contents |
Use code |
|---|---|---|
| Finding relevant pages | Have a specific URL | Programming questions |
| General web research | Extracting known content | API/library usage |
| News and articles | Reading documentation | Code examples |
Query Tips
- Be specific: "React useEffect cleanup function examples" not "useEffect"
- Include the library/framework name
- Specify the programming language
- Mention the use case (authentication, caching, etc.)
Rules
- Use
--type fastfor simple factual queries - Use
--type deepfor research requiring comprehensive results - Use
--textto get full page content in search results - Use
codecommand for programming questions instead ofsearch - Use
contentswhen you have a specific URL to extract - Use
--format jsonfor structured output when needed
More from trancong12102/ccc
context7
Retrieve current library documentation and code examples from Context7. Use when looking up library APIs, "docs", specific library versions, or "how to use [library]". Prefer over training knowledge for library-specific questions. Do not use for general programming concepts.
10deps-dev
Look up the latest version of any package using deps.dev API. Use this skill when checking package versions, updating dependencies, adding new packages to a project, or verifying current library versions.
8oracle
Invoke a powerful reasoning model for complex analysis tasks. Use when facing difficult bugs, reviewing critical code, designing complex refactors, needing architectural analysis, or seeking consensus on decisions. Also use for 'ask the oracle', 'get a second opinion', 'consult oracle', or 'deep analysis'.
8brainstorming
Collaboratively explore ideas and design solutions through guided dialogue before implementation. Use this skill when creating features, building components, adding functionality, designing systems, or when the user says \"brainstorm\", \"design this\", \"help me think through\", or \"let's plan\".
8test-driven-development
Guides strict Test-Driven Development (TDD) using the Red-Green-Refactor cycle. Ensures no production code is written without a prior failing test. Use this skill when implementing new features, fixing bugs, or refactoring code to ensure high test coverage and design quality. Triggers on phrases like 'TDD', 'write tests first', 'test-driven', 'red-green-refactor', 'watch it fail', 'test first', or 'behavior driven'.
8vercel-react-best-practices
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
8