Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

tsdown

Skill by rolldown

Bundle TypeScript and JavaScript libraries with tsdown, a fast bundler powered by Rolldown. It is for developers who build npm libraries, generate type declarations, or migrate from tsup.

  • Score 94
  • 4.3k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install tsdown

Built from the published package, never by AI.

git clone --depth 1 https://github.com/rolldown/tsdown /tmp/tsdown && mkdir -p ~/.claude/skills && cp -r /tmp/tsdown/skills/tsdown ~/.claude/skills/tsdown

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install tsdown in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

tsdown is an agent skill that teaches an AI assistant how to use tsdown, a bundler for TypeScript and JavaScript libraries powered by Rolldown and Oxc. It covers building libraries, generating TypeScript declaration files (.d.ts), and bundling for ESM, CJS, IIFE and UMD formats. It also covers tree shaking and minification, with a quick start, a basic configuration and reference pages for each option.

The skill includes guidance on dependency handling, CSS, copying static files, unbundle mode, watch mode and framework recipes for React, Vue, Solid, Svelte and WASM. It points to a separate tsdown-migrate skill for migrating from tsup. The skill is published by rolldown and is aimed at developers who publish npm packages. tsdown itself requires Node.js 22.18.0 or higher to run, while its output can target older Node.js versions.

Written from the project's SKILL.md and checked against it.

What it can do

  • Library bundlingBundles TypeScript and JavaScript libraries using Rolldown and Oxc.
  • Type declarationsGenerates TypeScript declaration files with dts options such as sourcemap and compilerOptions.
  • Multiple output formatsBundles for ESM, CJS, IIFE and UMD output formats.
  • Dependency handlingControls which dependencies are bundled, externalized or only imported in the output.
  • Framework recipesCovers React, Vue, Solid, Svelte and WASM library setups.
  • tsup migrationRuns npx tsdown-migrate and points to a dedicated tsdown-migrate skill for option mappings.
  • Watch mode and unbundleRebuilds on file changes with --watch and preserves directory structure with unbundle mode.
  • Package validationRuns publint and attw checks on the package through config options.

What you need

  • Node.js 22.18.0 or higher to run tsdown (build-time only)
  • pnpm or npm to install tsdown
  • @tsdown/exe for cross-platform executables
  • @tsdown/css for the experimental CSS pipeline

Try asking

  • Set up tsdown to build my library as ESM and CJS with type declarations.
  • Migrate my tsup config to tsdown with minimal changes.
  • Configure tsdown to bundle a React component library and keep react external.

Good to know

  • Requires Node.js 22.18.0 or higher to run, although output can target older Node.js versions.
  • The CSS pipeline and standalone executable features are marked experimental.
  • Cross-platform executables need the separate @tsdown/exe package.
  • Full migration option mapping needs the separate tsdown-migrate skill.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/tsdown/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • README.md2 KB
  • SKILL.md13 KB
  • references/README.md5 KB
  • references/advanced-benchmark.md265 B
  • references/advanced-ci.md2 KB
Show all 41 files
  • references/advanced-hooks.md7 KB
  • references/advanced-plugins.md7 KB
  • references/advanced-programmatic.md7 KB
  • references/advanced-rolldown-options.md2 KB
  • references/guide-getting-started.md3 KB
  • references/guide-introduction.md2 KB
  • references/guide-migrate-from-tsup.md8 KB
  • references/option-cjs-default.md2 KB
  • references/option-cleaning.md5 KB
  • references/option-config-file.md5 KB
  • references/option-copy.md3 KB
  • references/option-css.md7 KB
  • references/option-dependencies.md9 KB
  • references/option-dts.md5 KB
  • references/option-entry.md4 KB
  • references/option-exe.md4 KB
  • references/option-lint.md3 KB
  • references/option-log-level.md3 KB
  • references/option-minification.md3 KB
  • references/option-output-directory.md5 KB
  • references/option-output-format.md4 KB
  • references/option-package-exports.md5 KB
  • references/option-platform.md5 KB
  • references/option-root.md2 KB
  • references/option-shims.md5 KB

And 11 more files on GitHub.

Alternatives to tsdown

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

tsdown: common questions

Which Node.js version does tsdown need?

tsdown requires Node.js 22.18.0 or higher to run, but this is build-time only. The bundled output can target lower Node.js versions through the target option.

Can tsdown migrate from tsup?

The source says to run npx tsdown-migrate and that tsdown aims for minimal changes when migrating from tsup. For complete option mappings, it recommends installing the tsdown-migrate skill.

Does tsdown generate TypeScript declaration files?

Yes. Setting dts: true generates type declarations, and dts accepts options such as sourcemap, compilerOptions and vue.

How do I install tsdown?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is tsdown free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is tsdown safe to use?

It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to tsdown?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

tsdown Install

Add to stack

Loading.