{
 "schema_version": 1,
 "generated": "2026-10-24",
 "id": "upstash-context7--auto-invoke-context7-with-a-rule",
 "repo": "upstash/context7",
 "repo_url": "https://github.com/upstash/context7",
 "repo_slug": "upstash-context7",
 "title": "Make the agent use current docs automatically",
 "page_title": "Context7 rule: make your coding agent use current docs automatically",
 "summary": "Add a rule so the agent always consults Context7 for library questions without being asked.",
 "who": "A team lead who wants every agent session grounded in current docs.",
 "problem": "Developers forget to add use Context7 to prompts.",
 "outcome": "Agents that fetch docs on their own for library work.",
 "steps": [
  "Set up Context7",
  "Add the README's rule text to your agent's rules file",
  "Ask a library question without mentioning Context7",
  "Confirm the agent called Context7"
 ],
 "agent_prompt": "Add the Context7 auto-invoke rule to my agent's rules, then ask <library question>. Confirm the agent used Context7 without being told.",
 "agents": [
  "any"
 ],
 "difficulty": "Beginner",
 "time": "15 minutes",
 "basis": "readme",
 "caveat": "Rules files differ by agent, so place the rule where your agent reads it.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "typescript",
 "requirements": [
  "Node.js for npx",
  "An MCP-capable coding agent such as Cursor or Claude Code"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.8,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/upstash-context7/auto-invoke-context7-with-a-rule/",
 "md": "https://dedupedai.com/use-cases/upstash-context7/auto-invoke-context7-with-a-rule/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/upstash-context7--auto-invoke-context7-with-a-rule.json",
 "api_version": "v1"
}
