Convention file read by CLI agents (Claude Code, Codex CLI, Cursor, DSH skill loader, etc.). Humans contributing to this repository should read
CONTRIBUTING.mdinstead.
This is a documentation-only skill pack for the DeepSeek Harness (DSH) Plugin Dev Skill
(id dsh-plugin-dev-skill). There is no runtime code here — the deliverable is a single
SKILL.md that an AI coding agent loads into its context window when developing a DSH plugin,
plus the operating manual in References/. Verify with bash scripts/verify.sh.
- Run
SKILL.md§1 first: read the localVERSION, fetch the latest tag fromhttps://github.com/green-dalii/dsh-plugin-dev-skill, and update this repository if the remote is newer. Use the tag-pinned raw URL formhttps://raw.githubusercontent.com/green-dalii/dsh-plugin-dev-skill/${TAG}/VERSION(substitute the latest tag for${TAG}), not themainbranch URL, to avoid raw.githubusercontent.com CDN cache lag right after a release. - State the SDK baseline: every API statement in
SKILL.mdandReferences/is verified against the version pairmetadata.sdk-baseline(inSKILL.mdfrontmatter) andcordisat the version shipped by that baseline (currently4.2.0-alpha.1; the4.1.0API facts remain valid). If you write a code template, target that pair. - Run
bash scripts/verify.shbefore claiming a change is complete. It checks:SKILL.mdYAML frontmatter is legal (kebab-casename,description, fullmetadata),- the version triple
VERSION/SKILL.mdmetadata.version/CHANGELOG.mdheading agrees, - official docs URLs return 200 (with CDN retry),
SKILL.mdand everyReferences/*.mdis at most 8,192 characters, andSKILL.mdroutes to exactly the files present underReferences/.
| Path | Allowed change |
|---|---|
SKILL.md |
Yes — this is the index layer (routing rules, invariants, task→file table). Keep it under 8,192 characters. Bump the frontmatter metadata.version and add a CHANGELOG.md entry in the same edit; if a change does not fit, put it in References/ and add a route. |
References/*.md |
Yes — the operating manual. Each file's top line states the SDK baseline it was last checked against; keep it in sync. Never let one exceed 8,192 characters: split instead. |
VERSION |
Single-line version. Must match SKILL.md metadata.version and the newest CHANGELOG.md heading. |
CHANGELOG.md |
Append a new [X.Y.Z] block under [Unreleased]. Follow Keep a Changelog conventions — record what changed, not why. The "why" goes here in AGENTS.md §Design decisions. |
README.md / README.zh-CN.md |
Yes — keep badges (updated-YYYY--MM--DD, DeepSeek Harness-<sdk version>, skill-<version>) and the file tree in sync with SKILL.md and VERSION. |
scripts/verify.sh |
Yes — but treat changes here as touching the project's CI gate. Verify locally before pushing. |
AGENTS.md |
Yes — this file (incl. Design decisions below). |
examples/ (deleted in 0.6.3) |
No directory exists. If you think you need one, see Design decisions below. |
LICENSE / SECURITY.md / .github/ |
No — without an explicit user request. |
- Invent API names: if a method / event / config key isn't in
SKILL.mdorReferences/, it likely doesn't exist. Cross-check by reading the official DSH source code athttps://github.com/deepseek-ai/deepseek-harness(or the doc athttps://deepseek-harness.github.io/deepseek-harness/) before writing it down. - Quote upstream prose verbatim into
References/: the references are condensed digests, not copies. Keep the URL back to the source. - Mirror upstream
upgrade-guide/*.mdinto the repo: this repository is small and meant to be loaded into a context window. Upstream guides are linked fromReferences/13-upgrade-guides.mdas URLs; if the link is ever broken, fix the URL. Local copies of upstream prose are not kept in sync. - Edit the SDK baseline silently: changing
metadata.sdk-baselineis a release-level decision; record it inCHANGELOG.md. - Add a
llms.txt-style file: this repository is not a public docs site crawled by answer engines; CLI agents readSKILL.mddirectly. If you think you need one, ask the user first.
- Detect: run
SKILL.md§1 update check, or watch the DSH repo'stagsfor newdsh-vX.Y.Z-*releases. - Inspect: read the new
docs/upgrade-guide/<version>/<name>/guide.mdfiles onhttps://github.com/deepseek-ai/deepseek-harness(master branch for alpha/rc; tag-pinned raw URLs otherwise). - Filter for plugin-dev relevance: of the ~12 upgrade guides per minor cycle, typically
only 3–6 do. The rest are about DeepSeek account UI, Desktop keyboard shortcuts, internal
seams, etc. — don't widen
SKILL.mdto cover them. - Apply: edit
References/with the substantive changes and add a row toReferences/12b-migration-errors.md; reference the upstream guide by URL inReferences/13-upgrade-guides.md. Add toSKILL.mdonly if the rule belongs in the ten invariants or the routing table. - Verify:
bash scripts/verify.shmust pass before declaring the sync done.
Recorded here so they survive across releases; CHANGELOG.md only logs what changed.
-
SKILL.mdis an index layer; one file never exceeds 8,192 characters (since 0.9.0): DSH'scompaction-tool-result-pruneris configured withthresholdChars: 8192,headChars: 4096,tailChars: 1024in thestandard,ptcandcordispresets alike, and it keeps only the head and tail of any over-budget tool result. A skill reaches the model as a tool result, so at 56,012 characters the oldSKILL.md(6.8x the threshold) lost roughly 91% of its middle on every context compaction — a correctness bug, not a style issue. Upstream reached the same conclusion independently: theirdsh-doc/SKILL.mdis 4.6 KB and routes toreferences/, and their architecture note (2026-09-21-creator-skills-progressive- disclosure, archived) cites this exact 8192-character threshold as the reason to move recipes out of the leading file. Consequences:SKILL.mdnow carries only routing rules, the ten invariants, a version-evolution summary, a task→file index and a pre-delivery checklist;References/grew from 12 to 25 numbered docs, split rather than rewritten (03/03b/03c,05/05b,06/06b,07/07b,08/08b/08c,09/09b, plus new12/12b/13/14/15).scripts/verify.shgates the budget so it cannot regress. Do not "improve" a doc by letting it grow past 8,192 characters — split it. -
No
llms.txt(since 0.6.3): this repository is a GitHub docs-style pack loaded into a CLI agent's context window, not a public docs site crawled by answer engines.llms.txt's target audience (crawlers / answer engines) does not activelyGETit; the file's 14 tag-pinned raw URLs must be hand-maintained on every release for zero observed benefit. CLI agents readSKILL.mddirectly. -
AGENTS.mdexists,CONTRIBUTING.mdexists, neither subsumes the other (since 0.6.3):AGENTS.mdis for CLI agents (terse, declarative, table-driven);CONTRIBUTING.mdis for human contributors (narrative, social). They share no overlap beyond a single "sync checklist" idea, expressed differently in each. -
No local mirror of upstream upgrade guides (since 0.6.3): previously kept under
References/_upstream-upgrade-notes/(12 files, ~20 KB). Removed because (a) nothing inSKILL.mdorReferences/references them by path — onlyReferences/13-upgrade-guides.mdmentions upstream guides, and it does so by URL; (b) keeping verbatim upstream text contradicts the "References are condensed digests, not copies" rule thatReferences/*.mdfollow; (c) the same CDN cache lag that motivates tag-pinned URLs applies to every DSH upstream link inSKILL.md, so mirroring only the upgrade guides is selective local redundancy. The 12 guides' substantive changes are folded intoReferences/12b-migration-errors.md,References/07b-publish-advanced.mdor the relevantReferences/*.mdsection — readers either see the rule there or follow theReferences/13-upgrade-guides.mdlink to upstream text. No content is lost. -
No
examples/directory (since 0.6.3): previously keptexamples/hello-tool/as a copy-pasteable starter (4 files, ~3.3 KB). Removed because (a) every piece of information in it is already inReferences/03-tools.md(thedefineTooltemplate) andReferences/07b-publish-advanced.md(the bundle packaging template), down to file tree,package.jsonfields,cordis.patch.ymlshape, andsrc/index.tscontent — no agent that has read those files needs to look at examples; (b) the examples couldn't typecheck on CI because the DSH SDK is not a public npm package, which required an explicit "this isn't typechecked" disclaimer in both the example README and in this file — that disclaimer was a workaround for a project-shape mismatch (we'd built illustrative skeletons in a pack that should be documentation-only); (c) every SDK-baseline bump required a peer-version sync inexamples/hello-tool/package.json, dragging maintenance work onto a file that adds no value onceSKILL.mdis solid. If a future contributor wants to add anexamples/, they should first argue whySKILL.mdcouldn't carry that information. -
UI-layer breaking renames live in
References/14-workflow-and-scope.mdonly, not in the manual body (since 0.7.0, relocated in 0.9.0): the 0.2.1-rc.1 ~ 0.2.2-alpha.2 cycle renamed a lot of Client-UI surfaces (context menus, Slot paths,fileDraginjection, web file download, reasoningrawText).SKILL.mdhas always declared Host/UI plugin work out of scope, so these changes are summarized inReferences/14-workflow-and-scope.md§2 "覆盖范围边界" with pointers to the upstream guides instead of getting their own sections. Expanding the body's scope would trade a maintained, opinionated boundary for an unbounded surface area; a reader who needs the exact rule follows the guide.
SKILL.md— the index layer (read first): routing rules, invariants, task→file table.References/00-INDEX.md— file overview, SDK baseline, upstream rename glossary.CHANGELOG.md— full version history (what changed).CONTRIBUTING.md— human contribution guide.scripts/verify.sh— baseline check (run by CI and locally before any release).