Codebase memory mcp
Community-contributed instructions, agents, skills, and configurations to help you make the most of GitHub Copilot.
npx -y skills add github/awesome-copilot --skill codebase-memory-mcpAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
What its author says it does
Copied from the file, not written here
Use when a configured codebase-memory-mcp server can assist with graph-backed code discovery, architecture orientation, symbol lookup, callers and callees, dependency or data-flow tracing, impact analysis, unfamiliar modules, or an explicit Codebase Memory request.
SKILL.md
2.9 KB, as published. Nobody here has run it
Codebase Memory MCP
Use the configured Codebase Memory graph as a discovery accelerator, not as the sole source of truth. Confirm graph-derived conclusions with source snippets or local files before editing code or making strong claims.
Workflow
- Discover the Codebase Memory tools exposed by the current MCP client; clients may prefix or rename tool namespaces.
- Call
list_projectswhen available and use the exact indexed project name. If the repository is not indexed, continue with local exploration or ask before callingindex_repositorywhen graph access is important. - Before branch-sensitive or edit-sensitive conclusions, use
index_statusordetect_changeswhen available. After a branch switch, assume the index may be stale until checked. If freshness cannot be established, disclose that limitation and verify locally. - Use
get_architectureonce for orientation in an unfamiliar repository or subsystem. Do not repeat it for narrow follow-up questions. - Use
search_graphfor definitions, implementations, routes, classes, interfaces, callers, and related symbols. Prefer a natural-language query for discovery and a name or qualified-name pattern for known symbols. Narrow by label or path, set a result limit, and paginate or reduce scope when the response reports more results. - Use
search_codeor normal repository search for literal strings, configuration keys, test identifiers, error messages, and non-code files. Do not turn a precise text lookup into a broad graph query. - After graph search, use
get_code_snippetwith the returned qualified name. If source snippets are unavailable, open the local file before relying on the result. - Use
trace_pathfor callers, callees, dependency paths, data flow, cross-service paths, and impact analysis. Include tests only when test coverage is part of the question. - Use
get_graph_schemabeforequery_graph. Reserve custom queries for multi-hop or aggregate questions that simpler tools cannot answer, and applyLIMITor the tool's row limit. - When graph and checked-out source disagree, treat source as current and report likely index drift.
Safety and Fallbacks
- Do not install Codebase Memory or another third-party skill from this workflow.
- Do not call
delete_project, ingest traces, update ADRs, or index a repository unless the user explicitly requested or approved the action; announce it before execution. - Fall back to normal repository exploration when the MCP server, project, index, or required capability is unavailable; do not invent tool results or stop a task that can be completed safely without the graph.