dshbase

插件目录 / Automation / dsh-plugin-dev-skill

dsh-plugin-dev-skill

已验证 · 实测可装 green-dalii

✓ 持续维护

查看 GitHub ↗ ← 返回插件目录

3Stars
0Forks
0未关闭 issue
unknown语言
2026-08-15最近推送
跨平台平台

功能简介

DeepSeek Harness Plugin Dev Skill — 让任何 Agent 都能正确、高效、符合规范地开发 DSH 插件(含精简提炼参考文档与论文解读)

✅
我们的评价
可用 — 实测通过,早期项目

DeepSeek Harness Plugin Dev Skill — 让任何 Agent 都能正确、高效、符合规范地开发 DSH 插件(含精简提炼参考文档与论文解读) 实测能干净安装、正常启动。早期项目,但功能可用。

「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。

README

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

安装

🧩 让 Agent 自动装(推荐)

装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:

dsh plugin add dshbase-catalog

然后对 agent 说「帮我装 dsh-plugin-dev-skill」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。

该插件是 GitHub 源码(未发 npm)——直接从仓库装:

Web profile:

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

Headless(CLI)profile:

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

实测报告

验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。

使用场景

自动化一项重复工作——调度、串联任务或响应事件——不用你亲手启动。

适合谁

有周期性工作、想 cron 式无人值守而非手动触发的人。

二次开发建议

触发器和任务模板是缝——加事件驱动或文件监听触发,以及更丰富的流程编排。

安全:尚未扫描——我们的每日静态扫描将很快覆盖它。

分享徽章

Automation 里更多

浏览全部 7797 个插件 →