什麼是 moonbit-refactoring?
將 MoonBit 程式碼重構為慣用的方式:縮小公共 API、將函數轉換為方法、使用視圖的模式匹配、新增循環不變量以及確保測試覆蓋率而不會出現回歸。在更新 MoonBit 套件或重構 MoonBit API、模組或測試時使用。 來源:moonbitlang/moonbit-agent-guide。
將 MoonBit 程式碼重構為慣用的方式:縮小公共 API、將函數轉換為方法、使用視圖的模式匹配、新增循環不變量以及確保測試覆蓋率而不會出現回歸。在更新 MoonBit 套件或重構 MoonBit API、模組或測試時使用。
透過命令列快速安裝 moonbit-refactoring AI 技能到你的開發環境
來源:moonbitlang/moonbit-agent-guide。
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:
將 MoonBit 程式碼重構為慣用的方式:縮小公共 API、將函數轉換為方法、使用視圖的模式匹配、新增循環不變量以及確保測試覆蓋率而不會出現回歸。在更新 MoonBit 套件或重構 MoonBit API、模組或測試時使用。 來源:moonbitlang/moonbit-agent-guide。
為搜尋與 AI 引用準備的穩定欄位與指令。
npx skills add https://github.com/moonbitlang/moonbit-agent-guide --skill moonbit-refactoring將 MoonBit 程式碼重構為慣用的方式:縮小公共 API、將函數轉換為方法、使用視圖的模式匹配、新增循環不變量以及確保測試覆蓋率而不會出現回歸。在更新 MoonBit 套件或重構 MoonBit API、模組或測試時使用。 來源:moonbitlang/moonbit-agent-guide。
開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/moonbitlang/moonbit-agent-guide --skill moonbit-refactoring 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/moonbitlang/moonbit-agent-guide