From hairyf-skills-4
Scaffolds and maintains TypeScript/ESM libraries using tsdown, pnpm, Vitest, and npm Trusted Publisher.
How this skill is triggered — by the user, by Claude, or both
Slash command
/hairyf-skills-4:arch-tsdownThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
arch-tsdown is a TypeScript library starter (based on antfu/starter-ts) that uses **tsdown** for building. It provides a minimal, opinionated setup: ESM-only output, automatic `.d.ts` generation, pnpm, Vitest, ESLint, and optional npm Trusted Publisher for CI-based releases.
GENERATION.mdassets/ci.ymlassets/release.ymlreferences/best-practices-tsdown.mdreferences/core-ci.mdreferences/core-git-hooks.mdreferences/core-overview.mdreferences/core-package-exports.mdreferences/core-pnpm-workspace.mdreferences/core-release.mdreferences/core-scripts.mdreferences/core-testing.mdreferences/core-tooling.mdreferences/core-tsdown-config.mdarch-tsdown is a TypeScript library starter (based on antfu/starter-ts) that uses tsdown for building. It provides a minimal, opinionated setup: ESM-only output, automatic .d.ts generation, pnpm, Vitest, ESLint, and optional npm Trusted Publisher for CI-based releases.
The skill is based on starter-ts (arch-tsdown source), generated at 2026-01-30.
Recommended practices:
dts and exports in tsdown configpublint: true) before publishing| Topic | Description | Reference |
|---|---|---|
| Overview | Project purpose, structure, when to use | core-overview |
| tsdown Config | entry, dts, exports, publint | core-tsdown-config |
| Scripts & Release | build, dev, start, release, npm Trusted Publisher | core-scripts |
| Package Exports | dist output, types, exports, sideEffects | core-package-exports |
| pnpm Workspace | catalogs, version management, workspace | core-pnpm-workspace |
| 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 |
| Release | Tag push, sxzz/workflows, npm Trusted Publisher | core-release |
| Testing | Vitest, vitest-package-exports, export snapshots | core-testing |
| Topic | Description | Reference |
|---|---|---|
| tsdown & Package | ESM, dts, exports, tooling alignment | best-practices-tsdown |
npx claudepluginhub joshuarweaver/cascade-code-languages-misc-1 --plugin hairyf-skills-4Guides TypeScript library authoring: project setup, dual CJS/ESM package exports, tsdown/unbuild config, type-safe API design, advanced type patterns, vitest testing, and npm release workflows.
Scaffolds TypeScript CLI packages using tsdown, pnpm, Vitest, ESLint, and npm Trusted Publisher for CI releases.
Bundle TypeScript and JavaScript libraries with Rolldown. Use when building libraries, generating type declarations, bundling for multiple formats, or migrating from tsup.