tavily-best-practices
Build production-ready Tavily integrations with best practices baked in. Reference documentation for developers using coding assistants (Claude Code, Cursor, etc.) to implement web search, content extraction, crawling, and research in agentic workflows, RAG systems, or autonomous agents.
Why use this skill?
Master production-ready Tavily integrations. Learn how to build efficient RAG systems, crawl sites, and implement AI research agents with best practices.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/barneyjm/tavily-best-practicesWhat This Skill Does
The tavily-best-practices skill provides a structured framework and implementation patterns for integrating the Tavily Search API into agentic workflows. It is designed to help developers move beyond simple search queries to build robust, production-ready RAG systems and autonomous agents. The skill focuses on optimizing token usage, managing search context, and utilizing advanced features like content extraction, crawling, and research-grade synthesis. It bridges the gap between raw API documentation and practical, agent-first coding patterns, ensuring your integrations are efficient and resilient to the volatility of web data.
Installation
To integrate this skill into your environment, use the OpenClaw CLI:
clawhub install openclaw/skills/skills/barneyjm/tavily-best-practices
Ensure you have your Tavily API key ready. You should add it to your environment variables or your Claude configuration file as follows:
{ "env": { "TAVILY_API_KEY": "tvly-YOUR_API_KEY" } }
Once installed, you can access the reference materials and implementation templates directly within your IDE or agent workspace.
Use Cases
- Autonomous Research Agents: Utilize the
research()method to handle multi-step information gathering and synthesis without manual orchestration. - Optimized RAG Pipelines: Use
extract()with semantic query reranking to feed high-quality, relevant context into your LLM, preventing context window bloat. - Knowledge Base Crawling: Use
crawl()to ingest documentation or technical manuals from specific sites, focusing on paths and depth to ensure only relevant content is retrieved. - Real-time Data Monitoring: Leverage the
search()method with 'news' topics to keep agents updated on rapid industry developments.
Example Prompts
- "Use the tavily-best-practices skill to research current best practices for building scalable RAG pipelines using Tavily and LlamaIndex."
- "I need to crawl the official documentation site at docs.example.com; show me how to configure the crawler to prioritize API routes and limit content to 3 chunks per page."
- "Refactor my current web search implementation to use the extract() method instead of basic search, ensuring I only retrieve text from high-relevance URLs."
Tips & Limitations
- Token Management: Always set
chunks_per_sourcewhen usingextractorcrawlto manage your token budget effectively. - Search Depth: Use
search_depth='advanced'for high-stakes information retrieval, but default tobasicfor quick, cost-effective tasks. - API Limits: Keep in mind that
searchandextracthave limits on result counts and URL batching; always validate your lists before invoking API methods. - Environment Safety: Never hardcode your API key; always use environment variables as documented in the prerequisites.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-barneyjm-tavily-best-practices": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, external-api
Related Skills
query
Search for places using natural language with Camino AI's location intelligence API. Returns relevant results with coordinates, distances, and metadata. Use when you need to find real-world locations like restaurants, shops, landmarks, or any point of interest.
search
Search the web using Tavily's LLM-optimized search API. Returns relevant results with content snippets, scores, and metadata. Use when you need to find web content on any topic without writing code.
journey
Plan multi-waypoint journeys with route optimization, feasibility analysis, and time budget constraints. Use when you need to plan trips with multiple stops or check if an itinerary is achievable.
travel-planner
Plan complete day trips, walking tours, and multi-stop itineraries with time budgets using Camino AI's journey planning and route optimization.
real-estate
Evaluate any address for home buyers and renters. Get nearby schools, transit, grocery stores, parks, restaurants, and walkability using Camino AI's location intelligence.