dsh-plugin-skill-manager: Centrally Manage Skills in DeepSeek Harness Web Settings

Preface

DeepSeek Harness (DSH) loads SKILL.md and related resources via user-level skill root directories; as skills accumulate, maintaining sources, naming priorities, and invocation eligibility often relies on manual directory browsing and frontmatter editing. The community plugin dsh-plugin-skill-manager (maintained by majinggui, npm package @majinggui/dsh-plugin-skill-manager) adds a Skills page within the Settings of the Web client: it scans configurable skill roots, lists directories and enabled statuses, provides inline editing of SKILL.md, and supports installation from local documents or GitHub repository links. The page utilizes @deepseek-ai/dsh-client-ui-primitives and --dsw-* design tokens, registered to the official settings.section slot, sharing the same interaction paradigm as built-in settings sections.

What is this

In a sentence: A Skill management workflow plugin (Category: Workflow) for the DeepSeek Harness Web client.

The plugin injects a single configuration line via cordis.patch.yml: registering an authenticated JSON route on the host side and a Settings page on the browser side. It requires DSH >=0.2.0-rc.1 and the client platform to be web (dsh.client.platform: "web" in package.json).

Core Features

The following table corresponds to the verified capabilities described in the “What the page offers” section of the README.

Operation Effect
Catalog Lists every SKILL.md and flat .md document under scanned roots, including source, priority rank, absolute path, and enabled status
Scan shared agents directory Toggles whether ~/.agents/skills is included in scanning; disabled by default, selection is persisted
Enable / disable Disables or restores by Skill Name (skills with the same name across multiple roots cannot be toggled individually)
Edit SKILL.md Reads and writes via an inline editor; validates content hash upon save
Upload skill documents Browser reads .md and/or .zip skill packages, installing them to installRoot
Import from GitHub Parses repository links, installing every exposed SKILL.md
Overwrite existing skills Passes overwrite during installation; otherwise skips skills with existing names

Skill Packages (.zip): Each directory containing a SKILL.md is installed as a single skill, retaining scripts and resources in the same directory; the common top-level directory found in GitHub “Download ZIP” archives is stripped first. Paths are normalized to reject absolute paths and ..; encrypted, ZIP64, or unsupported compression methods yield readable rejection reasons.

Enable/Disable Mechanism: The plugin writes two keys recognized by DSH into the document frontmatter to remove entries from the model context, skill tool, and / menu:

disable-model-invocation: true
user-invocable: false

Original frontmatter values replaced are recorded in the state file <dshHome>/skill-manager.json and restored upon re-enabling; documents without frontmatter are prohibited from being disabled (to avoid guessing). Documents failing to parse display errors in the list rather than silently disappearing.

Installation & Activation

After publishing to npm, the command provided is:

dsh plugin --profile web add @majinggui/dsh-plugin-skill-manager@latest

If installing via link after local build from this repository, the README original text is:

cd dsh-plugin-skill-manager && pnpm install && pnpm build
dsh plugin --profile web add link:$(pwd)

(Requires obtaining the repository source code and entering that directory; if lib/ is committed, pre-built artifacts can also be used via dsh plugin add github:<owner>/<repo> as described in the README Development section.)

After installation, restart the corresponding profile (dsh web, pnpm run dev:web, or the desktop app) and open Settings → Skills.

Node engine requirements (package.json): ^22.19.0 || >=24.0.0. Current package version is 0.1.0, License MIT.

Configuration

Set config in the plugin row declaration (example from README):

- insert:
    - id: skill-manager
      name: dsh-plugin-skill-manager
      config:
        extraRoots:
          - path: ~/team-skills
            source: team
            rank: 300

Common field defaults and meanings (all from the README Configuration table):

Field Default Meaning
dshHome $DSH_HOME or ~/.dsh Harness config root; its subdirectory skills is scanned and serves as the import target
agentsHome $DSH_AGENTS_HOME or ~/.agents Shared agent config root; the scan toggle on the page controls its skills
includeAgentsRoot false Whether to scan the agents root before first load; subsequently, the record in the state file via the page toggle takes precedence
extraRoots [] Additional managed roots, each containing path, source, rank
stateFile <dshHome>/skill-manager.json Enablement state and agents scan toggle
installRoot <dshHome>/skills Directory for uploads and GitHub imports
githubMaxFiles 20 Maximum number of documents installed per GitHub import
githubMaxDocumentBytes 524288 Single document size limit
githubTimeoutMs 30000 Timeout for a single GitHub import
uploadMaxDocuments 20 Maximum documents/packages installed per upload
uploadMaxDocumentBytes 524288 Single Markdown size limit
zipMaxBytes 52428800 Compressed package upload limit (50 MB)
zipMaxUncompressedBytes 209715200 Total uncompressed size limit (200 MB)
zipMaxMembers 2000 Maximum file count within the package
zipMaxEntryBytes 67108864 Single file uncompression limit (64 MB)

Default Scan Scope: $DSH_HOME/skills and configured extraRoots. $DSH_AGENTS_HOME/skills (rank 500) is only included after the page scan toggle is enabled; once disabled, they will not be listed in the next directory read. Read/write path restrictions apply within all configured roots; even if the agents scan is off, enablement operations can still be performed on skills previously present in that root.

Typical Usage

  1. Open Settings → Skills to view the Catalog: confirm the source, rank, and path of each skill; conflicts with the same name are explained inline on the page, and toggles apply to the entire name.
  2. For team shared directories, add path / source / rank in extraRoots; after restart or refresh, skills appearing in the new root will enter the catalog.
  3. Temporarily prevent the model from invoking a skill: Disable that name; restore with Enable, and frontmatter is restored according to the state file.
  4. Modify description or invocation-related frontmatter: Edit SKILL.md in the list and save; if the disk file has been modified elsewhere, a conflict will be returned.
  5. Install new skills: upload .md or .zip containing SKILL.md to installRoot; or paste a GitHub repository link to import (reads only files named SKILL.md via public API, subject to the quantity and size limits mentioned above). Check/pass overwrite if you need to overwrite names.
  6. If there are shared skills used by tools like Cursor on this machine: turn on “Scan shared agents directory” as needed to include ~/.agents/skills in the Catalog (disabled by default).

Security & Limitations

Security (README Safety): Read/write is restricted to configured roots; out-of-bounds attempts are rejected with outside-roots; writes include a content hash from the read time, resulting in conflict if modified in between; writes proceed via temporary file then rename; installation does not overwrite existing names by default; GitHub imports are subject to file count, size, and time constraints.

Limitations (README Limitations): Enabling/disabling modifies SKILL.md, so this page is unsuitable for deployments where skill file modification is not allowed; the directory is a snapshot, and skills added elsewhere require a refresh; project-level skills are out of scope for this page, covering only user-level and configured extra/agents roots.

Applicability & Notes: Suitable for developers centrally maintaining personal and team skill libraries under DSH Web or dev:web. The plugin reads and writes config roots and skill files with the current DSH process permissions; please read the GitHub Source Code and MIT License before installation, and understand that GitHub imports access public APIs. The community directory SkillHub Plugin Page is an independent site with no official affiliation with DeepSeek / High-Flyer.

Conclusion

dsh-plugin-skill-manager consolidates skill visibility, priority, enable/disable status, editing, and installation into a single Settings page, reducing scattered manual operations on directories and frontmatter. For further details, see the GitHub README (including the Chinese README) and the SkillHub Directory Page.

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

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

Xiaoye