Agent Skillsvoidzero-dev/vite-plus › sync-tsdown-cli

sync-tsdown-cli

GitHub

对比tsdown与vp pack的CLI选项差异并同步。升级tsdown或检查漂移时触发,通过脚本获取帮助、读取代码、新增选项并保留注释以处理移除项,最后验证构建及快照。

.claude/skills/sync-tsdown-cli/SKILL.md voidzero-dev/vite-plus

触发场景

tsdown版本升级 检查tsdown与vp pack CLI选项漂移

安装

npx skills add voidzero-dev/vite-plus --skill sync-tsdown-cli -g -y
更多选项

非标准路径

npx skills add https://github.com/voidzero-dev/vite-plus/tree/main/.claude/skills/sync-tsdown-cli -g -y

不安装直接使用

npx skills use voidzero-dev/vite-plus@sync-tsdown-cli

指定 Agent (Claude Code)

npx skills add voidzero-dev/vite-plus --skill sync-tsdown-cli -a claude-code -g -y

安装 repo 全部 skill

npx skills add voidzero-dev/vite-plus --all -g -y

预览 repo 内 skill

npx skills add voidzero-dev/vite-plus --list

SKILL.md

Frontmatter
{
    "name": "sync-tsdown-cli",
    "description": "Compare tsdown CLI options with vp pack and sync any new or removed options. Use when tsdown is upgraded or when you need to check for CLI option drift between tsdown and vp pack.",
    "allowed-tools": "Read, Grep, Glob, Edit, Bash"
}

Sync tsdown CLI Options with vp pack

Compare the upstream tsdown CLI options with vp pack (defined in packages/cli/src/pack-bin.ts) and sync any differences.

Steps

  1. Run npx tsdown --help from packages/cli/ to get tsdown's current CLI options
  2. Read packages/cli/src/pack-bin.ts to see vp pack's current options
  3. Compare and add any new tsdown options to pack-bin.ts using the existing cac .option() pattern
  4. If tsdown removed options, do NOT remove them from pack-bin.ts -- instead add a code comment like // NOTE: removed from tsdown CLI in vX.Y.Z above the option so reviewers can decide whether to follow up
  5. Preserve intentional differences:
    • -c, --config is intentionally commented out (vp pack uses vite.config.ts)
    • --env-prefix has a different default (['VITE_PACK_', 'TSDOWN_'])
  6. Verify with pnpm --filter vite-plus build-ts and vp pack -h
  7. If new parameters were added, add a corresponding PTY snapshot case under crates/vite_cli_snapshots/tests/cli_snapshots/fixtures/ to verify the new option works correctly

版本历史

  • a24eede 当前 2026-07-24 11:29

同 Skill 集合

.claude/skills/add-ecosystem-ci/SKILL.md
.claude/skills/bump-vite-task/SKILL.md
.claude/skills/release-manager/SKILL.md
.claude/skills/spawn-process/SKILL.md
.claude/skills/test-pkg-pr-new-migrate/SKILL.md
.claude/skills/verify-interactive-cli/SKILL.md

元信息

文件数
0
版本
40a6273
Hash
1fd806d6
收录时间
2026-07-24 11:29

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-07 22:56
浙ICP备14020137号-1 $访客地图$