Agent skill

Moonbit JS Binding

by mizchi in mizchi/skills

Write MoonBit bindings to JavaScript with extern "js". An agent skill from mizchi/skills.

No licenceAuto-check passedAgent Workflows

Install Moonbit JS Binding

skills CLI
$ npx skills add mizchi/skills --skill moonbit-js-binding -a claude-code

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

GitHub CLI
$ gh skill install mizchi/skills moonbit-js-binding --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/mizchi/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/moonbit-js-binding .claude/skills/moonbit-js-binding && 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
moonbit-js-binding
GitHub stars
356
Token cost
~6.2k tokens
SKILL.md length
2,519 words
Files
18 (incl. references, assets)
Skills in repo
69
Repo updated
First seen
Licence
None found

At a glance

Write MoonBit bindings to JavaScript with extern "js". An agent skill from mizchi/skills.

  • Works in 5 steps: Project Setup → FFI Layer → MoonBit API → …
  • FFI declarations against browser/Node/Deno APIs
  • SKILL.md covers When To Use, Plan Mode Instructions, Type Mapping and Workflow, plus 4 more sections
  • Calls node

What it does

Moonbit JS Binding is an agent skill from mizchi/skills. 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.

Its SKILL.md is about 6.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 21 other files, including reference files and assets (for example `README.md`, `references/cfg-and-target-gating.md` and `references/error-handling.md`).

It sits in Agent Workflows. It works with npm, JavaScript and Deno. The repository describes itself as: Agent skills by mizchi, distributed via APM.

When your agent uses it

  • FFI declarations against browser/Node/Deno APIs
  • Wrapping JS objects in opaque types
  • Bridging Promises (async fn / Promise::wait())
  • Moon.pkg exports (esm/cjs/iife)

Example prompts

  • “/moonbit-js-binding”

Workflow steps

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

  1. Project Setup
  2. FFI Layer
  3. MoonBit API
  4. Promise / Async Bridging
  5. Testing

What it can do on your machine

Read from SKILL.md and the folder at commit 62f5808. 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

    Shell commands in SKILL.md call:

    • node

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

  • Network

    No URLs in SKILL.md.

    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

Moonbit JS Binding loads about 6.2k tokens when it runs, and up to ~12k if it reads all its reference files. Until then it costs about 78 tokens; SKILL.md has 2,519 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~78
When it runs · the whole SKILL.md, loaded when a task matches
~6.2k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~12k

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

Without a licence we can't republish the file, so here is its outline and opening line. It has 2,519 words (~6,248 tokens).

“Step-by-step workflow for binding JavaScript APIs (browser DOM, Node built-ins, npm packages) to MoonBit through the js backend.”

— opening of SKILL.md by mizchi
name
moonbit-js-binding

Read the full SKILL.md on GitHub

Files

SKILL.md and 17 other files (references, assets) in moonbit-js-binding of mizchi/skills.

  • SKILL.md
  • README.md
  • assets/js_binding_proj/moon.mod
  • assets/js_binding_proj/src/async.mbt
  • assets/js_binding_proj/src/async_test.mbt
  • assets/js_binding_proj/src/cross_target.mbt
  • assets/js_binding_proj/src/cross_target_test.mbt
  • assets/js_binding_proj/src/ffi.mbt
  • assets/js_binding_proj/src/lib.mbt
  • assets/js_binding_proj/src/lib_test.mbt
  • assets/js_binding_proj/src/modules.mbt
  • assets/js_binding_proj/src/modules_test.mbt
  • assets/js_binding_proj/src/moon.pkg
  • references/cfg-and-target-gating.md
  • references/error-handling.md
  • references/interop-patterns.md
  • references/promise-bridging.md
  • … and 1 more

Open the folder on GitHubat commit 62f5808

Compare with similar skills

Moonbit JS Binding 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.

Moonbit JS Binding compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Moonbit JS Binding this skillmizchi/skills356—~6.2kAutomated safety check: PassNone
npm Supply Chain Securitybodadotsh/npm-security-best-practices859—~1kAutomated safety check: WarnMIT
Denomajiayu000/claude-skill-registry6661 repos~1.8kAutomated safety check: PassApache-2.0
Yahoo Finance2gadicc/yahoo-finance2801—~1.8kAutomated safety check: PassMIT
Sync Public DocsCaldis/react-zmage946—~3.3kAutomated safety check: PassMIT
Htmlhintmanagedcode/dotnet-skills486—~1.2kAutomated safety check: PassMIT

