Agent Skills
› voidzero-dev/vite-plus
› sync-tsdown-cli
sync-tsdown-cli
GitHub同步 tsdown CLI 运行时选项至 vp pack,处理新增/移除参数,保留特定差异,更新静态帮助文档并添加 PTY 快照测试用例。
Trigger Scenarios
上游工具版本升级导致 CLI 选项变更
需要同步第三方工具的命令行参数
Install
npx skills add voidzero-dev/vite-plus --skill sync-tsdown-cli -g -y
SKILL.md
Frontmatter
{
"name": "sync-tsdown-cli",
"description": "Sync tsdown runtime CLI options with vp pack after a tsdown upgrade. Use for option forwarding changes; use sync-upstream-cli-help for static help wording.",
"allowed-tools": "Read, Grep, Glob, Edit, Bash"
}
Sync tsdown CLI
Runtime options live in packages/cli/src/pack-bin.ts; static help lives in
packages/cli/src/help.ts.
- Run
npx tsdown --helpfrompackages/cli/and compare it withpack-bin.ts. - Add new forwarded options using the existing cac
.option()pattern. For removed options, add// NOTE: removed from tsdown CLI in vX.Y.Zfor reviewer follow-up. - Preserve runtime differences:
-c, --configstays disabled because Vite+ usesvite.config.ts, and--env-prefixkeeps the['VITE_PACK_', 'TSDOWN_']default. - For static labels and descriptions, follow
sync-upstream-cli-help; do not adapt upstream wording to explain runtime differences. - Run
pnpm --filter vite-plus build-tsandvp pack -h. Add a focused PTY snapshot case undercrates/vp_cli_snapshots/tests/cli_snapshots/fixtures/when a new runtime option is exposed.
Version History
-
8917f4a
Current 2026-08-15 03:00
优化上游帮助文档差异的 CI 处理流程,增加 PR 评论通知及自动更新能力。
- a24eede 2026-07-24 11:29


