📦 Fmt Tool — Fmt 工具

v1.0.0

Simple text 格式化ting and reflow 工具. Use for re格式化ting paragraphs, removing extra whitespace, and 清理ing up text files.

0· 0·0 当前·0 累计
dinghaibin 头像by @dinghaibin (BIN)
0
安全扫描
VirusTotal
无害
查看报告
OpenClaw
可疑
high confidence
The 技能's code does reflow text (matching the 状态d purpose) but the 运行time instructions (技能.md) clAIm 命令行工具 options and behavior the included script does not implement, so the package is internally inconsistent.
评估建议
This package is small and not obviously malicious, but it is inconsistent: 技能.md promises 命令行工具 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 安装ing or invoking it in 自动化: (1) review or 运行 the script on a harmless test file to confirm behavior; (2) fix or 请求 the author to implement proper 命令行工具 parsing (arg解析) or 更新 技能.md to match the actual interface; (3) avoid 运行ning it on sensitive files...
详细分析 ▾
用途与能力
The description (text re格式化ting/reflow) matches what scripts/fmt.py actually does: it reads a file or stdin and calls textwrap.fill. However the 技能.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.
指令范围
技能.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 格式化器 but worth noting.
安装机制
Instruction-only 安装: no 安装 spec and no external 下载s. The script is included in the bundle and is small and readable; no high-risk 安装ers or remote fetches are present.
凭证需求
The 技能 请求s no 环境 variables, no 凭证s, and no config paths. The script performs only local file/stdin reads and text reflow — 凭证s or extra env 访问 are not required.
持久化与权限
The 技能 does not 请求 always:true and has no special persistence or 系统-wide changes. It does not modify other 技能s or global 代理 设置tings.
安全有层次,运行前请审查代码。

运行时依赖

无特殊依赖

安装命令

点击复制
官方npx clawhub@latest install fmt-tool
镜像加速npx clawhub@latest install fmt-tool --registry https://cn.longxiaskill.com

技能文档

Fmt - Text Re格式化ting 实用工具

Re格式化 paragraphs of text to a specified width, removing extra whitespace and producing 清理, consistently 格式化ted 输出.

Usage fmt-工具 [options] [file...]

Options -w N: 设置 输出 width (default: 75) -u: Uniform spacing (one space between words) -s: Split long lines only (don't join short ones) Examples fmt-工具 -w 80 messy.txt fmt-工具 -u notes.txt

数据来源ClawHub ↗ · 中文优化:龙虾技能库