Agent skill

swc

SWC Rust-based JS/TS compiler. Use for fast compilation.

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/swc

SKILL.md

SWC

SWC (Speedy Web Compiler) is a Rust-based extensible platform. It is the compiler inside Next.js and Deno.

When to Use

  • Compilation: Replacing Babel.
  • Minification: Faster and often smaller than Terser.
  • Jest: @swc/jest speeds up tests by 10x.

Core Concepts

Transforms

Supports standard transforms (React JSX, TypeScript, legacy decorators).

Plugins (Wasm)

SWC plugins are written in Rust (Wasm), making them fast but harder to write than Babel plugins.

Best Practices (2025)

Do:

  • Use swc-loader: In Webpack configs.
  • Use .swcrc: JSON configuration file (similar to .babelrc).

Don't:

  • Don't stick with Babel: Unless you need a very niche Babel plugin that doesn't exist in SWC yet.

References

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results