tsdown — community tsdown, next-sanity, community, ide skills, Claude Code, Cursor, Windsurf

v2026.1.28
GitHub

About this Skill

Perfect for Next.js Agents needing advanced TypeScript library bundling and automatic type declaration generation. Sanity toolkit for Next.js

sanity-io sanity-io
[0]
[0]
Updated: 3/5/2026

Agent Capability Analysis

The tsdown skill by sanity-io is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance.

Ideal Agent Persona

Perfect for Next.js Agents needing advanced TypeScript library bundling and automatic type declaration generation.

Core Value

Empowers agents to build pure-ESM packages with blazing-fast builds, automatic `.d.ts` generation, and seamless migration from tsup, utilizing Rolldown/Rollup/Unplugin plugins and smart dependency handling.

Capabilities Granted for tsdown

Building high-performance Next.js applications with tsdown
Migrating existing projects from tsup to tsdown for improved build times
Generating automatic type declarations with the `dts` option

! Prerequisites & Limits

  • Requires tsdown v0.20.1 or later
  • Limited to TypeScript-based projects
  • Dependent on Rolldown and Oxc libraries
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

tsdown

Install tsdown, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

SKILL.md
Readonly

tsdown is a next-generation TypeScript library bundler built on Rolldown and Oxc. It provides blazing-fast builds, automatic .d.ts generation, and seamless migration from tsup. Supports Rolldown/Rollup/Unplugin plugins and features smart dependency handling.

The skill is based on tsdown v0.20.1, generated at 2026-01-28.

Anthony's Preferences:

  • Build pure-ESM packages, avoid CJS
  • Always enable dts option for type declarations
  • Enable exports option for auto-generated package exports

Core

TopicDescriptionReference
ConfigurationConfig file setup, defineConfig, multiple configscore-config
CLICommand-line interface and optionscore-cli
Entry PointsEntry files, aliases, glob patternscore-entry

Build Options

TopicDescriptionReference
OutputFormat (ESM/CJS/IIFE/UMD), directory, target, platformoptions-output
Declaration Files.d.ts generation, isolatedDeclarations, sourcemapsoptions-dts
DependenciesExternal, noExternal, dependency bundlingoptions-dependencies
Package ExportsAuto-generating exports, main, module fieldsoptions-package-exports

Features

TopicDescriptionReference
OptimizationTree shaking, minification, sourcemapsfeatures-optimization
ShimsCJS/ESM compatibility shimsfeatures-shims
Unbundle ModeBundleless transpile-only buildsfeatures-unbundle
Watch ModeAuto-rebuild on file changesfeatures-watch

Advanced

TopicDescriptionReference
PluginsRolldown, Unplugin, Rollup, Vite pluginsadvanced-plugins
HooksBuild lifecycle hooksadvanced-hooks
Programmatic APIUsing tsdown from codeadvanced-programmatic
Rolldown OptionsCustomizing inputOptions and outputOptionsadvanced-rolldown-options

Recipes

TopicDescriptionReference
Framework SupportVue and React library bundlingrecipes-frameworks
MigrationMigrating from tsuprecipes-migration

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is tsdown?

Perfect for Next.js Agents needing advanced TypeScript library bundling and automatic type declaration generation. Sanity toolkit for Next.js

How do I install tsdown?

Run the command: npx killer-skills add sanity-io/next-sanity/tsdown. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for tsdown?

Key use cases include: Building high-performance Next.js applications with tsdown, Migrating existing projects from tsup to tsdown for improved build times, Generating automatic type declarations with the `dts` option.

Which IDEs are compatible with tsdown?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for tsdown?

Requires tsdown v0.20.1 or later. Limited to TypeScript-based projects. Dependent on Rolldown and Oxc libraries.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add sanity-io/next-sanity/tsdown. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use tsdown immediately in the current project.

Related Skills

Looking for an alternative to tsdown or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI