What problem does it solve?
Quickly locate and retrieve authoritative library and framework documentation without manual URL construction, saving time and minimizing token usage when working with large docs sets.
Core Features & Use Cases
- Script-first workflow: Orchestrates detect-topic.js, fetch-docs.js, and analyze-llms-txt.js to automate topic detection, URL construction, fetching, and analysis of llms.txt results.
- Robust fallback handling: Automatically falls back from topic-specific context7 URLs to general URLs, web search, or repository analysis when needed.
- Agent distribution guidance: Analyzes llms.txt to categorize URLs (critical/important/supplementary) and recommends parallel or phased agent strategies for efficient research.
- Use Case: Rapidly gather targeted API docs for a specific feature (e.g., "date picker in shadcn/ui") or assemble comprehensive library references for onboarding and migration planning.
Quick Start
Execute the scripts in order: detect the topic with node scripts/detect-topic.js "How do I use date picker in shadcn/ui?", fetch docs with node scripts/fetch-docs.js "How do I use date picker in shadcn/ui?", and analyze the resulting llms.txt with cat llms.txt | node scripts/analyze-llms-txt.js -.