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

Trigger Scenarios

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

Install

npx skills add voidzero-dev/vite-plus --skill sync-tsdown-cli -g -y
More Options

Non-standard path

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

Use without installing

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

Version History

  • a24eede Current 2026-07-24 11:29

Same Skill Collection

.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

Metadata

Files
0
Version
40a6273
Hash
1fd806d6
Indexed
2026-07-24 11:29

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-08 22:36
浙ICP备14020137号-1 $Гость$