Local mirror of Cursor documentation, kept fresh by a 3-hour GitHub Action. The cleaned Markdown lives in references/; the auto-generated topic list lives in references/INDEX.md; the per-file manifest with upstream URLs lives in references/docs_manifest.json.
Scope
Use this skill for Cursor-specific product and configuration questions, including the agent and its tools, Agent Skills, Rules, Hooks, Model Context Protocol (MCP), Subagents, Plugins, the Cursor CLI, cloud agents, models and pricing, the SDK, integrations, and account, team, and reference documentation. If the question is about Claude Code, OpenAI Codex, the Anthropic API, or another non-Cursor product, this skill does not apply. Cursor enterprise administration docs are intentionally not mirrored.
Workflow
- If the user supplied a topic, normalize it to a slug:
- lowercase, strip leading
https://cursor.com/docs/or/docs/, strip surrounding slashes - join nested segments with
__(e.g.agent overview->agent__overview,reference permissions->reference__permissions)
- lowercase, strip leading
- If
references/<slug>.mdexists, read that file directly. Do NOT grep the wholereferences/tree first - the index plus targeted reads is faster and uses less context. - If no exact match, read
references/INDEX.mdand pick the closest topic. If still ambiguous, list the candidates and ask. - If the user supplied no topic, read
references/INDEX.mdand present the available topics.
Answer format
- Lead with a direct answer to the user's question grounded in the file you read.
- Quote short snippets (commands, config keys) when they appear verbatim in the doc.
- End with
Source: <upstream URL>using thesourcevalue from the file frontmatter ororiginal_urlfromreferences/docs_manifest.json.
Freshness and fallback
The mirror is refreshed every 3 hours by upstream CI, which fails rather than committing frozen content. If the local content looks stale, contradicted by the user, or empty:
- Suggest the user run
npx skills update cursor-docs. - Check the file's entry in
references/docs_manifest.json: astatusofstalemeans upstream could not be reached on the last run. - Cross-check the canonical URL via
original_urlinreferences/docs_manifest.jsonand offer it as a follow-up source.
Examples
| Invocation | Reads |
|---|---|
/cursor-docs hooks |
references/hooks.md |
/cursor-docs mcp |
references/mcp.md |
/cursor-docs skills |
references/skills.md |
/cursor-docs agent overview |
references/agent__overview.md |
/cursor-docs reference permissions |
references/reference__permissions.md |
/cursor-docs (no argument) |
references/INDEX.md |