Introduction¶
DeepSeek Harness (DSH) extends agent capabilities through Skills. When the number of Skills grows, the model or user interface may still accidentally trigger inappropriate Skills; if the only recourse is modifying presets or deleting packages, it affects other accounts or projects. This article introduces the community plugin dsh-skill-preferences, which persists disabled lists across three layers—global, user, and workspace—under Settings → Skills, and suppresses disabled Skills at runtime through a Skill provider policy.
What Is This¶
dsh-skill-preferences (maintained by zc679087) is a DSH Web-side plugin published on npm. The version referenced here is 0.2.2, licensed under MIT. It uses DSH’s public WebServer, Auth, settings, skills, Agent, and client slot APIs without modifying DSH source code or built-in presets; preferences are stored in the host’s persistent skill-preferences namespace. The community catalog classifies it as admin-security; catalog page: skillhub.cn/plugins/zc679087/dsh-skill-preferences. SkillHub is an independent community site with no official affiliation with DeepSeek / High-Flyer.
Core Features¶
Three-Layer Preferences¶
In Settings → Skills, select a layer, search for a Skill, and toggle the switch. The switch reflects only the setting of the currently selected layer; the “Current session” status and layer tags show the merged result for the current account and workspace.
| Selected Layer | Switch Modifies | Scope |
|---|---|---|
| Global | Global disabled list | All accounts and workspaces |
| This user | Disabled list for the currently signed-in account | That account across all workspaces |
| This workspace | Disabled list for the current project root | All accounts working in that project |
Restrictions are merged via union in the order global → user → workspace: a Skill disabled at an upper layer cannot be individually “enabled” at a lower layer; enabling it at a given layer only clears the restriction at that layer. Entries with inherited restrictions remain visible and indicate which layer should be changed. The user layer requires a signed-in account in multi-user mode; the workspace layer requires an active session and working directory. The plugin locates the nearest .git, .dsh, or .agents project root, falling back to the current working directory if no marker is found.
Persistence and Permissions¶
Example preference structure (excerpt from README):
skill-preferences:
disabled: [pdf]
hints: {}
byUser:
'<account-userId>':
disabled: [cad]
hints: {}
byWorkspace:
'/absolute/project/root':
disabled: [imagegen]
hints: {}
hints stores the description and source of a disablement and does not participate in enforcement. User keys are account userIds, not login names. In multi-user mode, only hosts with the admin role can see the global selector and modify global preferences; global write requests from ordinary users are rejected. Starting from 0.2.2, global selection and global writes are restricted to administrators; the deprecated adminUsers field is retained only for legacy config compatibility and grants no authorization. Anonymous local mode still retains global access; when signed-in accounts exist, authorization is determined by host roles. Workspace writes remain available to ordinary users; ordinary users can still see a “Globally disabled” status note on Skills, but this does not mean they can edit the global layer.
Writes are serialized, persisted before success, and preserve other layers; after saving, the plugin’s Skill directory cache is invalidated, so no DSH restart is needed.
HTTP Interfaces¶
The plugin exposes two JSON endpoints. Multi-user requests require Authorization: Bearer <token>; the browser uses the current DSH token.
| POST Path | JSON body |
|---|---|
/plugin-skill-preferences/list |
{ "query": {} } |
/plugin-skill-preferences/setEnabled |
{ "change": { "name": "pdf", "enabled": false, "target": "workspace", "cwd": "/project" } } |
query and change may carry optional cwd, presetId; target is global, user, or workspace, defaulting to global; workspace writes require cwd. Success responses look like { "ok": true, "value": { "skills": [], "userAvailable": true, "isAdmin": true } }; errors are { "ok": false, "error": { "code": "...", "message": "..." } }.
Runtime Enforcement¶
The plugin registers a complete Skill provider and suppresses disabled Skills through model/user invocation policies. Live Agents bind to the persistent session owner, isolating user directories without modifying the shared host cache; preference changes take effect on the next Agent step. Note: after saving, the DSH root-path suggestion menu may still show the old list, requiring a page refresh; when a session has no Live Agent yet, the native skill.list may not apply user-layer suppression, while the settings API and Live Agent execution paths do apply all three layers; the same Web profile should be mounted only once to avoid duplicate settings namespaces.
Installation and Activation¶
Install the specified version into the Web profile from npm:
dsh plugin --profile web add dsh-skill-preferences@0.2.2
Restart the DSH Web server and refresh the browser. The bundled package automatically mounts the host plugin and exposes browser modules; there is no need to add a dsh-skill-preferences/preset entry.
Local tgz installation:
dsh plugin --profile web add /absolute/path/dsh-skill-preferences-0.2.2.tgz
If you manage profiles manually, install via that profile’s package manager in $DSH_HOME/profiles/<profile>/, and insert the following into cordis.patch.yml (do not combine with bundle installation):
- insert:
- id: skill-preferences
name: 'dsh-skill-preferences'
After upgrading or reinstalling, existing preferences are generally retained unless the corresponding settings are explicitly deleted.
Typical Usage¶
- After installing 0.2.2 and restarting the Web server, open Settings → Skills.
- To disable a Skill site-wide, select Global, search for its name, and turn off the switch.
- If only the current account doesn’t need a Skill, select This user and turn it off.
- To disable it only in the current repository (e.g., to avoid accidental triggering of
imagegen), select This workspace, confirm the workspace root, and turn off the corresponding Skill. - Check the layer tags and “Current session” in the list to verify the merged result; if root-path suggestions haven’t updated, refresh the browser as prompted.
Scripts or integrations can call /plugin-skill-preferences/list to fetch the merged state, or use /plugin-skill-preferences/setEnabled to write per layer; for reverse-proxy deployments, configure exact host[:port] entries in the plugin composition’s http.trustedHosts.
Use Cases and Notes¶
- Suitable for: DSH deployments with many Skills; multi-user or multi-project environments sharing the same host that need per-person or per-repo Skill disablement to prevent accidental triggering; global policies that need to align with admin-security-type management capabilities.
- Version: The referenced installation version is 0.2.2; peer dependencies are installation constraints and do not guarantee compatibility with arbitrary future DSH commits. Release verification was performed against the unmodified host commit
4d214f38c9fe03aefdfb9d900219f64f4ca85183; see the repository’s 0.2.2 verification report (path per the repository). - Security: The plugin runs with the current DSH process’s privileges. Before installation, read the GitHub source code and LICENSE to confirm it meets your security and compliance requirements.
Conclusion¶
dsh-skill-preferences turns Skill enablement/disablement from “modifying presets or deleting packages” into auditable three-layer preferences, and actually suppresses invocations on the Agent side. It suits DSH environments requiring fine-grained control over Skill exposure. Catalog page: https://www.skillhub.cn/plugins/zc679087/dsh-skill-preferences; source code and full documentation: https://github.com/zc679087/dsh-skill-preferences.