← Back to Skills Marketplace
dinghaibin

Fmt Tool

by BIN · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
46
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install fmt-tool
Description
Simple text formatting and reflow tool. Use for reformatting paragraphs, removing extra whitespace, and cleaning up text files.
README (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
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install fmt-tool
  3. After installation, invoke the skill by name or use /fmt-tool
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release
Metadata
Slug fmt-tool
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Fmt Tool?

Simple text formatting and reflow tool. Use for reformatting paragraphs, removing extra whitespace, and cleaning up text files. It is an AI Agent Skill for Claude Code / OpenClaw, with 46 downloads so far.

How do I install Fmt Tool?

Run "/install fmt-tool" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Fmt Tool free?

Yes, Fmt Tool is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Fmt Tool support?

Fmt Tool is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Fmt Tool?

It is built and maintained by BIN (@dinghaibin); the current version is v1.0.0.

💬 Comments