dsh-stack-composer: Assembling Readable, Installable DSH Plugin Stacks from Plugin Directories Based on Target Use Cases

Introduction

The DeepSeek Harness (DSH) ecosystem already has a large number of plugins. The community-maintained dsh-plugin curated directory had 4,412 entries as of 2026-10-04. Each entry has a category, a one-line description, an install command, stars and downloads, as well as ten capability flags and red line indicators obtained from the registry’s source-code inspection. When actually choosing plugins, the common practice is to search the directory by keyword, look at stars, and open pages one by one — it’s hard to systematically answer questions like “which role is still missing in my DevOps stack”, “why did this pick make the list”, or “which capabilities should I focus on before installing”. dsh-stack-composer (GitHub: Tim-ReJet/dsh-stack-composer) turns “purpose → roles → scoring across the whole directory → report + install commands” into a read-only workflow: it doesn’t install anything for you, nor does it modify the plugins being evaluated. It only writes its own registry cache on the DSH side and optional --out output.

What Is This

Maintainer Tim-ReJet, categorized as workflow in community directories such as SkillHub. One-sentence positioning of the plugin: based on your declared purpose (e.g., “a complete DevOps stack” or “a content creation stack for a solo YouTube channel”), it infers the roles the stack needs, scores every plugin in the directory per role using categories, descriptions, capability flags, and red lines, and returns selected plugins, scoring rationale, risks, unfilled gaps, and one install command per plugin. It does not pull any plugin source code; capability flags represent behaviors observed by the registry at the time of inspection, and a missing flag only means “not observed”, not safe.

Core Functionality

Scoring Basis

Registry entry side: category, description, install, stars/downloads, ten capabilities (fs-read, fs-write, env, network, llm, shell, dynamic-code, host-runtime, credentials, subagent), and red lines. Plugin side: no source code is fetched.

From Purpose to Stack

  1. Purpose → roles: 23 built-in roles (version control, containers, secrets, observability, alerting, collection, publishing, memory, orchestration, etc.). If the purpose matches one of the 8 presets, the preset’s role set is adopted; otherwise roles are selected by the number of role keywords hit by the purpose, supplemented by a generic role to avoid an empty stack.
  2. Whole directory × whole role scoring: additions and subtractions are explainable, and each contribution is printed in the report. Signals and weights (excerpted from README):
Signal Weight
Category name matches role name +6
Up to 2 role keywords in plugin name each +5
Up to 3 role keywords in description each +2
Capability required by role and declared +2
Capability required by role but not declared −1
Up to 2 “clearly some other job” segments each −4
Popularity min(2, log₁₀(stars+1) + log₁₀(downloads+1)/2)
  1. Thresholds: a role score ≥6 counts as filled; 3–6 is a loose match; <3 is recorded as a gap, with the closest candidate provided. Popularity caps at +2, below the loose-match threshold, so stars alone cannot fill a role, and the report won’t force plugins in just to “look complete”.
  2. Assembly: each plugin is selected only once; risks come from the registry red lines; the report aggregates the union of capabilities, capability flags worth double-checking before install, and one install command per plugin.

Session Tools and CLI

In a DSH session where this plugin has been composed:

  • stack_compose: purpose (required), optional perRole, refresh. Returns the stack, roles and counts, and the full report.
  • plugin_capabilities: query (required), optional limit, category, capability. Used to look up one plugin or a category’s capabilities, red lines, install command, and directory page before installing.

The command line matches the engine, e.g.:

dsh-stack-composer "a fully equipped DevOps stack" --per-role 2
dsh-stack-composer "a content creation stack" --json > stack.json
dsh-stack-composer --capabilities "browser automation" --limit 5
dsh-stack-composer --capabilities "secrets" --capability credentials
dsh-stack-composer --presets
dsh-stack-composer --roles

Common parameters: --per-role (recommendations per role, default 2, 1–8), --refresh (re-fetch the registry), --offline (use cache only), --registry (local file or URL), --json, --out. Success exit code is 0; usage errors or an unreadable registry exit with 2.

Configuration

Inject a stack-composer line via cordis.patch.yml, allowing settings for perRole, registryUrl, registryPath (local snapshot, for testing or offline use), and offline. In local development, an overlay can point name to the checked-out src/index.js and set perRole, etc. (see the repo README).

Installation and Activation

The package is not yet published to npm; install from the repository:

dsh plugin --profile web add github:Tim-ReJet/dsh-stack-composer

After publication, the short form given in the README will be:

dsh plugin --profile web add dsh-stack-composer

Confirm the layer has loaded:

dsh --profile web --dump-config | grep -A 5 stack-composer

Runtime: package.json requires Node.js >= 20; version 0.1.0, license MIT. GitHub star count is 0 (per clues on the directory page).

Typical Usage

CLI: report for a preset purpose

The following command lists only 1 plugin per role for the DevOps preset, for a quick browse (README example):

dsh-stack-composer "a fully equipped DevOps stack" --per-role 1

Output includes the preset name, role count, plugin count, registry entry count and update time, plus under each role the plugin, score, why rationale, capability summary, and install line; risk notes follow at the end (e.g., a vault-type plugin both reads credentials and makes network requests).

Session: compose a stack in natural language and check credential-related capabilities

In a session you can use it like this (README suggestion): “Compose a security review stack and tell me which picks read credentials.” — first stack_compose, then cross-check the report’s credentials flag and risk notes.

Pre-install capability lookup

dsh-stack-composer --capabilities "secrets" --capability credentials

The repository has committed two sample reports generated from the live registry for DevOps and content creation under samples/; regenerate with npm run check:live.

Use Cases and Caveats

Who it’s for: DSH users who want a explainable plugin shortlist and install commands quickly from scratch or from a vague goal (“research stack”, “content creation stack”); people who want to see gaps and registry red lines in the same flow, rather than just a ranked list.

Read-only boundary: It does not install plugins from the report, nor does it detect conflicts between multiple picks. Network: no requests are made unless the registry is needed; the registry is cached by URL in the DSH home, with a one-day cache, and --refresh forces an update.

Scoring and data limitations (README “Limits”): roles and keywords live in src/roles.js; mis-matches can be fixed by editing the word list in that file, and the report prints the rationale for each pick. As of 2026-10-04, 394 of the 4,412 entries had no capability inspection data, and the report distinguishes “not inspected by registry” from “not declared”. This is not a quality leaderboard: being in the directory itself is the main quality signal; stars/downloads serve only as tie-breakers.

Must do before installing: DSH plugins run with the permissions of the current dsh process. The composer only reads directory metadata; the install you execute from the report actually adds plugins — before installing each pick you should still read its source code, license, and capability declarations, and check against your local security policy; don’t auto-install everything based on scores alone.

Conclusion

dsh-stack-composer locks “purpose → 23 roles / 8 presets → explainable scoring over 4k+ directory entries → gaps and risks output side by side” into a workflow plugin, suitable for planning before expanding your stack and then confirming each item manually. Community directory page: SkillHub - dsh-stack-composer; source code and full documentation: GitHub - Tim-ReJet/dsh-stack-composer.

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

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

Xiaoye