mooncheat

Check MoonBit syntax and core library API usage in source code.

15|1|Updated Dec 10, 2025
One-click install
npx skills add https://github.com/mizchi/npm_typed.mbt --skill mooncheat
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mooncheat
Source: https://github.com/mizchi/npm_typed.mbt/tree/main/.claude/skills/mooncheat
Command: npx skills add https://github.com/mizchi/npm_typed.mbt --skill mooncheat

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a quick reference to MoonBit syntax and core library usage, helping you validate code patterns and API usage without digging through docs.

Core Features & Use Cases

  • Syntax quick checks: Look up MoonBit syntax differences and rules in one place.
  • Core library references: Find how to use core libraries and APIs via MoonDoc and cached mbti references.
  • Searchability: Use Grep and MoonDoc guidance to locate examples across your projects.

Quick Start

Open syntax.mbt.md to review MoonBit syntax, then grep ~/.moon/lib/core for API references and search .mooncakes for library usage examples.

Frequently Asked Questions about mooncheat

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I check MoonBit syntax and validate my code against the core library?

MoonBit syntax validation checks your code for syntax conformity and API availability by referencing syntax.mbt.md for syntax rules and pkg.generated.mbti for core library APIs. Open syntax.mbt.md to review syntax patterns, then grep ~/.moon/lib/core to verify API usage in your source code.

Where do I find MoonBit core library documentation and API references?

Core library references are cached in pkg.generated.mbti and accessible via MoonDoc. Search ~/.moon/lib/core using grep to locate specific APIs, or consult moon.pkg.json and moon.mod.json to understand package and module schemas for your project.

Can I use this cheat sheet to find examples of third-party library usage in MoonBit?

Yes. Third-party bindings and library usage examples are located under .mooncakes in your project. Combine grep searches across .mooncakes with syntax.mbt.md references to identify valid patterns for third-party dependencies.

How do I quickly look up MoonBit syntax differences without reading full documentation?

The syntax.mbt.md file provides a fast reference for MoonBit syntax rules and patterns. Search this file directly or use grep to locate specific syntax constructs across your local repositories and documentation.

What files should I reference to validate library usage across my MoonBit project?

Validate library usage by checking three files: syntax.mbt.md for syntax rules, pkg.generated.mbti for core API availability, and moon.pkg.json or moon.mod.json for package and module configuration. Search .mooncakes for third-party binding examples.

Does this tool help identify API availability issues in MoonBit code?

Yes. By referencing pkg.generated.mbti and core library schemas in moon.pkg.json, you can identify which APIs are available in your environment and verify your code uses valid library functions and signatures.