Preface¶
Common issues when using agents for feature development in DSH (DeepSeek Harness) include progress scattered across chat logs (losing context when switching sessions), specifications that are complete but lack hard gates (leading to drift during implementation), and blurred boundaries between testing, implementation, and acceptance during multi-role parallelism (where quality relies on the model’s self-discipline). The ecosystem already contains numerous specification-driven or role-orchestration plugins; some rely on LLM self-checks to determine if a task is “finished,” some use code matrices to restrict writes, and others use machine verdicts for direct approval.
The following introduces the workflow plugin dsh-process-kit by maintainer SHADOW-LI0327. It writes requirement package status, gate sign-offs, process logs, and bug records into docs/process/** within the target repository. The plugin itself only handles deterministic reading, rendering, safe appending, and scaffold initialization, without storing state on the plugin side. Phase progression relies on manual confirmation at Gate0/1/2/4, while machine gates only verify objectively verifiable items, leaving subjective judgment to humans.
What is this¶
dsh-process-kit is a development process enhancement plugin categorized as “workflow,” suitable for any repository. It adds a file-driven engineering process to DSH: built-in multi-role Subagent skills (the current repository version includes 9 roles; the published 0.5.0 on npm includes 8 roles, while 0.6.0 with architect is not yet released), coupled with gate scripts in scripts/process/ and the process_init initialization tool. License: MIT; GitHub Repository: SHADOW-LI0327/dsh-process-kit; Community Directory: SkillHub Entry.
Unlike approaches that are merely “specification-driven without hard gates” or “direct machine blocking,” this plugin emphasizes three principles: State in Repository (docs/process/** serves as the single source of truth; CI can consume contracts without installing the plugin), Tamper-proof Journal (chained fingerprints; the reader recalculates and reports errors if validation fails), and Two-part Gate Summary (✅ What has been completed / ❓ What requires ruling). Since version 0.4.0, the process board has been transitioned to a pure server-side bundle, eliminating the need for a separate GUI status board.
Core Functions¶
File State Machine and Tools¶
Progress is recorded in the frontmatter of documents within docs/process/**. Upon each invocation (wake-up), process_status can be called to scan the directory, restoring the status of each package, the four-light Gate status, the journal tail, open bugs, and suggested next steps, without relying on chat history.
| Tool | Function |
|---|---|
process_status |
Scans docs/process, summarizes package status and next steps |
gate_summary |
Generates a two-part Gate summary skeleton for specified package (✅ / ❓ to be filled) |
process_journal |
Safely appends to journal: lock, fingerprint verification, atomic replacement |
process_init |
Lands process skeleton and scripts in current repo; default is create-only, no overwrite |
process_init generates (or handles by rules during upgrade):
docs/process/: Process overview,orchestrator.md,PROJECT.md, PRD and checklist templates, etc.scripts/process/:journal-append.mjs,check-artifact-paths.mjs,check-rules.mjs,check-ui-geometry.mjs,sync-prd-version.mjsAGENTS.md: Created only if it does not exist; if it exists, it is not rewritten, only a paragraph to be merged is output (can be skipped withagents: false)
Gates and Role Division¶
Gates pause for human sign-offs at Gate0/1/2/4 (Requirements Check, Design, Development, Acceptance), and each output is a two-part summary. Role division is defined at the prompt level, with delivery quality judged by the human Gate reviewer. Skills with the same name in the project’s .dsh/skills/** can override the plugin’s built-in skills. The environment variable PROCESS_KIT_SKILLS=off can disable the plugin’s skill registration.
9 roles (see README for version evolution): product-manager, architect (0.6.0), test-agent, dev-agent, uat-agent, code-review-agent, security-review-agent, logic-review-agent, ui-designer. Those who write implementations do not write tests, and those who write tests do not perform acceptance. The three review roles are dispatched by default only when a “pre-release full regression” is explicitly initiated by a human; otherwise, they do not run automatically.
Before Gate0, product-manager and architect can run in parallel as needed to research public documents and GitHub repositories; findings are added to the checklist as candidates rather than directly into the Acceptance Criteria (AC). Participation of ui-designer is determined by the uiDesign: required / not-needed field in the checklist.
Configuration and Gates¶
Process documents do not hardcode project paths or commands; instead, they uniformly reference docs/process/PROJECT.md. Plugin upgrades will never overwrite this file or other project-customizable files such as ui/tokens.md and ui/recipe.md. The §3 Artifact Ownership Table is a hard threshold; leaving it unfilled will cause the placement gate to exit 1. For minimal usability, sections §1, §2 (at least “Quick Verification” and “Journal Append”), and §3 must be filled.
Installation and Activation¶
The plugin runs with the permissions of the DSH process. It is recommended to review the repository source code and the MIT license before installation. Node.js requirement: ^22.19.0 || >=24.0.0; Peer dependency: @deepseek-ai/dsh >=0.1.7-rc.2 <0.3.0.
The installation target provided in the README is as follows (use the corresponding target in the DSH plugin installation flow; usually no client restart is needed after installation):
| Method | target |
|---|---|
| npm (Recommended) | dsh-process-kit |
| GitHub | github:SHADOW-LI0327/dsh-process-kit (Use #<tag> or #<commit> to lock version) |
| Local Directory | Absolute path to the plugin source code |
The latest version on npm is 0.5.0; the repository version 0.6.0 has not been submitted or released. If you are using pnpm 11/12 and a new version has not been released for 24 hours, you may be unable to resolve the latest version due to minimumReleaseAge. You can wait, pin the version (e.g., dsh-process-kit@0.4.0), or exclude the package in minimumReleaseAgeExclude within pnpm-workspace.yaml.
Typical Usage¶
Quick start steps (excerpted from README):
1. Install the plugin (effective immediately upon installation, no restart needed).
2. Tell the AI what you want to do, such as building a website or an app.
3. The AI automatically initializes the current environment: calling process_init.
4. Proceed with development according to the process.
5. It is recommended to use the fast path for the first package: write flow: fast in the requirements checklist. After human sign-off at Gate0, directly dispatch dev + existing regression; once comfortable, switch to the full process.
For existing repos, preview before upgrading:
process_init({ upgrade: true, dryRun: true }) // First see which files will be touched
process_init({ upgrade: true }) // Then apply
An end-to-end example is available in the separate repository dsh-process-kit-example. For acceptance and startup steps, please refer to docs/ACCEPTANCE.md in the main repository.
Applicable Scenarios and Notes¶
It is suitable for individuals or small teams who wish to establish a fixed AI collaboration rhythm in any Git repository using “in-repository Markdown and scripts,” while requiring Gates and journals to be auditable and consumable by CI. It is not suitable for scenarios expecting the plugin to intercept every file write in real-time during runtime, or for fully automated release pipelines with no human involvement.
Note: process_init defaults to creating files without overwriting; data directories such as input/**, prd/**, and bugs/** are not touched during upgrades. The three review Subagents will not appear in the main workflow of a single package unless a human initiates a release regression or explicitly requests them at a Gate. To use architect or the full set of 9 roles, you need to install from the GitHub main branch or wait for the 0.6.0 release.
The DSH ecosystem philosophy is “Everything is a plugin.” SkillHub is a community directory and has no official affiliation with DeepSeek or High-Flyer (幻方).
Conclusion¶
dsh-process-kit implements the development process as an in-repository file state machine and human sign-off Gates. It uses gate scripts to constrain objective items and role-based skills to improve efficiency. State and evidence remain in docs/process/** for easy recalculation and collaboration. Directory Page: https://www.skillhub.cn/plugins/SHADOW-LI0327/dsh-process-kit; Source Code and Documentation: https://github.com/SHADOW-LI0327/dsh-process-kit.