D

dsh-skill-manager

@luoxunhao/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 模型翻译,仅供参考。

分类
market
发布
2026-08-22
版本
v0.1.5

检测报告

有一定能力。命中了若干能力模式,大多是插件正常工作时会用到的。
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 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。

依赖安全公告

这个插件声明的依赖中,有 1 条已公开的安全公告 (最高等级:低):

等级依赖包编号摘要
低yauzlCVE-2026-31988yauzl contains an off-by-one error
修复版本:3.2.1 详情 →

查询的是依赖声明范围的下界(如 ^4.2.0 查 4.2.0), 不是实际安装到的版本。真正装的时候如果解析到了修复版本,就不受影响—— 所以这是「可能受影响」,不是「这个插件有漏洞」。数据来自 OSV.dev。

← 返回全部插件