using-codebase-memory-cli skill
✓ 検証済みCLI専用モードを使用して、グラフ優先のコードベース・インデックス作成、シンボル検索、およびデータフローの追跡を行います。
- GitHubスター
- 17
- ファイル
- 2
- 最終コミット
- 2026年11月7日
- ライセンス
- MIT
- 許可されたツール
- —
using-codebase-memory-cli skillは何をしますか
using-codebase-memory-cliはAgent Skillsです。 CLI専用モードを使用して、グラフ優先のコードベース・インデックス作成、シンボル検索、およびデータフローの追跡を行います。.
skillのSKILL.mdから生成された要約。
using-codebase-memory-cli skill について
単純なテキスト検索ではなく、構造的な関係を通じて複雑なコードベースをナビゲートしたい開発者は、この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 skillのインストール方法
各コマンドはskillフォルダをクライアントのskillsディレクトリにコピーします。読み込むには、クライアントを再起動するか新しいセッションを開始してください。Claude Codeにusing-codebase-memory-cli skillをインストールする
~/.claude/skills/using-codebase-memory-cli/SKILL.md
$ npx degit narumiruna/skills/deprecated/using-codebase-memory-cli ~/.claude/skills/using-codebase-memory-cliClaude Code (project)にusing-codebase-memory-cli skillをインストールする
.claude/skills/using-codebase-memory-cli/SKILL.md
$ npx degit narumiruna/skills/deprecated/using-codebase-memory-cli .claude/skills/using-codebase-memory-cliCodexにusing-codebase-memory-cli skillをインストールする
~/.agents/skills/using-codebase-memory-cli/SKILL.md
$ npx degit narumiruna/skills/deprecated/using-codebase-memory-cli ~/.agents/skills/using-codebase-memory-cliGemini CLIにusing-codebase-memory-cli skillをインストールする
~/.gemini/skills/using-codebase-memory-cli/SKILL.md
$ npx degit narumiruna/skills/deprecated/using-codebase-memory-cli ~/.gemini/skills/using-codebase-memory-cliClaude.aiにusing-codebase-memory-cli skillをインストールする
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
自動チェック
実行日 2026年11月14日完全なレポート →自動チェックに合格しました。これはセキュリティ監査ではありません。エージェントに実行させる前にスクリプトを読んでください。 チェックの仕組み · 点数を上げるための改善点
- ソースリポジトリがリンクされており、アクセス可能narumiruna/skills/deprecated/using-codebase-memory-cli is public and reachablegithub.com/narumiruna/skills/tree/HEAD/deprecated/using-code ↗合格
- オープンソースライセンス (OSI)MITspdx.org/licenses/MIT.html ↗合格
- 過去1年以内にコミットまたはリリースあり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 Skills の形式に従っているthe description does not say when to use the skillgithub.com/narumiruna/skills/blob/HEAD/deprecated/using-code ↗検出事項
SKILL.md
GitHubで表示Using 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.
このスキルのファイル
2using-codebase-memory-cli skillに関する質問
Claude Codeにusing-codebase-memory-cli skillをインストールするには
npx degit narumiruna/skills/deprecated/using-codebase-memory-cli ~/.claude/skills/using-codebase-memory-cliを実行してください。Claude Codeは~/.claude/skills(すべてのプロジェクト)または.claude/skills(単一プロジェクト)からskillsを読み込み、説明がタスクに一致する場合にskillを使用します。
using-codebase-memory-cli skillはどのクライアントで使用できますか
Agent Skills形式を読み込むすべてのクライアントで使用できます: Claude Code、Codex、Gemini CLI、claude.ai(ZIPとしてアップロード)。skill内のスクリプトは、クライアントがコード実行を許可した場合にのみ実行されます。
codebase-memory-mcpツールはどのように実行すればよいですか?
codebase-memory-mcp cli <tool> ... コマンドを使用してグラフツールを実行してください。引数なしで codebase-memory-mcp を実行しないでください。引数なしの場合はstdioサーバーが起動します。
grepやファイル検索の代わりに、いつグラフツールを使用すべきですか?
CLIがインストールされている場合、コードの探索には常にgrep、glob、またはファイル検索よりもcodebase-memory CLIのグラフツールを優先してください。
利用可能なインデックス作成モードにはどのようなものがありますか?
利用可能なモードは、fast(デフォルト)、moderate(セマンティック/類似性検索用)、full(通常のモードでフィルタリングされた関連ファイルを含める)、およびcross-repo-intelligenceです。