Borrowing it
Nothing to install: this file belongs to xun404/dsh-pihuo-plugins. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/xun404/dsh-pihuo-plugins/main/.agents/skills/dsh-plugin-author/SKILL.mdgit 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-author)<a href="https://agentmods.dev/skills/xun404/dsh-pihuo-plugins/dsh-plugin-author"><img src="https://agentmods.dev/badge/skills/xun404/dsh-pihuo-plugins/dsh-plugin-author.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.00087 | $0.01456 |
| Opus 5 | $0.00044 | $0.00728 |
| Sonnet 5 | $0.00017 | $0.00291 |
| Haiku 4.5 | $0.00009 | $0.00146 |
Grade A, and why
dsh-plugin-author 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 7d 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.
How it starts
The opening of the file, as written. The whole thing — 99 lines — stays where its author put it; the contents beside it link to each section on GitHub.
编写 dsh 插件
本技能是开发流程。运行时细节读 dsh-plugin-runtime;层与安装读 dsh-plugin-compose;命名与 seam 读 dsh-plugin-conventions;浏览器半读 dsh-plugin-client。模板只在 references/templates.md。
规范对照仓库:../deepseek-harness(若存在)。与源码冲突时以源码为准。
1. 分类,再动手
按用户目标选一种,且只选一种作为主交付。对照 conventions 的扩展点表:
| 用户要的 | 形态 | 必读 |
|---|---|---|
| 模型可调用的能力 | 工具插件:inject: ['tools'] + defineTool |
本技能 §3 + templates §工具 |
| 可替换的底层能力 | seam 三角(Definition / Provider / Consumer) | seams |
| 新模型提供方 | ctx.llm.registerAdapter |
templates §适配器 |
| 拦截 / 策略 | 事件钩子(优先 tools/*、agent/*) |
templates §钩子 |
| Web UI / 设置卡片 / Chat 节点 | 浏览器半 | dsh-plugin-client |
| 把已有模块装进 profile | 组合包(dsh.bundle + patch) |
dsh-plugin-compose |
不要为「以后可能扩展」先拆三角。一个包能诚实承担的职责就放一个包。
2. 落盘位置
本仓库是树外插件集,不要往 ../deepseek-harness/packages/ 加第一方包,除非用户明确要求改 harness。
默认骨架:
<pkg>/
package.json # name、exports、dsh.bundle
cordis.patch.yml # insert 本包行
src/index.ts # name / inject / Config / apply
tsconfig.json
README.md
- 包名:
dsh-<name>或@<scope>/dsh-<name>。不要用@deepseek-ai/。 - 插件
export const name用短横线 id,与 patchid对齐(见 conventions)。 - TypeScript 插件必须有自包含
prepare构建,git 安装才能用。步骤见 compose。
先列出将要创建的文件,再写。不要先写实现再补 manifest。
3. 实现顺序
- 写
package.json与cordis.patch.yml(compose 清单)。 - 导出
name、inject、可选Config(Schemastery,不是普通对象)、apply。三种形态见 runtime;默认用函数形态。只有要提供ctx.<key>时才用Service子类。 inject列出apply会读取的服务。可选服务用ctx.get('x'),不要写进inject。- 所有注册走
ctx(register/on/effect)。禁止模块顶层副作用。禁止自己removeListener/clearInterval来「对应」ctx.on/ctx.effect。 - 部署可能不同的值放进
Config。硬编码超时、路径、模型名是错的。 - 需要清理的外部资源包进一个
ctx.effect(() => disposer)。有顺序依赖的清理放进同一个 disposer。
What ships with it
1 file 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.
- 7d ago First seen · 99 lines · 87 tokens per session scan A d31589bad086
dsh-plugin-author is a skill published in the GitHub repository xun404/dsh-pihuo-plugins (2 stars, last pushed 21d ago), licensed MIT. It adds 87 tokens to every session and 1,456 once invoked, about $0.0004 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-sdk-upgrade
Safely select and install a compatible official @deepseek-ai SDK release for dsh plugin projects (dsh-web, dsh-trading, and similar monorepos) from npm using an isolated worktree, explicit cohort review, CI-equivalent validation, and controlled rollout — including syncing the project's declared DSH host-version floor…