Skip to content

Commit 838d208

Browse files
committed
Add Cursor Docs Reference Test Rules and PreBuilt Docs Page
- Create new `.cursor/rules` files for testing docs references with and without spaces - Remove outdated test-docs-at-reference.mdc rule - Add new page for pre-built Cursor documentation sources - Update Docs @ Symbols page with reference to pre-built docs - Modify Project Rule test page with sample queries for docs references
1 parent 2327b87 commit 838d208

7 files changed

+21
-18
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
description: Testing Docs At Reference No Space
3+
globs:
4+
alwaysApply: false
5+
---
6+
If a user asks a question respond by pulling @docs/Ansible into context
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
description: Testing Docs At Reference With Space
3+
globs:
4+
alwaysApply: false
5+
---
6+
If a user asks a question respond by pulling @docs/AWS Lambda into context

.cursor/rules/test-docs-at-reference.mdc

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- See https://raw.githubusercontent.com/getcursor/crawler/main/docs.jsonl
2+
- These are the official pre-registered docs
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
alias:: [[CursorAI/@/Docs]]
22

33
- **[@Docs](https://docs.cursor.com/context/@-symbols/@-docs)** – Access documentation and guides
4+
- Default docs are in [[CursorAI/@/Docs/PreBuilt]]
45
-

pages/CursorAI___Project Rule___Test___Agent___Follow @docs.md

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
# Can Cursor Agent Mode follow [[CursorAI/@/Docs]] references in [[.mdc]] files?
22
- ## Test Preparation
3-
- Visit to the [[CursorAI/Test/Fixture/Docs/Root]] Github Link: https://raw.githubusercontent.com/codekiln/logseq-encode-garden/refs/heads/main/pages/CursorAI___Test___Fixture___Sample%20Docs%20Page.md
4-
- index this as `sample-doc`
5-
- Open Cursor agent
6-
- Enter `@sample-doc`
7-
- When it prompts to enter a new doc, enter `https://raw.githubusercontent.com/codekiln/logseq-encode-garden/refs/heads/main/pages/CursorAI___Test___Fixture___Sample%20Docs%20Page.md`
8-
- Name: sample-doc
9-
- Prefix: https://raw.githubusercontent.com/codekiln/logseq-encode-garden/refs/heads/main/pages/CursorAI___Test___Fixture___Sample%20Docs%20Page.md
10-
- Entrypoint: https://raw.githubusercontent.com/codekiln/logseq-encode-garden/refs/heads/main/pages/CursorAI___Test___Fixture___Sample%20Docs%20Page.md
11-
- Click Confirm
3+
- Try a docs query to one of the pre-built providers [[CursorAI/@/Docs/PreBuilt]]
4+
- Sample queries
5+
- `@Aws Lambda what's an Alias configuration?`
6+
- it should pull in 4-8 docs from [AliasConfiguration](https://docs.aws.amazon.com/lambda/latest/api/API_AliasConfiguration.html)
7+
- `@Ansible how can I install multiple collections with a requirements file?`
8+
- it should pull in 4-8 docs including [Installing collections — Ansible Community Documentation](https://docs.ansible.com/ansible/latest/collections_guide/collections_installing.html#install-multiple-collections-with-a-requirements-file)
129
- Place this file at `.cursor/rules`
1310
- [[CursorAI/Project Rule/Link/GitHub]]
1411
- [test-favorite-cars.mdc](https://github.com/codekiln/logseq-encode-garden/blob/main/.cursor/rules/test-favorite-cars.mdc)

pages/CursorAI___Test___Fixture___Docs___Root.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)