moonbit-agent-guide

Guide developers in writing, refactoring, and testing MoonBit projects.

44|3|Updated Jan 9, 2026
One-click install
npx skills add https://github.com/moonbit-community/fastcc --skill moonbit-agent-guide
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: moonbit-agent-guide
Source: https://github.com/moonbit-community/fastcc/tree/main/.codex/skills/moonbit-agent-guide
Command: npx skills add https://github.com/moonbit-community/fastcc --skill moonbit-agent-guide

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This MoonBit agent guide helps developers organize MoonBit modules, apply standard layouts, and leverage tooling (build/check/test/doc/ide) to keep projects consistent and maintainable.

Core Features & Use Cases

  • Provides recommended project layout: top-level moon.mod.json, per-package moon.pkg.json, and standardized file naming.
  • Documents MoonBit tooling usage (build, check, test, doc, ide) and how to structure packages.
  • Use case: onboarding a new MoonBit module or refactoring an existing repo to align with MoonBit conventions.

Quick Start

To begin, copy this guide into your MoonBit project as AGENTS.md or read the docs in the repository, then follow the recommended structure to initialize and validate your module, run moon check, moon test, and explore with moon doc.

Frequently Asked Questions about moonbit-agent-guide

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

FAQPage Schema
What is the recommended project layout for a MoonBit module?

The recommended MoonBit project layout uses a top-level moon.mod.json for the module, per-package moon.pkg.json files, and standardized file naming to keep projects consistent and maintainable.

How do I structure and test a MoonBit project using the standard tooling?

To test a MoonBit project, structure your packages with moon.pkg.json files, then run moon check for validation and moon test to execute tests, leveraging the documented conventions for modules and packages.

What MoonBit tooling commands are available for build, check, and documentation?

MoonBit tooling includes commands for build, check, test, doc, and ide integration, allowing developers to compile, validate, test, generate documentation, and enable IDE support for their projects.

Do I need any external dependencies to apply this MoonBit project guide?

No external dependencies are required to apply this MoonBit project guide, as it provides conventions for project layout and tooling usage that work with the standard MoonBit toolchain.

What's the best way to refactor an existing repo to align with MoonBit conventions?

The best way to refactor a repo for MoonBit conventions is to copy this guide as AGENTS.md, apply the recommended module and package structure, and validate changes using moon check and moon test.

Can I use this guide to onboard a new MoonBit module from scratch?

Yes, you can use this guide to onboard a new MoonBit module by following the recommended structure to initialize the module, create moon.mod.json and moon.pkg.json files, and validate with moon check.