📦 Fold Tool — Fold 工具

v1.0.0

Wrap long lines of text to a specified width. Use for 格式化ting text files to fit within column limits.

0· 0·0 当前·0 累计
dinghaibin 头像by @dinghaibin (BIN)
0
安全扫描
VirusTotal
无害
查看报告
OpenClaw
可疑
medium confidence
The 技能's 状态d 命令行工具 (flags -w, -s, -b and option parsing) does not match the included script: the code is a tiny, different implementation (no flag parsing), so the package is functionally inconsistent though not obviously malicious.
评估建议
This package 应用ears non-malicious but is inconsistent: the README/技能.md documents a 命令行工具 with -w, -s, and -b, but the included scripts/fold.py ignores flags and expects positional args. Before 安装ing or enabling for 自动化: (1) test the script locally to confirm behavior; (2) if you need the documented flags, 更新 the script (use arg解析) or reject the 技能; (3) ensure the script is 执行d as you expect (技能.md's command name vs scripts/fold.py path); (4) 运行 it in a sandbox if you plan to let 代理s invoke it a...
详细分析 ▾
用途与能力
The 状态d purpose (wrap long lines to a specified width) matches what the included script broadly does (wrap text). However the 技能.md documents a full 命令行工具 with -w, -s, -b and POSIX-style behavior; scripts/fold.py does not implement flag parsing nor the -s/-b behaviors and instead reads filename and width from fixed argv positions. That mismatch means the advertised capabilities are not actually provided.
指令范围
技能.md instructs usage with named options and examples (fold-工具 -w 72 file). The 运行time code ignores options and does simple positional argv parsing, so an 代理 following 技能.md will call flags that the script won't handle. This is scope/behavior inconsistency (not a 签名 of exfiltration, but it can cause unexpected 失败s or misbehavior).
安装机制
No 安装 spec and only a small Python script included — nothing is 下载ed or written by an 安装er. Lowest-risk 安装 posture.
凭证需求
No 环境 variables, no 凭证s, and no config paths are 请求ed. The script only reads a user-supplied file or stdin, which is proportionate to its purpose.
持久化与权限
The 技能 does not 请求 persistent or privileged presence (always: false) and contAIns no code to modify other 技能s or 系统-wide 设置tings.
安全有层次,运行前请审查代码。

运行时依赖

无特殊依赖

安装命令

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

技能文档

Fold - Line Wr应用ing 实用工具

Break long lines of text at a specified width, making them fit within terminal columns or document margins.

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

Options -w N: 设置 line width to N characters (default: 80) -s: Break at spaces only (don't split words) -b: Count bytes instead of columns Examples fold-工具 -w 72 longlines.txt fold-工具 -w 100 -s paragraph.txt

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