green-dalii/dsh-plugin-dev-skill

Plugin插件 Native原生 ⭐ 3 MIT Prompts & Skills提示词与技能

A skill pack that enables any agent to develop DeepSeek Harness (DSH) plugins correctly, efficiently, and in accordance with the official conventions.

Project Overview项目介绍

DSH plugin development skill pack that enables any agent to build DeepSeek Harness plugins following official conventions. The core deliverable, SKILL.md, provides a mental model, copy-pasteable code templates, a step-by-step workflow, and a verification checklist; the References/ folder holds condensed deep dives on architecture, tools, config, LLM adapters, and more. Built on Cordis theory of revertible effects and reactive coeffects, it covers every plugin type, with all samples passing tsc --strict and running against the real Cordis loader. It follows the open Agent Skills standard, so Claude Code, Codex, DSH, and similar hosts can load it. Caveat: the skill body is currently in Chinese, while code templates and API names stay language-neutral.

DSH 插件开发技能包,让任意智能体遵循官方规范开发 DeepSeek Harness 插件。核心交付物 SKILL.md 提供心智模型、可复制代码模板、分步开发流程与验证清单;References/ 目录提供架构、工具、配置、LLM 适配器等深度参考。基于 Cordis 框架的可逆效果与反应式余效理论,覆盖所有插件类型,代码均通过 tsc 严格类型检查并在真实 Cordis 加载器中端到端运行。遵循 Agent Skills 标准,可被 Claude Code、Codex、DSH 等宿主加载。文件名为 kebab-case,且必须与 SKILL.md frontmatter 的 name 一致。注意:技能主体目前为中文,代码模板与 API 名称为语言中立。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add github:green-dalii/dsh-plugin-dev-skill

green-dalii/dsh-plugin-dev-skill 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

Deepseek Harness Plugin Dev Skill

English | 简体中文

License: MIT PRs Welcome Docs

A skill pack that enables any agent to develop DeepSeek Harness (DSH) plugins correctly, efficiently, and in accordance with the official conventions.

Core deliverable: SKILL.md — an operating manual an agent can load directly, covering the mental model, copy-pasteable code templates, a step-by-step development workflow, and a verification checklist. Deeper background lives in the condensed reference docs under References/.

Note: the skill itself (SKILL.md) and the reference docs are currently authored in Chinese (matching the official DSH documentation). Code templates and API names are language-neutral.

