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.
python -m pip install PyYAML
--input or --input-file or stdin
plain text (default) or --json
--output-file
scripts/yaml_to_json.py: Convert YAML to JSON, support --indent and --compactscripts/json_to_yaml.py: Convert JSON to YAML, support --sort-keys and --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--input > --input-file > stdinstdout by default, or --output-file {"ok": true, "tool": "...", "output": "..."}
{"ok": false, "tool": "...", "error": "..."}
stderr and return non-zero exit code python skills/flashformat-local-converters/scripts/yaml_to_json.py --input-file in.yaml --output-file out.json
python skills/flashformat-local-converters/scripts/json_to_yaml.py --input '{"b":2,"a":1}' --sort-keys
cat draft.md | python skills/flashformat-local-converters/scripts/markdown_to_text.py
python skills/flashformat-local-converters/scripts/json_minify.py --input-file data.json --json
python skills/flashformat-local-converters/scripts/yaml_auto_fix.py --input-file broken.yaml --indent-step 2 --fix-tabs --fix-odd-indent
Read references/io-contracts.md when exact options, error messages, and backend logic mapping are needed.
共 1 个版本