Agent skill

Swc Plugin Compatibility

by platformplatform in platformplatform/PlatformPlatform

Diagnose and fix Lingui SWC plugin compatibility errors with Next.js, Rspack, or other SWC runtimes.

MITAuto-check passed

Install Swc Plugin Compatibility

skills CLI
$ npx skills add platformplatform/PlatformPlatform --skill swc-plugin-compatibility -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install platformplatform/PlatformPlatform swc-plugin-compatibility --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/platformplatform/PlatformPlatform.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/swc-plugin-compatibility .claude/skills/swc-plugin-compatibility && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
swc-plugin-compatibility
GitHub stars
440
Token cost
~873 tokens
SKILL.md length
330 words
Files
1
Skills in repo
18
Repo updated
First seen
Licence
MIT

At a glance

Diagnose and fix Lingui SWC plugin compatibility errors with Next.js, Rspack, or other SWC runtimes.

  • Works in 3 steps: Check the Compatibility Table → Use the Plugin Compatibility Site → Pin Your Versions
  • Seeing errors like failed to invoke plugin
  • SKILL.md covers Why This Happens, How to Fix, Version Compatibility Quick… and Rules to Avoid Build Breakage, plus 4 more sections
  • Reaches json.schemastore.org

What it does

Swc Plugin Compatibility is an agent skill from platformplatform/PlatformPlatform. Diagnose and fix Lingui SWC plugin compatibility errors with Next.js, Rspack, or other SWC runtimes. Use when seeing errors like "failed to invoke plugin", "failed to run Wasm plugin transform", "out of bounds memory access", or "LayoutError" during builds with @lingui/swc-plugin.

Its SKILL.md is about 870 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It works with Next.js and WebAssembly. The repository describes itself as: A platform designed for building enterprise-grade, multi-tenant products using Azure, .NET, React, TypeScript, Infrastructure as Code, etc. The licence is MIT.

When your agent uses it

  • Seeing errors like failed to invoke plugin
  • Failed to run Wasm plugin transform
  • Out of bounds memory access
  • LayoutError during builds with @lingui/swc-plugin

Example prompts

  • “failed to invoke plugin”
  • “failed to run Wasm plugin transform”
  • “out of bounds memory access”
  • “/swc-plugin-compatibility”

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. Check the Compatibility Table
  2. Use the Plugin Compatibility Site
  3. Pin Your Versions

What it can do on your machine

Read from SKILL.md and the folder at commit 269de1c. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are json and javascript).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • json.schemastore.org

    Also links to:

    • github.com
    • plugins.swc.rs

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Swc Plugin Compatibility loads about 873 tokens when it runs. Until then it costs about 77 tokens; SKILL.md has 330 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~77
When it runs · the whole SKILL.md, loaded when a task matches
~873

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from platformplatform/PlatformPlatform at commit 269de1c, republished under its MIT licence (© platformplatform). 330 words, ~873 tokens.

