/install flashformat
FlashFormat Local Converters
Overview
Run local format conversion directly from Python scripts under skills/flashformat-local-converters/scripts/.
Avoid calling /api/v2/*; execute conversion in local shell, CI, or offline pipelines.
Quick Start
- Install runtime dependency:
python -m pip install PyYAML - Run any converter script with one input channel:
--inputor--input-fileorstdin - Choose output mode:
plain text (default) or
--json - Optionally write result to file:
--output-file \x3Cpath>
Script Map
scripts/yaml_to_json.py: Convert YAML to JSON, support--indentand--compactscripts/json_to_yaml.py: Convert JSON to YAML, support--sort-keysand--compactscripts/markdown_to_text.py: Strip Markdown syntax into readable textscripts/json_minify.py: Minify JSON to one-line payloadscripts/yaml_auto_fix.py: Apply conservative YAML whitespace/indent fixes with validation
Unified CLI Contract
- Input priority:
--input>--input-file>stdin - Output target:
stdoutby default, or--output-file - JSON mode payloads:
{"ok": true, "tool": "...", "output": "..."}{"ok": false, "tool": "...", "error": "..."} - Plain mode failures write error text to
stderrand return non-zero exit code
Usage Examples
- YAML to JSON:
python skills/flashformat-local-converters/scripts/yaml_to_json.py --input-file in.yaml --output-file out.json - JSON to YAML (sorted keys):
python skills/flashformat-local-converters/scripts/json_to_yaml.py --input '{"b":2,"a":1}' --sort-keys - Markdown to text (stdin pipeline):
cat draft.md | python skills/flashformat-local-converters/scripts/markdown_to_text.py - JSON minify with structured output:
python skills/flashformat-local-converters/scripts/json_minify.py --input-file data.json --json - YAML auto-fix:
python skills/flashformat-local-converters/scripts/yaml_auto_fix.py --input-file broken.yaml --indent-step 2 --fix-tabs --fix-odd-indent
References
Read references/io-contracts.md when exact options, error messages, and backend logic mapping are needed.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install flashformat - After installation, invoke the skill by name or use
/flashformat - Provide required inputs per the skill's parameter spec and get structured output
What is flashformat?
Provide five repository-local format conversion scripts (yaml-to-json, json-to-yaml, markdown-to-text, json-minify, yaml-auto-fix) for offline CLI and pipeli... It is an AI Agent Skill for Claude Code / OpenClaw, with 343 downloads so far.
How do I install flashformat?
Run "/install flashformat" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is flashformat free?
Yes, flashformat is completely free (open-source). You can download, install and use it at no cost.
Which platforms does flashformat support?
flashformat is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created flashformat?
It is built and maintained by GreatHato (@phantom5125); the current version is v1.0.0.