dsh-skill-manager
v0.1.5
市场与管理
写入文件发起网络请求
DSH Web 插件:在设置面板里管理 Skill——浏览合并后的 Skill 目录、查看每个 Skill 的内容,并逐个开关模型/用户调用。
作者原文(英文)
DSH web plugin: manage skills from the Settings panel — browse the merged skill catalog, read each skill's body, and toggle model/user invocation per skill.
中文简介由 DeepSeek 模型翻译,仅供参考。
检测报告
有一定能力。命中了若干能力模式,大多是插件正常工作时会用到的。
2需留意3一般19未命中
高关注需留意一般
能力清单
- 写入文件
writes-files需留意19 处命中lib/index.js:481await writeFile(tmp, content, "utf8");lib/index.js:483await rename(tmp, path);lib/index.js:489await writeFile(path, content, "utf8");lib/index.js:648await mkdir(dir, { recursive: true });- 看写入位置。写自己的配置目录是正常的,写系统目录不是。
- 发起网络请求
network需留意10 处命中lib/client.js:614const res = await fetch(`/skill-manager/api/skills${scopeQuery(scope, cwd)}`);lib/client.js:620const res = await fetch("/skill-manager/api/workspaces");lib/client.js:626const res = await fetch(`/skill-manager/api/skills/${encodeURIComponent(name)}/body${scopeQuery(scope, cwd)}`);lib/client.js:632const res = await fetch(`/skill-manager/api/skills/${encodeURIComponent(name)}/invocation${scopeQuery(scope, cwd)}`, {- 看请求发往哪些域名。发往作者自己的后端是常见做法。
- 读取文件
reads-files一般14 处命中lib/index.js:222entries = await readdir(root.path, { withFileTypes: true });lib/index.js:235raw = await readFile(filePath, "utf8");lib/index.js:415const next = applyFrontmatterPatch(await readFile(path, "utf8"), toFrontmatterPatch(patch));lib/index.js:424const next = applyFrontmatterPatch(await readFile(disk.path, "utf8"), toFrontmatterPatch(patch));- 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
- 读取环境变量
reads-env一般2 处命中lib/index.js:180const dshHome = process.env.DSH_HOME ?? join(home, ".dsh");src/user-skills.ts:39const dshHome = process.env.DSH_HOME ?? join(home, '.dsh')- 环境变量里常混有密钥。看它是否把整个 env 都读走。
- 动态加载模块
dynamic-import一般2 处命中lib/index.js:675const { rmSync } = await import("node:fs");src/skill-package.ts:267const { rmSync } = await import('node:fs')- 动态导入本身无害,但会让依赖关系难以静态审阅。
逐条扫描明细
| 能力 | 标识 | 关注度 | 命中次数 |
|---|---|---|---|
| 写入文件 | writes-files | 需留意 | 19 |
| 发起网络请求 | network | 需留意 | 10 |
| 读取文件 | reads-files | 一般 | 14 |
| 读取环境变量 | reads-env | 一般 | 2 |
| 动态加载模块 | dynamic-import | 一般 | 2 |
这份报告的口径
扫描读的是包里的源码,全程不执行第三方代码。 本次读了 23 个文件,扫描于 2026-10-14。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。