扫描代码库生成知识图谱,聊天问答查改动影响
32.6/100
综合分
4
GitHub 星标
—
npm 周下载
—/5
用户评分
数据截至 2026/9/16 · 周下载取自 npm 全网(含 CI / 镜像),非本站安装数;综合分由星标、活跃度与兼容性检查合成。
自动兼容检查有告警:未发布到 npm registry,仅可从源码安装。
安装命令 · 需先装 dsh CLI 引擎
dsh plugin --profile web add GongYuanCaiJi/dsh-understand-anything该包不可直接 npm 安装,改从 GitHub 源安装(明细见下方安装检查)
状态速览
判定依据:实装验证 · 静态安装检查 · 自动扫描 · 仓库维护状态信任档位:需留意
是什么
dsh 原生插件 · other
安全吗
本站尚未对该插件做风险分级
暂未覆盖,不等同于无风险
还在维护吗
更新放缓:最近一次提交在 80 天前
档位由哪些信号合成
本站实装验证(真实安装 L4 覆盖全站;L5 为运行时冒烟或实机截图,覆盖范围小于 L4) · 验证所用 dsh 版本 · 静态安装检查 · 风险分级 · 仓库维护状态。 下方各区块是它的证据明细。
⚠︎ 实装验证未通过(unknown · 2026/10/28) ——可能是验证环境差异,装前建议到 GitHub 仓库确认最近更新与 issue。
社区实装还没有人打卡 · 装过的第一个就是你
安装兼容性检查⚠ 装前注意未发布到 npm registry,仅可从源码安装
展开查看检查明细 ↓
以下结论由程序自动检查 npm 包、engines 声明与入口文件得出,未做人工实机验证——能装不等于用着没问题。
✗npm 包dsh-understand-anything(未发布到 npm,仅可源码安装)
✓Node 引擎要求 >=22.0.0 · 基线 Node 22.19 满足
✓dsh CLI 依赖未声明 dsh 版本约束
✓入口文件main/exports/bin 已声明
验证方式:npm registry 存在性 + package.json 静态校验 · 最后检查 2026/10/17 16:44:35
安全扫描自动 · 静态分析源码v2.7.0🔵 扫描:含敏感能力尚无人工评估展开查看扫描说明与证据 ↓
安全扫描自动 · 静态分析源码
v2.7.0静态扫描发现插件具备触达本地系统的能力:执行外部命令、读写/删除本地文件、读取剪贴板或密钥类环境变量(至少其一)。这是能力清单,不是危险判定——具体能力项与证据见下方,安装前请自行判断是否需要。
可执行外部命令读写/删除本地文件
查看扫描证据(共 77 处,展示前 70 条)
- 读取本地文件index.js:29
if (!existsSync(root)) return []; - 读取本地文件index.js:31
for (const entry of readdirSync(root, { withFileTypes: true })) { - 读取本地文件index.js:34
if (!existsSync(skillFile)) continue; - 读取本地文件index.js:35
const body = readFileSync(skillFile, 'utf8'); - 读取本地文件index.js:81
if (typeof candidate.locator !== 'string' || !existsSync(candidate.locator)) return undefined; - 读取本地文件index.js:89
content: readFileSync(candidate.locator, 'utf8'), - 读取本地文件test/structure.test.js:14
assert.ok(existsSync(skillsDir), 'skills/ 存在'); - 读取本地文件test/structure.test.js:15
const dirs = readdirSync(skillsDir, { withFileTypes: true }).filter((e) => e.isDirectory()); - 读取本地文件test/structure.test.js:18
assert.ok(existsSync(join(skillsDir, d.name, 'SKILL.md')), `skills/${d.name}/SKILL.md 存在`); - 读取本地文件test/structure.test.js:24
assert.ok(existsSync(agentsDir), 'agents/ 存在'); - 读取本地文件test/structure.test.js:25
const files = readdirSync(agentsDir).filter((f) => f.endsWith('.md')); - 读取本地文件test/structure.test.js:37
assert.ok(existsSync(join(ROOT, p)), `${p} 存在`); - 读取本地文件packages/core/src/fingerprint.ts:263
if (!existsSync(absolutePath)) continue; - 读取本地文件packages/core/src/fingerprint.ts:265
const content = readFileSync(absolutePath, "utf-8"); - 读取本地文件packages/core/src/fingerprint.ts:313
const existsNow = existsSync(absolutePath); - 读取本地文件packages/core/src/fingerprint.ts:340
const content = readFileSync(absolutePath, "utf-8"); - 读取本地文件packages/core/src/ignore-filter.ts:97
if (existsSync(projectIgnorePath)) { - 读取本地文件packages/core/src/ignore-filter.ts:98
const content = readFileSync(projectIgnorePath, "utf-8"); - 读取本地文件packages/core/src/ignore-filter.ts:104
if (existsSync(rootIgnorePath)) { - 读取本地文件packages/core/src/ignore-filter.ts:105
const content = readFileSync(rootIgnorePath, "utf-8"); - 读取本地文件packages/core/src/ignore-generator.ts:213
if (!existsSync(gitignorePath)) return []; - 读取本地文件packages/core/src/ignore-generator.ts:214
const content = readFileSync(gitignorePath, "utf-8"); - 读取本地文件packages/core/src/ignore-generator.ts:239
entries = readdirSync(projectRoot, { withFileTypes: true, encoding: "utf-8" }); - 执行外部命令固定命令packages/core/src/staleness.ts:92
execFile( - 执行外部命令固定命令packages/core/src/staleness.ts:370
const output = execFileSync("git", ["diff", `${lastCommitHash}..HEAD`, "--name-only"], { - 读取本地文件skills/understand/build-fingerprints.mjs:66
readFileSync(inputPath, 'utf-8'), - 读取本地文件skills/understand/compute-batches.mjs:99
const content = await readFile(abs, 'utf-8'); - 读取本地文件skills/understand/compute-batches.mjs:412
content = readFileSync(changedFilesPath, 'utf-8'); - 读取本地文件skills/understand/compute-batches.mjs:434
if (!existsSync(scanPath)) { - 读取本地文件skills/understand/compute-batches.mjs:439
const scan = JSON.parse(readFileSync(scanPath, 'utf-8')); - 写入本地文件skills/understand/compute-batches.mjs:632
mkdirSync(dirname(outPath), { recursive: true }); - 写入本地文件skills/understand/compute-batches.mjs:633
writeFileSync(outPath, JSON.stringify(output, null, 2), 'utf-8'); - 读取本地文件skills/understand/extract-import-map.mjs:55
const raw = await readFile(absPath, 'utf-8'); - 读取本地文件skills/understand/extract-import-map.mjs:224
if (!existsSync(absPath)) continue; - 读取本地文件skills/understand/extract-import-map.mjs:290
if (!existsSync(absPath)) continue; - 读取本地文件skills/understand/extract-import-map.mjs:385
if (!existsSync(absPath)) continue; - 读取本地文件skills/understand/extract-import-map.mjs:1449
if (!existsSync(absPath)) continue; - 读取本地文件skills/understand/extract-import-map.mjs:1807
const inputRaw = readFileSync(inputPath, 'utf-8'); - 写入本地文件skills/understand/extract-import-map.mjs:1951
writeFileSync(outputPath, JSON.stringify(output, null, 2), 'utf-8'); - 读取本地文件skills/understand/extract-structure.mjs:66
const inputRaw = readFileSync(inputPath, 'utf-8'); - 读取本地文件skills/understand/extract-structure.mjs:97
content = readFileSync(absolutePath, 'utf-8'); - 写入本地文件skills/understand/extract-structure.mjs:135
writeFileSync(outputPath, JSON.stringify(output, null, 2), 'utf-8'); - 读取本地文件skills/understand/extract-structure.mjs:137
if (!existsSync(outputPath)) { - 读取本地文件skills/understand/generate-ignore.mjs:40
if (envRoot && existsSync(join(envRoot, 'package.json'))) { - 读取本地文件skills/understand/generate-ignore.mjs:62
if (existsSync(outPath)) { - 读取本地文件skills/understand/generate-ignore.mjs:67
if (!existsSync(outDir)) mkdirSync(outDir, { recursive: true }); - 写入本地文件skills/understand/generate-ignore.mjs:67
if (!existsSync(outDir)) mkdirSync(outDir, { recursive: true }); - 写入本地文件skills/understand/generate-ignore.mjs:68
writeFileSync(outPath, generateStarterIgnoreFile(projectRoot)); - 执行外部命令固定命令skills/understand/scan-project.mjs:502
const result = spawnSync('git', ['ls-files', '-z', '-co', '--exclude-standard'], { - 读取本地文件skills/understand/scan-project.mjs:543
entries = readdirSync(absDir, { withFileTypes: true }); - 读取本地文件skills/understand/scan-project.mjs:634
existsSync(join(projectRoot, '.understandignore')) - 读取本地文件skills/understand/scan-project.mjs:635
|| existsSync(join(resolveUaDir(projectRoot), '.understandignore')) - 读取本地文件skills/understand/scan-project.mjs:654
const buf = readFileSync(absPath); - 读取本地文件skills/understand/scan-project.mjs:746
if (!existsSync(projectRoot)) { - 读取本地文件skills/understand/scan-project.mjs:752
const projectRootStat = statSync(projectRoot); - 写入本地文件skills/understand/scan-project.mjs:865
writeFileSync(outputPath, JSON.stringify(output, null, 2), 'utf-8'); - 读取本地文件skills/understand-figma/figma-merge.mjs:8
const uaDir = (root) => { const legacy = join(root, ".understand-anything"); return existsSync(legacy) ? legacy : join(root, ".ua"); }; - 读取本地文件skills/understand-figma/figma-merge.mjs:12
const manifest = JSON.parse(readFileSync(join(interDir, "scan-manifest.json"), "utf8")); - 读取本地文件skills/understand-figma/figma-merge.mjs:13
const analyses = readdirSync(interDir) - 读取本地文件skills/understand-figma/figma-merge.mjs:15
.map((f) => JSON.parse(readFileSync(join(interDir, f), "utf8"))); - 写入本地文件skills/understand-figma/figma-merge.mjs:28
writeFileSync(join(outDir, "knowledge-graph.json"), JSON.stringify(result.data, null, 2)); - 写入本地文件skills/understand-figma/figma-merge.mjs:29
writeFileSync(join(outDir, "meta.json"), JSON.stringify({ - 读取本地文件skills/understand-figma/figma-scan.mjs:8
const uaDir = (root) => { const legacy = join(root, ".understand-anything"); return existsSync(legacy) ? legacy : join(root, ".ua"); }; - 读取本地文件skills/understand-figma/figma-scan.mjs:22
if (existsSync(metaPath)) { - 读取本地文件skills/understand-figma/figma-scan.mjs:24
prevVersion = JSON.parse(readFileSync(metaPath, "utf8")).figmaVersion ?? null; - 写入本地文件skills/understand-figma/figma-scan.mjs:72
mkdirSync(interDir, { recursive: true }); - 写入本地文件skills/understand-figma/figma-scan.mjs:73
writeFileSync(join(interDir, "scan-manifest.json"), JSON.stringify(manifest, null, 2)); - 读取本地文件skills/understand-figma/figma-scan.mjs:91
if (!existsSync(graphPath)) return; - 读取本地文件skills/understand-figma/figma-scan.mjs:93
const graph = JSON.parse(readFileSync(graphPath, "utf8")); - 写入本地文件skills/understand-figma/figma-scan.mjs:100
writeFileSync(graphPath, JSON.stringify(graph, null, 2));
扫描于 2026/11/4(0 天前) · 范围 入口闭包 + 发布文件清单 · 来源 GitHub 仓库
静态扫描只反映源码中出现的调用,不构成安全背书;人工评估与自动扫描相互独立、互不覆盖。
依赖的 DSH / Cordis 模块
@deepseek-ai/dsh-skill给这个插件打分还没有人投票↓
用户评分
还没有人投票,来当第一个
功能亮点
- 扫描代码库生成知识图谱
- 聊天问答查改动影响
理解任何东西技能包(移植自 Understand-Anything)
README
由 DeepSeek 最新模型翻译生成🧠 dsh-understand-anything
License
DSH
上游
一句话:让 AI 先看懂整个代码库,再回答你的问题——生成知识图谱,聊代码、查影响、做架构分析、生成新手上手指南。
移植自 Egonex-AI/Understand-Anything(MIT), skills / agent 层逐字保留,只适配 DeepSeek Harness 的插件机制。
✨ 功能
- 🕸️ 交互式知识图谱 —— 扫描代码库,产出 knowledge-graph.json(架构、依赖、调用关系、复杂度)
- 💬 /understand-chat 聊天问答 —— 基于图谱回答代码库问题,不把整个文件塞进上下文
- 🔍 /understand-diff 改动影响分析 —— 当前改动影响了哪些组件、有哪些风险
- 🧭 /understand-onboard 新手上手指南 —— 为新人生成项目导读
- 🏛️ /understand-domain 业务领域提取 —— 从代码中识别业务领域、流程与步骤
- 📚 /understand-knowledge 知识库分析 —— 分析 Karpathy 模式的 LLM wiki 知识库
- 🎨 /understand-figma 设计稿分析 —— 通过 Figma API 生成设计知识图谱
展开完整文档(README 剩余 1 节)
🧠 dsh-understand-anything License DSH 上游 一句话:让 AI 先看懂整个代码库,再回答你的问题——生成知识图谱,聊代码、查影响、做架构分析、生成新手上手指南。 移植自 Egonex-AI/Understand-Anything(MIT), skills / agent 层逐字保留,只适配 DeepSeek Harness 的插件机制。 ✨ 功能 - 🕸️ 交互式知识图谱 —— 扫描代码库,产出 knowledge-graph.json(架构、依赖、调用关系、复杂度) - 💬 /understand-chat 聊天问答 —— 基于图谱回答代码库问题,不把整个文件塞进上下文 - 🔍 /understand-diff 改动影响分析 —— 当前改动影响了哪些组件、有哪些风险 - 🧭 /understand-onboard 新手上手指南 —— 为新人生成项目导读 - 🏛️ /understand-domain 业务领域提取 —— 从代码中识别业务领域、流程与步骤 - 📚 /understand-knowledge 知识库分析 —— 分析 Karpathy 模式的 LLM wiki 知识库 - 🎨 /understand-figma 设计稿分析 —— 通过 Figma API 生成设计知识图谱 - 🌐 多语言 —— --language zh 生成中文摘要、标签与说明 📸 效果 在一个中型仓库里: /understand [Phase 1/7] Scanning project... [Phase 2/7] Analyzing files (12 batches)... [Phase 4/7] Assembling knowledge graph... ✅ Graph written to .ua/knowledge-graph.json (847 nodes, 1,204 edges) 然后: /understand-chat 这个项目怎么处理登录的? auth.ts 中的 login() 通过 authService.authenticate() 校验凭据,成功后在 sessionStore 建立会话,并在 middleware 里拦截未带 token 的请求…… 📦 安装 dsh plugin --profile add github:GongYuanCaiJi/dsh-understand-anything 安装时 prepare 会跑结构校验;首次运行 /understand 时,skill 会按上游流程用 pnpm 构建分析引擎(@understand-anything/core)。若 pnpm 拦下构建步骤,在 profile 的 pnpm-workspace.yaml 里把本套件加入 allowBuilds(本套件自带的 pnpm-workspace.yaml 已包含 tree-sitter 语法的 allowBuilds)。 从本地目录安装: git clone https://github.com/GongYuanCaiJi/dsh-understand-anything.git cd dsh-understand-anything && npm install dsh plugin --profile add . 需要 Node.js ≥ 22 与 pnpm ≥ 10(上游要求)。 🚀 使用 分析当前代码库(生成 .ua/knowledge-graph.json) /understand 中文分析 /understand --language zh 增量更新(只重新分析改过的文件) /understand 问代码库问题 /understand-chat 这个项目的架构是怎么样的? 分析当前改动的影响 /understand-diff 生成新手指南 /understand-onboard 分析引擎与技能文本均为上游英文原文,未做翻译(移植规则:100% 原样复制)。 ⚠️ 没搬什么(web 应用不搬) 上游包含完整的 web 应用,dsh 插件形态承接不了——这是能力边界,不是取捨: - homepage/ 官网、packages/dashboard 交互式看板、packages/viewer 独立查看器—— 均未搬入本套件。需要看板/查看器请到上游仓库 获取。 - Claude Code 专属的 hooks/(提交后自动更新)、平台安装脚本与各平台清单未搬入。 - 逐字保真清单见 THIRD_PARTY_NOTICES.md(242 档 SHA-256 可自验)。 📜 License MIT。上游 Understand-Anything © Yuxiang Lin · Infinite Universe, Inc.;本移植 © GongYuanCaiJi(dsh port)。 如果这个项目对你有帮助,请也给上游点个 star ⭐ 一句话:让 AI 在回答之前先理解整个代码库——生成知识图谱,然后聊天、差异分析、探索架构,并帮助新成员上手。 将 Egonex-AI/Understand-Anything (MIT)移植为 DeepSeek Harness 插件。 技能/代理层逐字保留;仅将插件机制适配为 dsh。 ✨ 功能特性 - 🕸️ 交互式知识图谱——将代码库扫描为 knowledge-graph.json(架构、依赖、调用图、复杂度) - 💬 /understand-chat——基于图谱回答代码库问题,无需将整个文件塞入上下文 - 🔍 /understand-diff——分析你当前更改的影响 - 🧭 /understand-onboard——为新团队成员生成上手引导 - 🏛️ /understand-domain——提取业务领域、流程和步骤 - 📚 /understand-knowledge——分析 Karpathy 模式的 LLM wiki - 🎨 /understand-figma——通过 REST API 从 Figma 生成设计知识图谱 - 🌐 多语言——--language zh 生成中文摘要、标签和描述 📦 安装 dsh plugin --profile add github:GongYuanCaiJi/dsh-understand-anything prepare 会在安装时运行结构检查;首次执行 /understand 时,该技能会按照上游流程使用 pnpm 构建分析引擎(@understand-anything/core)。如果 pnpm 阻止了构建步骤,请将此包添加到该 profile 的 pnpm-workspace.yaml 中的 allowBuilds(随附的 pnpm-workspace.yaml 已允许 tree-sitter 语法)。 本地安装: git clone https://github.com/GongYuanCaiJi/dsh-understand-anything.git cd dsh-understand-anything && npm install dsh plugin --profile add . 需要 Node.js ≥ 22 和 pnpm ≥ 10(上游要求)。 🚀 使用方法 /understand # 分析当前代码库 → .ua/knowledge-graph.json /understand --language zh # 中文分析 /understand-chat ... # 询问有关代码库的问题 /understand-diff # 分析当前更改的影响 /understand-onboard # 生成上手引导 分析引擎和技能文本保持上游英文(移植规则:100% 逐字复制)。 ⚠️ 未移植的内容(Web 应用) 上游附带一个完整的 Web 应用,而 dsh 插件无法承载它——这是能力边界,而非选择: - homepage/(营销网站)、packages/dashboard(交互式仪表盘)、 packages/viewer(独立查看器)——未包含。请从上游仓库获取。 - Claude Code 专属的 hooks/(提交后自动更新)、平台安装脚本和平台清单未包含。 - 逐字保真清单:THIRD_PARTY_NOTICES.md (242 个文件,可通过 SHA-256 验证)。 📜 许可证麻省理工学院。上游 Understand-Anything © Yuxiang Lin · Infinite Universe, Inc.;本移植版本 © GongYuanCaiJi(dsh 移植)。 如果这个项目对你有帮助,也请给上游点个星 ⭐
预览分享卡片长什么样 ↓
分享 · DeepSeek Harness Hub
GongYuanCaiJi/dsh-understand-anything
扫描代码库生成知识图谱,聊天问答查改动影响
相关插件 · 其他
模型破甲清洗HunYiSage/dsh-purge
⚔️ DeepSeek Harness 网络安全红队工具dsh-purge
★ 16,993已汉化DeepSeek 客户端
73
女娲蒸馏alchaincyf/nuwa-skill
输入名人名字,提炼其思维模型与决策方式供你调用
★ 37,308已汉化DSH
72
逆向分析桥接Fanqi89/dsh-rea
REA(Reverse Engineer Anything)MCP 桥接,用来把 REA 逆向工具接入 DSH 插件
★ 51已汉化DSH
72
语音女友beiyege-01/dsh-voice-ai-girlfriend
语音 AI 女友Voice AI girlfriend for DeepSeek Harness:Whisper…
★ 888已汉化DSH
71.6
红队越狱测试套件Minglink/dsh-infinite-gen-5
DeepSeek v4.1 flash 逆向工具无限五代 求 Star 收藏 ⭐欢迎大家提交项目的改进
★ 3,759已汉化DSH
71.4
协同办公空间dream-num/univer-workspace
一个让人类与 AI Agent 共同创作、协作和审阅的开源 Office 工作空间。
★ 2,269已汉化DSH
70.8
这是你的仓库?认领条目