Similar skills

  • npm Supply Chain Security

    bodadotsh/npm-security-best-practices

    Applies safer package manager defaults and dependency vetting to JavaScript and TypeScript projects to reduce supply-chain attack risk.

    859 GitHub stars~1k tokensUpdated 8 days ago
    SecurityAuto-check: warnings
  • Deno

    majiayu000/claude-skill-registry

    Assists with building secure JavaScript and TypeScript applications using the Deno runtime.

    666 GitHub starsUsed in 1 repo~1.8k tokens
    Backend & APIsAuto-check passed
  • Yahoo Finance2

    gadicc/yahoo-finance2

    A skill your agent uses when building with the yahoo-finance2 TypeScript/Deno/npm library, using its Yahoo Finance data modules, CLI, or MCP server, or contributing to the yahoo-finance2 repository…

    801 GitHub stars~1.8k tokensUpdated 4 days ago
    Agent WorkflowsAuto-check passed
  • Sync Public Docs

    Caldis/react-zmage

    A skill your agent uses when modifying public API in packages/core (types/global.ts, types/default.ts, index.ts, or package.json exports field), adding/renaming/removing props, changing default…

    946 GitHub stars~3.3k tokensUpdated 4 mo ago
    Agent WorkflowsAuto-check passed
  • Htmlhint

    managedcode/dotnet-skills

    Use HTMLHint in .NET repositories that ship static HTML output or standalone frontend templates.

    486 GitHub stars~1.2k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Installs, updates or migrates the vendored anti-slop Oxlint plugin in a repository, keeping local rule changes and the plugin's license and provenance files.

    5.3k GitHub starsUsed in 1 repo~2.2k tokens
    DevelopmentAuto-check passed

More from mizchi/skills

All 69 skills in this repo
  • Publish Agent Skill

    mizchi/skills

    Package, publish, verify and update an agent skill through a Claude Code plugin marketplace, APM or the npx skills CLI.

    356 GitHub stars~1.7k tokensUpdated 6 days ago
    Auto-check passed
  • AI Index

    mizchi/skills

    Method and tooling for measuring how AI-generated a piece of prose reads, in Japanese or English.

    356 GitHub stars~3.6k tokensUpdated 6 days ago
    Auto-check passed
  • Cloudflare Deploy

    mizchi/skills

    Deploy applications and infrastructure to Cloudflare with the cf CLI and typed cloudflare.config.ts.

    356 GitHub stars~2.9k tokensUpdated 6 days ago
    Auto-check: notes
  • Review Image

    mizchi/skills

    Review screenshots or other images with OpenRouter vision models via bundled Deno scripts.

    356 GitHub stars~1.3k tokensUpdated 6 days ago
    Auto-check passed
  • Post-generation safety checks for sqlc-gen-moonbit + Cloudflare D1.

    356 GitHub stars~995 tokensUpdated 6 days ago
    Auto-check passed
  • Apm Usage

    mizchi/skills

    Reference for APM (Agent Package Manager) — apm.yml syntax, install / uninstall / update commands, target detection, lockfile workflow.

    356 GitHub stars~1.9k tokensUpdated 6 days ago
    Auto-check passed

Categories

Questions about Moonbit JS Binding

What does Moonbit JS Binding do?

Write MoonBit bindings to JavaScript with extern "js". An agent skill from mizchi/skills. Moonbit JS Binding is an agent skill from mizchi/skills. Write MoonBit bindings to JavaScript with extern "js".

When should I use Moonbit JS Binding?

Moonbit JS Binding fits situations like: FFI declarations against browser/Node/Deno APIs; wrapping JS objects in opaque types; bridging Promises (async fn / Promise::wait()); moon.pkg exports (esm/cjs/iife).

How do I install Moonbit JS Binding in Claude Code?

Run `npx skills add mizchi/skills --skill moonbit-js-binding -a claude-code`. Or copy the skill folder (moonbit-js-binding in mizchi/skills) into .claude/skills/moonbit-js-binding in your project. Claude Code loads it when a task matches its description.

How do I install Moonbit JS Binding in Codex?

Run `npx skills add mizchi/skills --skill moonbit-js-binding -a codex`. Or copy the skill folder (moonbit-js-binding in mizchi/skills) into .agents/skills/moonbit-js-binding in your project. Codex loads it when a task matches its description.

Can I use Moonbit JS Binding 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 mizchi/skills --skill moonbit-js-binding -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/moonbit-js-binding, .gemini/skills/moonbit-js-binding, .github/skills/moonbit-js-binding and .opencode/skills/moonbit-js-binding in your project.

What does Moonbit JS Binding need to run?

Going by SKILL.md and its folder, Moonbit JS Binding needs the command-line tools its instructions call (node).

Does Moonbit JS Binding access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Moonbit JS Binding 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 Moonbit JS Binding use?

No licence was found for Moonbit JS Binding or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Moonbit JS Binding use?

About 6.2k tokens (SKILL.md is roughly 25k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 5.3k tokens, read only when the agent opens those files.

What are the alternatives to Moonbit JS Binding?

Skills that share tags, products or a category with Moonbit JS Binding: npm Supply Chain Security (bodadotsh/npm-security-best-practices, 859 stars), Deno (majiayu000/claude-skill-registry, 666 stars), Yahoo Finance2 (gadicc/yahoo-finance2, 801 stars) and Sync Public Docs (Caldis/react-zmage, 946 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Moonbit JS Binding?

mizchi (a GitHub user) maintains it in mizchi/skills, which has 356 GitHub stars. The repository holds 69 skills in this directory. The repository was last updated on October 2, 2026.

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