dsh-plugin-stylotrace
github.com/zhangyoufu-123/stylotrace
v0.1.15
技能包
可执行外部程序以 shell 执行命令写入文件
认证 L1已扫描 ✓健康 A/90周下载 29
Stylotrace 深度协作写作 Agent 的 DeepSeek Harness 插件:40 个 MCP 写作工具 + 完整技能包。风格学习(四层向量+外层调制器)、澄清→大纲→逐节写作→红队审计→读者群像,全流程可被 DSH Agent 调用。
该插件尚未翻译,显示作者原文。
dsh-plugindeepseek-harness-plugindeepseek-harnessdshwritingstyleagentchinese-writing
源仓库已无法访问 这个仓库已经删除、改名或转为私有,看不到源码了。npm 上的包仍然可以安装——安装走的是 npm,不读 GitHub——但无法审阅代码,装之前请自行判断。
检测报告
关注度高。命中了不少能力模式,其中可能有需要留意的。逐条看下面的清单。
2高关注3需留意4一般15未命中
高关注需留意一般
能力清单
- 可执行外部程序
spawns-processes高关注5 处命中…ripts/engine/src/doc-pipeline.js:9import { execFileSync } from 'node:child_process';…lotrace/scripts/engine/src/io.js:8import { execFileSync } from 'node:child_process';…race/scripts/engine/src/setup.js:5import { spawnSync } from 'node:child_process';…scripts/engine/src/synthesize.js:19import { spawnSync } from 'node:child_process';- 看它调用哪些程序。调用本机已有的工具是常见做法。
- 以 shell 执行命令
shell-exec高关注4 处命中…ripts/engine/src/doc-pipeline.js:95return execFileSync('python3', args, { encoding: 'utf8', maxBuffer: 64 * 1024 * 1024 }).trim();…lotrace/scripts/engine/src/io.js:35return execFileSync('python3', args, { encoding: 'utf8', maxBuffer: 64 * 1024 * 1024 }).trim();…lotrace/scripts/engine/src/io.js:113const found = execFileSync('which', [bin], { encoding: 'utf8', timeout: 5000 }).trim();…lotrace/scripts/engine/src/io.js:139const out = execFileSync(bin, args, {- 看命令字符串是拼出来的还是写死的。拼接用户输入才是真正的风险。
- 写入文件
writes-files需留意143 处命中…ipts/engine/src/academic-norm.js:328fs.mkdirSync(path.dirname(out), { recursive: true });…ipts/engine/src/academic-norm.js:329fs.writeFileSync(out, renderNormReport(report), 'utf8');…ripts/engine/src/author-sheet.js:155fs.mkdirSync(path.join(workspace, 'vault'), { recursive: true });…ripts/engine/src/author-sheet.js:156fs.writeFileSync(sheetFile(workspace), JSON.stringify(sheet, null, 2) + '\n', { mode: 0o600 });- 看写入位置。写自己的配置目录是正常的,写系统目录不是。
- 发起网络请求
network需留意18 处命中client.js:223fetch(url)…ripts/engine/src/doc-pipeline.js:142if (got.has(b.id) && got.get(b.id)) {…ripts/engine/src/doc-pipeline.js:143byId.set(b.id, got.get(b.id));…lotrace/scripts/engine/src/io.js:187const res = await fetch(`${cfg.baseUrl}/chat/completions`, {- 看请求发往哪些域名。发往作者自己的后端是常见做法。
- 启动伪终端
spawns-pty需留意1 处命中…race/scripts/engine/src/setup.js:28const r = spawnSync('sh', ['-lc', `command -v ${cmd}`], { encoding: 'utf8' });- 伪终端等于给了一个完整 shell。确认这是插件的核心功能。
- 读取文件
reads-files一般283 处命中…ipts/engine/src/academic-norm.js:288if (!t && file) t = fs.readFileSync(path.resolve(String(file)), 'utf8');…ipts/engine/src/academic-norm.js:289if (!t && fs.existsSync(path.join(w, 'draft.md'))) t = fs.readFileSync(path.join(w, 'draft.md'), 'utf8');…race/scripts/engine/src/asset.js:15_assets = JSON.parse(fs.readFileSync(path.join(TEMPLATES, 'asset-library.json'), 'utf8'));…race/scripts/engine/src/asset.js:25_thoughts = JSON.parse(fs.readFileSync(path.join(TEMPLATES, 'thought-library.json'), 'utf8'));- 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
- 接触凭据或密钥
credentials一般70 处命中…ipts/engine/src/academic-norm.js:292if (cfg.apiKey) {…race/scripts/engine/src/bible.js:110if (cfg?.apiKey) {…/scripts/engine/src/character.js:122if (cfg.apiKey) {…otrace/scripts/engine/src/cli.js:325`LLM 端点: ${cfg.baseUrl}(模型 ${cfg.model})${cfg.apiKey ? '✓ 已配置密钥' : '⚠ 未配置密钥(可用 mock 或本地服务)'}`,- 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
- 读取环境变量
reads-env一般27 处命中…otrace/scripts/engine/src/cli.js:314if (process.env.STYLOTRACE_DEBUG) console.error(err.stack || String(err));…otrace/scripts/engine/src/cli.js:1600const candidates = discoverCredentials(process.env);…ace/scripts/engine/src/config.js:11export function loadConfig(env = process.env) {…cripts/engine/src/credentials.js:54export function discoverFromEnv(env = process.env) {- 环境变量里常混有密钥。看它是否把整个 env 都读走。
- 动态加载模块
dynamic-import一般13 处命中…otrace/scripts/engine/src/cli.js:1360const { chatWithRetry } = await import('./llm.js');…otrace/scripts/engine/src/cli.js:1361const { DICTATE_DRAFT_PROMPT } = await import('./prompts.js');…otrace/scripts/engine/src/cli.js:1453const { autoReferences } = await import('./rag.js');…otrace/scripts/engine/src/cli.js:1466const { snapshot } = await import('./history.js');- 动态导入本身无害,但会让依赖关系难以静态审阅。
逐条扫描明细
| 能力 | 标识 | 关注度 | 命中次数 |
|---|---|---|---|
| 可执行外部程序 | spawns-processes | 高关注 | 5 |
| 以 shell 执行命令 | shell-exec | 高关注 | 4 |
| 写入文件 | writes-files | 需留意 | 143 |
| 发起网络请求 | network | 需留意 | 18 |
| 启动伪终端 | spawns-pty | 需留意 | 1 |
| 读取文件 | reads-files | 一般 | 283 |
| 接触凭据或密钥 | credentials | 一般 | 70 |
| 读取环境变量 | reads-env | 一般 | 27 |
| 动态加载模块 | dynamic-import | 一般 | 13 |
这份报告的口径
扫描读的是包里的源码,全程不执行第三方代码。 本次读了 118 个文件,扫描于 2026-10-16。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。
依赖安全公告
已查询这个插件声明的全部依赖,没有匹配到已公开的安全公告。(含 DSH 框架包在内的 @deepseek-ai/* 不作查询——那是运行时自己的问题,不是插件的。)
可信度
90
健康分 A
扣分项下方逐条附证据
- -10被版本门禁拦下:与当前 dsh 基线不兼容major
认证等级 L1
- L0内容完整性✓sha512-F8KKqCqP7lB7TLxW… 与本地 tarball 复算一致
- L1来源✓维护者 zhangyoufu,仓库 zhangyoufu-123/stylotrace(未做仓库审计)
- L2发行—被版本门禁拦下(与本站基线 dsh 版本不兼容)
- L3生态—含界面但还没有宿主启动记录
- L4多方独立验证—本站不做第三方独立背书
评分口径与作者信息
从 100 分开始按规则扣减:fail −20 / major −10 / warn −5 / minor −2;star 数、下载量、LLM 输出都不参与评分
- 维护者
- zhangyoufu
- 仓库
- https://github.com/zhangyoufu-123/stylotrace
- 许可
- MIT
- 最后发布
- 2026-08-25
- 周下载
- 29
- star
- —
扫描状态:已扫描。能力是事实,不是缺陷; 周下载与 star 只作参考,不参与评分。
认证等级核验的是这个包本身(内容指纹、来源、能否安装、声明是否属实);依赖漏洞是独立标注的,两者正交、不互相掩盖。可信 ≠ 无漏洞,上架 ≠ 推荐。
DSH