moonbit-agent-guide
Originally frommoonbitlang/moonbit-agent-guide
Installation
SKILL.md
MoonBit Task Checklist
- Locate the enclosing
moon.modand relevantmoon.pkgfiles before editing. - Discover APIs with
moon ide doc; useoutline,peek-def,find-references,hover, andrenamefor semantic navigation and refactoring. - Use
.mbtxexclusively for agent-authored automation; keep automation logic out of shell scripts and other scripting languages. - Keep changes within the correct package. Files do not define namespaces; separate top-level items with
///|. - Add regression tests for bug fixes. Add black-box tests and docstring examples for new public APIs.
- Validate with
moon checkand the narrowest relevantmoon test; usemoon test --updateonly for intended snapshot changes. Usemoon explain --diagnosticto list warnings and--warn-listto enable selected warnings (for example,+unnecessary_annotation). - Run
moon fmtandmoon infobefore handoff. Review generated.mbtichanges, especially when the public API should remain stable.