slm-graph
仓库创建 2026年2月5日最近提交 1 天前SkillHot 收录 6 小时前
▸ 精选理由
对大型代码库做改动影响分析与 PR 上下文组装,提升审查效率。
▸ 风险提示
需要本地 SuperLocalMemory 与 code MCP 权限,能访问仓库文件
这个 Skill 做什么
将代码库索引为结构化图谱,做调用关系、影响半径和语义检索。
把代码库索引成结构化的代码图谱,能查调用关系、回溯变更的影响半径,还能做语义代码检索和拼凑 PR 审查上下文。遇到要弄清函数谁在调用、改动会波及哪些文件、或者在不熟悉仓库里快速定位相关代码就用它。特别之处是把代码当知识图谱来问,支持结构化与语义两种检索,能告诉你自上次索引后哪些东西变了。
▸ 展开 SKILL.md 英文原文
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.
199
Stars
34
Forks
37
仓库内 Skill
积累中
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/qualixar/superlocalmemory/main/plugin/skills/slm-graph/SKILL.md或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/qualixar/superlocalmemory/main/plugin/skills/slm-graph/SKILL.md"SKILL.MD 节选查看完整文件 ↗
# 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, novia SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有