Навык using-codebase-memory-cli
✓ ПровереноВыполняйте индексацию кодовой базы на основе графов, поиск символов и отслеживание потоков данных через CLI-режим.
- Звёзды на GitHub
- 17
- Файлы
- 2
- Последний коммит
- 7 нояб. 2026 г.
- Лицензия
- MIT
- Разрешённые инструменты
- —
Что делает навык using-codebase-memory-cli?
using-codebase-memory-cli — это Agent Skill. Выполняйте индексацию кодовой базы на основе графов, поиск символов и отслеживание потоков данных через CLI-режим.
Сводка сгенерирована из SKILL.md навыка.
О skill using-codebase-memory-cli
Разработчики, которым нужно ориентироваться в сложных кодовых базах через структурные связи, а не просто через текстовый поиск, могут использовать этот инструмент с управлением через CLI. Он обеспечивает индексацию и поиск на основе графов, сопоставляя символы, функции и потоки данных внутри репозитория. Агенту следует загрузить этот SKILL, когда необходимо понять, как взаимодействуют различные части проекта — например, найти входящие вызовы для конкретной функции или проследить путь движения данных в системе.
Пользователи взаимодействуют с системой через специальные команды, такие как search_graph для поиска идентификаторов, trace_path для отслеживания потоков выполнения и get_code_snippet для просмотра фрагментов исходного кода. Инструмент опирается на созданный индекс, который можно сформировать с помощью index_repository, используя различные режимы: fast, moderate или full. Хотя инструмент отлично справляется с поиском архитектурных паттернов и связей между символами с помощью запросов Cypher, он предназначен для помощи в исследовании кода, а не для замены прямого изучения исходников или анализа во время выполнения. Он особенно полезен для оценки влияния изменений перед проведением масштабного поиска по репозиторию.
Что агент может делать с ним
- 1Отслеживание иерархии вызовов функцийНаходите все входящие вызовы или исходящие зависимости для конкретной функции, чтобы понять масштаб её влияния.
- 2Поиск конкретных символов кодаИщите классы, методы или переменные, используя шаблоны имен или ключевые слова.
- 3Анализ архитектуры проектаПолучайте краткую сводку структуры проекта после проведения целевого исследования.
- 4Выявление изменений в кодеОпределяйте, какие файлы и символы затронуты недавними изменениями в Git.
Написано на основе skill SKILL.md. Каждый сценарий использования проверен по цитате из него.
Как установить навык using-codebase-memory-cli
Каждая команда копирует папку навыка в каталог навыков клиента. Перезапустите клиент или начните новую сессию, чтобы загрузить его.Установка навыка using-codebase-memory-cli в Claude Code
~/.claude/skills/using-codebase-memory-cli/SKILL.md
$ npx degit narumiruna/skills/deprecated/using-codebase-memory-cli ~/.claude/skills/using-codebase-memory-cliУстановка навыка using-codebase-memory-cli в Claude Code (project)
.claude/skills/using-codebase-memory-cli/SKILL.md
$ npx degit narumiruna/skills/deprecated/using-codebase-memory-cli .claude/skills/using-codebase-memory-cliУстановка навыка using-codebase-memory-cli в Codex
~/.agents/skills/using-codebase-memory-cli/SKILL.md
$ npx degit narumiruna/skills/deprecated/using-codebase-memory-cli ~/.agents/skills/using-codebase-memory-cliУстановка навыка using-codebase-memory-cli в Gemini CLI
~/.gemini/skills/using-codebase-memory-cli/SKILL.md
$ npx degit narumiruna/skills/deprecated/using-codebase-memory-cli ~/.gemini/skills/using-codebase-memory-cliУстановка навыка using-codebase-memory-cli в Claude.ai
npx degit narumiruna/skills/deprecated/using-codebase-memory-cli using-codebase-memory-cli && zip -r using-codebase-memory-cli.zip using-codebase-memory-cli # claude.ai → Customize → Skills → + → Create skill → Upload a skill → using-codebase-memory-cli.zip
Автоматические проверки
Запущено 14 нояб. 2026 г.Полный отчёт →Прошёл наши автоматические проверки. Это не аудит безопасности: прочитайте скрипты, прежде чем агент их запустит. Как работают проверки · Что исправить, чтобы получить больше баллов
- Связанный и доступный исходный репозиторийnarumiruna/skills/deprecated/using-codebase-memory-cli is public and reachablegithub.com/narumiruna/skills/tree/HEAD/deprecated/using-code ↗Пройдено
- Open source лицензия (OSI)MITspdx.org/licenses/MIT.html ↗Пройдено
- Коммит или релиз за последний годLast commit 2026-11-07github.com/narumiruna/skills/commits ↗Пройдено
- В скриптах нет загрузки с запуском и кражи учётных данныхNo scripts in the skill folderПройдено
- В SKILL.md нет скрытых инструкцийNo override phrases, safeguard switches, credential requests or hidden charactersgithub.com/narumiruna/skills/blob/HEAD/deprecated/using-code ↗Пройдено
- Заранее разрешённые инструменты ограниченыNo pre-approved tools; the agent asks before using onegithub.com/narumiruna/skills/blob/HEAD/deprecated/using-code ↗Пройдено
- SKILL.md соответствует формату Agent Skillsthe description does not say when to use the skillgithub.com/narumiruna/skills/blob/HEAD/deprecated/using-code ↗Проблема
SKILL.md
Открыть на GitHubUsing Codebase Memory CLI (Deprecated Reference)
This workflow is excluded from active discovery but retained for repository reference and explicit local compatibility. Always prefer codebase-memory CLI graph tools over grep, glob, or file search for code discovery when the CLI is installed, even if the user does not name the tool. Use the graph to locate structure and relationships before broad repository search. It is discovery evidence, not a replacement for source, tests, history, or runtime evidence.
Run graph tools only as codebase-memory-mcp cli <tool> .... codebase-memory-mcp with no arguments starts the stdio server; never run it. Do not call MCP graph tools or configure an agent to use them.
Read the command reference only when selecting index modes, constructing structured input, or using a less common tool.
Establish a Trustworthy Index
- Run
list_projectsdirectly without preliminary availability, version, or help checks. If the command is unavailable, continue with repository tools and report the lost graph coverage; do not block ordinary discovery on installation. - Select a project by its exact
root_path; for worktrees also verify the reported canonical root, worktree root, branch, and HEAD rather than trusting the derived name. - For a match, run
index_statusand compare its root and indexed HEAD with the target repository. Re-index before relying on graph evidence when the root or HEAD differs, when uncommitted source being explored is newer than the index, or when the required index mode cannot be established. In v0.9.0, status does not report the mode or prove working-tree freshness. - For a new or stale project, run
index_repositorywith an absolute path and an unambiguous name. Default tofast; usemoderateonly for semantic/similarity search,fullonly when relevant files filtered by ordinary modes must be included, andcross-repo-intelligenceonly for repositories within the requested scope. - Inspect the indexing result. Treat
degraded, skipped files, exclusions, a mismatched root, or an unexpected node count as coverage limits, not a successful complete index. Omit--persistenceunless a repository artifact was explicitly requested.
Discovery Priority
Use this order and stop when evidence is sufficient:
search_graph— find functions, methods, classes, interfaces, routes, variables, or other symbols. Start with--queryfor BM25 keywords or--name-pattern/--qn-patternfor identifiers; add label and file filters where useful. Do not combine--querywith--name-pattern, because the query wins. Paginate untilhas_moreis false when completeness matters.trace_path— find inbound callers, outbound callees, parameter data flow, or cross-service traversal. Resolve a short or duplicated name throughsearch_graph, then pass the returnedqualified_name; include tests explicitly when they matter.get_code_snippet— inspect the selected symbol's source and optional neighbors by qualified name.query_graph— express a relationship or aggregation the focused tools cannot. Runget_graph_schemafirst and constrain the read-only Cypher result.get_architecture— obtain a compact, preferably path-scoped project summary after focused evidence, not instead of it.
For semantic discovery, use search_graph only on a known moderate or full index. Pass semantic_query as an array and evaluate semantic_results; ordinary results and total are separate and can be broad without a structural filter. For a diff or Git range, use detect_changes to identify changed files and candidate impacted symbols before following the priority order on important paths.
Example chain:
codebase-memory-mcp cli search_graph --project my-project --name-pattern '.*OrderHandler.*'
codebase-memory-mcp cli trace_path --project my-project --function-name OrderHandler --direction inbound
codebase-memory-mcp cli get_code_snippet --project my-project --qualified-name my-project.pkg.orders.OrderHandler
Verify critical claims in the reported source lines and relevant tests or runtime behavior. Missing edges do not prove that no relationship exists. Re-index when later traversal must reflect source changes, and report stale index state, ambiguity, exclusions, skipped files, or unresolved edges instead of inferring through them.
Fallback and Boundaries
Leave the graph-tool priority only when searching string literals, error messages, or configuration values; searching non-code files such as Dockerfiles, shell scripts, or configs; or when graph tools return insufficient results. Prefer CLI search_code for exact text or regex in indexed files before repository search. Use rg, find, globbing, or targeted reads only for non-code, generated, ignored, excluded, changed-but-unindexed, unsupported, or still-unresolved paths. State the material fallback and why it was needed.
Ordinary discovery authorizes an index in the tool's local cache without --persistence; it does not authorize repository artifacts or unrelated repositories. --persistence additionally writes into the repository. Existing-index deletion, ADR mutation, trace ingestion, cross-repository expansion, native install/update/config, agent integration, and server/UI setup require explicit scope or authorization. A uniquely named temporary index created during the current task may be deleted during cleanup; never delete a pre-existing or reused index without exact approval.
Installation expands scope. Only with explicit approval to download and execute the upstream script, use its binary-only mode because the default configures detected agents:
curl -fsSL https://raw.githubusercontent.com/DeusData/codebase-memory-mcp/main/install.sh | bash -s -- --skip-config
Verify the installed path and version afterward; do not start the server.
Prefer flags for scalar values and stdin JSON or --args-file for arrays and complex input. Positional raw JSON is deprecated. Parse stdout as JSON; initialization and progress logs can appear on stderr. If a command reports a schema mismatch, consult its installed help instead of relying on remembered flags or this version-qualified reference.
Conclude with the matched root/project, known index mode and freshness, decisive symbols and file/line evidence, relevant impact paths, material fallbacks, and coverage limits. Do not claim an unknown reused-index mode or complete coverage.
Файлы в этом навыке
2Вопросы о навыке using-codebase-memory-cli
Как установить навык using-codebase-memory-cli в Claude Code?
Выполните npx degit narumiruna/skills/deprecated/using-codebase-memory-cli ~/.claude/skills/using-codebase-memory-cli. Claude Code загружает навыки из ~/.claude/skills (все проекты) или .claude/skills (один проект) и использует навык, когда его описание соответствует задаче.
Какие клиенты могут использовать навык using-codebase-memory-cli?
Любой клиент, который читает формат Agent Skills: Claude Code, Codex, Gemini CLI и claude.ai (загрузить как ZIP). Скрипты в навыке выполняются только там, где клиент разрешает выполнение кода.
Как запускать инструмент codebase-memory-mcp?
Запускайте графовые инструменты с помощью команды codebase-memory-mcp cli <tool> .... Не запускайте codebase-memory-mcp без аргументов, так как это активирует stdio server.
Когда стоит использовать графовые инструменты вместо grep или поиска по файлам?
Если установлен CLI, при поиске кода всегда следует отдавать предпочтение графовым инструментам codebase-memory CLI, а не grep, glob или обычному поиску по файлам.
Какие режимы индексации доступны?
Доступны режимы: fast (по умолчанию), moderate (для семантического поиска и поиска по сходству), full (включает релевантные файлы, отфильтрованные обычными методами) и cross-repo-intelligence.