Token导航 LogoToken导航TokenDH.com
开发敏感数据github未标认证来源可访问许可证需确认审计通过

tsdowntsdown 命令行

Agent Skill

tsdown 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

722

周安装

31

GitHub Stars

10

下载量

253
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:tsdown(tsdown 命令行)
来源仓库:https://github.com/oakoss/agent-skills
仓库路径:skills/tsdown
安装命令:
npx skills add https://github.com/oakoss/agent-skills --skill tsdown
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/oakoss/agent-skills --skill tsdown

简介

tsdown 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中围绕 TypeScript 构建工具相关协作事项进行整理。

  • 适用于构建流程与工具链支持场景,可协助管理仓库状态、代码变更或协作事项。
  • 通过 GitHub 仓库安装,使用 npx skills add 等 --skill tsdown 命令部署。
  • 注意权限控制,避免触发非预期的构建或部署操作影响项目稳定性。
  • 建议结合原始 README 了解具体操作流程和功能边界后再使用。

SKILL.md

tsdown

Overview

tsdown is an elegant library bundler built on Rolldown (Rust-based), providing a complete out-of-the-box solution for building TypeScript and JavaScript libraries. It handles source transformation, multiple output formats (ESM, CJS, IIFE, UMD), TypeScript declaration file generation, and package.json exports field generation with sensible defaults.

When to use: Building TypeScript libraries for npm, generating declaration files, producing dual ESM/CJS packages, bundling CLI tools, library development with watch mode, migrating from tsup.

When NOT to use: Application bundling (use Vite/Rolldown directly), server-side rendering frameworks (use framework bundlers), projects that need Webpack-specific features, simple scripts that need no bundling.

Quick Reference

PatternAPIKey Points
Basic buildnpx tsdownAuto-detects src/index.ts entry
Config filetsdown.config.tsdefineConfig() for type safety
Entry pointsentry: ['src/index.ts']String, array, or object for named entries
Output formatsformat: ['esm', 'cjs']ESM, CJS, IIFE, UMD supported
Declaration filesdts: trueAuto-detects from package.json types field
Fixed extensionsfixedExtension: trueForces .mjs/.cjs and .d.mts/.d.cts
Externalsexternal: ['react']node_modules external by default
Bundle depsnoExternal: ['lodash-es']Force-bundle specific dependencies
Targettarget: 'node18'ES version or Node version
Platformplatform: 'node'node, browser, or neutral
Minificationminify: trueTree shaking enabled separately
Tree shakingtreeshake: trueDead code elimination
Source mapssourcemap: trueInline or external source maps
Watch modetsdown --watchAuto-rebuild on file changes
Clean outputclean: trueRemove output directory before build
Validation--publint --attwPackage quality checks post-build
Size report--reportBundle size with gzip/brotli stats
Multiple configsdefineConfig([...])Array of configs for different outputs
Dynamic configdefineConfig((opts) => {})Function receiving CLI options
Programmatic APIimport {build}Use in Node.js scripts
Banner/Footerbanner: {js: '...'}Prepend/append to output files
onSuccess hookonSuccess: async () => {}Run after successful build
Node protocolnodeProtocol: trueAdd/strip node: prefix on built-in imports

Common Mistakes

MistakeCorrect Pattern
Not setting fixedExtension with dual formatsUse fixedExtension: true for .mjs/.cjs when publishing both ESM and CJS
Bundling all node_modules into library outputDependencies are external by default; use noExternal only for specific deps
Using dts: true without TypeScript configuredEnsure tsconfig.json exists with proper compilerOptions
Setting target too low for modern syntaxMatch target to your minimum supported Node/browser version
Missing types field in package.jsonAdd types or exports types condition for declaration resolution
Not cleaning output before format changesUse clean: true to avoid stale files from previous builds
Inline external for Node built-insNode built-ins (node:fs, etc.) are auto-externalized on platform: 'node'
Using interactive CLI flags in CIUse config file or non-interactive CLI flags for CI builds

Delegation

  • Build configuration review: Use Task agent to analyze tsdown config for correctness
  • Package publishing: Use Explore agent to verify package.json exports and types fields
  • Migration from tsup: Use Task agent to map tsup options to tsdown equivalents

References

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.32%
按下载量换算87

Claude

31.2%
按下载量换算79

Cursor

21.33%
按下载量换算54

Gemini CLI

9.16%
按下载量换算23

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills