Agent skill

Ts2moonbit Migration

by mizchi in mizchi/skills

Migrate a TypeScript codebase to MoonBit on the js target while keeping the same JavaScript API contract, using mizchi/js (JS/Web/Node bindings), mizchi/x (cross-target async backend…

No licenceAuto-check passedBackend & APIs

Install Ts2moonbit Migration

skills CLI
$ npx skills add mizchi/skills --skill ts2moonbit-migration -a claude-code

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

GitHub CLI
$ gh skill install mizchi/skills ts2moonbit-migration --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/ts2moonbit-migration .claude/skills/ts2moonbit-migration && 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
ts2moonbit-migration
GitHub stars
359
Token cost
~4.2k tokens
SKILL.md length
2,128 words
Files
8 (incl. references)
Skills in repo
69
Repo updated
First seen
Licence
None found

At a glance

Migrate a TypeScript codebase to MoonBit on the js target while keeping the same JavaScript API contract, using mizchi/js (JS/Web/Node bindings), mizchi/x (cross-target async backend…

  • Works in 8 steps: Capture the contract → Project setup → Classify types → …
  • Porting a TS library
  • SKILL.md covers When To Use, The Governing Principle: the…, Architecture: JS-compatible… and Before You Port: Library Triage, plus 7 more sections
  • Calls tsc

What it does

Ts2moonbit Migration is an agent skill from mizchi/skills. Migrate a TypeScript codebase to MoonBit on the js target while keeping the same JavaScript API contract, using mizchi/js (JS/Web/Node bindings), mizchi/x (cross-target async backend: process/fs/http/ws), and mizchi/npmtyped (npm bindings). Use when porting a TS library, Node service, npm package, or Cloudflare Worker to MoonBit and the existing JS/TS consumers, .d.ts, and tests must keep working unchanged.

Its SKILL.md is about 4.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 8 other files, including reference files (for example `README.md`, `references/boundary-and-core.md` and `references/build-and-publish.md`).

It sits in Backend & APIs, covering API design. It works with npm, TypeScript, JavaScript and Cloudflare Workers. The repository describes itself as: Agent skills by mizchi, distributed via APM.

When your agent uses it

  • Porting a TS library
  • Cloudflare Worker to MoonBit and the existing JS/TS consumers
  • Tests must keep working unchanged

Example prompts

  • “/ts2moonbit-migration”

Workflow steps

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

  1. Capture the contract
  2. Project setup
  3. Classify types
  4. Port leaf modules (idiomatic core + thin adapter)
  5. Port backend / async I/O
  6. Port npm dependencies
  7. Re-export to satisfy the contract
  8. Verify parity and cut over

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:

    • tsc

    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

Ts2moonbit Migration loads about 4.2k tokens when it runs, and up to ~12k if it reads all its reference files. Until then it costs about 109 tokens; SKILL.md has 2,128 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~109
When it runs · the whole SKILL.md, loaded when a task matches
~4.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,128 words (~4,185 tokens).

“Port a TypeScript module, library, npm package, or Node service to MoonBit, compile it back to JavaScript with moon build, and ship it so existing JS/TS consumers cannot tell the implementation changed. The compiled .js + generated .d.ts must satisfy…”

— opening of SKILL.md by mizchi
name
ts2moonbit-migration

Read the full SKILL.md on GitHub

Files

SKILL.md and 7 other files (references) in ts2moonbit-migration of mizchi/skills.

  • SKILL.md
  • README.md
  • references/boundary-and-core.md
  • references/build-and-publish.md
  • references/contract-capture.md
  • references/parity-verification.md
  • references/toolkit-map.md
  • references/type-mapping.md

Open the folder on GitHubat commit 62f5808

Compare with similar skills

Ts2moonbit Migration 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.

Ts2moonbit Migration compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Ts2moonbit Migration this skillmizchi/skills359—~4.2kAutomated safety check: PassNone
Javascript SDKaiskillstore/marketplace4301 repos~3.3kAutomated safety check: PassNone
Cloudflare Workerseinverne/dotfiles121—~8.4kAutomated safety check: PassMIT
Linea Dependency MaintenanceConsensys-Incorporated/linea-attestation-registry1771 repos~3.7kAutomated safety check: WarnMIT
API Designmargelo/react-native-skills175—~7.2kAutomated safety check: PassNone
Test Writeraxelixlabs/axelix148—~2.2kAutomated safety check: PassLGPL-3.0

Similar skills

  • Javascript SDK

    aiskillstore/marketplace

    JavaScript/TypeScript SDK for inference.sh - run AI apps, build agents, integrate with all models.

    430 GitHub starsUsed in 1 repo~3.3k tokens
    Backend & APIsAuto-check passed
  • Cloudflare Workers

    einverne/dotfiles

    Comprehensive guide for building serverless applications with Cloudflare Workers.

    121 GitHub stars~8.4k tokensUpdated 1 mo ago
    Backend & APIsAuto-check passed
  • Linea Dependency Maintenance

    Consensys-Incorporated/linea-attestation-registry

    Safely plan and execute dependency maintenance for JavaScript/TypeScript (npm, pnpm) and GitHub Actions, including npm lockfiles, pnpm workspaces, catalogs, overrides, SHA-pinned action versions…

    177 GitHub starsUsed in 1 repo~3.7k tokens
    DevelopmentAuto-check: warnings
  • API Design

    margelo/react-native-skills

    Design and review predictable public APIs for TypeScript, JavaScript, React, and React Native libraries.

    175 GitHub stars~7.2k tokensUpdated 1 mo ago
    MobileAuto-check passed
  • Test Writer

    axelixlabs/axelix

    Writes new tests for Axelix source code (Java, Kotlin, TypeScript, JavaScript) that follow the project's testing standards — public-API contract coverage, test isolation, given/when/then structure…

    148 GitHub stars~2.2k tokensUpdated today
    MobileAuto-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 stars~2.2k tokensUpdated 29 days ago
    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.

    359 GitHub stars~1.7k tokensUpdated 7 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.

    359 GitHub stars~3.6k tokensUpdated 7 days ago
    Auto-check passed
  • Cloudflare Deploy

    mizchi/skills

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

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

    mizchi/skills

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

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

    359 GitHub stars~995 tokensUpdated 7 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.

    359 GitHub stars~1.9k tokensUpdated 7 days ago
    Auto-check passed

Categories

Questions about Ts2moonbit Migration

What does Ts2moonbit Migration do?

Migrate a TypeScript codebase to MoonBit on the js target while keeping the same JavaScript API contract, using mizchi/js (JS/Web/Node bindings), mizchi/x (cross-target async backend…. Ts2moonbit Migration is an agent skill from mizchi/skills. Migrate a TypeScript codebase to MoonBit on the js target while keeping the same JavaScript API contract, using mizchi/js (JS/Web/Node bindings), mizchi/x (cross-target async backend: process/fs/http/ws), and mizchi/npmtyped (npm bindings).

When should I use Ts2moonbit Migration?

Ts2moonbit Migration fits situations like: porting a TS library; cloudflare Worker to MoonBit and the existing JS/TS consumers; tests must keep working unchanged.

How do I install Ts2moonbit Migration in Claude Code?

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

How do I install Ts2moonbit Migration in Codex?

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

Can I use Ts2moonbit Migration 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 ts2moonbit-migration -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/ts2moonbit-migration, .gemini/skills/ts2moonbit-migration, .github/skills/ts2moonbit-migration and .opencode/skills/ts2moonbit-migration in your project.

What does Ts2moonbit Migration need to run?

Going by SKILL.md and its folder, Ts2moonbit Migration needs the command-line tools its instructions call (tsc).

Does Ts2moonbit Migration 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 Ts2moonbit Migration 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 Ts2moonbit Migration use?

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

How many tokens does Ts2moonbit Migration use?

About 4.2k tokens (SKILL.md is roughly 17k 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 7.8k tokens, read only when the agent opens those files.

What are the alternatives to Ts2moonbit Migration?

Skills that share tags, products or a category with Ts2moonbit Migration: Javascript SDK (aiskillstore/marketplace, 430 stars), Cloudflare Workers (einverne/dotfiles, 121 stars), Linea Dependency Maintenance (Consensys-Incorporated/linea-attestation-registry, 177 stars) and API Design (margelo/react-native-skills, 175 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Ts2moonbit Migration?

mizchi (a GitHub user) maintains it in mizchi/skills, which has 359 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.