Introduction¶
When working on projects in DSH or other agent hosts, releasing is often not as simple as “clicking publish.” npm has been bumped to 0.4.27, but there is no corresponding tag in git; only GitHub was pushed, but the installation instructions on Gitee still show old screenshots; multiple market directories on the DSH side were only updated in one; tokens in .npmrc were accidentally committed—these are easily missed items under a manual checklist.
publish-kit consolidates the release process into a set of reusable Agent Skills and optional CLI tools, covering versioning, building, registries, dual remote pushing, marketplace metadata, and tag validation with a unified SOP. Below is an introduction to what it is, what it can do, and how to install and use it.
What is it¶
publish-kit (npm package name @eternalnight/publish-kit, current documentation shows package version 0.5.3, license MIT) is maintained by EternalNight996 and is categorized as Workflow in SkillHub. Its positioning is: Release playbook for AI agents—a directory-based Skill package + a globally installable CLI, converting natural language requests like “release this” into multi-channel collaborative releases.
The core value proposition in the documentation is: One release prompt, every channel aligned. Supported hosts include DSH, Claude Code, Codex CLI, Gemini CLI, Cursor, etc.; project language coverage includes Node, Python, Rust, Go, and various executable artifact scenarios.
Core Features¶
Agent Skill: Eight Release Tracks¶
After loading the Skill, the agent can categorize the user’s intent into one of the 8 release tracks described in the README (npm / DSH plugin / cargo / PyPI / PyInstaller exe / Go binary / Rust binary / Electron desktop), execute steps according to the track, and validate version consistency across all channels before declaring the release complete. See .agents/skills/publish-kit/SKILL.md in the repository for the full process.
Prompt examples that the Skill can respond to include:
release this cut v0.4.2
publish my new version ship it
bump version and tag submit to marketplace
write the README slim the npm package
cargo publish this publish to PyPI
tag this commit push to GitHub and Gitee
build the exe and upload to GitHub Releases
CLI: bootstrap-release and release-exe¶
After globally installing the npm package, two commands are provided (corresponding to scripts/bootstrap-release.* and scripts/release-exe.* in the documentation):
- bootstrap-release: The 6-step SOP for npm package releases (bump + publish + tag + push + RP, etc., see README).
- release-exe: Cross-platform build and upload to GitHub Release for PyInstaller / Go / Rust / Electron, etc.
Both support the optional -Draft / --draft flags to publish a draft before the official release.
Templates and Ecosystem Coverage¶
The Skill package comes with documentation such as TEMPLATE.md, REFERENCE.md, etc. The templates listed in the documentation cover, but are not limited to:
| Language / Ecosystem | Main Target |
|---|---|
| JavaScript / TypeScript | npm, DSH plugin templates |
| Rust | crates.io + GitHub Releases |
| Python package | PyPI + GitHub Releases |
| Python standalone exe | PyInstaller + GitHub Releases |
| Go / Electron·Tauri | GitHub Releases |
| Others (Homebrew, Scoop, Docker, Maven, NuGet, etc.) | README guide + K-series templates |
Non-DSH tracks share the same SOP skeleton: bump version → tests + build → publish → git tag → dual remote push tags → marketplace submission (if applicable) → RP fields.
Mechanisms for Common Release Pitfalls¶
The README summarizes five categories of problems and how publish-kit handles them using a table. Examples include: creating and validating v<x.y.z> tags before release; forcing a bump and verifying registry versions as the first step of release; pushing to both dual remotes (GitHub + Gitee); DSH multi-market checklist; and deleting temporary .npmrc.publish in the script finally block to avoid tokens being stored long-term. Refer to EXAMPLES.md and the script source code in the repository for specific script behaviors.
DSH Integration¶
For DeepSeek Harness, the Skill file resides in <root>/.agents/skills/publish-kit/, and the README is marked as DSH native. It can also be installed as a DSH plugin via the dsh.marketplace metadata of the npm package (see next section).
Installation and Activation¶
The documentation provides three one-click installation paths; simply choose one based on your host.
# Skill bundle (Any Agent reading .agents/skills/: DSH, Claude Code, Codex, Gemini, Cursor, etc.)
npx skills add https://github.com/EternalNight996/publish-kit
# npm global CLI (bootstrap-release, release-exe on PATH)
npm install -g @eternalnight/publish-kit
# DSH plugin (wrapped via npm, using package metadata dsh.marketplace)
dsh plugin --profile web add @eternalnight/publish-kit
If you need project-level installation that can be committed to the repository and integration with the dsh-agent-skills UI, the README points to .agents/skills/publish-kit/INSTALL.md.
Note: DSH plugins run locally with the permissions of the current dsh process; please review the GitHub repository source code and the MIT license yourself before installing, and ensure that the usage of registry tokens, remote SSH, and other credentials in the release scripts complies with your security policies.
Typical Usage¶
As a Skill (invoked by the model)¶
- Install and load the Skill using the
npx skills addor DSH plugin path mentioned above. - Describe the release intent in natural language in the conversation (see the prompt list above).
- The agent executes the SOP according to the track and ends after aligning multi-channel versions.
As a CLI (manual invocation)¶
After installing the global CLI:
# npm package: patch / minor / major
bootstrap-release patch
# Executable file release example (Rust)
release-exe rust mycli 1.0.0 "x86_64-unknown-linux-gnu,x86_64-pc-windows-msvc,x86_64-apple-darwin"
If you need to publish a draft first, add -Draft or --draft to the commands above.
Use Cases and Notes¶
Suitable for: AI agent developers or maintainers who frequently release across multiple registries, dual git remotes, DSH markets, and GitHub Releases; teams or individuals who want to harden release checklists into Skills/scripts to reduce “forgotten tags / forgotten bumps / pushing to only one end.”
Cases where it is not suitable to rely on it alone: When the release process is inconsistent with documentation in the repository, or when the host does not read .agents/skills/ and does not use the npm CLI, you will need to adjust by referring to COMPATIBILITY.md.
The SkillHub community directory is an independent site with no official affiliation to DeepSeek or Huansuan; the plugin introduced in this article is the community plugin publish-kit, not an official capability built into the app store. The GitHub public documentation shows this repository is starred 1 (consistent with the directory page clues), and functionality and version are based on the repository README, package.json, and documentation inside the Skill directory.
Conclusion¶
publish-kit consolidates workflow-related release details (versioning, tags, dual remotes, multiple markets, multi-language templates) into a playbook that agents can execute, and retains a CLI for manually running the same SOP when not going through the model. To learn more about the classification and introduction, you can open the SkillHub directory page; details and updates are based on the GitHub repository.
- Directory page: https://www.skillhub.cn/plugins/EternalNight996/publish-kit
- GitHub: https://github.com/EternalNight996/publish-kit