Moonbit Orientationのロゴ

Moonbit Orientation

組織
moonbitlang
moonbit-orientation

Use this skill when the user needs help solving MoonBit language, code, compiler diagnostic, package, toolchain, backend, FFI, test, or "does MoonBit have X?" questions. Use it even when MoonBit is only implied by .mbt files, moon.mod/moon.pkg manifests (or legacy moon.mod.json/moon.pkg.json), moon commands, wasm/js/native targets, or mooncakes packages. This skill helps choose the right MoonBit source of truth, discover APIs with moon ide, avoid stale assumptions, and validate fixes.

概要

公開者moonbitlang
リポジトリskills
スキル名moonbit-orientation
スター
35
フォーク
5
同梱ファイル
10
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 10個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    moonbitlangがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Moonbit Orientation」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/moonbitlang/skills/tree/master/skills/moonbit-orientation
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/moonbitlang/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/moonbit-orientation .claude/skills/moonbit-orientation
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでMoonbit Orientationを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にMoonbit Orientationを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Moonbit Orientationは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

MoonBit Orientation

Validated 2026-10-28 against moon 0.1.20261023 / moonc v0.10.17+d971670cd by live toolchain probes. Key refreshed facts: manifests are now moon.mod/moon.pkg (legacy .json forms are hard-rejected — "is no longer supported. Run moon fmt to migrate"), llvm builds fail on stable with "toolchain is incomplete: missing prelude.mi", and diagnostics explain via both moon check --explain and the moon explain --diagnostic command.

Use this skill to solve MoonBit developer questions by identifying the missing context first. This is an orientation skill, not a bundled copy of all MoonBit documentation.

Default workflow

  1. Classify the user's situation and likely missing layer.
  2. Check the gotchas below and the freshness gate before choosing a path.
  3. Load the smallest relevant reference file.
  4. If code, APIs, package config, or diagnostics are involved, inspect local files or run the narrowest discovery command before answering.
  5. Give a practical answer: direct capability answer, MoonBit equivalent, exact verification command or link, and narrow validation command when code changed.
  6. If the final answer gives an exact API, import, error-code meaning, target rule, or docs claim, include the command or URL that verifies it. Do this even when the answer is short.

If the user asks for exact standard-library APIs, package APIs, or recently changed behavior, verify with moon ide doc, official API docs, package docs, or local project files instead of guessing.

Freshness gate

Some MoonBit facts move faster than model memory: new syntax, experimental features, package availability, package APIs, dependency versions, target support, and command flags. For these, do not turn memory into a final answer.

Use this pattern:

  1. Say the capability-level answer if it is stable.
  2. State that exact APIs, package names, or tool behavior may have changed.
  3. Choose the current source: local project files, installed moon commands, official docs, mooncakes package docs, or the registry.
  4. If the source cannot be checked in the current environment, say so and give the next check. Do not present an unchecked package, import, function, flag, or version as fact.

This is not a rule to verify every stable fact. It is a rule to admit when MoonBit ecosystem or feature knowledge may be stale, then check the latest source before making exact claims.

Keep freshness checks bounded. For package or API discovery, use one local toolchain query and, if needed, one registry or public-docs lookup. If those do not confirm the exact fact, stop and answer "not confirmed from the checked sources" with the next verification command. Do not run many near-duplicate web searches just to prove absence.

Keep discovery narrow. Once a source-of-truth command or document answers the user's requested level of detail, stop searching unless the user asked for examples, signatures, alternatives, or validation by execution. Do not spend extra context proving nearby facts that are not needed for the answer.

When recommending external material, provide a concrete URL from references/source-map.md. Do not assume the user has this repository checked out.

Gotchas

  • For standard-library and dependency APIs, default to moon ide doc in the user's project. It reflects the installed toolchain and dependencies better than memory or stale docs.
  • For ecosystem package availability, do not infer existence from a familiar technology name. Check mooncakes or moon add <candidate> in a disposable or user project before naming a dependency as available.
  • llvm is nightly-only. Stable backend guidance should use wasm, wasm-gc, js, or native; --target all excludes llvm. Verified on the stable toolchain (0.1.20261023): moon build --target llvm fails with "toolchain is incomplete: missing prelude.mi for target llvm" — the llvm core ships with the nightly channel.
  • Do not answer exact API names by translating from Rust, Go, JavaScript, or OCaml names. Discover the MoonBit API first.
  • Do not send users to "the docs" without a concrete URL or command.
  • Local moon.mod and moon.pkg beat generic advice for package names, imports, targets, and dependencies. Legacy moon.mod.json/moon.pkg.json are no longer accepted by current toolchains (verified 0.1.20261023: hard error "... is no longer supported. Run moon fmt to migrate") — treat that error as a migration gate, not an environment fault.
  • For E#### diagnostics, use moon check --explain (renders explanations inline), the dedicated moon explain --diagnostic <code|mnemonic> command (verified 0.1.20261023), or the exact online error page pattern before inventing a cause.