Download SKILL.mdSave it as .claude/skills/swc-plugin-compatibility/SKILL.md (or your agent's skills folder).
name
swc-plugin-compatibility
description
Diagnose and fix Lingui SWC plugin compatibility errors with Next.js, Rspack, or other SWC runtimes. Use when seeing errors like "failed to invoke plugin", "failed to run Wasm plugin transform", "out of bounds memory access", or "LayoutError" during builds with @lingui/swc-plugin.

SWC Plugin Compatibility

If you see errors like these during your build:

failed to invoke plugin on 'Some("/app/src/file.ts")'
failed to run Wasm plugin transform
RuntimeError: out of bounds memory access
LayoutError called Result::unwrap()

This is NOT a bug. You're using an incompatible version of @lingui/swc-plugin with your SWC runtime.

Why This Happens

SWC plugin support is experimental. The plugin API does not follow semantic versioning.

SWC uses Rkyv to transfer the AST between the core and plugins. Both must agree on the exact memory layout of the AST. If the layout changes (e.g., new ECMAScript features), older plugins cannot read the data correctly.

This layout cannot be negotiated at runtime - it must match at compile time.

How to Fix

Step 1: Check the Compatibility Table

Go to the compatibility table and find the plugin version that matches your runtime.

Step 2: Use the Plugin Compatibility Site

For precise matching, use https://plugins.swc.rs/:

  1. Select your runtime (e.g., next)
  2. Select your runtime version (e.g., next@15.0.1)
  3. Find a compatible @lingui/swc-plugin version
Step 3: Pin Your Versions
json
{
  "devDependencies": {
    "@lingui/swc-plugin": "5.10.0"
  }
}

Use an exact version (no ^ or ~) to prevent accidental upgrades.

Version Compatibility Quick Reference

Plugin Version@lingui/coreNotes
5.*@lingui/core@5.*Current
4.*@lingui/core@4.*Legacy

Important: @lingui/swc-plugin does not need to match other @lingui/* package versions exactly. It follows its own versioning scheme.

Rules to Avoid Build Breakage

  1. Pin an exact plugin version compatible with your runtime
  2. Don't auto-bump @lingui/swc-plugin - check release notes first
  3. Don't auto-bump your runtime (Next.js, Rspack, etc.) - runtimes may bump swc-core in minor/patch releases
  4. Check compatibility after any upgrade that touches SWC or the plugin

Understanding Runtimes

By "runtime" we mean the tool executing SWC: Next.js, Rspack, or @swc/core.

Some runtimes (like Next.js) embed SWC directly and don't use @swc/core from npm. This means:

  • You cannot control swc-core version via package.json
  • Plugin compatibility depends on the runtime's embedded SWC version

Example: Next.js Configuration

js
// next.config.js
/** @type {import('next').NextConfig} */
const nextConfig = {
  experimental: {
    swcPlugins: [
      ['@lingui/swc-plugin', {
        // Plugin options
      }],
    ],
  },
};

module.exports = nextConfig;

Example: .swcrc Configuration

json
{
  "$schema": "https://json.schemastore.org/swcrc",
  "jsc": {
    "experimental": {
      "plugins": [
        ["@lingui/swc-plugin", {}]
      ]
    }
  }
}

What If No Compatible Version Exists?

If your runtime uses a newer swc-core that no plugin version supports yet:

  1. Check for recent plugin releases
  2. Open an issue or PR at https://github.com/lingui/swc-plugin

© platformplatform, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/swc-plugin-compatibility of platformplatform/PlatformPlatform.

Open the folder on GitHubat commit 269de1c

Compare with similar skills

Swc Plugin Compatibility next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Swc Plugin Compatibility compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Swc Plugin Compatibility this skillplatformplatform/PlatformPlatform440—~873Automated safety check: PassMIT
Dotlottie WebLottieFiles/dotlottie-web892—~3.5kAutomated safety check: PassMIT
Swc Plugin CompatibilityB0und/WikiSpeedrun133—~2.3kAutomated safety check: PassMIT
Vercel Optimize Auditvercel-labs/agent-skills32k8 repos~4.3kAutomated safety check: PassNone
AI SDKvercel-labs/ai-facts16821 repos~1.2kAutomated safety check: PassNone
Supabase Development and Debuggingsupabase/agent-skills2.7k3 repos~3.6kAutomated safety check: PassMIT

Similar skills

  • Dotlottie Web

    LottieFiles/dotlottie-web

    Implement Lottie animations using dotLottie runtimes (@lottiefiles/dotlottie-web and @lottiefiles/dotlottie-react).

    892 GitHub stars~3.5k tokensUpdated yesterday
    Media & CreativeAuto-check passed
  • Swc Plugin Compatibility

    B0und/WikiSpeedrun

    Diagnose and fix Lingui SWC plugin compatibility errors with Next.js, Vite, Rspack, or other SWC runtimes.

    133 GitHub stars~2.3k tokensUpdated 17 days ago
    Frontend & DesignAuto-check passed
  • Vercel Optimize Audit

    vercel-labs/agent-skills

    Official

    Runs a metrics-first audit of a deployed Vercel project, gating investigations on real signals to produce ranked, citation-backed cost and performance recommendations.

    32k GitHub starsUsed in 8 repos~4.3k tokens
    DevOps & CloudAuto-check passed
  • AI SDK

    vercel-labs/ai-facts

    Official

    Answer questions about the AI SDK and help build AI-powered features.

    168 GitHub starsUsed in 21 repos~1.2k tokens
    AI & LLM EngineeringAuto-check passed
  • Official

    General Supabase skill for database, auth, Edge Functions, Realtime and storage work, plus client libraries, migrations, security audits, debugging and reading logs.

    2.7k GitHub starsUsed in 3 repos~3.6k tokens
    Backend & APIsAuto-check passed
  • Chakra UI v3 Builder

    chakra-ui/chakra-ui

    Builds responsive, accessible Chakra UI v3 components and layouts, sets up Chakra in new or existing projects, and designs themes with tokens, semantic tokens and recipes.

    41k GitHub stars~3.1k tokensUpdated yesterday
    Frontend & DesignAuto-check passed

More from platformplatform/PlatformPlatform

All 18 skills in this repo
  • Create Prd

    platformplatform/PlatformPlatform

    Create a product requirement document (PRD) for a new feature.

    440 GitHub stars~3k tokensUpdated 13 days ago
    Auto-check passed
  • Rebuild Branch

    platformplatform/PlatformPlatform

    Rebuild a stale branch by cherry-picking each commit onto a fresh branch off main, using a ralph-loop to validate each commit (build, test, format, lint, optional e2e) before moving on.

    440 GitHub stars~2.1k tokensUpdated 13 days ago
    Auto-check: notes
  • Aspire Restart

    platformplatform/PlatformPlatform

    Start or restart the .NET Aspire AppHost via the developer CLI.

    440 GitHub stars~415 tokensUpdated 13 days ago
    Auto-check passed
  • Commit

    platformplatform/PlatformPlatform

    Commit session changes to git. An agent skill from platformplatform/PlatformPlatform.

    440 GitHub stars~567 tokensUpdated 13 days ago
    Auto-check passed
  • E2E

    platformplatform/PlatformPlatform

    Run end-to-end Playwright tests via the developer CLI. An agent skill from platformplatform/PlatformPlatform.

    440 GitHub stars~542 tokensUpdated 13 days ago
    Auto-check passed
  • Enhanced Message Context

    platformplatform/PlatformPlatform

    Provide additional context for messages based on the codebase and the context of the message to improve the quality of the translations.

    440 GitHub stars~1.6k tokensUpdated 13 days ago
    Auto-check passed

Questions about Swc Plugin Compatibility

What does Swc Plugin Compatibility do?

Diagnose and fix Lingui SWC plugin compatibility errors with Next.js, Rspack, or other SWC runtimes. Swc Plugin Compatibility is an agent skill from platformplatform/PlatformPlatform.js, Rspack, or other SWC runtimes.

When should I use Swc Plugin Compatibility?

Swc Plugin Compatibility fits situations like: seeing errors like failed to invoke plugin; failed to run Wasm plugin transform; out of bounds memory access; layoutError during builds with @lingui/swc-plugin.

How do I install Swc Plugin Compatibility in Claude Code?

Run `npx skills add platformplatform/PlatformPlatform --skill swc-plugin-compatibility -a claude-code`. Or copy the skill folder (.claude/skills/swc-plugin-compatibility in platformplatform/PlatformPlatform) into .claude/skills/swc-plugin-compatibility in your project. Claude Code loads it when a task matches its description.

How do I install Swc Plugin Compatibility in Codex?

Run `npx skills add platformplatform/PlatformPlatform --skill swc-plugin-compatibility -a codex`. Or copy the skill folder (.claude/skills/swc-plugin-compatibility in platformplatform/PlatformPlatform) into .agents/skills/swc-plugin-compatibility in your project. Codex loads it when a task matches its description.

Can I use Swc Plugin Compatibility in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add platformplatform/PlatformPlatform --skill swc-plugin-compatibility -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/swc-plugin-compatibility, .gemini/skills/swc-plugin-compatibility, .github/skills/swc-plugin-compatibility and .opencode/skills/swc-plugin-compatibility in your project.

What does Swc Plugin Compatibility need to run?

SKILL.md names no scripts, command-line tools or credentials: Swc Plugin Compatibility is instructions for the agent only.

Does Swc Plugin Compatibility access the network?

SKILL.md names 3 domains. In commands or code: json.schemastore.org; the agent is likely to contact it when it follows the instructions. As links in the text: github.com and plugins.swc.rs. This is read from the text; nothing was executed.

Is Swc Plugin Compatibility safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Swc Plugin Compatibility use?

Swc Plugin Compatibility is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Swc Plugin Compatibility use?

About 873 tokens (SKILL.md is roughly 3.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Swc Plugin Compatibility?

Skills that share tags, products or a category with Swc Plugin Compatibility: Dotlottie Web (LottieFiles/dotlottie-web, 892 stars), Swc Plugin Compatibility (B0und/WikiSpeedrun, 133 stars), Vercel Optimize Audit (vercel-labs/agent-skills, 32k stars) and AI SDK (vercel-labs/ai-facts, 168 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Swc Plugin Compatibility?

platformplatform (a GitHub organization) maintains it in platformplatform/PlatformPlatform, which has 440 GitHub stars. The repository holds 18 skills in this directory. The repository was last updated on September 24, 2026.

Source: platformplatform/PlatformPlatform on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.