Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

cursor-indexing-issues

БесплатноБез исполняемых скриптовНе проверен

Troubleshoot Cursor codebase indexing: stuck indexing, empty search, @codebase failures, and performance issues. Triggers on "cursor indexing", "cursor…

jeremylongshoreот jeremylongshore★ 2 961 звезда на GitHub

Об этом скилле

Cursor Indexing Issues

Overview

Diagnose missing, stale, slow, or over-broad codebase indexing while keeping sensitive and generated files excluded from AI context.

Prerequisites

  • The affected workspace, expected file/path, current ignore configuration, and a non-sensitive reproduction.
  • Authority to inspect repository indexing settings without weakening data-exclusion rules.

Instructions

  1. Confirm the file is inside an approved workspace root and not intentionally excluded by ignore configuration.
  2. Check index status, refresh only the affected workspace, and compare the result against a known expected file.
  3. Change ignore/rule configuration through normal review, then verify both inclusion of required files and exclusion of sensitive paths.

Output

  • A scoped indexing diagnosis with a verified inclusion/exclusion result.

Error Handling

Condition Safe response
Sensitive file is indexed Stop sharing context, add/repair the exclusion, and follow exposure policy.
Index remains stale Capture redacted diagnostics and escalate; do not remove all ignore controls.
Large repository is slow Narrow workspace roots and generated-file scope before resyncing.

Examples

When src/service.ts is absent, verify its root and ignore rules, resync indexing, then ask a minimal chat to reference only that file. If a .env file becomes visible during testing, stop and correct the exclusion before continuing.

Diagnose and fix codebase indexing problems. Covers stuck indexing, empty search results, stale results, and performance optimization for large codebases.

Quick Diagnosis

Symptom Likely Cause Quick Fix
Status bar stuck on "Indexing..." Large codebase or network issue Add .cursorignore, resync
@Codebase returns nothing Index not built or file excluded Wait for index, check ignore files
@Codebase finds wrong code Stale index Resync index
Indexing crashes / restarts Memory or file watcher limits Increase limits, reduce scope
"Unable to index" error Network blocked or auth expired Check proxy/firewall, re-auth

Fix: Stuck Indexing

Step 1: Reduce Scope

Create or update .cursorignore in project root:

# .cursorignore -- exclude non-essential directories

# Build output
dist/
build/
.next/
out/
target/

# Dependencies (always exclude)
node_modules/
vendor/
.venv/
venv/

# Generated / large files
*.min.js
*.min.css
*.bundle.js
*.map
*.lock
package-lock.json
yarn.lock
pnpm-lock.yaml

# Data files
*.csv
*.sql
*.sqlite
*.parquet
*.json.gz
fixtures/

# Media
*.png
*.jpg
*.gif
*.svg
*.mp4
*.woff2

Step 2: Resync Index

Cmd+Shift+P > Cursor: Resync Index

Step 3: Clear Cache (if resync fails)

# macOS
rm -rf ~/Library/Application\ Support/Cursor/Cache/
rm -rf ~/Library/Application\ Support/Cursor/CachedData/

# Linux
rm -rf ~/.config/Cursor/Cache/
rm -rf ~/.config/Cursor/CachedData/

# Windows (PowerShell)
Remove-Item -Recurse "$env:APPDATA\Cursor\Cache"
Remove-Item -Recurse "$env:APPDATA\Cursor\CachedData"

Restart Cursor after clearing cache. Full re-index begins automatically.

Fix: @Codebase Returns No Results

Check 1: Is Indexing Complete?

Look at the bottom status bar. If it says "Indexing...", wait for it to finish. For projects with 10K+ files, initial indexing can take 10-30 minutes.

Check 2: Is the File Excluded?

A file might be excluded by:

  1. .gitignore (Cursor respects this by default)
  2. .cursorignore (explicit exclusion)
  3. .cursorindexingignore (excluded from index but not from AI features)

Verify: Cursor Settings > Features > Codebase Indexing > View included files

This opens a text file listing all indexed paths. Search for the file you expect to find.

Check 3: Network Connectivity

Indexing requires network access to Cursor's embedding API. Test:

  • Can you access api.cursor.com?
  • Is a corporate proxy blocking outbound HTTPS?
  • Is a VPN interfering?

Check 4: Semantic vs Keyword Search

@Codebase uses semantic search (embeddings), not keyword matching. The query "authentication middleware" will find files about auth even if they never use the word "middleware." But it may miss files if the semantic meaning is very different from the query.

For exact keyword matching, use Cmd+Shift+F (workspace search) instead.

Fix: Stale / Outdated Results

Cursor re-checks for file changes every 10 minutes using a Merkle tree. If you need fresher results:

  1. Save all open files
  2. Cmd+Shift+P > Cursor: Resync Index
  3. Wait for "Indexed" status to reappear
  4. Retry your @Codebase query

Performance Optimization for Large Projects

Indexing Time Benchmarks

Project Size Files Indexed Initial Index Time
Small (< 1K files) ~500 < 30 seconds
Medium (1K-10K files) ~5,000 1-5 minutes
Larg
Полный SKILL.md на GitHub

Установить cursor-indexing-issues в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Write
Edit
Bash(cmd:*)

Вложенные файлы

references/.cursorignore-configuration.mdreferences/common-indexing-issues.mdreferences/errors.mdreferences/examples.mdreferences/index-verification.md

FAQ

Что делает скилл cursor-indexing-issues?

Troubleshoot Cursor codebase indexing: stuck indexing, empty search, @codebase failures, and performance issues. Triggers on "cursor indexing", "cursor index", "@codebase not working", "cursor search broken", "indexing stuck".

Как установить скилл cursor-indexing-issues?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл cursor-indexing-issues запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить cursor-indexing-issues с