Folio (兰亭) @folio/dsh-tools: 15 schema-validated tools (memory + quality gates) of the consulting document-generation engine; pair with @folio/dsh-events for the full session protocol.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:nyantused-cpun/folio#path:/plugins/folio-tools
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time. Only install sources you trust, and pin a commit (github:owner/repo#sha).
README
P1 实施(2026-08-14)。把兰亭「模型决策点」命令注册为 DSH 原生工具;生成型机械命令(html-build/pptd-/docx-build/quote- 等)留 pwsh。
1. 工具面(15 个)
- 记忆面 9:folio_status / folio_pending / folio_recall / folio_read / folio_chunk_read / folio_graph_query / folio_session_start / folio_save / folio_load
- 质量面 6:folio_verify / folio_review / folio_cite_audit / folio_audit / folio_theme_verify / folio_spec_diff
每个工具 = defineTool({name, description, parameters, output, execute});execute 走 ctx.subprocess.spawn([PYTHON, "_cli.py", ...args])(vision-bridge 已验证模式),CLI 支持 --json 的命令结构化返回,其余返回 stdout 文本。value 恒为 {ok, exitCode, output, error?}。
2. 接口依据
ctx.tools.register/defineTool:dsh-tools 官方注册面(rc.6 逐行核实);注册层 = 调用方 ctx scope(profile 层 = host 全局);ctx.subprocess.spawn:argv/cwd/stdio.maxBytes/graceMs +proc.collected.stdout.readFrom(0).text;ctx.timeout:fiber 生命周期计时器;- guard 兼容:工具 spawn 不经过 pwsh/bash exec(与 guard 的 tools/pre-execute 无交叉);命令形态保持
.venv python _cli.py,满足 guard CLI 白名单(单测含正则断言)。
3. 目录
.dsh/folio-tools/
index.js 插件体(runCli + makeCliTool + apply)
defs.js TOOL_DEFS 纯数据(零依赖,可独立单测)
cordis.patch.yml 激活 patch(无 id insert,profile 层引用)
package.json
test/run-check.mjs 沙箱内自检(无 spawn);用户终端可跑 node --test 变体
README.md
4. 验证
- 沙箱内:
node --check index.js defs.js+node test/run-check.mjs(2026-08-14:10/10 通过); - 运行级(待 dsh web 重启):新会话问模型「你有哪些 folio_ 工具」;直接调 folio_status 应返回客户状态 JSON。
5. 已知限制
- host 插件改动需重启
dsh web生效; review/cite-audit/audit all是 LLM 重操作(timeoutMs 300s);folio_review云端审查依赖能力槽 key 或 DSH 子代理补位;- 工具输出为 CLI stdout 直传,超长输出由 DSH 工具结果剪枝(8192 字符)兜底。
6. 变更记录
- 0.1.0-rc.1(2026-08-14):M1+M2——15 工具(记忆面 9 + 质量面 6),defs 模块化 + 沙箱内自检脚本。
Links
More in this category
GanyuanRan/Aegis★ 1024
Software-engineering method pack for coding agents, with skills for baseline-first planning, systematic debugging, prompt hygiene, verification before completion, and repair/retirement tracking.
superdesigndev/superdesign-skill★ 414
Design skill for UI and marketing graphics on the Superdesign canvas: reads the repo for context, extracts its design system, then generates and iterates branchable design drafts, flow pages, and reusable components through the Superdesign CLI.
Ikalus1988/MisakaNet★ 410
Failure-recovery memory: search and record failure-recovery lessons from real engineering sessions, with BM25 + semantic RAG retrieval and a lessons knowledge base.
dhicoc/dsh-reverse-skill★ 13
Complete reverse-skill pack (85 SKILL.md) as a DeepSeek Harness Cordis plugin: reverse engineering, authorized pentesting and security-research skill router.
zhaiyateng/dsh-design-skills★ 10
Design-aesthetics skill pack (10 styles: dark SaaS, minimal white, neumorphism, brutalism, glassmorphism, Japanese minimal, bento grid, cyberpunk, vaporwave, art deco) with runnable landing-page demos: tokens, component rules, forbidden lists, and acceptance checklists per style.
creght-dev/skills★ 8
Skills for building websites on the Creght platform: CLI pull/push sync, page and component conventions, CMS, forms, auth, SEO, publishing and version rollback.