dsh-bilingual-description

拦截 description 参数没有同时写中文和英文的工具调用:加一段说明「中文:“…” 英文:“…”」格式的系统提示,并在执行前用工具守卫拒绝只写英文的调用。默认检查所有声明了 description 参数的工具,可用环境变量 DSH_BILINGUAL_DESCRIPTION_SCOPE=shell 限定为命令行类工具。

插件介绍

拦截 description 参数没有同时写中文和英文的工具调用:加一段说明「中文:“…” 英文:“…”」格式的系统提示,并在执行前用工具守卫拒绝只写英文的调用。默认检查所有声明了 description 参数的工具,可用环境变量 DSH_BILINGUAL_DESCRIPTION_SCOPE=shell 限定为命令行类工具。

安装方式

从 GitHub 安装

dsh plugin --profile web add github:che0911/dsh-bilingual-description

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

版本兼容情况

兼容性待确认。可前往项目文档查看支持版本。