moonbit-agent-guide

Guide MoonBit project development with module organization and `moon` CLI usage.

4|1|Updated Feb 15, 2026
One-click install
npx skills add https://github.com/Haoxincode/MoonBash --skill moonbit-agent-guide-haoxincode
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: moonbit-agent-guide
Source: https://github.com/Haoxincode/MoonBash/tree/main/.agents/skills/moonbit-agent-guide
Command: npx skills add https://github.com/Haoxincode/MoonBash --skill moonbit-agent-guide-haoxincode

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides comprehensive guidance for developing, refactoring, and testing MoonBit projects, ensuring adherence to best practices and efficient use of MoonBit tooling.

Core Features & Use Cases

  • Project Structure: Understand MoonBit module and package layouts.
  • Tooling Usage: Learn to use moon commands for building, checking, testing, and IDE integration.
  • Refactoring & Testing: Apply strategies for reliable code changes and robust testing.
  • Use Case: When starting a new MoonBit project or encountering issues with existing code, consult this guide for the correct approach to organizing files, using the moon CLI, and implementing tests.

Quick Start

Use the moonbit-agent-guide skill to understand how to structure a new MoonBit package.

Frequently Asked Questions about moonbit-agent-guide

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

FAQPage Schema
How do I structure a new MoonBit project using modules and packages?

Structure a MoonBit project by organizing code into modules and packages, following specific layouts for file organization. This approach ensures maintainable code and proper package management within the MoonBit ecosystem.

What is the best way to use the moon command-line tool for building and testing?

Use the `moon` command-line tool to build, check, and test MoonBit projects. Executing these commands streamlines your development workflow and integrates smoothly with IDE operations for efficient project validation.

How do I handle errors and manage packages in MoonBit development?

Handle errors and manage packages in MoonBit by applying language fundamentals and best practices. This ensures robust code execution and proper dependency organization within the MoonBit ecosystem.

What are the best practices for refactoring MoonBit code?

Refactor MoonBit code by applying specific strategies for reliable code changes. These practices ensure your refactoring process maintains code integrity and improves overall project structure without breaking existing functionality.

How do I implement tests for my MoonBit code?

Implement tests for MoonBit code by using the `moon` CLI and applying robust testing strategies. This ensures reliable validation of your code changes and maintains project stability throughout development.