Skip to content
Skills Library
Programming · Building & coding

arch-tsdown-cli

/arch-tsdown-cli

TypeScript CLI starter using tsdown. Use when scaffolding or maintaining an npm CLI package with tsdown, pnpm, Vitest, and npm Trusted Publisher.

Repository
skills ↗
Licence
MIT
Last repository change
14.10.2026

Assessment and security

90/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
14
Scripts
0
HTML comments
0
URLs in SKILL.md
2
Deprecation

No signals detected. Repository changed on 14.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

TypeScript CLI starter using tsdown. Use when scaffolding or maintaining an npm CLI package with tsdown, pnpm, Vitest, and npm Trusted Publisher.

Original author description

TypeScript CLI starter using tsdown. Use when scaffolding or maintaining an npm CLI package with tsdown, pnpm, Vitest, and npm Trusted Publisher.

How it works

  1. Core References
  2. Best Practices
Original SKILL.md headings · 30 lines, 228 words
SKILL.md preview
---
name: arch-tsdown-cli
description: TypeScript CLI starter using tsdown. Use when scaffolding or maintaining an npm CLI package with tsdown, pnpm, Vitest, and npm Trusted Publisher.
metadata:
  author: hairy
  version: "2026.1.30"
  source: Generated from https://github.com/hairyf/starter-cli, scripts located at https://github.com/antfu/skills
---

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

| Topic | Description | Reference |
|-------|-------------|-----------|
| Overview | Project purpose, structure, when to use | [core-overview](references/core-overview.md) |
| Bin Entry | dev vs prod bin, shebang, tsx | [core-bin-entry](references/core-bin-entry.md) |
| tsdown Config | entry, format, dts, external | [core-tsdown-config](references/core-tsdown-config.md) |
| Scripts & Release | build, dev, start, release, npm Trusted Publisher | [core-scripts](references/core-scripts.md) |
| Package Exports | dist, bin, publishConfig, files | [core-package-exports](references/core-package-exports.md) |
| Tooling | ESLint, TypeScript, Vitest config | [core-tooling](references/core-tooling.md) |
| Git Hooks | simple-git-hooks, lint-staged, pre-commit | [core-git-hooks](references/core-git-hooks.md) |
| CI | GitHub Actions — lint, typecheck, test matrix | [core-ci](references/core-ci.md) |
| Testing | Vitest, vitest-package-exports | [core-testing](references/core-testing.md) |

## Best Practices

| Topic | Description | Reference |
|-------|-------------|-----------|
| CLI & Package | bin, ESM, dts, external, release | [best-practices-cli](references/best-practices-cli.md) |
Files in this package (14)
  • GENERATION.md 1 KB
  • SKILL.md 2 KB
  • assets/ci.yml 1 KB
  • assets/release.yml 1 KB
  • references/best-practices-cli.md 2 KB
  • references/core-bin-entry.md 2 KB
  • references/core-ci.md 1 KB
  • references/core-git-hooks.md 1 KB
  • references/core-overview.md 2 KB
  • references/core-package-exports.md 2 KB
  • references/core-scripts.md 2 KB
  • references/core-testing.md 1 KB
  • references/core-tooling.md 1 KB
  • references/core-tsdown-config.md 2 KB

Versions

The database has no other skills named arch-tsdown-cli.

Database snapshot: 13.11.2026 · package version 3cd843e1a9f3 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 90arch-tsdown
    TypeScript library starter using tsdown. Use when scaffolding or maintaining a TS/ESM library with tsdown, pnpm, Vitest, and npm Trusted Publisher.
  • 90arch-tsdown-monorepo
    pnpm monorepo starter for TypeScript libraries with tsdown per package. Use when scaffolding or maintaining a multi-package TS/ESM repo with workspace deps and npm Trusted Publisher.
  • 100scaffold-cli
    Scaffolds a TypeScript CLI and npm package with the house toolchain, dual tsdown outputs, CLI contracts, changesets, and publishing templates. Use when asked to "scaffold a CLI" or "start an npm package".
  • 90build-tooling
    Frontend build and test tooling for Vue projects. Vite 8 with Rolldown, Vitest 5, tsdown for libraries, pnpm 12 workspaces and catalogs, Turborepo, and TypeScript 7 with vue-tsc. Use when editing vite.config.ts, vitest.config.ts, tsdown.config.ts, pnpm-workspace.yaml, turbo.json…
  • 90tsdown
    tsdown fast TypeScript library bundler powered by Rolldown and Oxc. Use when bundling TypeScript libraries, configuring entry points, or generating .d.ts declaration files.
  • 100sanity-tsdown-config
    Configure Sanity libraries with @sanity/tsdown-config, including its publishing defaults, React transforms, CSS extraction, TSDoc checks, and advanced tsdown composition. Use when creating or editing tsdown.config.ts for a Sanity package, or when deciding between PackageOptions…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.