dsh-skill-tier: Compressing DSH Skill Directory Resident Overhead with Three-Layer Progressive Disclosure

Preface

In DeepSeek Harness (DSH), every model-invocable skill occupies an entry - \name`: in the session's skill catalog, and this catalog is a **persistent message carried by every session in every turn**. When a domain contains dozens of skills, the catalog alone can consume thousands of tokens. A real-world example from the README states:lark-(28 members) adds approximately **+2,901 tokens** (about 51% of the base prompt);gsd-` (83 members) adds about +2,047 tokens.

Common workarounds include injecting disable-model-invocation into member files or relying on sync scripts to maintain an index. However, these often pollute source files, require the member directory to be a DSH scan root, or duplicate member discovery with dsh-skill-filesystem. Below is an introduction to the community plugin dsh-skill-tier (maintained by pandarayc). It implements “progressive disclosure” at the provider layer: the catalog retains only a single generated index skill. Members can still be loaded by users via /name, but they no longer enter the model’s catalog. The plugin is zero-dependency, implemented in a single file, and does not modify member source files.

What is this

dsh-skill-tier (npm package name @pandarayc/dsh-skill-tier, current version 0.1.0, MIT license) is a workflow class plugin for DSH. It is designed to expose skill collections from any directory in a tiered manner. While preserving the model’s ability to discover capabilities autonomously via an index, it compresses the persistent catalog overhead into a single index description (the README notes this is approximately +78 ~ +121 tokens).

It folds a skill collection into three layers (structure based on the README):

Tier 0  catalog         Lists only 1 index (+78 ~ +121 tokens)      ← Persistent
Tier 1  Model loads index  Gets the routing table for all members in the collection (~4 KB)   ← Paid only when deemed relevant
Tier 2  Fetch body via routing  Reads only the full text of the 1–2 members actually needed          ← Paid only upon precise hit

For a collection with 28 members, the README shows a reduction in catalog overhead from 2,901 → 119 tokens (approx. 96%).
Plugin directory page: skillhub.cn/plugins/pandarayc/dsh-skill-tier; Source code and documentation: github.com/pandarayc/dsh-skill-tier.

Core Features

Visibility: Synthesized at the provider layer without modifying files

Model Catalog skill Tool User /name
Index Skill ✅ 1 entry ✅ ✅
Member Skill ❌ ❌ ✅

Members are excluded from the upstream catalog builder via invocation.modelInvocable = false, rather than filtering catalog messages after the fact in an agent/pre-step hook. The README explains that the latter approach may “silently fail” on DSH 0.1.7-rc.2 due to hook ordering.

Member Scanning and Formats

  • Member layout is consistent with dsh-skill-filesystem: <dir>/<name>/SKILL.md, or flat <dir>/<name>.md.
  • groups[].dir does not need to be set as a DSH scan root, avoiding the members being injected into the catalog again by dsh-skill-filesystem.
  • members supports globs (*, foo-*, exact names, comma-separated lists, ! exclusions).
  • Change detection uses content hashes rather than mtime; list() frequency is low (README: about once in a 4-step session), and list() for 28 members takes approx. 8.6 ms.

Two Configuration Layers: Profile Global vs Workspace On-demand

Layer Location Scope
Entry Layer config.groups under skill-tier in the profile’s cordis.patch.yml All sessions for that profile
Workspace Layer <cwd>/.dsh/skill-tier.json Only sessions opened in that directory

The workspace layer does not search upwards; if no groups are configured, the plugin is lazy and occupies no catalog space. Only one instance of this plugin should be mounted per profile (otherwise, duplicate providerName in the same layer will cause registration failure); write multiple collections into the same config.groups, or set different providerName for different entries.

Priority (rank)

The default is rank: 350, intended to avoid shadowing project-level skills and customSkillDirs (300). If you wish to never shadow any existing source, set rank: 700 (> 600).

Installation and Activation

The plugin runs with the current dsh process privileges; please inspect the repository source code and MIT license yourself before installing. The runtime environment requires Node.js >= 20 (see package.json).

