·moonbit-refactoring
</>

moonbit-refactoring

Refactor MoonBit code to be idiomatic: shrink public APIs, convert functions to methods, use pattern matching with views, add loop invariants, and ensure test coverage without regressions. Use when updating MoonBit packages or refactoring MoonBit APIs, modules, or tests.

7Installs·0Trend·@moonbitlang

Installation

$npx skills add https://github.com/moonbitlang/moonbit-agent-guide --skill moonbit-refactoring

How to Install moonbit-refactoring

Quickly install moonbit-refactoring AI skill to your development environment via command line

  1. Open Terminal: Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.)
  2. Run Installation Command: Copy and run this command: npx skills add https://github.com/moonbitlang/moonbit-agent-guide --skill moonbit-refactoring
  3. Verify Installation: Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code, Cursor, or OpenClaw

Source: moonbitlang/moonbit-agent-guide.

SKILL.md

View raw

Avoid local cleanups (renaming, pattern matching) until the high-level structure is sound.

Splitting Files Treat files in MoonBit as organizational units; move code freely within a package as long as each file stays focused on one concept.

Splitting Packages When spinning off package A into A and B:

Refactor MoonBit code to be idiomatic: shrink public APIs, convert functions to methods, use pattern matching with views, add loop invariants, and ensure test coverage without regressions. Use when updating MoonBit packages or refactoring MoonBit APIs, modules, or tests. Source: moonbitlang/moonbit-agent-guide.

Facts (cite-ready)

Stable fields and commands for AI/search citations.

Install command
npx skills add https://github.com/moonbitlang/moonbit-agent-guide --skill moonbit-refactoring
Category
</>Dev Tools
Verified
First Seen
2026-02-22
Updated
2026-03-11

Browse more skills from moonbitlang/moonbit-agent-guide

Quick answers

What is moonbit-refactoring?

Refactor MoonBit code to be idiomatic: shrink public APIs, convert functions to methods, use pattern matching with views, add loop invariants, and ensure test coverage without regressions. Use when updating MoonBit packages or refactoring MoonBit APIs, modules, or tests. Source: moonbitlang/moonbit-agent-guide.

How do I install moonbit-refactoring?

Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/moonbitlang/moonbit-agent-guide --skill moonbit-refactoring Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code, Cursor, or OpenClaw

Where is the source repository?

https://github.com/moonbitlang/moonbit-agent-guide

Details

Category
</>Dev Tools
Source
skills.sh
First Seen
2026-02-22