Highlights

  • 🧠 First-principles based: turns the "revertible effects + reactive coeffects" theory of Cordis (DSH's underlying framework) into actionable rules and templates
  • 🧩 Covers every plugin type: Tools (defineTool), LLM adapters, service providers/consumers, hooks, configuration, packaging & publishing
  • Templates verified against the real SDK: all sample code passes tsc --strict type checking and runs end-to-end against the real Cordis loader
  • 🔗 Traceable upstream updates: every reference doc ends with the official-doc URLs, so content can be revised when upstream changes

Structure

dsh-plugin-dev-skill/
├── SKILL.md                     # Main skill file: the operating manual (read this first)
├── README.md                    # This file (English)
├── README.zh-CN.md              # 中文说明
├── CHANGELOG.md                 # Changelog
├── CONTRIBUTING.md              # Contribution guide
├── SECURITY.md                  # Security policy
├── LICENSE                      # MIT
└── References/                  # Condensed, human/agent-readable reference material
    ├── 00-INDEX.md              # Index
    ├── 01-dsh-architecture.md   # DSH architecture overview
    ├── 02-plugin-basics.md      # Plugin basics: shapes/lifecycle/effect/HMR
    ├── 03-tools.md              # Tool development reference (defineTool)
    ├── 04-config.md             # Plugin configuration & Schemastery
    ├── 05-llm-adapter.md        # LLM adapter guide
    ├── 06-framework-services-events.md  # Services & dependencies, event system
    ├── 07-publish.md            # Packaging/install/profile/config layers
    ├── 08-capability-layering.md# Three-role capability design & seam catalog
    ├── 09-cordis-primer.md      # Cordis primer & ctx API cheat sheet
    ├── 10-spatiotemporal.md     # Paper summary (spatiotemporal composability)
    └── 11-cookbook.md           # Extension patterns (hooks/UI/protocol bridges/feature→mechanism)

Usage

  1. For agents: load SKILL.md and follow its development workflow (recon → implement → verify → deliver); consult the corresponding file under References/ when deeper background is needed.
  2. For humans: read SKILL.md and References/ to get a complete picture of DSH plugin development.

Install as a DSH skill (optional)

The DSH skill system accepts both directory bundles (<name>/SKILL.md) and flat Markdown files (<name>.md). Local discovery roots, in priority order:

Root Scope
<projectRoot>/.dsh/skills Project (rank 100)
<projectRoot>/.agents/skills Project (rank 200)
$DSH_HOME/skills (i.e. ~/.dsh/skills) User (rank 400)

Example — install as a user-level skill (the folder name must match the name in the SKILL.md frontmatter, dsh-plugin-dev-skill):

mkdir -p ~/.dsh/skills/dsh-plugin-dev-skill
cp SKILL.md ~/.dsh/skills/dsh-plugin-dev-skill/SKILL.md
cp -r References ~/.dsh/skills/dsh-plugin-dev-skill/References

The skill name must be kebab-case (^[a-z0-9]+(?:-[a-z0-9]+)*$).

Use with other agents (Claude Code, Codex, etc.)

This skill follows the open Agent Skills standard: a folder with SKILL.md plus YAML frontmatter (name, description, whenToUse) and a supporting References/ folder — the same shape used by Claude Code, Codex, and many other agent hosts. Install it anywhere you install agent skills.

Option A — let your agent install it (recommended)

The simplest way: just tell your agent the repo address and let it clone and install the skill itself. For example, paste this into a Claude Code session:

Install the skill from https://github.com/green-dalii/dsh-plugin-dev-skill into ~/.claude/skills/dsh-plugin-dev-skill/ and load SKILL.md when I work on DeepSeek Harness plugin development.

Or into a Codex CLI session:

Install the skill from https://github.com/green-dalii/dsh-plugin-dev-skill into ~/.agents/skills/dsh-plugin-dev-skill/.

A generic version that works with any agent:

Please install the skill from https://github.com/green-dalii/dsh-plugin-dev-skill into your skills directory (folder dsh-plugin-dev-skill containing SKILL.md and References/), then use it whenever the task involves developing DeepSeek Harness (DSH) plugins.

Option B — manual install

Agent / host Location Invocation
Claude Code (personal) ~/.claude/skills/dsh-plugin-dev-skill/SKILL.md /dsh-plugin-dev-skill, or auto-loaded when the description matches
Claude Code (project) <repo>/.claude/skills/dsh-plugin-dev-skill/SKILL.md same
Codex CLI (user) ~/.agents/skills/dsh-plugin-dev-skill/SKILL.md browse /skills, mention $dsh-plugin-dev-skill
Codex CLI (repo) <repo>/.agents/skills/dsh-plugin-dev-skill/SKILL.md same
DSH ~/.dsh/skills/dsh-plugin-dev-skill/SKILL.md see the DSH section above
Any Agent Skills host <skills-dir>/dsh-plugin-dev-skill/SKILL.md per host

Install with git clone (or symlink — both Claude Code and Codex follow symlinks, so git pull keeps the skill up to date):

git clone https://github.com/green-dalii/dsh-plugin-dev-skill.git ~/.claude/skills/dsh-plugin-dev-skill
# or:
ln -s /path/to/dsh-plugin-dev-skill ~/.claude/skills/dsh-plugin-dev-skill

Notes:

  • Keep the folder name dsh-plugin-dev-skill — it must match the frontmatter name (Claude Code uses it as the command name).
  • Extra frontmatter fields such as whenToUse are ignored by hosts that don't support them.
  • The skill body is currently authored in Chinese (matching the official DSH docs); code templates are language-neutral.
  • Bonus: DSH reads .agents/skills for project-level skills too, so one copy in <repo>/.agents/skills/dsh-plugin-dev-skill/ serves both Codex and DSH.

Sources

All reference docs are condensed digests (not verbatim copies of the official docs), organized around the goal of "developing correct, efficient, convention-compliant plugins".

Contributing

Issues and pull requests are welcome! Please read CONTRIBUTING.md first. For security-related matters, see SECURITY.md.

License

MIT © 2026 green-dalii

上一个 Prev deepseek-harness-desktop 下一个 Next dsh-sync