tsdown
Skill1 starsChanged 3 months agoMITView on GitHub
Build, review, debug, configure, migrate, teach, or plan tsdown library bundling with current docs and a full usage guide. Use for tsdown, tsdown.config, defineConfig, entry, format esm/cjs, dts, deps.neverBundle/alwaysBundle, exports, unbundle, watch, minify, target, platform, copy, CSS (@tsdown/css), plugins, workspace, programmatic build(), and tsup to tsdown migration.
18 other projects use a version of this.
Adopted by
Most recently taken up by
- Contentrain/studiotheir own version, first seen Nov 8, 2026
- joker-ye/skillstheir own version, first seen Oct 13, 2026
- kirklin/skillstheir own version, first seen Oct 13, 2026
- ragna-ai/ragna-studiotheir own version, first seen Oct 11, 2026
- TheEdoRan/next-safe-actiontheir own version, first seen Oct 8, 2026
- sanity-io/next-sanitytheir own version, first seen Oct 8, 2026
Other versions18 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 18
- moeru-ai/airi★ 52ksame name
- dinerojs/dinero.js★ 6.8ksame name
- rolldown/tsdown★ 4.4ksame name
- crxjs/chrome-extension-tools★ 4.2ksame name
- TheEdoRan/next-safe-action★ 3.1ksame name
- sanity-io/next-sanity★ 955same name
- victorgarciaesgi/regle★ 517same name
- JetBrains/skills★ 386same name
- Contentrain/studio★ 4same name
- juwenzhang/lhx-kit★ 4same name
8 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository81 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agents-mdSkill
- base-uiSkill
- better-authSkill
- brainstormSkill
- bullmqSkill
- bunSkill
- clickhouseSkill
- clone-to-tempSkill
- compound-uiSkill
- copywritingSkill
- create-durable-planSkill
- d3Skill
- date-fnsSkill
- decimal-jsSkill
- deduplicateSkill
- design-engineerSkill
- designSkill
- drizzle-ormSkill
- effectSkill
- elysia-architectureSkill
- elysiaSkill
- evlogSkill
- feedsmithSkill
- grokSkill
- handoffSkill
- heyapiSkill
- impitSkill
- intlayerSkill
- jsdocSkill
- kafkaSkill
- kill-legacySkill
- legend-stateSkill
- loopSkill
- mantine-hooksSkill
- mobbinSkill
- motionSkill
- oxfmtSkill
- oxlintSkill
- permixSkill
- plain-languageSkill
- playwrightSkill
- react-boundariesSkill
- react-emailSkill
- reactSkill
- reorganizeSkill
- researchSkill
- schema-dtsSkill
- sentrySkill
- seoSkill
- setup-competitors-mdSkill
- setup-copywriting-mdSkill
- setup-icp-mdSkill
- setup-project-mdSkill
- simplify-layoutSkill
- storybookSkill
- subagentsSkill
- tailwindSkill
- tailwind-variantsSkill
- takumiSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
9 rules. 0 are common, 1 is distinctive, and 8 are very specific to this project.
0
Common
Most of the 18 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Use this skill when work touches tsdown: library builds, tsdown.config, dts/exports, dependency externalization, watch/unbundle, …
- Very specific: line 24
Prefer current APIs: entry, deps.neverBundle / alwaysBundle, unbundle, copy, cjsDefault.
- Very specific: line 25
Verify with bunx tsdown (or project build), check dist + exports/types, then consume the package from a smoke import.
- Very specific: line 31
Prefer deps.neverBundle / alwaysBundle over deprecated external / noExternal.
- Very specific: line 32
Default dep policy: package dependencies/peers are externalized.
- Very specific: line 35
No stub mode — use --watch and/or exports.devExports.
- Very specific: line 38
Prefer bun / bunx in command examples.
- Distinctive: line 42
Prefer repository-owned commands.
- Very specific: line 48
After exports: true: validate package.json with publint/attw if enabled.
“Common” is measured: kept by at least 6 in 10 of the 18 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
tsdown
Use this skill when work touches tsdown: library builds, tsdown.config, dts/exports, dependency externalization, watch/unbundle, CSS/plugins/workspace, or migrating from tsup.
Workflow
- Inspect the local tsdown surface:
- Package version (
tsdown@0.22.xpreferred; snapshot 0.22.14). Node to run the tool:^22.18.0 || >=24.11.0. - Config:
tsdown.config.ts/package.json#tsdown; peers (typescript,@tsdown/css,publint, …). package.jsontype,exports,types,engines.node(feeds target/dts auto-detect).- Whether migrating from tsup (
external,entryPoints,bundle: false, …).
- Package version (
- For day-to-day how-to, follow usage-guide.md first.
- Refresh docs when versions drift (especially 0.23 beta). Start from source-map.md.
- Route deeper detail:
- Config/CLI/defaults: config-cli.md.
- dts, package exports, deps: dts-exports-deps.md.
- Plugins, CSS, copy, workspace, programmatic: plugins-css-workspace.md.
- tsup migration: migrate-from-tsup.md.
- Prefer current APIs:
entry,deps.neverBundle/alwaysBundle,unbundle,copy,cjsDefault. Treat CJS as maintenance; prefer ESM-only for new libraries. - Verify with
bunx tsdown(or projectbuild), checkdist+exports/types, then consume the package from a smoke import.
Core Judgment
- tsdown = library bundler on Rolldown + Oxc — spiritual successor to tsup, not an app bundler.
- Defaults differ from tsup:
format: 'esm',clean: true, dts often auto frompackage.jsontypes/exports, target fromengines.node. - Prefer
deps.neverBundle/alwaysBundleover deprecatedexternal/noExternal. - Default dep policy: package dependencies/peers are externalized; used devDependencies may be bundled — override with
depswhen wrong. - Install
typescriptfor dts (unless oxc fast path viaisolatedDeclarations). @tsdown/css/@tsdown/exemust match thetsdownversion when used.- No stub mode — use
--watchand/orexports.devExports. - Code splitting is always on — no
splitting: false. - Pin skill guidance to 0.22.14 unless the project is on 0.23 beta; clear deprecations on 0.22 before jumping to 0.23.
- Prefer
bun/bunxin command examples.
Verification
Prefer repository-owned commands. For meaningful tsdown work, cover the relevant subset:
bunx tsdown --versionand confirm Node engine for the CLI.- Clean build:
bunx tsdown/bun run build; inspectdistformats and extensions (.mjs/.cjs/.js). - Types: consume
.d.ts/exports.typesfrom a dependent package ortsc. - Dual-format: require + import smoke when
formatincludes both. - After
exports: true: validatepackage.jsonwith publint/attw if enabled. - Migration: zero deprecation warnings on 0.22 before upgrading to 0.23+.
Report which checks ran, which did not, and any version assumptions that remain.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

