Moonbit lang skill

From moonbit-community/fastcc · View interactive version

Moonbit lang skill is an AI agent skill from the GitHub repository moonbit-community/fastcc. MoonBit language reference and coding conventions. Use when writing MoonBit code, asking about syntax, or encountering MoonBit-specific errors. Covers error handling, FFI, async, and common pitfalls.

How to use this skill

Skill file

MoonBit Language Reference

@reference/index.md

@reference/introduction.md

@reference/fundamentals.md

@reference/methods.md

@reference/derive.md

@reference/error-handling.md

@reference/packages.md

@reference/tests.md

@reference/benchmarks.md

@reference/docs.md

@reference/attributes.md

@reference/ffi.md

@reference/async-experimental.md

@reference/error_codes/index.md

@reference/toml-parser-parser.mbt

Official Packages

MoonBit has official packages maintained by the team:

To use these packages:

  1. Add the dependency: moon add moonbitlang/x or moon add moonbitlang/async
  2. Import the specific subpackage in moon.pkg.json:

```json

{"import": ["moonbitlang/x/fs"]}

```

Common Pitfalls

Parser Style Reference

When writing a hand-written parser, follow the style in reference/toml-parser-parser.mbt (mirrored from moonbit-community/toml-parser).

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.