Command Palette

Search for a command to run...

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

codebase-exploration

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

Use when searching a repository, looking up symbols, callers, callees, or imports, and when deciding whether CodeMemory is on.

fmflurryот fmflurry★ 173 звезды на GitHub

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

Codebase exploration

why-not-tooled: which tool fits the question, and whether CodeMemory is reachable, is environment-specific.

Tool names differ by harness. Apply the matching section. The cloud and remote rules are the same in both.

Claude Code

Codebase Exploration

Cloud and remote agents

Skip the CodeMemory mandate below when CodeMemory is off. Do not call CodeMemory, and do not treat a missing call as a failure. Use grep, glob, and read.

FMFLURRY_CODEMEMORY always wins: off skips, on keeps the mandate, and an empty value or auto detects. Auto skips on a cloud or CI signal (CLAUDE_CODE_REMOTE=true, a Cursor metadata agent/runtime of managed, or GITHUB_ACTIONS / GITLAB_CI / CIRCLECI / BUILDKITE / TF_BUILD / JENKINS_URL). A normal local macOS session keeps the mandate, including when the local services are down. If the session is neither a known cloud signal nor macOS, and FalkorDB 127.0.0.1:6379 and Qdrant 127.0.0.1:6333 are not both reachable, skip and continue. Details: docs/codememory-cloud.md.

ROUTING PRECEDENCE: First-tool routing gate (Orchestration & Routing) determines whether to delegate to a specialist Agent. After that gate is satisfied, CodeMemory-first mandate applies to exploration within whichever agent is executing (including the primary when no specialist matches).

HARD DEFAULT: When mcp__code-memory__* tools are connected, they are the FIRST and REQUIRED choice for any code search, symbol lookup, callers/callees, definitions, dependencies, or importers. Grep/Glob/Bash are fallbacks ONLY — reach for them only when code-memory cannot answer (raw directory listing, filename glob, reading a known path region, or no index for the project). Do not "start with grep" or "try grep first". Start with code-memory.

Applies whenever the code-memory MCP server is connected (tools named mcp__code-memory__*). Skip entirely if the server is absent.

Priority

For any codebase exploration — search, callers, callees, definitions, dependencies, importers, "where is X used?", "what calls Y?", "find references to Z", semantic Q&A over the repo — use mcp__code-memory__* tools first.

Fall back to rtk grep / rtk find / Grep / Glob / Bash only when code-memory cannot answer the question:

  • Raw directory listing (ls-style) — code-memory has no list_files.
  • Globbing by filename pattern only (no symbol/content concern).
  • Reading a file region whose path you already know — use Read.
  • Code-memory has no index for the project (first call returns empty / project-not-ingested).

Tool routing

Question Tool
"How does X work?" / "Where is X handled?" (semantic) mcp__code-memory__codememory_retrieve
"Where is symbol X defined?" mcp__code-memory__codememory_definitions
"Who calls X?" / impact analysis for rename mcp__code-memory__codememory_callers
"What does X call?" mcp__code-memory__codememory_callees
"What does file F import?" mcp__code-memory__codememory_dependencies
"Who imports file F?" mcp__code-memory__codememory_importers
"List files in dir D" Bash (rtk ls, find)
"Find files matching glob *.spec.ts" Glob or Bash
"Read lines 40-80 of F" Read

Project slug

mcp__code-memory__* requires a project arg. Use the repo slug (typically the directory name of the current working dir). Do not use sentinels like auto or default — they are rejected.

If unsure of the slug, infer from cwd basename. If the first call returns empty results because the project isn't ingested, tell the user — do not silently fall back to grep and pretend code-memory had no answer.

Anti-patterns

  • Reaching for rtk grep / find / Grep before checking if a code-memory tool fits the question.
  • Using codememory_retrieve for a question that has a precise topology answer (_callers, _definitions, etc.) — use the precise tool.
  • Re-grepping after code-memory returned a ranked file list — read the top files instead.
  • Searching the whole filesystem (find /) when the question is repo-scoped.

OpenCode

CodeMemory First (mandatory after routing)

Cloud and remote agents

Skip the CodeMemory mandate below when CodeMemory is off. Do not call CodeMemory, and do not treat a missing call as a failure. Use grep, glob, and read.

FMFLURRY_CODEMEMORY always wins: off skips, on keeps the mandate, and an empty value or auto detects. Auto skips on a cloud or CI signal (CLAUDE_CODE_REMOTE=true, a Cursor metadata agent/runtime of managed, or GITHUB_ACTIONS / GITLAB_CI / CIRCLECI / BUILDKITE / TF_BUILD / JENKINS_URL). A normal local macOS session keeps the mandate, including when the local services are down. If the session is neither a known cloud signal nor macOS, and FalkorDB 127.0.0.1:6379 and Qdrant 127.0.0.1:6333 are not both reachable, skip and continue. Details: docs/codememory-cloud.md

Полный SKILL.md на GitHub

Установить codebase-exploration в Claude Code и Claude Desktop

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

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

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

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

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

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл codebase-exploration?

Use when searching a repository, looking up symbols, callers, callees, or imports, and when deciding whether CodeMemory is on.

Как установить скилл codebase-exploration?

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

Скилл codebase-exploration запускает скрипты?

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

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

Сравнить codebase-exploration с