@cccuuuhhh/dsh-skill-groups

中文文档
0.1.7发布于 2026/11/07MITES Module零依赖构建来源已验证近 30 天下载 1803

Group skills and toggle any combination, with drag-to-reorder and per-group catalog cost preview.

原始使用文档
文档目录8 节
  1. What it actually changes
  2. Two kinds of group
  3. Where to switch
  4. Per-session, not global
  5. Cost preview
  6. Auto-activation rules
  7. Configuration
  8. Known limits

dsh-skill-groups

Quick-switch named skill groups for DSH. Some skills are situational: you want them the moment you are doing research or trading, and you do not want them adding noise to the model's catalog the rest of the time. This plugin groups skills and switches between the groups in one click.

What it actually changes

Only which skills the model can discover. A masked skill:

  • disappears from the session skill catalog (saving context on every step),
  • is still invocable by you with /skill-name,
  • is not deleted, moved, or rewritten on disk, and
  • keeps its real instructions — the plugin holds the captured body from the discovered provider, so a masked skill never degrades into a stub.

That last point is the reason the plugin does not rename files or edit SKILL.md frontmatter the way some skill managers do: those approaches pollute git and desynchronise every SKILL.md on every switch.

Two kinds of group

KindBehaviour
ExclusiveThe "mode". Applying one automatically deactivates the other exclusive groups.
AdditiveOverlays. Any number can be on at once, for the handful of skills you always want.

A skill in no group is governed by the default policy — visible by default, so installing this plugin can never silently take skills away.

Where to switch

  • Composer chip (conversation.input.left) — the group name sits beside the input box; click to switch.
  • /skillset <group> — from the composer. Also /skillset off, /skillset add <group>, /skillset rm <group>.
  • /skillset with no argument lists every group and its current state.
  • Sidebar panel — the full manager: groups, members, cost preview, auto rules, import/export, undo.
  • Model tools — skillgroup_current, skillgroup_list, skillgroup_apply, skillgroup_toggle, skillgroup_create, skillgroup_set_members, skillgroup_clear, so you can just say "switch me to research mode".

Per-session, not global

A switch scopes to the session you made it in. Two conversations can run different groups at once, and a new session falls back to your default. This is implemented with an agent-scoped skill provider rather than a global one, so the isolation is real rather than cosmetic.

Cost preview

Before switching you can see roughly what the group costs: the catalog characters and estimated tokens it puts in front of the model. Descriptions are counted at the host's own 500-character cap, so the number matches what the model actually receives.

Auto-activation rules

Optional, off by default. A rule can activate a group by workspace path, agent preset, or keywords. Rules only ever activate — an explicit switch always wins, and rules never deactivate something you chose.

Configuration

Installed through the plugin manager. Two switches: the sidebar entry and the composer chip. State lives in $DSH_HOME/skill-groups/state.json (atomic write; a corrupt file degrades to defaults rather than throwing).

Known limits

  • Skills the host does not expose to ctx.skills cannot be grouped.
  • MCP servers do not follow a group. The host has no runtime MCP toggle, so coupling them would require a restart — out of scope rather than faked.
  • /skillset --for-turn depends on a turn counter; if it cannot be resolved the switch is made persistent and says so.

版本与发布记录

@cccuuuhhh/dsh-skill-groups 共发布 9 个版本,首次发布于 2026/10/31;过去 12 个月发布了 9 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.1.7latest2026/11/072 天前
0.1.62026/11/072 天前
0.1.52026/11/027 天前
0.1.42026/11/027 天前
0.1.32026/11/018 天前
0.1.22026/11/018 天前

关于 @cccuuuhhh/dsh-skill-groups 的常见问题

@cccuuuhhh/dsh-skill-groups 是什么?

Group skills and toggle any combination, with drag-to-reorder and per-group catalog cost preview.

如何安装 @cccuuuhhh/dsh-skill-groups?

在项目目录运行 npm install @cccuuuhhh/dsh-skill-groups,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:react(^18.2.0)、@deepseek-ai/dsh-client-locale(>=0.2.0-rc.2 <0.3.0-0)、@deepseek-ai/dsh-client-ui-slots(>=0.2.0-rc.2 <0.3.0-0)、@deepseek-ai/dsh-client-ui-primitives(>=0.2.0-rc.2 <0.3.0-0)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@cccuuuhhh/dsh-skill-groups 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/cccuuuhhh__dsh-skill-groups 是否存在。

@cccuuuhhh/dsh-skill-groups 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@cccuuuhhh/dsh-skill-groups 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js ^22.19.0 || >=24.0.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@cccuuuhhh/dsh-skill-groups 可以商用吗?

@cccuuuhhh/dsh-skill-groups 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@cccuuuhhh/dsh-skill-groups 的下载量有多少?

根据 npm 官方下载统计,@cccuuuhhh/dsh-skill-groups 在 2026/10/10 – 2026/11/08 这 30 天内被下载 1,803 次,日均约 60 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@cccuuuhhh/dsh-skill-groups 还在维护吗?

最新版本 0.1.7 发布于 2026/11/07(2 天前);至今共发布 9 个版本,其中过去 12 个月发布了 9 个;首次发布于 2026/10/31。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。