dsh-learn-skills: Implementing the "Collect → Distil → Reuse" Learning Workflow in the DSH Input Area

Introduction

When engaging in long-term learning or knowledge accumulation in DeepSeek Harness (DSH), a common practice is to pile up documents in the workspace and rely on verbal agreements within the conversation for the process. With too many documents, a unified entry point is lacking, and writing easily gets mixed with formal knowledge, making post-hoc review and rollback difficult. dsh-learn-skills maintained by yiyunet (npm package name @yiyunet/dsh-learn-skills, current README corresponds to the v2 architecture) is a learning plugin running in the session input area: it transforms “Collect → Refine → Associate → Upgrade → Consolidate → Reuse” into a runtime capability featuring interactive guidance, preset management, reviewed ingestion, and system health checks, rather than just a stack of read-only methodology documents. The following introduces what it is, how to install it, how to use it, and the boundaries to be aware of during use.

What is this

The plugin provides a [📖] AI Learning ▾ entry in the input area, sharing the same set of process implementations with the slash command /learn and the natural language guided by the Agent in the workspace (there are no two sets of rules). It is not a provider adding new model tools to the Agent; interaction reuses the host’s existing ask-a-question and command registry. Nor is it a tool that automatically rewrites the knowledge base—all writes require human review of the change list before confirmation.

Maintainer: yiyunet. Category: Workflow. Source code and documentation: GitHub - yiyunet/dsh-learn-skills; Community directory page: skillhub.cn/plugins/yiyunet/dsh-learn-skills.

Four Entries and Write Boundaries

The README defines the responsibilities of the four items strictly to facilitate judging “whether this step will touch formal knowledge”:

Entry Function Write Scope Command
Initial Preset Seven rounds of Q&A to determine profile → Display summary and proposed path → You confirm → Generate preset and workspace skeleton Workspace directories and files (Incremental, non-overwriting) /learn init
Collect & Refine Produce candidates from the current session; Does not touch formal knowledge, presets, or AGENTS.md Only inbox/ /learn distill
Associate & Upgrade Compare with existing nodes → Change list → Write after confirming in two columns: “General Knowledge” and “Behavior Rules” (Batches can be rolled back) knowledge/ (Behavior rules require explicit approval) /learn upgrade
Consolidate & Reuse Read-only health check (18 items) + Comparison with last baseline + Reuse suggestions; Does not modify checked files No write /learn audit

Relationship with v1: v1 leans towards “one-click full pipeline”; v2 tightens intermediate writing to “produce candidates → human adjudication → then write”. v2 does not provide a migration path for v1 skill packs, and functionality does not depend on the old version skills/learn-*.

Installation and Activation

Prerequisites

  1. Source code version of deepseek-harness is installed.
  2. Workspace is bound (knowledge landing point; the menu will guide if unbound, as there is nowhere to put writes).

The published package includes lib/, so consumers do not need to build locally. After installation, Restart the Host is required (the profile’s dsh.profile.bundles is read at startup):

dsh plugin --profile web add @yiyunet/dsh-learn-skills

Check if successfully loaded

  • The input area tool row appears with [📖] AI Learning ▾ (to the right of the “Modify within workspace” control);
  • The slash menu appears with /learn;
  • Executing /learn help should list the four entries.

When modifying source code or local debugging, the README explains that dsh plugin --profile web add link:<absolute path to this repo> can be used, but npm install and build (lib/ is not in the version control) are required after cloning. This article does not expand on build steps; refer to the repository README “Method B” if needed.

Typical Usage

Button

Click AI Learning ▾ → Select in fixed order: Initial Preset / Collect & Refine / Associate & Upgrade / Consolidate & Reuse.

  • Only one process is allowed in the same workspace at the same time; duplicate clicks will be rejected to avoid concurrent writes;
  • There is a “Cancel”; subsequent write steps will not start after cancellation;
  • If not initialized, the latter three items will first identify the existing knowledge base; if not found, it will guide to do “Initial Preset” first.

Slash Commands

