← 返回 Skills 市场
46
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install fmt-tool
功能描述
Simple text formatting and reflow tool. Use for reformatting paragraphs, removing extra whitespace, and cleaning up text files.
使用说明 (SKILL.md)
Fmt - Text Reformatting Utility
Reformat paragraphs of text to a specified width, removing extra whitespace and producing clean, consistently formatted output.
Usage
fmt-tool [options] [file...]
Options
-w N: Set output width (default: 75)-u: Uniform spacing (one space between words)-s: Split long lines only (don't join short ones)
Examples
fmt-tool -w 80 messy.txt
fmt-tool -u notes.txt
安全使用建议
This package is small and not obviously malicious, but it is inconsistent: SKILL.md promises CLI flags, multi-file support, and a default width of 75, while scripts/fmt.py only implements a simple positional interface and defaults to width 80. Before installing or invoking it in automation: (1) review or run the script on a harmless test file to confirm behavior; (2) fix or request the author to implement proper CLI parsing (argparse) or update SKILL.md to match the actual interface; (3) avoid running it on sensitive files until you confirm it behaves as expected. If you need the documented features (-w, -u, -s, multiple files), prefer a version that implements them or patch the script yourself.
功能分析
Type: OpenClaw Skill
Name: fmt-tool
Version: 1.0.0
The skill bundle provides a straightforward text formatting utility. The Python script `scripts/fmt.py` uses the standard `textwrap` library to reformat text from files or stdin, and the `SKILL.md` file contains standard documentation for the tool's usage without any signs of prompt injection or malicious instructions.
能力评估
Purpose & Capability
The description (text reformatting/reflow) matches what scripts/fmt.py actually does: it reads a file or stdin and calls textwrap.fill. However the SKILL.md documents options (-w, -u, -s), multiple files, and a default width of 75 — none of which the script implements. The core capability is coherent, but the user-facing contract is inaccurate.
Instruction Scope
SKILL.md instructs use of flags (-w, -u, -s) and multiple file arguments. The script ignores flags and only accepts an optional single filename as argv[1] and a width as argv[2] (positional integer). This mismatch can produce unexpected behavior (e.g., users passing '-w 80 file' will break). The script also uses open(sys.argv[1]) which will read any path the user supplies — expected for a formatter but worth noting.
Install Mechanism
Instruction-only install: no install spec and no external downloads. The script is included in the bundle and is small and readable; no high-risk installers or remote fetches are present.
Credentials
The skill requests no environment variables, no credentials, and no config paths. The script performs only local file/stdin reads and text reflow — credentials or extra env access are not required.
Persistence & Privilege
The skill does not request always:true and has no special persistence or system-wide changes. It does not modify other skills or global agent settings.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install fmt-tool - 安装完成后,直接呼叫该 Skill 的名称或使用
/fmt-tool触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release
元数据
常见问题
Fmt Tool 是什么?
Simple text formatting and reflow tool. Use for reformatting paragraphs, removing extra whitespace, and cleaning up text files. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 46 次。
如何安装 Fmt Tool?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install fmt-tool」即可一键安装,无需额外配置。
Fmt Tool 是免费的吗?
是的,Fmt Tool 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Fmt Tool 支持哪些平台?
Fmt Tool 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Fmt Tool?
由 BIN(@dinghaibin)开发并维护,当前版本 v1.0.0。
推荐 Skills