swc-docs

swc-docs is a skill for Claude Code, Codex from pledgeandgrow/pledge-skills. It costs 42 tokens per session (1,231 once invoked), scanned A, original, MIT.

Reference material for SWC, a compiler written in Rust that transforms and minifies JavaScript, TypeScript, and JSX. JSX is a syntax commonly used to write React interface code.

In plain words
What is it for?
Use it to compile TypeScript or JavaScript, process JSX, minify output, target browsers, or replace parts of a Babel-based setup.
Why use it?
It helps developers configure fast code transformation without having to rely on a slower or more complex build setup.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to compile TypeScript or JavaScript, process JSX, minify output, target browsers, or replace parts of a Babel-based setup.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pledgeandgrow/pledge-skills/swc
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add pledgeandgrow/pledge-skills --skill swc
Clone the repo
git clone --depth 1 https://github.com/pledgeandgrow/pledge-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for swc-docs

README.md
[![agentmods](https://agentmods.dev/badge/skills/pledgeandgrow/pledge-skills/swc/github.svg)](https://agentmods.dev/skills/pledgeandgrow/pledge-skills/swc)
Your own site
<a href="https://agentmods.dev/skills/pledgeandgrow/pledge-skills/swc"><img src="https://agentmods.dev/badge/skills/pledgeandgrow/pledge-skills/swc/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for swc-docs

Your own site · 80×15
<a href="https://agentmods.dev/skills/pledgeandgrow/pledge-skills/swc"><img src="https://agentmods.dev/badge/skills/pledgeandgrow/pledge-skills/swc.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,231 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00042 $0.01231
Opus 5 $0.00021 $0.00616
Sonnet 5 $0.00008 $0.00246
Haiku 4.5 $0.00004 $0.00123

Measured 7d ago against content hash e80f53df1fa4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

swc-docs scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/swc/SKILL.md · 90 lines

How it starts

The opening of the file, as written. The whole thing — 90 lines — stays where its author put it; the contents beside it link to each section on GitHub.

SWC (Speedy Web Compiler)

SWC (Speedy Web Compiler) is an extensible Rust-based platform for the next generation of fast developer tools. It's used by tools like Next.js, Parcel, and Deno, as well as companies like Vercel, ByteDance, Tencent, Shopify, Trip.com, and more.

When to Use This Skill

  • Transpiling TypeScript/JavaScript/JSX with SWC
  • Configuring .swcrc for compilation, modules, minification
  • Using SWC with Jest, webpack, or as a standalone CLI
  • Migrating from Babel or tsc to SWC
  • Writing SWC plugins in Rust (Wasm)
  • Using SWC for HTML minification
  • Configuring target browsers and polyfills with SWC's env/preset-env equivalent

Skill Files

  • getting-started.md — Installation (npm, yarn, pnpm, bun, deno), supported binaries (platforms), basic usage
  • usage.md — @swc/cli (flags, options, watch mode), @swc/core (transform, transformSync, transformFile, bundle, minify APIs), Flow support, @swc/wasm (browser WASM), @swc/jest (Jest integration), swc-loader (webpack), @swc/html (HTML minification), bundling (spack/swcpack), @swc/wasm-typescript (browser TS transform), benchmarks
  • configuration.md — .swcrc file structure, compilation defaults, env/preset-env (targets, mode, coreJs, skip, include, exclude), modules (CommonJS, ES6, AMD, UMD, shared options), minification (compress, mangle, format, assumptions), supported browsers (browserslist integration), bundling config (spack.config.js, mode, entry, output, options)
  • plugins.md — Selecting swc_core version (compatibility table), plugin getting started (Rust, wasm32-wasip1, swc_cli), API changes (chain! to tuples, Fold to Pass), plugin cheatsheet (JsWord, Ident, Box matching, AST injection, limitations), compatibility (rkyv serialization, v1.15.0+ compat), publishing (wasm build, npm package, binary size optimization), registering plugins (plugins.swc.rs, YAML config), contributing (string management, variable management, profiling, debugging Next.js, debugging size)
  • migration.md — Migrating from Babel (drop-in replacement), migrating from tsc (isolatedModules, importsNotUsedAsValues, esModuleInterop, verbatimModuleSyntax, useDefineForClassFields, known issues), @swc-node vs @swc

Read the full file on GitHub · 90 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 90 lines · 42 tokens per session scan A e80f53df1fa4

Subscribe to this mod's changes

swc-docs is a skill published in the GitHub repository pledgeandgrow/pledge-skills (10 stars, last pushed 1mo ago), licensed MIT. It adds 42 tokens to every session and 1,231 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

react-patterns

A guide to modern React patterns, including components, hooks, server components, actions, forms, state updates, and TypeScript.

jh941213/my-cc-harness · 99 tokens

migrate-oxfmt

Guide for migrating a project from Prettier or Biome to Oxfmt. Use when asked to migrate, convert, or switch a JavaScript/TypeScript project's formatter from Prettier or Biome to Oxfmt.

oxc-project/oxc · 53 tokens

migrate-oxlint

Guide for migrating a project from ESLint to Oxlint. Use when asked to migrate, convert, or switch a JavaScript/TypeScript project's linter from ESLint to Oxlint.

oxc-project/oxc · 44 tokens

fast-typescript-check

Keep www-sacred's TypeScript fast to type-check and fast to run. Use when touching the ASCII/canvas animation components (the only real per-frame code here), tightening type-check wall-clock, or auditing a change for runtime or compiler regressions. Scoped to this repo — a React 19 / Next.js 16 component library plus…

internet-development/www-sacred · 84 tokens

onejs-setup-and-overview

Use this skill whenever the user wants to build or set up user interface in a Unity project using OneJS, React, TypeScript, or JSX, e.g. 'add a main menu to my game', 'build a settings screen', 'make a HUD', 'set up OneJS', 'my OneJS panel is blank', 'the UI is not hot reloading'. Covers confirming OneJS is installed…

Singtaa/OneJS · 199 tokens

photo-sphere-viewer

Use when displaying 360-degree panoramic images (equirectangular/cubemap/dual-fisheye) in web applications, building virtual tours with markers and transitions, embedding interactive panoramas in Vue/React/vanilla JS, or creating 360-degree video players with gyroscope VR support. Photo-Sphere-Viewer v5: JavaScript…

znlgis/opengis-skills · 99 tokens