Introduction¶
When building plugins in DeepSeek Harness (DSH), the common bottleneck isn’t usually a specific line of business code, but rather choosing the wrong form factor, misaligning mounting contracts, or rushing to modify features before passing local gates. Official documentation is scattered across contract definitions, verification guides, and “gotchas” notes, making it costly to assemble a “plan first, then scaffold, then publish” workflow on your own.
Introducing the DSH Plugin Scaffold (@user_62a0c738/dsh-plugin-scaffold) on SkillHub. It chains requirement clarification, decision-making on three plugin form factors, scaffold generation commands, business implementation constraints, local verification, and release preparation into 7 stages with decision gates. It also includes contract and verification chapters in references/, making it ideal for AI Agents to guide you through the entire DSH plugin workflow at a consistent pace.
What is this¶
DSH Plugin Scaffold is an Agent Skill designed for DeepSeek Harness Plugins: covering the journey from planning to release, including requirements and form factor decisions, scaffold generation, business implementation, local verification, release preparation, and final publication.
- Coordinate:
@user_62a0c738/dsh-plugin-scaffold - Version: 1.0.0 (Community source, category: dev-programming)
- Maintenance & Source: goatbroai/dsh-plugin-scaffold
- SkillHub Page: DSH Plugin Scaffold
- Tags:
requires_api_key=false, No API Key required to install this Skill itself
When you need to plan, create, scaffold, develop, verify, or publish a DSH plugin/extension in a conversation, or ask “How to build a DeepSeek Harness plugin end-to-end,” the Agent will execute according to the stages in SKILL.md within the Skill. If it is just a specific issue (e.g., mounting failure), the Skill requires checking the corresponding chapter in references/ directly, rather than re-running the entire workflow.
Core Features¶
The following capabilities are derived from the official Skill description and the SKILL.md in the GitHub repository, without exceeding publicly available content.
Seven Stages and Decision Gates¶
The entire workflow is divided into Stages 0–6, with clear outputs for each stage; you cannot proceed to the next stage if the previous one is undecided or fails verification. Stage decisions are continuously written to docs/plugin-plan.md in the generated directory.
| Stage | Content |
|---|---|
| 0 | Define plugin name, one-sentence goal, capability surface (tools/services/HTTP/browser UI/skills/MCP, etc.), and target profile (default web) |
| 1 | Select plugin form factor and distribution method (git / local directory / npm) based on capability surface, and package manager (default pnpm) |
| 2 | Call the scaffold script to generate the project and run install / bundle / gates successfully |
| 3 | Implement business logic according to the selected form factor (ctx.*, ctx.effect(), client slots, etc.) |
| 4 | Local verification: build, gates, npm pack --dry-run, installation, and browser smoke tests |
| 5 | Release preparation: git remote, README ref, screenshots, lib/ commit, gates re-run |
| 6 | Publish according to the distribution method and reinstall from the final source for acceptance |
Three Plugin Form Factors¶
| Capability Surface | Form Factor | scaffold Parameter |
|---|---|---|
| Pure Node tools/services/event handling | pure Cordis | --kind pure |
| Needs composition layer or distributing multiple mounts with the package | bundle | --kind bundle |
| Node half + browser client bundle | bundle-client | --kind bundle-client |
If you need to completely replace the default web shell root layout, the Skill instructions guide the Agent to handle it via ctx.slots.register({ name: 'root' }) etc. during the implementation stage; there is no separate parameter for this in the scaffold.
Scaffold and Gates¶
The repository associated with the Skill provides scripts/scaffold.py, used to generate a plugin skeleton with build scripts and gates (pnpm run gates). The Skill also references references/contracts.md, gotchas.md, and verification.md, corresponding to package/entry/client contracts, build/packaging pitfalls, and installation/browser verification respectively.
Installation and Activation¶
Install Skill via SkillHub¶
First, confirm if you have the SkillHub CLI on your machine (see SkillHub Installation Guide). When installing this Skill, you must use --dir to point to the current Agent’s skills directory; otherwise, it defaults to ./skills/ and may not be recognized.
command -v skillhub && skillhub --version
If the CLI is not installed, you can follow the official documentation for full installation (example):
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
Install the Skill to the corresponding client directory (paths depend on your current environment):
# Cursor Example
skillhub install user_62a0c738/dsh-plugin-scaffold --dir ~/.cursor/skills/
# Claude Code Example
skillhub install user_62a0c738/dsh-plugin-scaffold --dir ~/.claude/skills/
# Codex Example (one of the common paths)
skillhub install user_62a0c738/dsh-plugin-scaffold --dir ~/.codex/skills/
The SkillHub page also supports providing the following prompt to an AI to let it fetch @user_62a0c738/dsh-plugin-scaffold according to the installation documentation:
Please install
@user_62a0c738/dsh-plugin-scaffoldbased on https://skillhub.cn/install/skillhub.md.
After installation, refresh or restart according to your client’s requirements to activate the Skill. This Skill does not require API Key configuration.
Typical Usage¶
After enabling the Skill, simply state your DSH plugin goal in the conversation; the Agent should proceed step-by-step starting from Stage 0. Below are the reproducible commands for official Stage 2 (must be executed in the root directory of the cloned or unzipped dsh-plugin-scaffold repository, or locate scripts/scaffold.py as guided by the Skill).
Generate the scaffold:
python3 scripts/scaffold.py <plugin-name> \
--out <output-directory> \
--kind <pure|bundle|bundle-client> \
--description "Short description"
Enter the generated directory and verify the skeleton:
cd <output-directory>/<plugin-name>
pnpm install
pnpm run bundle
pnpm run gates
Only after all three commands pass should you proceed to Stage 3 to write business logic; after modifying src/, run pnpm run bundle, do not manually modify lib/.
Stage 4 Local Verification Order (Official):
pnpm run bundle
pnpm run gates
npm pack --dry-run
Then perform installation smoke tests and browser verification according to references/verification.md. In the release stage, execute git push / npm publish according to the git or npm path selected in Stage 1, and reinstall from the final distribution source to confirm there is no plugin tree failed to load, no slot entry crashed, and that the functionality meets the Stage 0 goals.
Use Cases and Notes¶
Who is it for
- People building plugins on DSH for the first time who need to make clear choices between pure / bundle / bundle-client.
- Teams or individuals who want to use unified gates (
gates) and verification checklists to avoid “compiles but won’t install” or “crashes immediately in browser” scenarios. - Those willing to let the Agent record decisions via
docs/plugin-plan.mdand advance through stages, rather than a scattered “fix code as you go” conversation style.
Limitations and Notes
- This Skill guides the entire workflow of DSH Plugin Engineering;
scaffold.pyand templates reside in the GitHub repository. Installing the Skill does not automatically install the scaffold script into your plugin directory; the generation step still needs to be executed in a context containing the script (usually operated by the Agent according to Skill instructions). - When verification fails, the Skill stipulates: business logic issues return to Stage 3; only form factor or contract issues are allowed to return to Stage 1, to avoid piling features onto a wrong form factor.
- SkillHub Statistics (as of page display): ~1498 downloads, ~268 installs; specific numbers are subject to SkillHub.
Conclusion¶
DSH Plugin Scaffold breaks down DeepSeek Harness plugin development from “what to build” to “reinstall acceptance from distribution source” into 7 stages with decision gates, and binds three form factors with scaffold and gate commands. It is suitable as a repeatable playbook on the Agent side.
- SkillHub: https://www.skillhub.cn/skills/user_62a0c738/dsh-plugin-scaffold
- API Coordinate Page: https://api.skillhub.cn/user_62a0c738/dsh-plugin-scaffold
- Source Code and Skill Content: https://github.com/goatbroai/dsh-plugin-scaffold