slm-graph

仓库创建 2026年2月5日最近提交 1 天前SkillHot 收录 6 小时前
▸ 精选理由

把代码库索引成结构化图,便于影响分析和语义检索。

▸ 风险提示

需要访问代码仓库,可能泄露私有源码或敏感信息。

这个 Skill 做什么

将代码库索引为结构化图谱,支持调用链、影响范围与语义检索。

把仓库变成一张可查询的代码关系图,用来找 callers/callees、继承链、变更的爆炸半径,或按语义搜索代码片段。当你要评估改动风险、整理 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-src/skills/slm-graph/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/qualixar/superlocalmemory/main/plugin-src/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, no
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有