Skip to content
Agents tracked: 504 Releases (7d): 733 Agent status: 2 with issuesSince last limit reset: Claude 12d · Codex 10d For AI agents: Markdown Updated Nov 23, 2026

tsdown skills: build and migrate TypeScript libraries

rolldown/tsdown

Two official guides that teach your AI coding assistant tsdown, a tool that turns TypeScript or JavaScript source into a library others can install. One covers setup and every option. The other moves an existing project from the older tool tsup to tsdown, step by step.

Pack description by its author: “Two official guides that teach your AI coding assistant tsdown, a tool that turns TypeScript or JavaScript source into a library others can install. One covers setup and every option. The other moves an existing project from the older tool tsup to tsdown, step by step.”

Software engineeringKnowledge and rules for your assistant

GitHub

Checked against the pack's files at commit e2e174d, on Nov 18, 2026. Tap a verdict to see its source.How we checkedReport an error

The pack has changed since AgentGid checked it on Nov 18, 2026. Some details may be out of date.

Knowledge and rules for your assistantNothing to run: text files only

Good for you if

  • You publish a TypeScript or JavaScript library and want your assistant to set up its build with tsdown
  • Your library is built with tsup and you want your assistant to move it to tsdown safely
  • You need type files, several output formats, a React, Vue, Solid or Svelte component library, or a monorepo build

Probably not for you if

  • You build a website or app, not a library others install: the skills are about library builds
  • Your project does not use tsdown or tsup

What you'll notice

  • Your assistant writes a tsdown.config.ts with entry, format, type files and clean settings
  • For a tsup project it renames the config, maps old options to new names and keeps tsup's old defaults unless you choose otherwise
  • It migrates in two stages: first on tsdown 0.22.14 until the build shows zero warnings, then to the latest version
  • It reminds you that building needs Node.js 22.18 or newer, while the built library can still target older Node.js

What you need

  • Claude Code, any agent that supports skills
  • Free, MIT license
  • One command: npx skills add rolldown/tsdown
  • The skills are text only. The tsdown tool itself must be installed in your project to build anything.
