Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/xun404/dsh-pihuo-plugins/dsh-plugin-composenpx skills add xun404/dsh-pihuo-plugins --skill dsh-plugin-composegit clone --depth 1 https://github.com/xun404/dsh-pihuo-pluginsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/xun404/dsh-pihuo-plugins/dsh-plugin-compose)<a href="https://agentmods.dev/skills/xun404/dsh-pihuo-plugins/dsh-plugin-compose"><img src="https://agentmods.dev/badge/skills/xun404/dsh-pihuo-plugins/dsh-plugin-compose.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00091 | $0.01021 |
| Opus 5 | $0.00046 | $0.00511 |
| Sonnet 5 | $0.00018 | $0.00204 |
| Haiku 4.5 | $0.00009 | $0.00102 |
Grade A, and why
dsh-plugin-compose scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
组装、安装、发布
运行中的 dsh 是一棵由多层 patch 叠出来的插件树。本技能拥有层顺序、patch 语义、profile/bundle manifest、安装命令。插件源码怎么写见 dsh-plugin-author。
对照:../deepseek-harness/packages/boot/app-boot、vendor/include、apps/cli/src/plugin.ts。
细节:references/layers.md、references/publish.md。
两个概念
| 组合包 bundle | Profile | |
|---|---|---|
| 回答 | 这个包贡献什么 | 按什么顺序叠哪些包 |
| 位置 | 任意 npm/git/path 包 | $DSH_HOME/profiles/<name>/ |
| manifest | "dsh": { "bundle": { "patch": "./cordis.patch.yml" } } |
"dsh": { "profile": { "bundles": [...] } } |
| 谁维护 | 插件作者 | dsh plugin(不要手改 bundles 除非排障) |
没有东西同时是两者。没有 dsh.bundle 的包仍可安装,只当普通依赖,不进层栈。
内置模板:web = dsh-base + dsh-web-app;headless = dsh-base + dsh-headless。自定义 profile 默认从 dsh-base 起。
层顺序(后写的按行胜出)
dsh.profile.bundles里每个组合包的 patch,按列表顺序- profile 的
cordis.patch.yml $DSH_HOME/cordis.patch.yml- 每个
--patchoverlay,按 argv 顺序
应用参数不是一层 patch。覆盖按 id 整行替换 config,不是深合并。覆盖必须重述该行每一个键。
模块解析:先 dsh 安装目录,再 profile node_modules,再 $DSH_HOME/profiles/node_modules(启动时 heal 的扁平 symlink)。内置包永远跟当前安装走。树外插件必须把 @deepseek-ai/cordis 和所用服务定义做成 peer,以便落到同一份安装实例。
日常命令
dsh plugin --profile <name> add <spec> # 转发 pnpm;相对路径按调用目录锚定
dsh plugin --profile <name> remove <pkg>
dsh --profile <name> --dump-config # 必须能看到 "# == <pkg>"
dsh --profile <name>
dsh web --patch ./overlay.yml # 开发 overlay,不改 profile
add 成功后按已安装状态对账:有 dsh.bundle 的依赖追加进 bundles;去掉或不再声明 bundle 的依赖从层栈移除。模板内置包不是依赖,不会被 remove 逻辑碰到。
写 patch 时
- 新插件:根级
insert,自带稳定id。 - 改已有行:
- id: <existing>+ 完整config。name若写了必须与目标一致,否则跳过并 warn。 insert进某个 group:带上那个 group 的id。- 同层后一条可以改前一条刚 insert 的行。
- 匹配不到的 patch 被跳过,不失败启动——所以 dump 是验收,不是可选项。
发布检查
按 publish.md 的作者清单做完再让用户 add。Git 安装必须有自包含 prepare,用户还要在该 profile 的 pnpm-workspace.yaml 里 allowBuilds。能发 npm / tarball 就不要逼用户授权 prepare。
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 5d ago First seen · 69 lines · 91 tokens per session scan A 86dff74d120d
dsh-plugin-compose is a skill published in the GitHub repository xun404/dsh-pihuo-plugins (2 stars, last pushed 20d ago), licensed MIT. It adds 91 tokens to every session and 1,021 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
dsh-plugin-guide
Use when developing, reviewing, packaging, debugging, or answering questions about DeepSeek Harness (DSH) plugins — the plugin-based agent harness on vendored Cordis. Applies the official plugin-development constraints (plugin contract, cordis.yml layers, services/events/effects, tool DSL, bundles/profiles) backed by…
codex-sync
Operate dsh-codex-sync from this session — preview and import Codex chats, toggle Skills/MCP/import settings, check MCP mirror health, install the reverse MCP bridge.
dsh-plugin-development
Use when designing, creating, modifying, packaging, installing, reviewing, auditing, or diagnosing a DeepSeek Harness plugin: a live dynamic Cordis plugin driven by cordisdefine, a source-backed workspace plugin under packages, or an out-of-tree installable bundle using dsh.bundle and cordis.patch.yml. Also use for…
dsh-web-community-plugin-developer
Develop a DSH community plugin and register it in the dsh-web Community Plugins index — author the plugin in the contributor's own repository following the official cordis bundle standard, add its entry to packages/dsh-community-plugins/community.json, regenerate the index with scripts/community-index, rebuild and…
dsh-web-skin-developer
Build a new skin for the dsh-web skin collection (DSH Web GUI) and publish it into the Skin Center — the first-level settings section — scaffold with scripts/dsh-skin-new, author the v2 skin.json manifest plus skin.css token remap (pure asset directory, no package.json, no build step), validate with scripts/dsh-skin…
dsh-web-pre-push-checks
Use before pushing, opening or updating a pull request, or claiming dsh-web checks pass. Selects the required repository gates and diff-specific generation, build, and GUI evidence.