首页/ AI 技能 / @skilllib/skill-2014279426450599937
Skill站外收录 @skilllib/skill-2014279426450599937

cursor-codebase-indexing

为 Cursor IDE 构建可搜索的代码库索引,支持基于语义的代码检索与上下文理解,提升 AI 对项目结构、符号定义和源码逻辑的感知能力,适用于深度代码分析与智能编程辅助场景。

0.0 (0) 242 次安装 原作者 编程导航
收录于 2026-01-22
效率工具 AI 技能

Skills.MD

# 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 1. Open your project in Cursor 2. Navigate to Settings > Cursor > Codebase Indexing 3. Enable "Index this workspace" 4. Create `.cursorignore` file at project root 5. Add exclusion patterns for large/irrelevant directories 6. Wait for indexing to complete (check status bar) 7. Test with `@codebase` queries in chat ## Output - Indexed codebase enabling `@codebase` queries - 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. ## Resources - [Cursor Indexing Documentation](https://cursor.com/docs/indexing) - [gitignore Pattern Syntax](https://git-scm.com/docs/gitignore) - [Cursor Performance Guide](https://cursor.com/docs/performance)

评论 0

还没有评论,来抢沙发。