AI 05: Cursor
Cursor: Pending Qs
Can cursor's terminal commands allowlist be saved as an md file ?
Cursor: Features
Commands aka Slash Commmands --> for anything you copy/paste too often in your prompt window
Skills
MCP
Rules & Memories
Cursor: Rules
persistent, reusable context at the prompt level.
system-level instructions to Agent.
bundle prompts, scripts, and more.
Hierarchy
Agent instructions
User Rules
Project Rules
When applied, rule contents are included at the start of the model context.
Cursor: Commands aka Slash Commmands
TODO
Cursor: AGENT.md
TODO
Cursor: Layered Prompt
Cursor builds prompts by orchestrating various pieces of dynamic content, including:
System instructions: Core rules and guidelines for the AI's behavior.
User message: The most recent input or question from the user.
File context: The content of the current file or referenced files.
Code snippets: User-highlighted code or referenced symbols within the codebase.
Terminal output: Results from commands executed in the integrated terminal.
Cursor position: The exact location of the cursor in the code.
Team rules: Persistent instructions or settings shared within a team.
Tool schemas: Definitions for tools the AI can use, such as APIs or other functions.
Also whatever was added to context using @-commands: https://docs.cursor.com/en/context/@-symbols/overview
Cursor: Prompting: Dynamic Content in Prompts
Dynamically include external data using @-commands for files, code, terminal output, and even documentation through features like @Files or @Docs.
That's kinda what is meant by context in Cursor.
Cursor: Rules
Rules provide system-level instructions to Agent and Inline Edit.
Think of rules as persistent context, preferences, or workflows.
Rules can be applied to different scopes: user scope, project scope, and folder scope.
Basic Examples
Cursor: Rules Docs
You can also directly ask in Cursor Chat:
What are the top 15 most common rules cursor users use for React/TS/xyz?
https://docs.cursor.com/en/context/rules
https://cursor.directory/rules
Cursor: Guardrails
Regular mode can have guardrails such as:
Automatic backups before modifications (i.e. git add . && git commit)
Folders (and subfolders) to never be changed or deleted
YOLO/autorun mode MUST have strong guardrails such as:
Max % of code to be deleted/changed before approval
Max tokens to be used before approval
Max run time before approval
Folders (and subfolders) to never be deleted or changed
Automatic backups before modifications
Audit trail of all operations
All operations must be reversible
https://github.com/jikyu/cursor-guardrails
https://forum.cursor.com/t/guardrails-against-large-scale-feature-removal/40374/
Cursor: Learning Resources
Cursor Getting Started: tab autocompletion, inline mode, full file mode, rules, context, and more.
https://www.youtube.com/watch?v=5zR1ZE5aqho&t=193s
Cursor's Context Engineering
intro vid https://www.youtube.com/watch?v=QgA55EnmUp4
docs/prompts https://docs.google.com/document/d/1IGyUjicRSl2niGbL5tHRWzTZo1rL-oLOfjOdMilDtEk/edit?tab=t.0
Rules in Cursor
https://www.youtube.com/watch?v=IsXrCBlAshg
https://github.com/PatrickJS/awesome-cursorrules?tab=readme-ov-file
Cursor: Official Links
https://cursor.com/
https://docs.cursor.com/
https://cursor.directory/
https://forum.cursor.com
https://cursor.directory/
Last updated