dsh-skill-dollar: Invoking DSH Skill with $name

Preface

In DeepSeek Harness (DSH), the slash /name serves as an entry point for both host commands and user-callable skills. Commands and skills share the same trigger character, meaning menu selection in the composer, manual token typing, and subsequent injection logic all run through the same pipeline. If you want skills to have an independent gesture without changing the host’s semantics for /, dsh-skill-dollar adds a layer of bridging on both the client and host sides: the client uses $ to open the skill menu and insert $skill-name, while the host recognizes this token during agent/pre-step, resolves the skill in the same way as /name, and injects <skill_content>.

The following sections cover the plugin’s positioning, capability boundaries, installation steps, and typical usage. For factual details, please refer to the GitHub repository README and package.json.

What is this

dsh-skill-dollar, released by the maintainer d0ublecl1ck, is classified as a client-side plugin in the SkillHub directory. In short: it invokes DSH skills using the $name gesture, which does not conflict with the / command path. Composer completion, fuzzy sorting, keyboard selection, and deterministic host-side injection are aligned with the built-in / skill path, and it strives to implement “blue text reference” display in the composer equivalent to / (see the Blue text-ref section below).

Repository version (package.json): 0.2.0, License: MIT. dsh.compatibility.dshReleases indicates compatibility with 0.1.5-rc.3 and 0.1.7-rc.2.

Core Features

Client: $ triggers the skill menu

client.js registers a candidate source under the trigger character $, using the session skill directory (skills/list) as the data source. Typing $ in the composer opens a regular timed menu (titled “Skills” / “技能”). The candidate sorting rules (from the source material) are: name prefix match first, followed by name substring and name subsequence, and finally description-only matches; ties are broken by most recently used skill, then usage frequency, and finally host order. Selecting a row inserts the literal $skill-name (including a trailing space) into the draft.

Menu selection and manual $name typing utilize the same draft text bridging, consistent with the built-in slash pipeline.

Host: Recognize $name and inject skill content

index.js listens for agent/pre-step, identifying whitespace-bounded $name tokens within user messages. These are resolved via the skills service, and the canonical <skill_content> block—byte-identical to how dsh-tool-skill handles /name—is appended.

Integration with DSH Core (Client-side)

The detectTrigger function in @deepseek-ai/dsh-client-ui-input-trigger is hardcoded to '/' | '@'; the plugin declares a dependency on this module via dsh.client.inject, requires it in the factory, and patches InputTriggerController.prototype.track. When a valid $query token exists, it synthesizes a trigger hit of '$', reusing the controller’s reduce / fetchCandidates / refreshHeaders and the '$' roster. This allows reuse of the MenuView and keyboard arbitration without forking the core package. When no $ token is present, the original track logic runs, leaving / and @ behavior unchanged.

Blue text-ref: Display alignment between $ and /

The composer’s blue “reference” style comes from a plain text scan in @deepseek-ai/dsh-client-ui-conversation; its token regex originally only covered / and @. The plugin wraps ClientModuleRegistry.bundleResource on the host side to rewrite the scanning rules within the bundle at serving time (extending TEXT_REF_RE to include $ and applying the same end-boundary rules to $ as /). In DSH Desktop, the bundle resides in a integrity-checked app.asar, making direct file modification on disk inappropriate; the runtime patch is designed for this scenario. For older hosts (where bundle revisions are derived from content and cannot be cache-busted via in-memory salt alone, such as DSH 0.1.5 and earlier npx dsh web as noted in the docs), the patch-core.mjs script included in the repository can be used to perform a one-time similar replacement on the disk bundle.

If the clientModules service is missing (older DSH versions), the documentation indicates the plugin will print a hint, but $ menu and host injection remain functional; only the blue reference decoration may be incomplete.

Installation and Activation

The plugin directory is the repository root. To install to a profile (web used as example):

dsh plugin --profile web add /absolute/path/to/dsh-skill-dollar
dsh --profile web --dump-config

dsh plugin forwards to pnpm within the profile and rebuilds dsh.profile.bundles. A web app restart is required afterwards: the host composes the client module manifest at startup, so a running dsh web must be restarted to load client.js.

DSH Desktop uses a separate harness home (on macOS: ~/Library/Application Support/dsh-desktop/harness) and stores content-addressed generation snapshots of plugins under profiles/.generations/live/. Therefore: a link: installation in ~/.dsh/profiles/web will not appear in Desktop; a running Desktop still uses the generation from startup. After modifying the plugin, you must reinstall/update within the Desktop profile and use Cmd/Ctrl+Shift+R (Restart Harness) or quit and reopen to load the new generation. The docs note that decorations are applied by the plugin host-side at boot, so no manual modification of files inside the app bundle is needed.

Repository local self-check (no external tools required):

node --test
node check-core-surface.mjs

node --test covers transforms, drift guards, registry hooks, sorting, etc.; check-core-surface.mjs exits with a non-zero code if DSH core anchors drift. Browser-side verification: Open the web app, type $ in the composer, and confirm the skill menu appears and that selecting an entry loads the skill.

Legacy disk patch for older hosts (on-demand):

node patch-core.mjs
node patch-core.mjs --check
node patch-core.mjs --file <client.js>

When DSH is upgraded to 0.1.7+ and the runtime served patch is effective, the documentation states it is usually unnecessary to re-run patch-core.mjs.

Typical Usage

  1. Add the plugin to the target profile (or DSH Desktop generation) as described above, and restart the harness / web app.
  2. Type $ in the composer to select an entry from the “Skills / 技能” menu; or type $your-skill-name directly in the message (tokens must be whitespace-bounded).
  3. After sending the message, the host resolves $name during pre-step and injects a skill content block equivalent to /name.

The only difference from / lies in the gesture and menu trigger character: / remains reserved for commands and the original skill path; $ serves as the parallel entry for skills.

Use Cases and Notes

Who is this for: Developers who frequently invoke user-invocable skills in the DSH composer but wish to separate them from / host commands in terms of typing habits; users who want to maintain consistency in skill completion and reference highlighting across both web and Desktop.

Runtime and Trust Boundary: The plugin runs with the permissions of the current DSH process; the host side hooks into module serving, listens to agent lifecycle events, and rewrites client bundle bytes. Before installation, review the source code and the MIT license to ensure it aligns with your security policy.

Maintenance and Drift: The client patch and host scanning depend on literal anchors within the DSH core; core refactoring may cause check-core-surface.mjs to fail or trigger runtime warnings. The documentation notes that the client will throw a console error if the controller structure changes, and the host will warn once per bundle if the reference scan pattern mismatches, but the manual $name injection path should still function.

Ecosystem Note: The DSH community plugin directory is hosted on independent sites like SkillHub and is not officially affiliated with DeepSeek / High-Flyer. This article describes the community plugin dsh-skill-dollar, which is not an official app store entry.

Links

  • SkillHub Directory Page: https://www.skillhub.cn/plugins/d0ublecl1ck/dsh-skill-dollar
  • GitHub: https://github.com/d0ublecl1ck/dsh-skill-dollar

Following the steps above, you can use $name to access the same skill directory, menu, and injection logic while preserving / command semantics, and achieve consistent composer reference display comparable to / via runtime bundle patching on newer hosts.

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

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

Xiaoye