360 Secure SkillHub
360 安全技能中心

Fmt Tool

提供命令行文本格式化工具,可按宽度重排段落、统一空格并清理文本文件;SKILL.md 给出 -w、-u、-s 选项与示例,配套 scripts/fmt.py,依赖 bash 和 python3 运行环境。

分类:效率
dinghaibin
dinghaibin
热度 25.60
最近更新 2026-05-11 17:46:25

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add dinghaibin/fmt-tool
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
fmt-tool
description
Simple text formatting and reflow tool. Use for reformatting paragraphs, removing extra whitespace, and cleaning up text files.

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