← スキル一覧に戻る

mbt-wasip1-tools
by moonbit-community
WASI Preview 1 implementation for moonbit
⭐ 11🍴 0📅 2026年1月22日
SKILL.md
name: mbt-wasip1-tools description: Build small MoonBit WASIp1 CLI tools using the peter-jerry-ye/wasi library, focused on simple read/write tasks (echo, cat, wc, simple file ops). Use when creating or updating CLI examples, scripts, or skills for this repo.
MoonBit WASIp1 Tools
Use the examples
- Copy a project from
assets/and modify it. - Each example is a complete MoonBit project with a README.
- Build with
moon build -C <example-dir>and run withwasmtime run --dir host::guest <wasm>.
Path resolution (WASIp1)
- There is no cwd. All paths resolve against preopened directories.
- Resolution uses longest-prefix matching on preopen names.
- Relative paths must match a preopen prefix (for example,
foo/barrequires a preopen namedfoo). - Absolute paths only work when a preopen name starts with
/(for example,--dir /host::/). - If no prefix matches, fail immediately. Do not fall back to trial-and-error.
Unified stdio
@wasi/stdio.stdinimplements@sync_io.Readerand@io.Reader.@wasi/stdio.stdoutand@wasi/stdio.stderrimplement@sync_io.Writerand@io.Writer.
References
references/api.mdsummarizes the core I/O and fs APIs.
スコア
総合スコア
60/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です