mcpField
A
arch-tsdown-cli

arch-tsdown-cli

github.com/hairyfDevelopment26175 installsUpdated 2w ago
Repository

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

  1. 01Library and executable package layout
  2. 02ESM build with declaration generation
  3. 03tsx development executable
  4. 04pnpm, Vitest, and ESLint setup
  5. 05CI and release references

Use cases

  1. 01Starting a TypeScript CLI package
  2. 02Configuring development and production binaries
  3. 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-cli

After installing, type/arch-tsdown-cliin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

GENERATION.md
assets/
ci.yml
release.yml
references/
best-practices-cli.md
core-bin-entry.md
core-ci.md
core-git-hooks.md
core-overview.md
core-package-exports.md
core-scripts.md
core-testing.md
core-tooling.md
core-tsdown-config.md

Details

From the project README

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.

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 dts and keep external for dependencies
  • Use npm Trusted Publisher for releases

Core References

TopicDescriptionReference
OverviewProject purpose, structure, when to usecore-overview
Bin Entrydev vs prod bin, shebang, tsxcore-bin-entry
tsdown Configentry, format, dts, externalcore-tsdown-config
Scripts & Releasebuild, dev, start, release, npm Trusted Publishercore-scripts
Package Exportsdist, bin, publishConfig, filescore-package-exports
ToolingESLint, TypeScript, Vitest configcore-tooling
Git Hookssimple-git-hooks, lint-staged, pre-commitcore-git-hooks
CIGitHub Actions — lint, typecheck, test matrixcore-ci
TestingVitest, vitest-package-exportscore-testing

Best Practices

TopicDescriptionReference
CLI & Packagebin, ESM, dts, external, releasebest-practices-cli

Comments

Markdown supported