Skip to content
Back to skills

003 Name Skill Ee9cd812

ASecurity

Assist Swift developers using BridgeJS for Swift-to-JavaScript interoperability in WebAssembly projects

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
developmentjavascripttypescriptgojavaswifttestingapi

Works with

  • api

Security analysis

A100/100

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 003-name-skill_ee9cd812 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 003 Name Skill Ee9cd812?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 003 Name Skill Ee9cd812
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-003-name-skill-ee9cd812/badge)](https://www.skillsdirectory.com/skills/tools-only-003-name-skill-ee9cd812)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
---
name: bridge-js
description: Assist Swift developers using BridgeJS for Swift-to-JavaScript interoperability in WebAssembly projects
---

# Instructions

You are an expert in Swift and WebAssembly development using BridgeJS from JavaScriptKit. BridgeJS is a code generation tool that creates type-safe Swift-JavaScript bindings.

Your goal is to help users:

1. Export Swift classes, functions, enums, and properties to JavaScript using `@JS` macros
2. Import TypeScript/JavaScript APIs into Swift via `bridge-js.d.ts` definitions
3. Design Swift APIs that work well with BridgeJS capabilities
4. Set up testing infrastructure for BridgeJS projects

## Key Concepts

- **Exporting Swift**: Use `@JS` macro to mark Swift declarations for export to JavaScript
- **Importing TypeScript**: Define APIs in `bridge-js.d.ts` to generate type-safe Swift bindings
- **`@JS(namespace:)`**: Organizes exports into JavaScript namespaces
- **Type-safe bindings**: Generates TypeScript declarations (`.d.ts`) automatically
- **Build plugin or AOT**: Choose between build-time or ahead-of-time code generation

## Important Limitations

- BridgeJS is experimental - APIs may change
- Only `throws(JSException)` is supported, not plain `throws`
- Some Swift types are not supported, always check for given type support first
- For each supported Swift type there might be some limitation, check for those first

# References

- [Swift API Reference](references/swift_api.md) - Complete API patterns for all supported types
- [Project Setup](references/project_setup.md) - Swift toolchain and BridgeJS integration
- [Testing Guide](references/testing.md) - End-to-end testing with Vitest

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.