Words on this page
Skill
A set of written instructions your AI assistant follows. Installing one is like giving it a playbook.
CLI
A program you run by typing commands in a terminal.
Repository
A project folder on GitHub with its files and history.
Repositoryrolldown/tsdown · website
GitHub stars4,349 (the tsdown repository: these skills ship inside the product, so the stars are the product's)
Skills2 (2 SKILL.md in the repo, 1 in skills/)
CategorySoftware engineering
LicenseMIT
Last updatedNov 19, 2026 · card checked Nov 18, 2026 at commit e2e174d
Install countsrolldown/tsdown on skills.sh, Vercel's skills directory, which shows installs and security audits per skill

rolldown/tsdown popularity over time

Most starred skill packs

rolldown/tsdown: GitHub starstotal over time 4,349
rolldown/tsdown: new stars per weekGitHub 10

What tsdown skills does

  • tsdown: a quick reference (install, basic config, CLI) plus tables that point to 38 topic files: entry points, output formats, type files, target, platform, tree shaking, minify, source maps, watch, clean, dependency rules, CSS, copy, unbundle, executables, package checks, plugins, hooks, framework recipes
  • tsdown: ready config patterns for a basic library, several entry points, a browser bundle, a React library, a CI-aware setup, WASM, CSS with Sass, a standalone executable and a monorepo
  • tsdown-migrate: an 8-step plan from renaming tsup.config.* to the final upgrade, with tables of renamed options, changed defaults, unsupported options and package.json changes
  • tsdown-migrate: a two-stage target, first tsdown 0.22.14 (old options still warn), then the latest version (old options are silently ignored)
  • tsdown-migrate: a checklist to tick off and a list of tsdown-only features to suggest after the move

From the pack's SKILL.md files, summarised by AgentGid.

The 2 skills, explained

tsdown

Sets up and tunes the build of your TypeScript or JavaScript library with tsdown

You give

  • Your library's entry files (for example src/index.ts)
  • Which formats you need: ESM, CJS, IIFE or UMD
  • Where it runs: Node.js or the browser, and the oldest Node.js version you support
  • Your framework if it is a component library: React, Vue, Solid or Svelte

You get

  • A tsdown.config.ts
  • Type declaration files (.d.ts) when asked
  • Rules for which packages stay outside the bundle
  • Optional exports field, package checks (publint, attw) and watch mode
Say: “Set up tsdown to build my TypeScript library with ESM and CJS formats”

tsdown-migrate

Moves a library built with tsup to tsdown and keeps its output the same

You give

  • A project with tsup.config.* or a tsup field in package.json
  • Your choice on new defaults (ESM, clean, auto type files, auto target) after the move

You get

  • tsdown.config.* with renamed and mapped options
  • Updated package.json scripts, dependencies and config field
  • A list of removed tsup options and their alternatives
  • A build on 0.22.14 with zero warnings, then an upgrade to the latest tsdown
  • Suggestions of tsdown-only features
Say: “Migrate my tsup project to tsdown”

See it in action

The skill defines what its answer looks like. Its own example:

// Before (tsup)
export default defineConfig({
  external: ['react'],
  noExternal: ['lodash-es'],
})

// After (tsdown)
export default defineConfig({
  deps: {
    neverBundle: ['react'],
    alwaysBundle: ['lodash-es'],
  },
})

From skills/tsdown-migrate/SKILL.md.

When to reach for it

You wantUse
A new TypeScript library build with ESMtsdown: "Set up tsdown to build my TypeScript library with ESM and CJS formats"
A Reacttsdown (framework recipes)
Several packages built in one projecttsdown: "Set up a monorepo build with tsdown workspace support"
To move a tsup project to tsdowntsdown-migrate: "Migrate my tsup project to tsdown"
To fix a build that broke after leaving tsuptsdown-migrate: "My build broke after migrating from tsup — help me fix it"
Try it. Install the skills, open a small TypeScript library and say "Set up tsdown to build my TypeScript library with ESM and CJS formats". Your assistant writes a tsdown.config.ts with entry, format and dts settings. For a tsup project, say "Migrate my tsup project to tsdown"; the plan should start on tsdown 0.22.14 and end with zero warnings.

Skills in rolldown/tsdown

SkillIn plain wordsChanges files?What it does (author)
tsdown-migrate Moves a library built with tsup to tsdown and keeps its output the sameYes Migrate TypeScript library projects from tsup to tsdown. Provides complete option mappings, config transformation rules, default value differences, and unsupported option alternatives so AI agents can intelligently perform migrations.
npx skills add rolldown/tsdown --skill tsdown-migrate
tsdown Sets up and tunes the build of your TypeScript or JavaScript library with tsdownYes Bundle TypeScript and JavaScript libraries with blazing-fast speed powered by Rolldown. Use when building libraries, generating type declarations, bundling for multiple formats, or migrating from tsup.
npx skills add rolldown/tsdown --skill tsdown

The author's descriptions come from each skill's SKILL.md; the plain-words column is AgentGid's.

Good to know before you install

  • Official: the skills come from the tsdown team and were generated from tsdown's own docs at a recorded commit (last refresh 2026-07-27, for v0.23).
  • One command installs both skills; you can also install one with --skill.
  • The copy that ships inside the tsdown npm package is only a pointer: it tells your assistant to download the full skill from GitHub for the installed version.
  • Building with tsdown needs Node.js 22.18+, 24.11+ or 26+; odd-numbered lines such as 23 and 25 are not supported.
  • Skipping the 0.22.14 stage is risky: on v0.23+ leftover tsup options are ignored without any error.
  • Some options the skill describes download things when you build: cross-platform executables fetch Node.js binaries and cache them in your user cache folder.

Before you start

Works in

  • Any agent with a skills folder: skills CLI
  • Claude Code: skills folder
  • Agents reading package skills via pnpm: pointer skill inside the npm package

You will need

  • Node.js 22.18+, 24.11+ or 26+: tsdown needs it to run the build
  • tsdown package in the project: The skills only describe it; builds need the tool installed

Steps only you can do

  1. Choose which new tsdown defaults to adopt after the migration (ESM, clean, auto type files, auto target) (skills/tsdown-migrate/SKILL.md (Default Value Differences))
    Then: The agent changes the explicit tsup-style settings to the ones you picked

Mistakes to avoid

  • Migrate from tsup straight to the latest tsdown (v0.23+)
    Install tsdown@0.22.14 first, clear every deprecation warning, then upgrade
    On v0.23+ leftover tsup options are silently ignored, so the output is wrong without any error
  • Rename tsup.config to tsdown.config and keep everything else
    Set format, clean, dts and target explicitly to keep tsup's behaviour, then decide on tsdown's new defaults
    tsdown defaults to ESM, cleans the output folder and may turn on type files and a target from package.json
  • Build with Node.js 20 or 23 because the library supports older versions
    Build with Node.js 22.18+, 24.11+ or 26+ and set target for older runtimes
    tsdown itself needs a supported Node.js line to run
  • Mix external with deps.neverBundle, or noExternal with deps.alwaysBundle
    Use only the deps block
    Combining an old name with its replacement throws an error
  • Run npx tsdown-migrate on uncommitted work
    Commit first, or use --dry-run to preview
    The tool rewrites files and can install packages

Which one to pick

If you needPick
You build or migrate a TypeScript library with tsdown (or are leaving tsup)This pack
You want broader project setup and Vite, Vitest and pnpm guides in the Vue and Vite familyantfu/skills
You need general modern Node.js development guidance rather than a bundlermcollina/skills
Your problem is a Turborepo monorepo's tasks and caching, not the library bundlevercel/turborepo

Works well with

  • tsdown: The skills teach this bundler; it must be installed in the project to build
  • tsup: tsdown-migrate moves projects from tsup
  • publint: The skill's package checks (publint: true) use publint
  • rolldown: tsdown is powered by Rolldown; rolldown plugins and options plug straight in

May I use it like this?

UseAnswerCondition
In a commercial app YesMIT: keep the license notice
Passing the files on YesMIT: keep the copyright and permission notice in copies
Work for clients YesMIT allows use in work for others

What leaves your machine

  • A request for the skill text, with the installed tsdown version in the address → raw.githubusercontent.com (rolldown/tsdown), Only when the assistant follows the pointer skill shipped inside the npm package. Opt out: Install the full skills with npx skills add rolldown/tsdown instead

Install tsdown skills

Official commands from the repository

npx skills add rolldown/tsdown

Installs both skills. One only: npx skills add rolldown/tsdown --skill tsdown, or --skill tsdown-migrate.

Or with the open-source skills CLI: npx skills add rolldown/tsdown. Skills are instructions your agent follows: read them before installing.

What it installs and runs on your machine

Read in the code at commit e2e174d, Nov 18, 2026

WhenWhat happens
InstallMarkdown files only: two SKILL.md files, two READMEs and 41 reference files. No hooks, no scripts.
tsdown-migrate at workTells your assistant to install tsdown 0.22.14, run builds and later upgrade tsdown; the reference also offers npx tsdown-migrate, which can install packages unless --no-install is set.
Pointer skill from the npm packageTells your assistant to read the tsdown version in node_modules and fetch the matching SKILL.md and reference files from raw.githubusercontent.com.

The author's numbers, as reported

AgentGid did not run these tests

  • About 2x faster than tsup for standard builds (Points to an outside benchmark page). Source
  • Up to 8x faster for TypeScript declaration generation. Source

Quick answers

Is it free?
Yes. MIT license.
Does it run anything on my machine when installed?
No. The skills are markdown files. Your assistant may run tsdown or install packages while it follows them, as with any build work.
Can I go straight to the newest tsdown from tsup?
The skill says no: build on 0.22.14 first, clear every warning, then upgrade.
Will my library still work on Node.js 18 or 20?
Yes, if you set a target such as node18 and test the built output on those versions. Only the build needs Node.js 22.18+.
Why does the skill in node_modules look so short?
The npm package ships a pointer that sends your assistant to the full skill on GitHub, to keep the package small.

Checked by AgentGid on Nov 18, 2026 against commit e2e174d of the pack's own files. Related: rolldown/rolldown. agent.md for AI agents · Report a mistake

More software engineering skill packs

All software engineering skills

# Install
1
mattpocock/skills CheckedRuns scripts

Gets a set of working habits for building software. It interviews you about a plan before it builds, turns the talk into a spec and small tickets, builds them test-first and reviews the result.

330K +32.5K 39
2
obra/superpowers CheckedRuns scripts

Follows one fixed way of working. Before it builds anything, it asks what you really want and writes a short design for you to approve. Then it writes a step-by-step plan, builds it with tests first, has the work checked and asks how you want to finish.

324K +18.8K 15
3

Gets four rules: think before coding, keep it simple, change only what you asked for, and set a clear goal it can check. It asks before guessing and writes less extra code. The rules come from the README's reading of a public post by Andrej Karpathy; the files do not say he made or reviewed them.

235K +14K 1
4

Stops overbuilding. It does what you asked in the simplest way that works, reuses what your project already has, and ends every answer by telling you what it left out.

197K +27.3K 6
5
Shubhamsaboo/awesome-llm-apps CheckedRuns scripts

This repo is mostly a big collection of AI apps and tutorials. Its agent_skills folder holds seven separate skills you install one at a time. They help your assistant explain why old code exists, check a change or a package list, or find your abandoned side projects. Others test a draft on simulated readers, untangle a voice ramble, or split a big job across several AI models.

145K +3,089 10
6
addyosmani/agent-skills CheckedRuns scripts

Works like a careful senior engineer. It writes down what to build before coding, splits the work into small steps, proves each step with a test and reviews the result before launch. Nine slash commands cover the stages, and 25 skills switch on when a task matches.

120K +11K 26