The installation method provided in the README is as follows (the npm package is not yet published, so the @pandarayc/dsh-skill-tier command is only available after release):

# From source
git clone https://github.com/pandarayc/dsh-skill-tier
dsh plugin --profile web add "$PWD/dsh-skill-tier"

# Or from npm (not yet published; available only after release)
dsh plugin --profile web add @pandarayc/dsh-skill-tier

# Verify: you should see the automatically mounted entry
dsh --profile web --dump-config | grep -A3 skill-tier

If there is no groups configuration after installation, no candidates will be produced, and no context will be occupied. When experimenting with --patch using headless (or an app with task arguments), do not use --json with --profile web (--json belongs to headless; web only uses --dump-config to verify mounting).

Typical Usage

1. Declare a collection in the profile (Entry Layer)

Insert into cordis.patch.yml (if the npm package is not installed, replace name with the absolute path to lib/index.js):

- insert:
    - id: skill-tier
      name: '@pandarayc/dsh-skill-tier'
      config:
        revalidateMs: 0
        providerName: skill-tier
        groups:
          - name: lark
            title: Feishu/Lark Full Capability Entry
            description: "…The sentence that goes into the catalog, explaining when to load it…"
            dir: "~/.dsh/lark-skills"
            members: "lark-*"
            detailHint: "lark-cli skills read <member-name>"
            rules:
              - "Always read lark-shared before any Feishu operation"
            rank: 350

Required fields: groups[].name (kebab-case), groups[].dir, groups[].description (will be truncated by DSH if over 500 characters; a warning is issued during configuration).

2. Only carry the index in the Feishu working directory (Workspace Layer)

mkdir -p ~/work/feishu/.dsh
cat > ~/work/feishu/.dsh/skill-tier.json <<'JSON'
{ "groups": [{ "name": "lark", "title": "Feishu/Lark Full Capability Entry",
  "description": "Feishu/Lark Full Capability Entry (28 sub-skills)…",
  "dir": "~/.dsh/lark-skills", "members": "lark-*",
  "detailHint": "lark-cli skills read <member-name>" }] }
JSON
cd ~/work/feishu && dsh --profile web

In other directories without .dsh/skill-tier.json, there is zero catalog overhead for this collection.

3. Temporarily stack configuration using examples (Package installed)

dsh --profile headless --patch examples/lark.yml "Reply with OK only"

The name: in examples/*.yml is written as the package name; if the package is not installed, you need to replace the package name with the clone path before patching (there is a sed example in the README).

Applicable Scenarios & Notes

For whom: Those who maintain batches of skills locally or on a team (e.g., embedded collections in a Feishu CLI, personal ~/.claude/skills prefix groups), who want to keep the catalog in every prompt turn concise, while needing the model to route via a single index skill, and users to still be able to load full text via /name.

Important Notes:

  1. Member names must be in kebab-case; invalid names will cause registry errors, and the plugin will skip them with a warning.
  2. Do not set groups[].dir as a DSH scan root simultaneously; otherwise, the cost will return to “one catalog entry per member.”
  3. The community directory SkillHub has no official affiliation with DeepSeek / High-Flyer; the DSH ecosystem is “everything is a plugin.” The facts in this introduction are derived from the aforementioned GitHub README and package.json.
  4. When verifying token impact, the README requires the metric to be inputTokens + cacheReadTokens, not just looking at inputTokens.

Conclusion

dsh-skill-tier collapses “large skill collections” from persistent catalog entries into a single index, paying for the routing table and member bodies only on demand. In the 28-member scenario presented in the README, the catalog is reduced from approx. 2,901 tokens to 119, without modifying the skill files on disk. For detailed configuration, priority, and design rationale, please refer to the repository README.

  • Directory Page: https://www.skillhub.cn/plugins/pandarayc/dsh-skill-tier
  • GitHub: https://github.com/pandarayc/dsh-skill-tier
羽毛球分组比赛记分
小程序二维码

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

Xiaoye