An agent skill for writing, building, and testing MoonBit code.
Guides AI agents through MoonBit development tasks:
- Writing idiomatic MoonBit code (types, traits, error handling, pattern matching)
- Organising projects with
moon.mod.jsonandmoon.pkg - Using
moonCLI commands (build, test, fmt, info, ide) - Testing with snapshot tests and spec-driven development
- Common patterns and pitfalls
moonbit-skill/
├── SKILL.md # Main skill: workflow, core language, quick reference
└── references/
├── language-fundamentals.md # Traits, generics, closures, async, FFI basics
├── tooling.md # All moon CLI and moon ide commands
├── testing.md # Snapshot tests, spec-driven dev, test organisation
└── patterns.md # Idiomatic patterns, anti-patterns
The skill follows Progressive Disclosure:
- Metadata (name + description in SKILL.md frontmatter) — always loaded
- SKILL.md body — loaded when the skill triggers; covers the most common cases
references/files — loaded on demand for deeper topics
Run /plugin in the CLI, select Add Marketplace, and input the marketplace URL.
Add this repository as a submodule or copy SKILL.md and the references/ directory into your project's skills folder.
Apache 2.0 — see LICENSE.