/learn help                 List four entries
/learn init                 Seven rounds of Q&A (Creating preset requires clicking confirm on the UI)
/learn distill              Produce candidates from current session
/learn upgrade [batch_no]   Produce change list / Write
/learn audit                Read-only health check
/learn rollback <batch_no>  Rollback a specific change batch

Steps requiring confirmation (creating presets, writing changes) can use --confirm on the command side, but it is still recommended to confirm on the UI by default to review the change list first.

After Initial Preset

After the seven questions, the profile summary, preset positioning, knowledge framework draft, and proposed creation path are displayed. Clicking “Confirm Creation” triggers the write to disk. The plugin generates an installable preset bundle (located at <workspace>/.dsh/preset-bundles/<id>/) and provides installation instructions; it will not install the bundle for you (Installation executes new code in the Host process, requiring approval via official plugin_manager or CLI; the plugin avoids overreaching authority). README hint: After installing the bundle, start a new session and select the corresponding preset; new presets will not hot-update immediately in the current session.

Example of installing a bundle (replace path with the generated directory):

dsh plugin --profile web add link:<the bundle directory just generated>

What Appears in the Workspace

Initialization is incremental: Directories are created only if they do not exist; files are skipped if contents are identical, and marked as conflict and not written if different. The main structure includes:

AGENTS.md              Workspace principles and knowledge entry
index/                 External raw materials
inbox/                 Candidates pending review, refinement batches
knowledge/             Formal knowledge (framework.md, nodes/)
data/                  Data to be analyzed
task/                  Learning tasks and to-dos
reports/               Health check reports and change records
.dsh/
  learn-skills/        Plugin state: batch ledger, health baselines, change logs, breakpoints
  preset-bundles/      Preset bundles generated by this plugin

Plugin state is written to <workspace>/.dsh/learn-skills/, not to the host global config. Rollback relies on changes/<batch>.json; /learn rollback <batch_no> will delete newly created nodes and restore updated nodes, but files you have modified after the write will not be touched.

Configuration Highlights

Fields in cordis.patch.yml have Chinese comments. Default values related to write safety:

allowWrite: true           # Master switch; if off, the latter four items become purely read-only (Initial Preset only outputs preview)
allowBehaviorRules: false  # Behavior rules (preset prompts / AGENTS.md / skills) are not approved by default

A piece of knowledge being recognized does not automatically become a long-term Agent instruction; changes affecting behavior must explicitly turn on allowBehaviorRules in the config and be approved in the “Associate & Upgrade” confirmation.

Applicable Scenarios and Notes

Who it suits: Developers or long-term self-learners who have bound a workspace in DSH and wish to split the learning process into “Candidates → Human Review → Formal Ingestion → Read-only Health Check”; those who need to collaborate with workspace Agent presets, knowledge nodes, and AGENTS.md, but want to avoid casually breaking the formal library during conversations.

Must Know:

  1. The plugin runs with the current DSH process permissions. Please check the source code and the MIT license (see package.json) yourself before installation.
  2. The DSH compatibility range declared in package.json includes 0.2.1-alpha.1, 0.2.1-alpha.5, 0.2.1-rc.1, etc.; presets have changed to declarative bundles since DSH 0.1.7-alpha.1. Just writing to disk does not count as a preset existing; the bundle must be installed to enter the roster.
  3. The community directory skillhub.cn has no official affiliation with DeepSeek / Hiai. The DSH ecosystem philosophy is “Everything is a plugin”. This article only introduces this community plugin itself.

Conclusion

dsh-learn-skills consolidates learning methodology into four input area entries and the /learn command. By using the layering of inbox and knowledge, batch rollback, and 18-item read-only health checks, it reduces the risk of “breaking the knowledge base while chatting”. If you want to accumulate a reviewable and reusable knowledge system in the Harness for the long term, you can install @yiyunet/dsh-learn-skills from npm, bind a workspace, and go through “Initial Preset → Collect & Refine → Associate & Upgrade → Consolidate & Reuse”.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye