dsh-project-dept
zzr-rui-997/dsh-project-dept
加一个 project-dept skill,把一次复杂工作当成一个可验收的板块串行推进:开工前跑闸门脚本,项目台账显示还没准备好就拦住不干;验收分三层,中间一层必须由没动手的人独立盲审;基准本身可能过期时先审基准;交付进登记簿,完成是一次被记录的决定而不是自称。
安装
dsh plugin --profile web add github:zzr-rui-997/dsh-project-deptREADME
dsh-project-dept
An acceptance-first workflow skill for DeepSeek Harness: run one complex piece of work as a single reviewable board, open it through a gate, review it with people who did not build it, and never let the author declare it done.
Chinese version: README.zh.md
Why
Agents can schedule work; they are bad at deciding whether the work is correct. "I split it into four agents and they all finished" says nothing about whether the deliverable survives someone trying to break it. This skill adds the missing half: a small, explicit protocol for opening, decomposing, delivering, and verifying a piece of work — and a script that blocks the start when the project's own bookkeeping says it is not ready.
What you get
- A
project-deptskill that loads when the user says things like "work this as a board", "spin up the team for this", or "the check has to be independent". - A
loop-opsskill that runs the bounded review loop on a deliverable that already exists: fresh reviewer thread → fix the must-fix list → a second fresh thread to confirm. Two rounds by default, a hard cap, state on disk, and an edit whitelist so the loop cannot wander. - An opening gate —
scripts/dept_gate.py. Exit0clears the work,1forbids it,2requires the lead to resolve every open debt item (fix, explicitly exempt with a reason and a recheck date, or downgrade the scope) before starting. Exit3means the gate never ran and must not be read as a pass. - Three-layer acceptance — self-check, then L2 blind review by someone who did not build the thing, then a final pass. The reviewer may not see the author's reasoning first.
- Baseline self-audit — when the "known good" reference itself may be stale (an old report, an earlier audit note, a previous version), the baseline gets audited before it is used as truth.
- A closed loop — proposal → decomposition → execution → delivery → acceptance → archive, with a delivery ledger so "done" is a recorded decision rather than a feeling.
Install
As a bundle (recommended)
The skill is registered by the plugin itself through ctx.skills.register(), so installing the package is enough — nothing is copied into your config directory. Install it as a bundle through your profile's plugin manager (Plugins → Add plugin, pointing at the package directory or the published package), or from Plugins → Discover once it appears in the market index.
As a plain skill
If you would rather not install a bundle, copy the skill directory straight into a scanned root:
# per project
cp -r skills/project-dept skills/loop-ops <your-project>/.dsh/skills/
# or for every project
cp -r skills/project-dept skills/loop-ops ~/.dsh/skills/
Both routes expose the same two skills with the same bodies; the bundle only saves you the copy and keeps them updated through package upgrades. loop-ops declares project-dept as its prerequisite: the loop fixes a deliverable, the three-layer acceptance in project-dept decides whether it is done.
Use it
-
Add a
dept.config.jsonto your project (the skill ships a template path and a scaffold reference) and anAGENTS.mdthat points at your ledger directory — by default_team/. -
Before any work starts, run the gate:
python scripts/dept_gate.py --root /path/to/project -
Ask the agent to open a board. It will state the two axis values it detected (deliverable type and rigor level) in one line so you can correct it cheaply, then load only the fragments those values select.
-
Deliver through the three layers. The skill refuses to mark a board complete without an independent review record.
What is inside
skills/project-dept/
skills/loop-ops/
├── SKILL.md # the protocol the model reads
├── manifest.yaml # axes, always-load list, on-demand references
├── README.md / README_EN.md
├── VERIFICATION.md # the review log: 14 revisions, what failed each time
├── references/ # deep-dives: blind review, baselines, anti-patterns…
├── static/core/ # stance, six-step workflow, output contract
├── static/fragments/ # fragments selected by the two axes
├── scripts/dept_gate.py # the executable gate
├── scripts/check_doc.py # document consistency checker
├── evals/evals.json # routing and behavior cases
└── tests/test_helpers.py
tests/bundle.test.js (run with node tests/bundle.test.js) checks that the loader parses the shipped frontmatter, that the registry gets a complete definition, and that every file the body tells the model to read actually exists in the package — the skill itself treats a declared-but-missing file as a defect, so the bundle is tested the same way.
Honest limitations
- The skill body is written in Chinese. The protocol is language-independent, but an English-speaking reader will be reading Chinese instructions. An English body is not shipped yet; the English README is a translated summary, not the skill.
find_configwalks up from the current working directory, so the gate findsdept.config.jsononly when the shell starts inside the project.- The gate needs Python 3 on
PATH(or an explicit interpreter path). - No UI. This is a workflow skill plus two scripts; there is nothing to look at beyond the plugin card.
- It does not replace domain skills. It decides how work is organized and accepted; the parameters and conventions of a specific field belong in that field's own skill.
Verification of this package
VERIFICATION.md in the skill records how the protocol itself was hardened: every revision came from an independent reviewer rejecting the previous one, and the entries name the concrete counter-example that caused the rejection (a cross-chapter reference comparison that produced a false PASS, a mixed-key sort that crashed, and so on). That record is the reason to trust the workflow more than a prompt that merely sounds rigorous.
License
MIT — see LICENSE.