Work with AI
tsdown provides official skills for AI coding agents, enabling them to understand tsdown's configuration, features, and best practices when helping you build libraries.
Installation
Install all tsdown skills to your AI coding agent:
bash
npx skills add rolldown/tsdownOr install a specific skill only:
bash
npx skills add rolldown/tsdown --skill tsdown # tsdown skill only
npx skills add rolldown/tsdown --skill tsdown-migrate # migration skill onlyThe source code of the skills is here.
Example Prompts
Once installed, you can ask agents to help with various tsdown tasks:
Set up tsdown to build my TypeScript library with ESM and CJS formatsConfigure tsdown to generate type declarations and bundle for browsersAdd React support to my tsdown config with Fast RefreshSet up a monorepo build with tsdown workspace supportMigration Skill
For projects migrating from tsup, a dedicated migration skill is also included when you install rolldown/tsdown. You can also install it separately:
bash
npx skills add rolldown/tsdown --skill tsdown-migrateThis skill teaches AI agents how to perform tsup→tsdown migrations by providing:
- Complete option mappings between tsup and tsdown
- Default value differences and how to preserve tsup behavior
- Unsupported options and their alternatives
- Package.json migration rules (dependencies, scripts, config fields)
- New tsdown-exclusive features to suggest after migration
Example Prompts
Migrate my tsup project to tsdownConvert my tsup.config.ts to tsdown formatWhat are the differences between tsup and tsdown options?The source code of the migration skill is here.
What's Included
The tsdown skill provides knowledge about:
- Configuration file formats, options, and workspace support
- Entry points, output formats, and type declarations
- Dependency handling and auto-externalization
- Framework support (React, Vue, Solid, Svelte)
- Plugins, hooks, and programmatic API
- CLI commands and usage patterns