AGENT SKILL
swc
Use this skill when the user wants to transpile or minify JavaScript/TypeScript fast — a Rust-based drop-in Babel replacement with bundling and source maps.
- License 许可
- MIT
- 最近更新
- 2026-11-02
- Stars
- ★ 57
- Forks
- 5
01 前言 Front Matter
- name
- swc
- description
- Use this skill when the user wants to transpile or minify JavaScript/TypeScript fast — a Rust-based drop-in Babel replacement with bundling and source maps.
03 SKILL.md 正文
swc Plugin
SWC is a fast Rust-based compiler for JavaScript and TypeScript. Transpile modern syntax, minify bundles, and resolve modules — typically 10–20× faster than Babel.
Installation
npm install -g @swc/cli @swc/core
Basic Usage
# Transpile a file
swc src/index.js -o dist/index.js
# Transpile a directory
swc src -d dist
# Minify output
swc src/index.js -o dist/index.min.js --minify
Common Patterns
# Use a config file (.swcrc)
swc src -d dist --config-file .swcrc
# Watch mode during development
swc src -d dist --watch
# Source maps for debugging
swc src -d dist --source-maps
Usage Examples
- "Transpile TypeScript to ES2015 with swc"
- "Minify this JS bundle using swc"
- "Set up swc watch mode for src/"
SuperCLI
sc swc self version
sc swc _ _ src -d dist
sc plugins learn swc
04 同仓库更多 Skills
sc-machin-mcp
暂无简介
★ 57
supercli.quickstart
SuperCLI capability router — discover and execute CLI commands through namespace.resource.action interface
★ 57
zzdoc
Use this skill to compile scdoc manpages with a fast Zig-based compiler.
★ 57
zx
Use this skill when the user wants to a tool for writing better scripts using node.js.
★ 57
zvm
Use this skill when the user wants to manage multiple Zig compiler versions.
★ 57
quickstart
暂无简介
★ 57