Moonbit Language

Verified MoonBit language reference pinned to an exact moonc version. Use when understanding, writing, reviewing, or fixing .mbt and .mbt.md code; resolving syntax, type, pattern, visibility, trait, or error diagnostics; designing APIs; checking whether a feature exists; or translating Rust, TypeScript, or Go habits. Covers functions and labelled/optional/autofill arguments, structs, enums and extenum, bitstring/JSON/regex patterns, traits and explicit extend/pub extend, generics, visibility, checked errors, async, tests, and FFI declarations. Language semantics only - use moonbit-toolchain for commands, configuration, dependencies, targets, or project setup; load both when code and project operation are involved.

hyfdev 5312517 16 files · 131.0 KB Updated

File contents

hyfdev/moonbit-agent-skills/tree/main/skills/moonbit-language commit 5312517c0b

Frequently asked questions

npx skillmds@latest add hyfdev/moonbit-language