← All skills

toml-cli

Validate and format TOML files using the bobzhang/toml_cli tool. Use when the user asks to check whether a TOML file is valid, normalize/format a TOML file, or debug TOML syntax errors.

$ files
SKILL.md
SKILL.md

TOML CLI

bobzhang/toml_cli is a prebuilt WebAssembly CLI on mooncakes.io that parses, validates, and formats TOML files. It requires the MoonBit toolchain (moon) but no installation step — moon runwasm fetches and caches the binary on first use.

Commands

Validate a TOML file (prints <file>: OK or a parse error):

moon runwasm bobzhang/toml_cli -- check path/to/file.toml

Format (parse and print normalized TOML to stdout):

moon runwasm bobzhang/toml_cli -- format path/to/file.toml

Show help:

moon runwasm bobzhang/toml_cli -- --help

Behavior

  • Exit code 0: success.
  • Exit code 1: the file could not be read or is not valid TOML; a human-readable error with position information is printed to stdout.
  • Exit code 2: usage error (unknown subcommand or missing file argument).
  • format prints the normalized document; it never rewrites the input file. To format in place, redirect stdout to a temporary file and move it over the original after checking the exit code.

Notes

  • Pin a version with moon runwasm bobzhang/toml_cli@<version> -- ... for reproducible behavior.
  • When working inside this repository, run the local build instead so changes are exercised: moon runwasm ./toml_cli -- check file.toml from the workspace root.

Skill
Author
Name
bobzhang/toml-cli
Version
0.1.0
Published
3 months ago
Versions
Download
Download ZIP

SHA-256

fcbe4c23ebababb2d3e7034ea390e743dbff23ea4521f88fa3bbff8bcfaa60c4

Powered by MoonBit

Site sourceReport issueModulesSkillsBuild queueStatistics

© 2026 mooncakes.io