← 返回 Skills 市场
mirni

Formatgate

作者 mirni · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
98
总下载
0
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install formatgate
功能描述
Convert between JSON, YAML, and TOML formats. All 6 conversion directions supported. Round-trip safe. Useful for agents that receive data in one format and n...
使用说明 (SKILL.md)

FormatGate

Convert data between JSON, YAML, and TOML.

Start the server

uvicorn formatgate.app:app --port 8008

Convert JSON to YAML

curl -s -X POST http://localhost:8008/v1/convert \
  -H "Content-Type: application/json" \
  -d '{"content": "{\"name\": \"Alice\", \"age\": 30}", "input_format": "json", "output_format": "yaml"}' | jq -r '.result'

Convert YAML to JSON

echo "name: Alice" | curl -s -X POST http://localhost:8008/v1/convert \
  -H "Content-Type: application/json" \
  -d "{\"content\": $(cat - | jq -Rs), \"input_format\": \"yaml\", \"output_format\": \"json\"}" | jq -r '.result'

Returns success (true/false), result (converted content), and error (if conversion failed — e.g., invalid input).

安全使用建议
This skill appears to do exactly what it says: a small local HTTP service for converting JSON/YAML/TOML. Before installing, note: (1) it will pip-install dependencies from PyPI — audit or pin versions if you require stricter supply-chain controls; (2) it uses tomllib (Python 3.11+) for TOML parsing, so ensure your python version is compatible; (3) the SKILL.md starts a web server on port 8008 — avoid binding to 0.0.0.0 on untrusted networks to prevent exposure; and (4) while behavior is coherent, always vet third-party packages (fastapi/uvicorn/pyyaml) for the environment where you'll run this service.
功能分析
Type: OpenClaw Skill Name: formatgate Version: 1.0.0 The 'formatgate' skill is a utility for converting data between JSON, YAML, and TOML formats via a FastAPI service. The implementation in `formatgate/app.py` uses standard libraries and safe practices, such as `yaml.safe_load`, to handle data parsing. There are no signs of malicious behavior, data exfiltration, or prompt injection vulnerabilities.
能力评估
Purpose & Capability
Name/description (format conversion) align with the included code and SKILL.md. Required binary (python) and pip packages (fastapi, uvicorn, pydantic, pyyaml) are appropriate for a small local web service that performs parsing/serialization.
Instruction Scope
SKILL.md only instructs running a local FastAPI server and calling POST /v1/convert with content/input/output fields. It does not ask the agent to read arbitrary files, environment variables, or send data to external endpoints.
Install Mechanism
Install spec uses PyPI packages via a pip-style 'uv' entry (fastapi, uvicorn, pydantic, pyyaml). This is a common and proportionate mechanism for a Python web service. No downloads from untrusted URLs or archive extraction were used.
Credentials
The skill declares no required environment variables, credentials, or config paths. The code does not access secrets or other environment data.
Persistence & Privilege
The skill does not request always:true or modify other skills' configs. It runs as a normal user-started local service; autonomous invocation is allowed by platform defaults but not granted extra privileges here.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install formatgate
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /formatgate 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Updated description to highlight all 6 conversion directions and round-trip safety - Improved metadata structure; added emoji and clarified installation details - Simplified and clarified usage instructions with focused conversion examples - Added concise curl commands for both JSON→YAML and YAML→JSON scenarios - Removed installation and format tables; streamlined for easier understanding
v0.1.1
- Added metadata section specifying required binaries and installation instructions for openclaw. - Updated version to 0.1.1. - Clarified and improved installation instructions (including dependency on pydantic). - Simplified usage section and updated server run and API endpoint instructions. - Slightly reworded supported formats and conversion directions for clarity.
v0.1.0
Initial release of FormatGate: a utility API for converting between JSON, YAML, and TOML. - Converts content between JSON, YAML, and TOML (all 6 directions supported). - Provides both hosted API and standalone server usage options. - Simple request/response schema with clear error handling. - Supports easy content interchange for agents and applications.
元数据
Slug formatgate
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 3
常见问题

Formatgate 是什么?

Convert between JSON, YAML, and TOML formats. All 6 conversion directions supported. Round-trip safe. Useful for agents that receive data in one format and n... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 98 次。

如何安装 Formatgate?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install formatgate」即可一键安装,无需额外配置。

Formatgate 是免费的吗?

是的,Formatgate 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Formatgate 支持哪些平台?

Formatgate 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Formatgate?

由 mirni(@mirni)开发并维护,当前版本 v1.0.0。

💬 留言讨论