360 Secure SkillHub
360 安全技能中心

Fmt Tool

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

dinghaibin
dinghaibin
热度 31.96
最近更新 2026-05-11 17:46:25
分类:效率依赖:代码执行 / 读写文件应用场景:数据处理 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add 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