/ai-plugin-toolkit:dsh-plugin-devfrom ai-plugin-toolkit
Package and publish a DeepSeek Harness (dsh) plugin bundle that registers skills, tools or services. Use when building a dsh plugin, writing a cordis.patch.yml, or installing a GitHub plugin into a dsh profile.
Ships in ai-plugin-toolkit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
DeepSeek Harness (dsh) is DeepSeek AI's open-source agent harness built on an
everything-is-a-plugin architecture (the Cordis framework). A bundle is an
npm package that contributes a configuration layer; a profile is a runnable
composition of bundles. Your plugin is a bundle.
my-dsh-plugin/
├── package.json # declares dsh.bundle
├── cordis.patch.yml # the layer your bundle contributes
└── index.js # plugin entry (plain JS — no build step needed)
package.json:
{
"name": "my-dsh-plugin",
"version": "0.1.0",
"type": "module",
"main": "index.js",
"files": ["index.js", "cordis.patch.yml", "skills"],
"dsh": { "bundle": { "patch": "./cordis.patch.yml" } }
}
cordis.patch.yml — the row's name is your package name (Node resolves
it), and id is how users can override your row:
- insert:
- id: my-plugin
name: my-dsh-plugin
index.js — registering a bundled skill at runtime:
import { readFile, stat } from 'node:fs/promises'
import { dirname, join, resolve } from 'node:path'
import { fileURLToPath } from 'node:url'
export const name = 'my-plugin'
export const inject = ['skills']
const HERE = dirname(fileURLToPath(import.meta.url))
export function apply(ctx) {
if (ctx.skills === undefined) return
let dispose
let disposed = false
ctx.effect(() => {
loadSkill()
.then((skill) => {
if (disposed || skill === undefined) return
dispose = ctx.skills.register(skill)
})
.catch((e) => ctx.logger.warn('register failed: %o', e))
return () => {
disposed = true
dispose?.()
}
})
}
async function loadSkill() {
const dir = resolve(HERE, 'skills/my-skill')
const path = join(dir, 'SKILL.md')
const raw = await readFile(path, 'utf8')
const { name, description, body } = parseFrontmatter(raw) // your minimal parser
let resourceBase
if ((await stat(dir)).isDirectory()) {
resourceBase = { kind: 'directory', path: dir } // serves references/ + scripts/
}
return { name, description, content: body, source: 'bundled', path, resourceBase }
}
Key contract points:
inject = ['skills'] makes Cordis wait for the skills service before apply.ctx.skills.register(...) returns a disposer; call it in your ctx.effect
cleanup so unloads are clean.dsh.bundle in package.json installs as a plain dependency
and activates no layer — dsh warns.Users install straight from a git host — no registry needed:
# if your plugin lives in a repo subdirectory:
dsh plugin --profile web add "github:you/my-repo#path:/my-dsh-plugin"
# quote it — the # is a shell comment otherwise
The git-install catch: pnpm runs no build script unless the user allowlists
it (allowBuilds in the profile's pnpm-workspace.yaml). Ship plain JS and
no prepare script so installs work with zero friction. If you must build,
document the allowBuilds step and pin a commit:
github:you/my-repo#<sha>.
Same SKILL.md contract as Claude Code, with six discovery tiers (lower wins). The two you use most:
| Tier | Root | Scope |
|---|---|---|
| 200 | <project>/.agents/skills | nearest ancestor with .git |
| 500 | ~/.agents/skills | user-global (shared with Codex CLI) |
skills/a/SKILL.md yes,
skills/a/b/SKILL.md no.DEEPSEEK_API_KEY in the environment at startup.dsh --profile web --dump-config shows a
# == your-bundle layer; in the Web UI, skills appear under the /
command palette → Skills group and in "Context injection · skill-catalog".dsh-plugin GitHub topic so your repo shows up in the ecosystem
index (12k+ repos already use it)..claude-plugin/marketplace.json) and plain skills — one
source, every agent. See the claude-plugin-dev skill.deepseek-ai/deepseek-harness (docs under
docs/user/develop/), and JimmyLv/bibigpt-skill for a working
skills-registering bundle.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub zhangliang0115/ai-plugin --plugin ai-plugin-toolkit8 skills in this plugin
/claude-plugin-devPackage and publish a Claude Code plugin and marketplace (.claude-plugin/ manifests, skills, commands, agents, hooks) with a dual-target twist: the same repo simultaneously serves DeepSeek Harness (dsh), Codex, Gemini CLI and Copilot via plain skills and a dsh bundle. Use when creating a Claude Code plugin, setting up a marketplace repo, or making one repo installable across every agent./deepseek-cost-routerRoute coding tasks between DeepSeek chat and reasoning models (deepseek-chat vs deepseek-reasoner) to minimize API cost while keeping quality. Use when configuring an agent to use DeepSeek, choosing a model for a task batch, or optimizing token spend./deepseek-migrationMigrate an existing coding agent or workflow from OpenAI/Anthropic APIs to DeepSeek (deepseek-chat / deepseek-reasoner). Covers endpoint compatibility, environment variables, caching behavior, tool-calling differences, cost levers, and the DeepSeek Harness (dsh) option. Use when a user wants to switch to DeepSeek or cut their LLM bill./improve-claude-mdimprove a CLAUDE.md file using <important if> blocks to improve instruction adherence/show-meHelp the user understand the current topic visually with concise diagrams, code-shape sketches, and focused HTML artifacts./skill-authorWrite, structure, and publish a SKILL.md skill that works across every harness — Claude Code, DeepSeek Harness (dsh), Codex CLI, Gemini CLI, Copilot, Cursor — including the cross-agent gotchas generic guides miss: tier shadowing between project and user roots, discovery rules, and trigger-description design. Use when creating a new skill, fixing a skill that fails to load in some agents, or preparing a skill repo for distribution.