Skip to content
Agentmart
Submit a tool

dsh-plugin-client

开发 DSH 插件的 client 半端(浏览器 UI)时使用:按已验证的 slot 与标准-kit 契约注册界面、双目标构建并包装客户端 bundle。

Skill by hackerFish

IndexedMIT★ 4
Write a review

Chalk Labs

Need help deploying dsh-plugin-client?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/hackerfish-dsh-plugin-client

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

开发 DSH 插件的 client 半端(浏览器 UI)时使用:按已验证的 slot 与标准-kit 契约注册界面、双目标构建并包装客户端 bundle。

Use cases: design

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/dsh-plugin-client

What's inside

Skill name
dsh-plugin-client
Description
开发 DSH 插件的 client 半端(浏览器 UI)时使用:按已验证的 slot 与标准-kit 契约注册界面、双目标构建并包装客户端 bundle。
License
MIT
Instructions
42 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# DSH 插件 client 半端(依据官方包实现与 dsh-voice-input 实战验证)

## 包结构

- `package.json`:`exports` 加 `"./client": "./lib/client/index.js"`;`dsh.client` 声明 `{ "platform": "web", "inject": [...] }`
- `inject` 按需列出依赖的 client 插件:`@deepseek-ai/dsh-client-runtime`(slots)、`@deepseek-ai/dsh-client-locale`(i18n)、以及插槽声明方(如 `@deepseek-ai/dsh-client-ui-conversation`、`@deepseek-ai/dsh-client-ui-settings`)
- client 源码放 `src/client/index.ts`,导出 `export const inject = ['slots']` 与 `export function apply(ctx)`

## 注册 UI(slots 契约)

```ts
ctx.slots.inject('conversation.input.right', () => ctx.slots.register({
  name: 'conversation.input.right',  // 插槽名(single/list/chain 由声明方定)
  id: 'my-button',
  order: 10,
  locale: 'my.ns',                    // 可选:声明后组件收到 t()
}, MyComponent))
```

- 组件自动收到「标准 kit」:全局 `useSessions/useWorkspaces`;会话级 `useSession`、`useInput`(draft 快照)、`inputActions`(setDraft/submit/…);以及 `sessionId`、`useProjection`、`renderSlot`、`t`
- 常用插槽:`settings.plugins.tab`(设置页标签)、`conversation.input.left/right`(输入条按钮区)、`tool.call.toolview`(工具调用视图,keyed 注册)、`conversation.composer.dock`

## 构建(tsup 双目标)

```ts
// tsup.config.ts:host 半端
{ entry: { 'host/index': 'src/host/index.ts' }, format: ['esm'], platform: 'node' }
// client 半端
{ entry: { 'client/index': 'src/client/index.ts' }, format: ['cjs'], platform: 'browser',
  external: ['react', 'react-dom'] }
```

- 构建后必须按官方 client-modules 协议包装:`window.__ModuleLoader__.load({ id: '<包名>', factory: (require) => { ...CJS... } })`(react 由宿主加载器提供,不打进 bundle)
- 自测:Node 里 mock `window.__ModuleLoader__` 执行 bundle,断言 `apply`/`inject` 导出与注册发生

## 安装与调试

- `file:` 协议是复制安装,改代码必须重装;`link:` 协议建 Junction 指向本地目录,改源码即时生效(开发推荐)
- 验证 client 已加载:刷新页面看 UI 是否出现;host 加健康路由 `GET /<prefix>/health` 排查;页面 HTML 的 client 清单里应出现 `"id":"<包名>"` 与 `rev`
- 页面清单不更新 = 服务端未重启(rev 是启动时计算的);改 lib 后重启 dsh

From hackerFish/awesome-dsh-skills, MIT.

More from hackerFish/awesome-dsh-skills

Signals

Stars
4
Forks
2
Open issues
0
Last commit (this folder)
Aug 24, 2026 (2 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from hackerFish

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get dsh-plugin-client running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying dsh-plugin-client?

CallGet help
Cite this page

dsh-plugin-client skill. Agent Mart. https://agentmart.dev/skills/hackerfish-dsh-plugin-client (last updated 2026-10-24)