Fmt Text Reformatting Tool for Openclaw

A powerful text reflowing utility designed to clean up messy whitespace and standardize paragraph widths in text files.

dinghaibin
v1.0.0
Apr 29, 2026
0
731
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install fmt-tool

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install fmt-tool using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Fmt Text Reformatting Tool?

The Fmt tool is an essential utility within the Openclaw Skills ecosystem, designed to bring structure and consistency to unformatted text data. It streamlines the process of reformatting paragraphs to a specific line width, ensuring that your documentation, notes, and code comments remain readable and professionally presented.

By utilizing this skill, developers can automate the removal of erratic whitespace and consolidate fragmented lines into a cohesive block. Whether you are prepping data for a report or cleaning up legacy text files, this tool provides a reliable way to maintain a uniform look across all your text-based assets using Openclaw Skills standards.

Fmt Text Reformatting Tool Use Cases

  • Standardizing documentation line lengths to 80 characters for better readability.
  • Cleaning up messy text files that contain irregular line breaks and extra spaces.
  • Pre-processing text data before feeding it into other AI pipelines or repositories.
  • Reflowing long single-line paragraphs into manageable, multi-line text blocks.

How Fmt Text Reformatting Tool Works

  1. The tool ingests raw text from a file or standard input.
  2. It analyzes paragraph structures based on line breaks and whitespace patterns.
  3. It applies specified flags to adjust the maximum line width or spacing rules.
  4. The formatted output is generated, either replacing the source or outputting to a new stream.

Fmt Text Reformatting Tool Setup

To integrate this utility into your environment, ensure you have the Openclaw Skills runner installed and execute the following commands:

# Install the fmt-tool skill
openclaw install fmt-tool

# Basic usage to reformat a file to 80 characters
fmt-tool -w 80 yourfile.txt

Fmt Text Reformatting Tool Data Schema & Taxonomy

The Fmt tool operates with a simple yet effective data processing model:

Attribute Description
Input Source Accepts plain text files (.txt, .md, .log) or STDIN.
Output Format Returns a plain text stream with standardized line lengths.
Config Options Supports width (N), uniform spacing (u), and split-only (s) modes.
Metadata Retains original paragraph breaks while normalizing internal whitespace.

Fmt Text Reformatting Tool Advanced Features

  • Uniform Spacing Mode: Ensures exactly one space between words, regardless of the input spacing.
  • Split-Only Logic: Prevents the tool from joining short lines, useful for maintaining manual breaks while still capping maximum width.
  • Bulk Processing: Can handle multiple file inputs in a single command for massive cleanup tasks.
  • Seamless Integration: Designed to work as a pipe-compatible utility within wider Openclaw Skills automated workflows.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*