blake-r/dsh-plugins--packages-dsh-skill-from-tools ↗★ 0

@blake-r/dsh-skill-from-tools

将工具参数架构渲染为紧凑JSON格式的技能 适合需要精简工具参数声明、减少提示词Token占用的用户。

套件
@blake-r/dsh-skill-from-tools
相容性
待驗證
Cordis 依賴範圍
^4.0.1
版本
0.4.1
最近更新
2026年10月7日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:blake-r/dsh-plugins#19ca874106b2a06e26147150bd6b544839d0e0a9&path:packages/dsh-skill-from-tools

@blake-r/dsh-skill-from-tools

One skill per tool (no module grouping), short form with a compact JSON schema.

Install

From npm (published):

dsh plugin --profile web add @blake-r/dsh-skill-from-tools

From the GitHub repo (selective, subdirectory):

dsh plugin --profile web add github:blake-r/dsh-plugins#path:packages/dsh-skill-from-tools

What it does

A bundle package in the dsh-plugins monorepo. See the header comment in src/dsh-skill-from-tools.mjs for full behavior.

Each skill renders its tool's parameter schema as a compact JSON literal instead of Requires ... / Optionally ... prose:

  • required field: "command":string
  • optional field: "command":undef|string (undef = may be absent)
  • nested objects/arrays expand recursively: {"questions":[{"id":string,...}]}
  • enums: "edit"|"pause"|"resume"|"complete"|"blocked"
  • oneOf unions: integer|null (nullable) or {...}|{...} (discriminated)

null is a valid value (distinct from undef absence); json/empty schemas collapse to any. This is the most compact of the considered formats (~0.45x of the previous prose form) with no tool growing in size.

Each skill explicitly states that its tool is invoked as a direct tool_call with its own name — not routed through the mcp gateway — so the model does not confuse the skill's tool with an MCP tool.