DSH Plugins
返回列表
⚙️

dsh-plugin-factory

工作流 更新于 2026.08.17

在终端中运行以下命令:

dsh plugin install ktziy/dsh-plugin-factory

将以下提示词粘贴到 DeepSeek Harness 对话框中:

在终端执行 dsh plugin install ktziy/dsh-plugin-factory 即可安装,项目源码位于 https://github.com/ktziy/dsh-plugin-factory

插件介绍

DeepSeek Harness enforces a strict plugin contract: the apply(ctx) lifecycle, defineTool definitions, and hard Schema DSL constraints. Most LLMs were never trained on this API surface, so asking an agent to write a plugin from scratch often produces hallucinated fields and invalid calls that fail at runtime.

ndsh-plugin-factory packages the contract into three practical tools. plugin_doc retrieves documentation and official references by topic or file path. plugin_scaffold generates a ready-to-compile skeleton for six plugin kinds: tool, service, event, llm-adapter, client, and client-node. plugin_validate runs guard-rule static checks before the code ever reaches the runtime, catching violations early. Together they form a docs-to-scaffold-to-verify loop that keeps every agent output grounded in the real spec.

If you prefer driving engineering tasks with natural language and do not want to re-read the official docs and hand-check every API for each new plugin, this is a lightweight way to inject spec knowledge directly into the conversation. Describe what you need in plain language and receive back a compilable skeleton plus a paste-ready install snippet.

使用场景

  • 在 dsh 会话中让 Agent 自动生成合法插件骨架代码
  • 编写新插件前查阅契约文档并校验 API 合规性
  • 为工具、服务、LLM 适配器等类型快速生成可编译模板

适合人员

  • 使用 dsh 日常开发并希望用自然语言驱动插件生产的工程师
  • 刚接触 dsh 插件开发、希望减少 API 幻觉的开发者
  • 需要批量生成多种类型插件骨架的工作流使用者