Dsh Claude Plugin Loader — Development skill for Claude Code
dsh 运行时装载器的最小原型:让 dsh 直接发现并加载 Claude 式组合体插件(目录含 .claude-plugin/plugin.json).
How to install Dsh Claude Plugin Loader
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open patrick1099/dsh-claude-plugin-loader and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Dsh Claude Plugin Loader does
dsh 运行时装载器的**最小原型**:让 dsh 直接发现并加载 Claude 式组合体插件(目录含 `.claude-plugin/plugin.json`)。
Alternatives in Development
- Harnessrouter — HarnessRouter Community Edition: the self-hosted, Apache-2.0 edition of the unified interface for agent harnes 618 ★
- Arstart — AgentRecall session opener — status board (no args), project loader ( ), or cold-start bootstrap 370 ★
- Oh Story Dsh — A DSH plugin for novel writing and short-drama production, powered by Oh Story and Drama Skills 202 ★
README
dsh-claude-plugin-loader
dsh 运行时装载器的**最小原型**:让 dsh 直接发现并加载 Claude 式组合体插件(目录含 `.claude-plugin/plugin.json`)。
完整使用说明见 [GUIDE.md](GUIDE.md):安装、扫描目录、配置、验证、常见问题。
当前已实现:
- 扫描插件源:默认扫
~/.claude/plugins/cache(Claude 插件缓存),可用pluginRoots配置额外根目录。 - 按插件名去重,活源优先,缓存内保留最高版本。
- 支持
enabledPlugins配置:只暴露本机[plugins.dsh].enabled且 manifest 声明dsh的插件 skill。 - skills 通道:把每个插件的
skills/注册成 dsh skill provider,模型可以用 dsh 原生skill/skill_search按名发现和加载插件里的 SKILL.md。 - 状态工具
claude_plugin_status:只读列出已发现插件及通道(skills/hooks/mcp/commands/agents)。 - SessionStart hook 桥(最小,默认关闭):解析
hooks.json里的SessionStartcommand hook,在agent/session-start时执行并把 stdout 注入会话上下文。需要在配置里显式开sessionStartHooks: true,避免自动执行有副作用的 hook。 - commands 通道(注册 + 程序化执行已验证):把 Claude plugin
commands/*.md注册成 dsh 斜杠命令(ctx.commands.register),执行时把命令模板注入 agent。已通过claude_plugin_commands确认命令进入ctx.commands,并用claude_plugin_run_command程序化执行/hello Alice成功。Web 侧已验证:loader 已装进webprofile,命令列表commands/list能看到hello,commands/execute /hello Alice返回kind=success。交互式 TUI 斜杠命令:loader 已装进cc-tuiprofile,本机 cache 里有tmp-loader-test测试插件;自动化 PTY 输入尚未稳定复现,请人工在dsh --profile cc-tui敲/hello Alice做最终确认。 - commands 热更新 + 卸载清理:loader 定时重扫插件根目录(默认 1500ms,可用
reloadIntervalMs调),插件命令被新增/修改/移除时自动注册/更新/注销;插件从磁盘删除或从enabledPlugins消失后,对应斜杠命令也会被清理。
尚未实现(下一迭代):
- PreToolUse 拒绝 / tool-rewrite 等其它 hook 意图,以及外部脚本协议桥的完整形态。
- MCP 配置生成(
mcpServers→@deepseek-ai/dsh-mcp-client配置行)。 - agents 通道。
- 第三方插件兼容边界记录。
测试
node --test dsh-claude-plugin-loader/test.mjs
覆盖:插件命令注册、插件移除后命令注销、命令模板变更后热更新。
安装(推荐:npm / dsh plugin)
# 装进 web 界面
dsh plugin --profile web add dsh-claude-plugin-loader
# 或装进 CLI/TUI profile
dsh plugin --profile cc-tui add dsh-claude-plugin-loader
# 或装进一次性 headless profile
dsh plugin --profile headless add dsh-claude-plugin-loader
重启对应 dsh 后生效。也可在 dshmarket 的 **Settings → Plugin Market** 里搜索安装(需要先收录到 awesome-dsh-plu
Related Skills
Pi Squad Loader
GSD-PI extension that loads the Squads ecosystem as native Pi SDK subagents
Pi Rules
Rule context loader extension for the pi coding agent
Skill Loader
Universal skill adapter for OpenClaw - load Claude Code, Codex, and Gemini CLI skills
Sync Gate
管理本项目的 rule 12 同步门禁(sync-gate.toml)—— init / list / check / add / remove / path。check 会报出「被 loader 丢弃的组」与「打不中任
Auto Loader Ingestion
Auto Loader Ingestion System Prompt Template
Compact Memory
Compact the project MEMORY.md index — SAFE-AUTO archive of fully-closed entries (reversible) + PROPOSE-ONLY de
Related Agents
Ds Flash
DSH (DeepSeek Harness) worker on the flash tier - fast and cheap. Delegate simple, well-scoped subtasks: mecha
Context Loader
Load all vault context about a specific topic — person, project, incident, team, or concept. Gathers notes, ba