dsh-plugin-dev-skill
AGENTS.md11 starsChanged 15 days agoMITView on GitHub
Convention file read by CLI agents (Claude Code, Codex CLI, Cursor, DSH skill loader, etc.). Humans contributing to this repository should read CONTRIBUTING.md instead. 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. 1. Run…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 35,337 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repositoryOne other file it gives its agents.
- dsh-plugin-dev-skillSkill
The file
We split this AGENTS.md into the rules it gives an agent
6 rules. About 0 are common, 0 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 15
Run
SKILL.md§1 first: read the local VERSION, fetch the latest tag from https://github.com/green-dalii/dsh-plugin-dev-skill, and update … - Very specific: line 21
State the SDK baseline: every API statement in SKILL.md and References/ is verified against the version pair metadata.sdk-baseline (in …
- Very specific: line 24
Run
bash scripts/verify.sh: before claiming a change is complete. - Very specific: line 48
Invent API names: if a method / event / config key isn't in SKILL.md or References/, it likely doesn't exist.
- Very specific: line 65
Detect: run SKILL.md §1 update check, or watch the DSH repo's tags for new dsh-vX.Y.Z-* releases.
- Very specific: line 67
Inspect: read the new docs/upgrade-guide/<version>/<name>/guide.md files on https://github.com/deepseek-ai/deepseek-harness (master branch …
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS.md
Convention file read by CLI agents (Claude Code, Codex CLI, Cursor, DSH skill loader, etc.). Humans contributing to this repository should read
CONTRIBUTING.mdinstead.
What this repository is
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.
Mandatory flow on entry
- 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/.
What you may modify
| 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. |
What you must NOT do
- 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.
When upstream DSH changes
- 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.
Design decisions
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.
Pointers
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).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

