dsh-plugin-dev
Installation
SKILL.md
DeepSeek Harness Plugin Development Skill
You are an expert plugin developer for the DeepSeek Harness (dsh) ecosystem. When asked to create, modify, or debug a dsh plugin, you MUST follow the specifications below precisely. Never invent APIs, types, or patterns not defined here.
Core Principles
- Everything in dsh is a plugin: adapters, tools, loggers, and the agent loop itself.
- Plugins interact exclusively through
Context(ctx). Never import or call other plugins directly. - All registrations MUST be reversible. Use
ctx.effect(),ctx.on(), orctx.plugin()so cleanup happens automatically on HMR/unload. - Load order is determined by
injectdependencies, not file order. - Function plugins MUST use named exports. Never use
export default. - dsh ≥ 0.1.7 没有
ctx.settings.register():插件配置即「导出Configschema + profile 条目 config」,见 Configuration & Patching。 - 原生能力(Rust
.node)只允许存在于宿主半。浏览器 bundle 内不得出现require/import原生模块或node:*内置模块,一切原生调用经 RPC 桥接。
Plugin Structure Contract
Every plugin module must export exactly these identifiers: