GongYuanCaiJi/dsh-understand-anything

Plugin插件 Native原生 ⭐ 3 MIT Prompts & Skills提示词与技能

理解任何事物技能包(移植自 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.。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • 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

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 <你的 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 →

← 上一个 Prev dsh-acl-sandbox-patch 下一个 Next dsh-approval-voice →