Verification contract

Treat MoonBit facts as three tiers:

  • Stable capability facts: language/toolchain shape covered by this skill, such as no class-inheritance-first model, typed errors, common stable targets, and llvm being nightly-only.
  • Verified exact facts: exact API names, signatures, package names, imports, target config, and local project conventions confirmed by moon ide, local files, generated interfaces, official docs, or mooncakes.
  • Unverified guesses: plausible API names or behavior inferred from another language, memory, or naming convention.

Never present unverified guesses as facts. If an exact fact is not verified, say what must be checked and provide the command or URL. Prefer "I can answer the capability, but the exact API needs moon ide doc '*json*'" over a plausible module or function name.

If a verification command fails, returns no result, or was only checked outside the user's project, do not cite it as if it proved the exact API. Say what the failure means and give the next source, for example package installation, moon tree, mooncakes package docs, or a local dependency file.

If you did verify an exact fact, say so compactly: "Verified with moon ide doc '@json'" or "Source: ". Do not omit the verification source after naming exact imports, functions, or error meanings.

Do not cite this skill's own reference files as the final verification source for users. The final answer should cite an external URL, a local project file, or a command result. The skill is guidance for the agent, not user-facing evidence.

This rule still applies when a reference file contained the answer. Use the reference file to route the work, then cite the public URL, command, or local project file named by that reference.

Avoid "likely" guesses for exact API behavior. For unknown calls such as Json.parse or result.unwrap(), say "verify whether this returns typed errors or a result-like value" instead of guessing which one it uses.

Situation routing

  • Learning MoonBit or asking where to start: read references/question-routing.md and references/source-map.md.
  • Asking "Does MoonBit have X?", API availability, or quick capability questions: read references/answer-shapes.md first. Load references/capabilities-faq.md only when the quick shape does not cover the concept or the user asks for a broader comparison. If exact APIs are involved, use references/lookup-recipes.md.
  • Coming from Go, Rust, TypeScript, OCaml, or another language: read references/mental-models.md.
  • Writing, reviewing, or refactoring MoonBit code: read references/idioms.md.
  • Debugging compiler output, moon output, package errors, backend errors, or diagnostics with an E#### code: read references/diagnostics-playbook.md and the relevant recipe in references/lookup-recipes.md.
  • Setting up modules, packages, workspaces, tests, docs, coverage, or build targets: read references/toolchain-map.md.
  • Choosing between official docs, mooncakes API docs, the Tour, examples, error code docs, or local project inspection: read references/source-map.md.

For tasks that span multiple areas, read the most specific reference first, then one secondary reference if needed.

Missing-layer checklist

Before answering, decide whether the unknown is most likely:

  • language semantics
  • MoonBit idiom or style
  • toolchain behavior
  • package, dependency, or standard-library API
  • backend limitation or target-specific behavior
  • official docs, examples, or error-code reference
  • project-local convention

State uncertainty briefly when it matters, but do not stop at uncertainty if a recipe can resolve it. For concrete code work, prefer a narrow validation command such as moon check, moon test, or moon build with the relevant --target.

Boundaries

  • Do not pretend this skill contains the full language specification.
  • Do not provide exact standard-library signatures unless they were verified.
  • Do not use this skill for maintaining the moonbit-docs repository itself; use the repo maintainer skill for docs, translation, Sphinx, or example maintenance workflows.
  • Keep answers practical: show the next source to check, the likely fix, and the narrow command that would validate it.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Moonbit Orientation」では何ができますか?

Use this skill when the user needs help solving MoonBit language, code, compiler diagnostic, package, toolchain, backend, FFI, test, or "does MoonBit have X?" questions. Use it even when MoonBit is only implied by .mbt files, moon.mod/moon.pkg manifests (or legacy moon.mod.json/moon.pkg.json), moon commands, wasm/js/native targets, or mooncakes packages. This skill helps choose the right MoonBit source of truth, discover APIs with moon ide, avoid stale assumptions, and validate fixes.

TypingMindでMoonbit Orientationを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Moonbit Orientationはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにMoonbit Orientationをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/moonbitlang/skills/tree/master/skills/moonbit-orientationを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Moonbit Orientationを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Moonbit Orientationで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもMoonbit Orientationを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Moonbit Orientation」は無料ですか?

moonbitlangがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