GongYuanCaiJi/dsh-understand-anything
理解任何事物技能包(移植自 Understand-Anything)
Project Overview项目介绍
dsh-understand-anything is a native plugin built specifically for DeepSeek Harness, ported verbatim from the MIT-licensed upstream Egonex-AI/Understand-Anything while only the packaging and plugin mechanism are adapted to dsh. Its core capability is a single slash command, /understand, which scans the current codebase and writes a structured knowledge-graph.json capturing architecture, dependencies, call graphs, and complexity. Around that graph the plugin exposes six more commands: /understand-chat for grounded question answering without dumping full files into context, /understand-diff for impact analysis of uncommitted changes, /understand-onboard for new-member guides, /understand-domain for business-domain extraction, /understand-knowledge for Karpathy-pattern LLM wikis, and /understand-figma for design knowledge graphs fetched via the Figma REST API. Installation is done through dsh plugin --profile <profile> add github:GongYuanCaiJi/dsh-understand-anything, or by cloning locally, running npm install, and adding the directory; a --language zh flag switches summaries, tags, and descriptions to Chinese.
The typical workflow starts with running /understand in a project root, which streams seven phases (scanning, batched file analysis, graph assembly) and lands a graph such as 847 nodes with 1,204 edges on a medium-sized repository. Once the graph exists, developers ask architecture or login-flow questions through /understand-chat, request impact notes for their current diff via /understand-diff, or generate onboarding material with /understand-onboard for incoming teammates. The intended audience is engineers onboarding into unfamiliar repositories, reviewers performing change-impact analysis, tech leads producing architecture briefs, and small teams that want a reusable, queryable view of their code without standing up the upstream web app. The graph output is also machine-readable, so downstream tools can consume .ua/knowledge-graph.json directly.
Hard requirements are Node.js ≥ 22 and pnpm ≥ 10, matching upstream; on the first invocation the skill compiles @understand-anything/core with pnpm, and if pnpm blocks build scripts the user must add the package to allowBuilds in the profile's pnpm-workspace.yaml (the bundled config already permits the tree-sitter grammars). The license is MIT, with a third-party notices manifest covering 242 files whose SHA-256 hashes can be re-verified, and analysis-engine plus skill text remain in upstream English without translation. Explicitly excluded by design are the upstream homepage site, the interactive packages/dashboard, the standalone packages/viewer, the Claude Code-specific hooks/ directory, and platform install scripts or manifests — users needing a graphical dashboard must fetch those from the upstream repository rather than expecting them inside this dsh plugin.
dsh-understand-anything 是一个面向 DeepSeek Harness 的原生插件,移植自上游 Egonex-AI/Understand-Anything(MIT),skills 与 agent 层逐字保留,只把打包与分发机制改为 dsh 插件形态。核心能力是 /understand 扫描代码库产出 knowledge-graph.json,再衍生 /understand-chat、/understand-diff、/understand-onboard、/understand-domain、/understand-knowledge、/understand-figma 六条斜杠命令,覆盖问答、影响分析、新手导读、业务领域抽取、知识库与 Figma 设计稿分析。通过 dsh plugin --profile <profile> add github:GongYuanCaiJi/dsh-understand-anything 安装,或克隆本地后 npm install 再 dsh plugin add .;依赖 Node.js ≥ 22 与 pnpm ≥ 10,引擎与文本保持英文原文。
典型用法是先在当前项目运行 /understand 生成图谱(中型仓库约 847 节点、1204 条边),再用 /understand-chat <问题> 让模型基于图谱回答,避免把整文件塞进上下文;--language zh 可输出中文摘要与标签。适合需要快速接手陌生仓库、做改动评审、为新人准备 onboarding 文档或梳理业务领域的开发者,以及把图谱喂给其他工具做架构分析的小型团队。注意上游的 web 端(homepage、dashboard、viewer)、Claude Code 的 hooks/ 与平台安装脚本未搬入——这些是 dsh 插件形态的天然能力边界,需要看板请回到上游仓库。
首次运行需联网:prepare 会做结构校验,/understand 首次执行会用 pnpm 构建 @understand-anything/core;若 pnpm 拦截构建,请把本套件加进 profile 的 pnpm-workspace.yaml 的 allowBuilds,自带文件已包含 tree-sitter 语法许可。License 为 MIT,逐字保真清单见 THIRD_PARTY_NOTICES.md(242 档 SHA-256 可自验);分析引擎与技能文本仍为英文,未做翻译。第三方资产归属上游 Yuxiang Lin · Infinite Universe, Inc.。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-understand-anything(GongYuanCaiJi/dsh-understand-anything)
仓库:https://github.com/GongYuanCaiJi/dsh-understand-anything
本站详情页:https://www.yhbd.top/plugins/gongyuancaiji-dsh-understand-anything/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 3 · 最近提交 2026-08-15 · 主语言 TypeScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- Only 3 stars - very few users, little community feedback星标只有 3,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项
Compatibility兼容性
- DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
- External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
- Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册
Security安全性
- Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
- Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
- curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
- Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
- Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
- Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式
Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。
Or use CLI install (for developers)或使用命令行安装(适合开发者)
CLI Install命令行安装
dsh plugin --profile web add github:GongYuanCaiJi/dsh-understand-anything
把 GongYuanCaiJi/dsh-understand-anything 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
🧠 dsh-understand-anything
简体中文 | English
一句话:让 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 <你的 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 <你的 profile> add .
需要 Node.js ≥ 22 与 pnpm ≥ 10(上游要求)。
🚀 使用
# 分析当前代码库(生成 .ua/knowledge-graph.json)
/understand
# 中文分析
/understand --language zh
# 增量更新(只重新分析改过的文件)
/understand
# 问代码库问题
/understand-chat 这个项目的架构是怎么样的?
# 分析当前改动的影响
/understand-diff
# 生成新手指南
/understand-onboard
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
titanwings/distilly
YuJunZhiXue/dsh-purge
Clearailhc/clearai-dsh
yejiming/MuseAI
superdesigndev/superdesign-skill
Miaotofu01/Study-Mate