cursor-codebase-indexing
设置和优化Cursor代码库索引。触发词包括'cursor index setup'、'codebase indexing'、'index codebase'、'cursor semantic search'。
📖 中文导读:设置和优化Cursor代码库索引。触发词包括'cursor index setup'、'codebase indexing'、'index codebase'、'cursor semantic search'。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: "cursor-codebase-indexing" description: | Execute set up and optimize Cursor codebase indexing. Triggers on "cursor index setup", "codebase indexing", "index codebase", "cursor semantic search". Use when working with cursor codebase indexing functionality. Trigger with phrases like "cursor codebase indexing", "cursor indexing", "cursor". allowed-tools: "Read, Write, Edit, Bash(cmd:*)" version: 1.0.0 license: MIT author: "Jeremy Longshore jeremy@intentsolutions.io"
Cursor Codebase Indexing
Overview
What is Codebase Indexing?
Codebase indexing creates a searchable representation of your code:
- Enables @codebase queries
- Powers semantic code search
- Improves AI context awareness
- Helps AI understand project structure
Prerequisites
- Cursor IDE installed and authenticated
- Project workspace with source files
- Sufficient disk space for index storage
- Stable network connection for initial setup
Instructions
- Open your project in Cursor
- Navigate to Settings > Cursor > Codebase Indexing
- Enable "Index this workspace"
- Create
.cursorignorefile at project root - Add exclusion patterns for large/irrelevant directories
- Wait for indexing to complete (check status bar)
- Test with
@codebasequeries in chat
Output
- Indexed codebase enabling
@codebasequeries - Semantic code search functionality
- Improved AI context awareness
- Searchable symbol table and definitions
Error Handling
See {baseDir}/references/errors.md for comprehensive error handling.
Examples
See {baseDir}/references/examples.md for detailed examples.