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.
npx skills add pledgeandgrow/pledge-skills --skill swcgit clone --depth 1 https://github.com/pledgeandgrow/pledge-skillsWrote 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.
[](https://agentmods.dev/skills/pledgeandgrow/pledge-skills/swc)<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.
<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>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00042 | $0.01231 |
| Opus 5.5 | $0.00017 | $0.00492 |
| Sonnet 5.5 | $0.00008 | $0.00246 |
| Haiku 4.5 | $0.00004 | $0.00123 |
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 1mo 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.
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
.swcrcfor 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 usageusage.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), benchmarksconfiguration.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
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.
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.
- 1mo ago First seen · 90 lines · 42 tokens per session scan A e80f53df1fa4
swc-docs is a skill published in the GitHub repository pledgeandgrow/pledge-skills (10 stars, last pushed 3mo ago), licensed MIT. It adds 42 tokens to every session and 1,231 once invoked, about $0.0002 per session on Opus 5.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.
Other skills, from other repositories
react-patterns
A guide to modern React patterns, including components, hooks, server components, actions, forms, state updates, and TypeScript.
migrate-oxfmt
Guide for migrating a project from Prettier or Biome to Oxfmt. Use when asked to migrate, convert, or switch a project's formatter from Prettier or Biome to Oxfmt.
psl-ast-layers
How to use the PSL syntax tree layers (green tree, red tree, strongly-typed AST classes) correctly. Use for any PSL-related work: PSL interpreters (contract-psl), helpers inside the psl-parser package, the language server, formatters, or anything else that consumes parse() output from @internal/psl-parser.
ast-visitor-pattern
Use the frozen-class/visitor pattern for discriminated unions that have multiple dispatch sites. Use when creating a new set of variants (commands, IR nodes, factory calls) that will be switched over in 2+ places, or when refactoring an existing union type that has grown multiple switch sites.
no-bare-casts
Writing as in TypeScript or TSX production code, modifying a file that contains a bare as cast, silencing a type error with a cast, encountering as unknown as, or reviewing a cast site.
client-setup
Create a vanilla tRPC client with createTRPCClient (), configure link chain with httpBatchLink/httpLink, dynamic headers for auth, transformer on links (not client constructor). Infer types with inferRouterInputs and inferRouterOutputs. AbortController signal support. TRPCClientError typing.