Swift Wasm Porting

Check Swift on Wasm compatibility, identify incompatible frameworks, port and refactor code for WebAssembly

49 stars 4 forksMobile Development Plugin marketplace

Install

Claude Code plugin
/plugin marketplace add swiftwasm/Swift-Wasm-Agent-Skill

The repo is a Claude Code plugin marketplace. Run /plugin afterwards to pick the plugin that includes this skill.

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add swiftwasm/Swift-Wasm-Agent-Skill --skill swift-wasm-porting
Manual install
git clone --depth 1 https://github.com/swiftwasm/Swift-Wasm-Agent-Skill.git /tmp/Swift-Wasm-Agent-Skill
mkdir -p ~/.claude/skills
cp -r /tmp/Swift-Wasm-Agent-Skill/porting ~/.claude/skills/swift-wasm-porting

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

You are a Swift on WebAssembly (Wasm) compatibility expert. Your task is to help with Swift WebAssembly projects.

## Capabilities

1. **Check Wasm compatibility** of Swift packages
2. **Identify incompatible frameworks** such as:
   - UIKit
   - SwiftUI
   - CoreGraphics
   - CoreML
   - URLSession
   - Accelerate
3. **Refactor code for Wasm compatibility** using conditional compilation (`#if os(WASI)`)
4. **Build and test** Swift projects with the Wasm toolchain
5. **Find Wasm-safe alternatives** for platform-specific code

## Guidelines

- When refactoring, maintain the original implementation for iOS/macOS platforms using conditional compilation
- For Accelerate functions, consider replacements with:
  - Matft library
  - CLAPACK
  - SIMD
  - Pure Swift implementations
- The Swift Wasm toolchain is located at: `~/Library/Developer/Toolchains/`
- Always attempt a Wasm build to verify compatibility after making changes
- When you find code that is not compatible and won't ever be compatible with Swift on Wasm because of other technical limitations, create a Swift protocol mapping the code public API and inject this code as a dependency.

## Workflow

1. Analyze the target Swift package or file for Wasm compatibility issues
2. Identify any incompatible frameworks or APIs being used
3. Propose refactoring using conditional compilation:
Read the full skill on GitHub

Details

Skill name
swift-wasm-porting
Path
porting/SKILL.md
License
MIT
Repo updated
10 August 2026

FAQ

What does the Swift Wasm Porting skill do?

Check Swift on Wasm compatibility, identify incompatible frameworks, port and refactor code for WebAssembly

How do I install the Swift Wasm Porting skill?

Claude Code plugin: /plugin marketplace add swiftwasm/Swift-Wasm-Agent-Skill. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Swift Wasm Porting popular?

It lives in swiftwasm/Swift-Wasm-Agent-Skill, which has 49 GitHub stars and 4 forks.

Related skills

Bridge Js

49

swiftwasm/Swift-Wasm-Agent-Skill

Export Swift to JavaScript and import JavaScript/TypeScript into Swift using BridgeJS; type-safe bindings via @JS and related macros or bridge-js.d.ts; setup, config, AOT. Use when using or setting up BridgeJS, exporting Swift APIs to JS, importing JS/TS APIs into Swift, writing bridge-js.d.ts, configuring BridgeJS, or debugging BridgeJS boundaries.

Mobile Development

Javascriptkit

49

swiftwasm/Swift-Wasm-Agent-Skill

Assist Swift developers who consume JavaScriptKit for WebAssembly development

Software Development

Olore Expo Latest

119

olorehq/olore

Local Expo documentation reference (latest). Expo React Native framework documentation. Use for Expo SDK, EAS Build, app configuration, navigation, native modules, and cross-platform mobile development.

Mobile Development

Olore Expo SDK 54

119

olorehq/olore

Local expo-sdk documentation reference (54). Expo SDK API reference documentation. Use for Expo module APIs, native module interfaces, and SDK-specific API details.

Mobile Development

Swift Uikit Skill

49

Lakr233/Swift-UIKit-Skill

Build, review, and improve programmatic UIKit applications following proven patterns for Auto Layout, table views, collection views, navigation, animation, Core Data, networking, and architecture. Use when writing new UIKit features, refactoring existing view controllers, reviewing UIKit code quality, building custom controls, or implementing common iOS design patterns like load-and-retry, onboarding, or collapsible headers.

Mobile Development

Olore Expo SDK 55

119

olorehq/olore

Local expo-sdk documentation reference (55). Expo SDK API reference documentation. Use for Expo module APIs, native module interfaces, and SDK-specific API details.

Mobile Development

Browse the most popular Claude skills, all mobile development skills, or write your own with the skills generator.