How and Why to Add Docs to Cursor
Adding documentation to Cursor (or similar AI agents) is essential for providing persistent, reusable context that improves the agent's accuracy and usefulness. Well-maintained docs reduce hallucinations, standardize workflows, and encode domain knowledge for both humans and AI.
How to Add Docs to Cursor
- Open the
@Docspanel in Cursor and select Add new doc. - Paste the URL of the documentation you want to add. (Tip: Add a trailing slash to the URL to index all subpages and subdirectories.)
- Cursor will crawl, index, and keep your custom doc up to date automatically.
- You can manage your custom docs in Settings > Features > Docs—edit, delete, or add new docs as needed.
- Once added, reference your custom docs in chat or prompts using the
@Docssymbol to bring them into context for the agent.
Drupal and DDEV Reference Links
Essential links for Drupal and DDEV development, useful for both agents and developers.
Drupal
- Drupal - Hooks: Overview and usage of hooks in Drupal.
- Drupal - Development guide: Official Drupal development documentation.
- Drupal - Theming: Guide to theming in Drupal.
- Drupal - Modules: Creating and managing Drupal modules.
- Drupal - APIs: Reference for Drupal's APIs.
- Drupal - Core modules and theming: Documentation for core modules and themes.
DDEV
- DDEV - Usage: How to use DDEV for local development.
- DDEV - FAQ: Frequently asked questions about DDEV.
- DDEV - Commands: List of DDEV commands and their usage.
Other
- Lullabot ADRs: Architectural Decision Records from Lullabot for reference and inspiration.