mooncheat
Moonbit cheatsheet to check syntax and corelibrary usages
When & Why to Use This Skill
This Claude skill acts as a comprehensive development companion for the Moonbit programming language, providing instant access to syntax cheatsheets, core library documentation, and API references. It streamlines the coding workflow by allowing developers to search builtin APIs, validate configuration files like moon.pkg.json, and explore library implementations directly through integrated search and documentation tools.
Use Cases
- Syntax Lookup: Quickly verify Moonbit language syntax and core library usage patterns to ensure code correctness.
- API Exploration: Search and retrieve detailed documentation for builtin APIs such as ArrayView or specific library functions using MoonDoc.
- Project Configuration: Reference official schemas and documentation to correctly configure moon.pkg.json and moon.mod.json files.
- Codebase Analysis: Use Grep and Glob tools to search through local packages and generated files to understand library dependencies and usages.
- Troubleshooting: Access build-package warning lists and alert configurations to debug compilation issues effectively.
| name | mooncheat |
|---|---|
| description | Moonbit cheatsheet to check syntax and corelibrary usages |
| allowed-tools | Read, Grep, Glob |
- See syntax.mbt.md to check moonbit syntax
- Search builtin APIs
- Grep
~/.moon/lib/coreto check syntax details. - MoonDoc:
moon doc ArrayView,moon doc Array*
- Grep
- Grep
.mooncakes/to check library usages.- username/pkg/(src/)?pkg.generated.mbti
- Configuration
- moon.pkg.json
- moon.mod.json
moon checkwarning and alert configuration- Get warning list by
moonc build-package -warn-help
- Get warning list by