Sc codebase index

From squadcodercom/squadcoder · View interactive version

Sc codebase index is an AI agent skill from the GitHub repository squadcodercom/squadcoder. Semantic codebase search & indexing (Cursor-style). When a question is conceptual ('where is X handled', 'find everything related to auth') or the codebase is large/unfamiliar, index it once with the code-memory tools and use semantic search instead of blind grep — then verify hits by reading the re

How to use this skill

Skill file

Codebase indexing & semantic search (reuse the `code-memory` MCP)

SquadCoder ships the code-memory MCP (local, offline, no API key — uvx code-memory) for

Cursor-style semantic code search. This skill tells you when and how to use it so the agent indexes

and searches the codebase the way a Cursor user expects — without anyone wiring it by hand.

If the code-memory tools (index_codebase, search_code, search_docs, search_history) are

not available, the MCP is disabled — fall back to grep/glob and (optionally) tell the user they

can enable code-memory in Settings ▸ MCP for semantic search. Do not invent these tools.

When to use semantic search vs grep

auth flow work?") → semantic (search_code / search_docs). It finds relevant code even when the

wording differs from the symbols.

for embeddings when you already know the literal.

Flow

  1. Index once per workspace. On the first semantic query in a session (or when the user opens a new /

large codebase), call index_codebase for the project root. It's incremental — re-running is cheap and

keeps the index fresh after edits. The first ever run downloads the embedding model (~600 MB) and may

take a minute; say so if the user is waiting.

  1. Search. Use search_code (and search_docs for prose/markdown) with a natural-language query.

Pull the top hits.

  1. ALWAYS verify before acting. Semantic hits are leads, not ground truth — open the actual files

and read the real lines before you edit, quote, or conclude. Never edit a file you only saw in a search

snippet.

  1. Keep it fresh. After a batch of edits that change structure, re-index so later searches stay

accurate.

Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.