Cloudflare Mbt Worker Bundle

Bundle a Cloudflare Worker combining MoonBit core code with a TypeScript entry through cf and the Cloudflare Vite plugin, with required FFI rewrites and a post-build bundle check.

423 stars 6 forksDevOps & Cloud

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add mizchi/skills --skill cloudflare-mbt-worker-bundle
Manual install
git clone --depth 1 https://github.com/mizchi/skills.git /tmp/skills
mkdir -p ~/.claude/skills
cp -r /tmp/skills/cloudflare-mbt-worker-bundle ~/.claude/skills/cloudflare-mbt-worker-bundle

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# Cloudflare Workers + MoonBit bundle pipeline

Use `cf`, `cloudflare.config.ts` and the Cloudflare Vite plugin to bundle MoonBit's JS output with the TypeScript Worker entry. Use the [checked RC cohort](../cloudflare-deploy/references/cf/README.md) on Node.js 24 and see [mizchi/cf-example](https://github.com/mizchi/cf-example) for integration examples; verify its dependency versions before copying them.

## Pipeline

```text
moon build --target js --release
  → prepare-worker (FFI rewrites into src/_generated/<PKG>-core.js)
  → cf build --mode <mode>
  → check emitted bundle
  → cf deploy --prebuilt --mode <same-mode> --dry-run
  → cf deploy --prebuilt --mode <same-mode>
```

Preparation must run before every build that will ship MoonBit changes. For local development, prepare the generated JS first, run `pnpm exec cf dev`, and regenerate it when MoonBit sources change; Vite does not invoke `moon build` automatically.

For [MoonBit v0.10.19 and newer](https://www.moonbitlang.com/updates/2026/11/05/index), migrate JSON manifests with `moon fmt` and remove dependency-sync uses of `moon install`. At JS boundaries, pass `FixedArray` rather than identity-casting an internal `Array`; exercise D1 bind collections and Promise callbacks through the built Worker. Keep the existing async runtime until a deliberate migration: the new `core/async` is experimental and does not establish compatibility with these generated-symbol rewrites.
Read the full skill on GitHub

Details

Skill name
cloudflare-mbt-worker-bundle
Repository
mizchi/skills
Path
cloudflare-mbt-worker-bundle/SKILL.md
Repo updated
18 November 2026

FAQ

What does the Cloudflare Mbt Worker Bundle skill do?

Bundle a Cloudflare Worker combining MoonBit core code with a TypeScript entry through cf and the Cloudflare Vite plugin, with required FFI rewrites and a post-build bundle check.

How do I install the Cloudflare Mbt Worker Bundle skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add mizchi/skills --skill cloudflare-mbt-worker-bundle. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Cloudflare Mbt Worker Bundle popular?

It lives in mizchi/skills, which has 423 GitHub stars and 6 forks.

Related skills

Actions CI Tuning

423

mizchi/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.

Testing & QA

AI Index

423

mizchi/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.

AI, LLMs & Agents

Apm Usage

423

mizchi/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.

DevOps & Cloud

Cloudflare Workers CD Rollback

423

mizchi/skills

GitHub Actions CD for Cloudflare Workers through cf with automatic traffic rollback on smoke failure, including JSON deployment snapshots, D1 migrations and prebuilt artifacts.

DevOps & Cloud

Cloudflare Deploy

423

mizchi/skills

Deploy applications and infrastructure to Cloudflare with the cf CLI and typed cloudflare.config.ts. Use when deploying Workers, migrating a Wrangler project to cf, or setting up Cloudflare resources and CI.

DevOps & Cloud

Cloudflare Workers Otel Utels

423

mizchi/skills

Cloudflare Worker telemetry at the fetch boundary — OTLP traces / metrics / logs + utels error tracking + D1 Proxy that emits slow-query warnings. Use when adding observability to a Worker without touching handler code.

DevOps & Cloud

Browse the most popular Claude skills, all devops & cloud skills, or write your own with the skills generator.