About arch-tsdown-cli
A starter skill for creating TypeScript CLI packages with tsdown, aimed at developers who need a minimal setup for both a library and executable. It documents an ESM-only build, declaration generation, testing, linting, and release practices.
Key features
- 01Library and executable package layout
- 02ESM build with declaration generation
- 03tsx development executable
- 04pnpm, Vitest, and ESLint setup
- 05CI and release references
Use cases
- 01Starting a TypeScript CLI package
- 02Configuring development and production binaries
- 03Preparing package exports and release workflows
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ hairyf/ skills --skill arch-tsdown-cliAfter installing, type/arch-tsdown-cliin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
GENERATION.mdassets/ci.ymlrelease.ymlreferences/best-practices-cli.mdcore-bin-entry.mdcore-ci.mdcore-git-hooks.mdcore-overview.mdcore-package-exports.mdcore-scripts.mdcore-testing.mdcore-tooling.mdcore-tsdown-config.mdDetails
From the project READMEarch-tsdown-cli is a TypeScript CLI package starter (based on hairyf/starter-cli) that uses tsdown for building. It provides a minimal, opinionated setup: dual surface (library + bin), ESM-only output, automatic .d.ts generation, dev bin via tsx, pnpm, Vitest, ESLint, and optional npm Trusted Publisher for CI-based releases.
The skill is based on starter-cli (arch-tsdown-cli source), generated at 2026-01-30.
Recommended practices:
- Use dev bin (tsx) locally and prod bin (dist) in publishConfig
- Build pure ESM; enable
dtsand keepexternalfor dependencies - Use npm Trusted Publisher for releases
Core References
| Topic | Description | Reference |
|---|---|---|
| Overview | Project purpose, structure, when to use | core-overview |
| Bin Entry | dev vs prod bin, shebang, tsx | core-bin-entry |
| tsdown Config | entry, format, dts, external | core-tsdown-config |
| Scripts & Release | build, dev, start, release, npm Trusted Publisher | core-scripts |
| Package Exports | dist, bin, publishConfig, files | core-package-exports |
| Tooling | ESLint, TypeScript, Vitest config | core-tooling |
| Git Hooks | simple-git-hooks, lint-staged, pre-commit | core-git-hooks |
| CI | GitHub Actions — lint, typecheck, test matrix | core-ci |
| Testing | Vitest, vitest-package-exports | core-testing |
Best Practices
| Topic | Description | Reference |
|---|---|---|
| CLI & Package | bin, ESM, dts, external, release | best-practices-cli |