dsh-plugin-compose

dsh-plugin-compose is a skill for Claude Code from xun404/dsh-pihuo-plugins. It costs 91 tokens per session (1,021 once invoked), scanned A, original, MIT.

A guide for combining, installing, and publishing DeepSeek Harness plugins. A bundle is a group of plugins applied together, while a profile defines which bundles and settings are used.

In plain words
What is it for?
Use it to install plugins, create bundle patches, publish profiles, inspect configuration, or troubleshoot layer order.
Why use it?
It explains how plugin layers are ordered and how configuration overrides work, reducing installation and setup mistakes.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: installed under .agents/ (shared by several agents).

Install

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.

agentmods
npx agentmods add skills/xun404/dsh-pihuo-plugins/dsh-plugin-compose
Any agent
npx skills add xun404/dsh-pihuo-plugins --skill dsh-plugin-compose
Clone the repo
git clone --depth 1 https://github.com/xun404/dsh-pihuo-plugins

Made for: Claude Code.

Wrote 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.

agentmods badge for dsh-plugin-compose

README.md
[![agentmods](https://agentmods.dev/badge/skills/xun404/dsh-pihuo-plugins/dsh-plugin-compose.svg)](https://agentmods.dev/skills/xun404/dsh-pihuo-plugins/dsh-plugin-compose)
Your own site
<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>
Per session 91 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,021 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 5d ago against content hash 86dff74d120d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

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.

.agents/skills/dsh-plugin-compose/SKILL.md · 69 lines

What it actually says

组装、安装、发布

运行中的 dsh 是一棵由多层 patch 叠出来的插件树。本技能拥有层顺序、patch 语义、profile/bundle manifest、安装命令。插件源码怎么写见 dsh-plugin-author

对照:../deepseek-harness/packages/boot/app-bootvendor/includeapps/cli/src/plugin.ts

细节:references/layers.mdreferences/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-appheadless = dsh-base + dsh-headless。自定义 profile 默认从 dsh-base 起。

层顺序(后写的按行胜出)

  1. dsh.profile.bundles 里每个组合包的 patch,按列表顺序
  2. profile 的 cordis.patch.yml
  3. $DSH_HOME/cordis.patch.yml
  4. 每个 --patch overlay,按 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> + 完整 configname 若写了必须与目标一致,否则跳过并 warn。
  • insert 进某个 group:带上那个 group 的 id
  • 同层后一条可以改前一条刚 insert 的行。
  • 匹配不到的 patch 被跳过,不失败启动——所以 dump 是验收,不是可选项。

发布检查

publish.md 的作者清单做完再让用户 add。Git 安装必须有自包含 prepare,用户还要在该 profile 的 pnpm-workspace.yamlallowBuilds。能发 npm / tarball 就不要逼用户授权 prepare。

Files

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.

Changes

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.

  1. 5d ago First seen · 69 lines · 91 tokens per session scan A 86dff74d120d

Subscribe to this mod's changes

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.

Related

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…

PerryLink/dsh-plugin-guide · 76 tokens

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.

Walvez/dsh-codex-sync · 40 tokens

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…

w2112515/dsh-plugin-development · 130 tokens

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…

zhu1090093659/dsh-web · 123 tokens

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…

zhu1090093659/dsh-web · 120 tokens

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.

zhu1090093659/dsh-web · 45 tokens