slm-graph

Solid

Index and query a codebase as a structural graph — build the code graph, trace blast radius of a change, find callers/callees/inheritors, semantic code search by meaning, assemble PR review context, and detect what changed since last index. Use when the user asks how code connects, what breaks if X changes, what calls a function, what a class inherits from, how to navigate an unfamiliar codebase, or to understand risk before editing.

AI & Automation 199 stars 34 forks Updated today AGPL-3.0

Install

View on GitHub

Quality Score: 88/100

Stars 20%
77
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# slm-graph — Code Intelligence Skill Index any repo as a code knowledge graph and answer structural questions about it: callers, callees, impact radius, semantic search, and review context. Requires the `code` MCP profile (set `SLM_MCP_PROFILE=code` in your plugin `.mcp.json`). **Prerequisite rule:** every tool except `build_code_graph` self-guards — if the graph is not built it returns `{"success": false, "error": "Code graph not built. Run build_code_graph first."}`. Always index first. --- ## Tool Reference ### 1. `build_code_graph` — index a repository ``` build_code_graph( repo_path: str, languages: str = "", exclude_patterns: str = "", ) -> {success, files_parsed, nodes, edges, flows, communities, duration_ms} ``` Parses all supported source files, extracts functions/classes/imports, builds the call graph, detects execution flows, and identifies code communities. Replaces any previous index for the same repo. - `repo_path` — absolute path to the repository root. Must exist. - `languages` — comma-separated language filter, e.g. `"python,typescript"`. Empty string = index all supported languages. - `exclude_patterns` — comma-separated glob patterns to exclude, e.g. `"**/node_modules/**,**/.venv/**"`. Empty = no exclusions. When to (re)build: - Before using any other graph tool for the first time on a repo. - After significant changes to the codebase (pull, merge, large refactor). - When `detect_changes` or `query_graph` returns stale/unexpected resul...

Details

Author
qualixar
Repository
qualixar/superlocalmemory
Created
5 months ago
Last Updated
today
Language
Python
License
AGPL-3.0

Similar Skills

Semantically similar based on skill content — not just same category