Moonbit Js Binding
Write MoonBit bindings to JavaScript with `extern "js"`. Use for FFI declarations against browser/Node/Deno APIs or npm packages, wrapping JS objects in opaque types, bridging Promises (`async fn` / `Promise::wait()`), `moon.pkg` exports (esm/cjs/iife), and null/undefined at the JS boundary.
Install
npx skills add mizchi/skills --skill moonbit-js-bindinggit clone --depth 1 https://github.com/mizchi/skills.git /tmp/skills
mkdir -p ~/.claude/skills
cp -r /tmp/skills/moonbit-js-binding ~/.claude/skills/moonbit-js-bindingPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# MoonBit JS Binding Guide Step-by-step workflow for binding JavaScript APIs (browser DOM, Node built-ins, npm packages) to MoonBit through the `js` backend. > Updated for [MoonBit v0.10.19 (2026-11-05)](https://www.moonbitlang.com/updates/2026/11/05/index). > The bundled project passes with `moonc v0.10.20+65efd5b93`, Node 24, and > `moonbitlang/async` 0.22.7. This is an external-runtime example; experimental > `core/async` adoption is a separate decision, not a prerequisite for JS FFI. ## When To Use Use this skill when: - Adding `extern "js" fn` declarations for a JS API - Embedding inline JS (`#| (x) => ...`) or importing by module+name (`= "Math" "max"`) - Configuring `moon.pkg` with `link.js` exports and `format: esm/cjs/iife` - Wrapping JS objects with `#external pub type` and `%identity` casts - Bridging Promises with `async fn` + `%async.suspend` + `%async.run` - Mapping `undefined` / `null` distinctly into MoonBit `Option` - Consuming npm packages via `require(...)` or ESM imports - Generating `.d.ts` for TypeScript consumers ## Plan Mode Instructions **If you are in plan mode** and creating a plan for moonbit-js-binding work: 1. In your final plan file, include an explicit instruction at the beginning that tells the executing agent to read the moonbit-js-binding skill before starting implementation. 2. The instruction should look like this:
Details
- Skill name
moonbit-js-binding- Repository
- mizchi/skills
- Path
moonbit-js-binding/SKILL.md- Repo updated
- 18 November 2026
FAQ
What does the Moonbit Js Binding skill do?
Write MoonBit bindings to JavaScript with `extern "js"`. Use for FFI declarations against browser/Node/Deno APIs or npm packages, wrapping JS objects in opaque types, bridging Promises (`async fn` / `Promise::wait()`), `moon.pkg` exports (esm/cjs/iife), and null/undefined at the JS boundary.
How do I install the Moonbit Js Binding skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add mizchi/skills --skill moonbit-js-binding. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Moonbit Js Binding popular?
It lives in mizchi/skills, which has 423 GitHub stars and 6 forks.
Related skills
Actions CI Tuning
423mizchi/skills
Use when auditing or improving GitHub Actions workflows for a project. Covers cache setup (npm/pnpm/yarn), job parallelism, shard-based test splitting, artifact handling pitfalls, and Playwright-specific patterns. Trigger on: slow CI, cache miss, flaky shard jobs, merge-reports failures, or an explicit 'tune CI' request.
AI Index
423mizchi/skills
Method and tooling for measuring how AI-generated a piece of prose reads, in Japanese or English. Two layers — a deterministic lint for removable surface tells (scripts/slopscore.py, no API) and a judgment layer of typed probabilistic questions (Jev noul/score) for the tells that survive editing. Includes measured human/AI baselines, a gap-first calibration procedure, and labeled fixtures. Use when building or calibrating an AI-likeness score, or when a draft needs a defensible number rather than a vibe. For writing guidance use natural-writing-ja / natural-writing-en instead.
Apm Usage
423mizchi/skills
Reference for APM manifests, installation, targeted updates, deployment paths and lockfiles. Invoke when the user explicitly asks about APM or apm.yml, or an unfamiliar APM command/error needs exact CLI details. Do not automatically invoke for every project that happens to have installed skills.
Moonbit Practice
423mizchi/skills
MoonBit code generation and packaging best practices. Use when writing MoonBit code to avoid common AI mistakes with syntax, tests, and benchmarks, or when defining and publishing a Wasm executable with SKILL.md for the MoonBit Skills Marketplace.
Mcloud Auth
237medusajs/medusa-agent-skills
Execute mcloud authentication and context commands: login, logout, whoami, use, version, and signup. Use when setting up the CLI, switching accounts, verifying auth state, setting the active org/project/environment context, or checking the CLI version.
Okx Cex Auth
201okx/agent-skills
Use this skill when the user wants to 'login/log in/sign in', 'authenticate', 'authorize', 'connect OKX account', 'set up credentials', 'first time setup', 'configure okx', '登录', '授权', '认证', '连接账户', '首次配置'. Also when any OKX CLI command fails with an auth error: 'Run okx auth login first', 'Session expired', 'not authenticated', 'requires_auth', '401 Unauthorized', 'token expired/not found', 'StorageNotFoundError', '会话过期', '未认证', '需要登录'. Also when the user asks about login status or the login was interrupted. Also when the user wants to install/update/check/remove the okx-auth binary — 'instal
Browse the most popular Claude skills, all software development skills, or write your own with the skills generator.