dsh-plugin

dsh-plugin is a skill for Claude Code from Washington5533/guarftrain. It costs 78 tokens per session (2,026 once invoked), scanned A, original, MIT.

A toolkit for developing, checking, packaging, and releasing DSH community plugins. An npm package is a reusable JavaScript or TypeScript package; the toolkit builds versions for both the host and client.

In plain words
What is it for?
Use it to scaffold a new DSH plugin, validate it against the repository standard, update its registry entry, build both targets, and publish a tagged release.
Why use it?
It gives plugin authors a defined project layout, validation rules, registry updates, and an automated publishing path triggered by a version tag.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Not installable on its own: it runs a file from its repository that does not travel with it. Clone the repository, or install whatever ships that file. The line is python scripts/dsh_plugin_cli.py scaffold my-cool-plugin \.

Install

Getting it into your agent

There is no command for this one: it runs only inside a plugin, and the catalogue could not identify which plugin ships it. The source is linked below.

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for dsh-plugin

README.md
[![agentmods](https://agentmods.dev/badge/skills/washington5533/guarftrain/dsh-plugin.svg)](https://agentmods.dev/skills/washington5533/guarftrain/dsh-plugin)
Your own site
<a href="https://agentmods.dev/skills/washington5533/guarftrain/dsh-plugin"><img src="https://agentmods.dev/badge/skills/washington5533/guarftrain/dsh-plugin.svg" alt="Measured on agentmods" height="20"></a>
Per session 78 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,026 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00078 $0.02026
Opus 5 $0.00039 $0.01013
Sonnet 5 $0.00016 $0.00405
Haiku 4.5 $0.00008 $0.00203

Measured 5d ago against content hash 31c2b1e7ee34, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

dsh-plugin scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/dsh-plugin/SKILL.md · 143 lines

How it starts

The opening of the file, as written. The whole thing — 143 lines — stays where its author put it; the contents beside it link to each section on GitHub.

DSH 社区插件开发与发布

DSH 社区插件 = npm 包(含 dsh 段 + cordis.patch.yml)+ 双目标构建产物 (host ESM → dist/,client CJS + __ModuleLoader__ wrapper → dist-client/), 通过 git tag vX.Y.Z 触发 GitHub Actions 全自动发布(npm → registry → Release)。

规范原文(canonical spec)docs/PLUGIN_STANDARDS.md — 任何约定冲突时以它为准。 快速参考references/standards.md(清单速查)、references/registry-schema.md(registry schema)。

本仓库结构

位置 内容
dsh-plugin/dsh-client-ui-training-guardian/ 参考插件(Training Guardian,本规范的实现范例)
docs/PLUGIN_STANDARDS.md 社区插件规范
scripts/dsh_plugin_cli.py 插件 CLI(dsh-plugin,pyproject 已注册)
scripts/update_registry.py registry 条目重算器(CI 与本地共用)
.github/workflows/plugin-publish.yml 发布流水线
registry/plugins.json 社区插件 registry

工作流 1:脚手架(新建插件)

python scripts/dsh_plugin_cli.py scaffold my-cool-plugin \
  --author "Your Name" --description "What it does" [--platform web|tui]
  • 在仓库内运行:生成 dsh-plugin/my-cool-plugin/,并自动向 registry/plugins.json 写入条目;若仓库缺 scripts/ 工具链会自动复制。
  • 在全新目录运行(--dir /path/new-repo):生成完整仓库布局 (dsh-plugin/<slug>/ + scripts/ + registry/)。
  • 生成的骨架已含:package.json(dsh 段)、cordis.patch.yml(insert + meta + skills)、双目标 tsdown.config.ts(含 __ModuleLoader__ wrapper)、 slot 注入 + skill 注册的 client 入口、locales、slots-augment、vitest 冒烟测试、 双语 README、.github/workflows/plugin-publish.yml
  • 名字规范:npm 包名 @scope/kebab-namekebab-name;insert id 取 kebab-name(全局唯一)。

工作流 2:开发迭代

cd dsh-plugin/<plugin>
pnpm install
pnpm build          # tsc --noEmit && tsdown(产出 dist/ + dist-client/)
pnpm test           # vitest
pnpm typecheck

改完源码后(本地联调):pnpm build,dsh-wsl dev 模式会自动 reload client bundle。

实时联调(真机验证)

# 1. DSH web(WSL,用 nvm node + corepack pnpm;Windows PATH 里的 pnpm 在 WSL 不可用)
#    wsl -e bash -c '. ~/.nvm/nvm.sh; nvm use 22; cd ~/dsh-wsl && nohup pnpm dsh web &'
# 2. 真训练 + 远程服务(SSE/REST 数据源)
python -m guardian.cli watch --remote --remote-port 8765 -- python scripts/train.py \
  --epochs 20 --ckpt_dir ./checkpoints_live --data_dir ./data
# 3. 浏览器自动化验证(.tmp-playwright/,playwright-core + 系统 chromium)
#    node .tmp-playwright/live-test.js   # 按钮/面板/SSE 指标/REST 全链路
#    node .tmp-playwright/test-drag.js   # 面板拖拽/吸附/位置持久化

Read the full file on GitHub · 143 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 143 lines · 78 tokens per session scan A 31c2b1e7ee34

Subscribe to this mod's changes

dsh-plugin is a skill published in the GitHub repository Washington5533/guarftrain (1 stars, last pushed 10d ago), licensed MIT. It adds 78 tokens to every session and 2,026 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories