From hairyf-skills-4
Scaffolds TypeScript CLI packages using tsdown, pnpm, Vitest, ESLint, and npm Trusted Publisher for CI releases.
How this skill is triggered — by the user, by Claude, or both
Slash command
/hairyf-skills-4:arch-tsdown-cliThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
arch-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.
GENERATION.mdassets/ci.ymlassets/release.ymlreferences/best-practices-cli.mdreferences/core-bin-entry.mdreferences/core-ci.mdreferences/core-git-hooks.mdreferences/core-overview.mdreferences/core-package-exports.mdreferences/core-scripts.mdreferences/core-testing.mdreferences/core-tooling.mdreferences/core-tsdown-config.mdarch-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:
dts and keep external for dependencies| 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 |
| Topic | Description | Reference |
|---|---|---|
| CLI & Package | bin, ESM, dts, external, release | best-practices-cli |
npx claudepluginhub joshuarweaver/cascade-code-languages-misc-1 --plugin hairyf-skills-4Scaffolds and maintains TypeScript/ESM libraries using tsdown, pnpm, Vitest, and npm Trusted Publisher.
Scaffolds a production-ready TypeScript CLI and npm package with tsdown, vitest, oxlint, changesets, and GitHub Actions CI. Use when bootstrapping a new CLI tool or Node package.
Develops npm packages with Node.js and TypeScript: library setup, CLI tools, dual ESM/CJS exports, tsup/tsc builds, vitest testing, and versioning/dist-tag strategies.