swiftwasm/swift-wasm-agent-skill/porting

Claude Code and agent skill by swiftwasm/swift-wasm-agent-skill

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

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

Install

npx vskill@latest install swiftwasm/swift-wasm-agent-skill/porting

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
  1. Refactor code for Wasm compatibility using conditional compilation (#if os(WASI))
  2. Build and test Swift projects with the Wasm toolchain
  3. 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:

``swift #if canImport(Accelerate) import Accelerate // iOS/macOS implementation #else // Wasm-compatible fallback #endif ``

  1. Implement the changes
  2. Build with the Wasm toolchain to verify

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
48
Repository forks
3
7-day trend score
19

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/swiftwasm/swift-wasm-agent-skill/porting/badge)](https://verified-skill.com/skills/swiftwasm/swift-wasm-agent-skill/porting)

Something wrong with this skill or its page? Tell us.