Agent skill
swc
SWC Rust-based JS/TS compiler. Use for fast compilation.
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/jestspeeds 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
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?