my-dsh-skill-hub: Shared Skill Pool with Role-Based Authorization

Introduction

In DeepSeek Harness (DSH), skills are usually scattered across various preset skill-filesystem configurations and global cascades. The team needs to share a set of external SKILL.md files, but also ensure that different Agent presets only see authorized skills, while being able to disable certain built-in system skills. This often requires modifying multiple configurations and makes it hard to guarantee that “unauthorized skills” do not appear in the model’s / menu and skill tool directory.

The following introduces the community plugin my-dsh-skill-hub (maintainer: myhylijp, SkillHub category: admin-security). It adds a “Skills” page to the sidebar: placing external skills uniformly and authorizing them according to Agent presets; unauthorized or disabled entries are overridden by shadow entries at runtime, so the model cannot load them.

What is it?

The current version of my-dsh-skill-hub is 0.2.0 (MIT). Its positioning can be summarized as: a globally shared external skill pool, plus a management interface for managing “pool skill authorization” and “system built-in skill enable/disable” according to presets (built-in or custom Agent roles).

The plugin registers a provider via agent.ctx.skills.registerProvider() at the creation of each Agent, ensuring that authorization policies take effect at the scope layer, not just the UI toggle state.

Core Features

External Skill Pool

Skill files fall into poolDir, with a default path of <dshHome>/skills. dshHome defaults to the environment variable DSH_HOME, otherwise ~/.dsh (consistent with the user-dsh root of skill-filesystem).

There are two ways to install:

  1. Upload a single SKILL.md (or any .md with name and description frontmatter);
  2. Upload ZIP: each directory containing SKILL.md inside the package counts as one skill, allowing multiple installations at once.

If name is written as team_notes, Team.Notes, etc., the DSH skill registry and skill tool only accept kebab-case; it is normalized to team-notes (consecutive separators are merged into - and lowercased) during installation. The page will mark “Original name …”, and the menu and skill tool should use the normalized name.

Authorization by Preset (Two Dimensions)

The authorization table is saved at <dshHome>/skill-hub/authorization.json, with one record for each preset:

  • skills: the external skills available to that role; defaults to defaultPolicy (default all).
  • builtinDisabled: the names of system built-in skills disabled for that role (defaults to empty, meaning all are enabled).

Disabled built-in skills are overridden by shadow entries with modelInvocable: false, userInvocable: false in the provider, so the disabling is truly effective.

Unauthorized pool skills and disabled built-in skills also appear as shadow entries in the cascade, overriding the same-named skills at the global/preset layers: they do not appear in the model skill directory and / menu, and the skill tool will report “not available for model invocation” when loading.

Management Page

The page entry is in the sidebar “Skills”. The top provides Refresh and Upload Install (drag-and-drop supported).

The Role Authorization area allows selecting presets. Built-in presets display as: Standard Mode (standard), PTC Mode (ptc), Minimal Mode (minimal), Creative Mode (cordis); custom presets display their own names. The top right summarizes “Current role has authorized X/X external skills, X/X system built-in skills”. When explicit authorization exists, you can Restore Default Policy (clear external authorization and built-in disable records).

Both External Skills and System Built-in Skills are two-column cards: the top-right switches indicate “Authorized to current role” and “Enabled by current role”. The block header has “Allow All / Disable All”. External skill cards support Preview (render SKILL.md), Delete (confirmation required); invalid skills are still listed with reasons marked.

The bottom of the page displays the Host version for confirming the loaded host.js version.

Configuration

The configuration in the plugin README is as follows (can be overridden in DSH plugin settings):

Field Default Description
dshHome $DSH_HOME or ~/.dsh Root directory for skill pool and authorization table
poolDir <dshHome>/skills Skill pool directory
stateDir <dshHome>/skill-hub Authorization table directory
defaultPolicy all Policy for presets without explicit authorization: all or none

Installation and Activation

Captured materials (GitHub README, package.json) do not provide a fixed dsh plugin add … one-line command, so do not manually concatenate github:myhylijp/my-dsh-skill-hub.

Suggested steps:

  1. Open the community directory page https://www.skillhub.cn/plugins/myhylijp/my-dsh-skill-hub and follow the DSH plugin installation method provided on the page;
  2. Or get the release package/source code from the GitHub repository, then add the plugin to the list and enable it according to your local DSH documentation;
  3. After enabling, restart or confirm the Host version (upgrade host.js requires a restart of the application, the README explicitly states that Host-side code is not hot-replaced within the process).

Before installation, please read the repository host.js and license (MIT) to confirm compatibility with the current DSH version; the plugin reads and writes directories under dshHome with the current DSH process permissions.

Typical Usage

1. Upload and Install External Skills

  1. Click Upload Install on the “Skills” page, or drag SKILL.md / ZIP to the page;
  2. Confirm that the new skill appears in the list; check “Original name” and the normalized name if necessary;
  3. Click Preview to verify the SKILL.md content.

Upload limits (from README): Single file 12 MiB; Unzipped ZIP 64 MiB; Single entry 8 MiB; ZIP64 and encrypted entries not supported.

2. Narrow the Skill Scope for a Preset

  1. Select the target preset in Role Authorization (e.g., “Standard Mode”);
  2. Close the skills that should not be accessed on the External Skills cards, or use “Disable All” then open them one by one;
  3. Close unnecessary built-in items in System Built-in Skills;
  4. Create a new session or continue a session with this preset, and confirm that the / menu and model skill directory only contain authorized items.

Authorization is recorded by “preset” and does not re-verify within sessions; after adding authorization for an Agent, the skill directory updates for the next request step.

3. Restore Defaults

If authorization is misconfigured, use Restore Default Policy when explicit authorization exists; this clears external authorization and built-in disable records, and defaultPolicy applies again to presets without explicit configuration.

Use Cases and Notes

Who is this for

  • Need to share the same set of external skill files across multiple machines/multiple presets;
  • In management or security-sensitive scenarios, wish to restrict external skills by role and disable some built-in skills;
  • Want to maintain authorization via UI rather than manually editing multi-layer skill provider configurations.

Boundaries and Operations

  • After uninstalling the plugin, authorization is no longer enforced; pool files remain on disk, but visibility depends on each preset’s skill-filesystem configuration.
  • Directly modifying skill files on disk takes effect after about 1.5 seconds of pool scan cache; page operations immediately invalidate the cache.
  • Preview uses vendored marked v12.0.2 (MIT); falls back to plain text on load failure.

Security Tips

The plugin is categorized as admin-security, which is reasonable: it controls which skills enter the model context. Before installation, you should review the source code and dependencies yourself and only grant dshHome write permissions in a trusted environment.

Conclusion

my-dsh-skill-hub brings the “shared external skill pool” and “authorization by preset + built-in skill disable” into a sidebar page, using scope-layer providers to ensure unauthorized skills do not enter the model directory. For further understanding, please visit the SkillHub directory page and GitHub repository (current README and package.json version 0.2.0).

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

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

Xiaoye