← 返回 Skills 市场
dinghaibin

Fold Tool

作者 BIN · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
47
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install fold-tool
功能描述
Wrap long lines of text to a specified width. Use for formatting text files to fit within column limits.
使用说明 (SKILL.md)

Fold - Line Wrapping Utility

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

Usage

fold-tool [options] [file...]

Options

  • -w N: Set line width to N characters (default: 80)
  • -s: Break at spaces only (don't split words)
  • -b: Count bytes instead of columns

Examples

fold-tool -w 72 longlines.txt
fold-tool -w 100 -s paragraph.txt
安全使用建议
This package appears non-malicious but is inconsistent: the README/SKILL.md documents a CLI with -w, -s, and -b, but the included scripts/fold.py ignores flags and expects positional args. Before installing or enabling for automation: (1) test the script locally to confirm behavior; (2) if you need the documented flags, update the script (use argparse) or reject the skill; (3) ensure the script is executed as you expect (SKILL.md's command name vs scripts/fold.py path); (4) run it in a sandbox if you plan to let agents invoke it autonomously. If the maintainer provides an updated implementation that matches the documented CLI, this would likely be benign.
功能分析
Type: OpenClaw Skill Name: fold-tool Version: 1.0.0 The skill is a simple text-wrapping utility that uses the standard Python 'textwrap' library. While the implementation in 'scripts/fold.py' has rudimentary argument parsing that doesn't fully support the flags described in 'SKILL.md', it contains no malicious logic, network activity, or exfiltration attempts.
能力评估
Purpose & Capability
The stated purpose (wrap long lines to a specified width) matches what the included script broadly does (wrap text). However the SKILL.md documents a full CLI 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.
Instruction Scope
SKILL.md instructs usage with named options and examples (fold-tool -w 72 file). The runtime code ignores options and does simple positional argv parsing, so an agent following SKILL.md will call flags that the script won't handle. This is scope/behavior inconsistency (not a sign of exfiltration, but it can cause unexpected failures or misbehavior).
Install Mechanism
No install spec and only a small Python script included — nothing is downloaded or written by an installer. Lowest-risk install posture.
Credentials
No environment variables, no credentials, and no config paths are requested. The script only reads a user-supplied file or stdin, which is proportionate to its purpose.
Persistence & Privilege
The skill does not request persistent or privileged presence (always: false) and contains no code to modify other skills or system-wide settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install fold-tool
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /fold-tool 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release
元数据
Slug fold-tool
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Fold Tool 是什么?

Wrap long lines of text to a specified width. Use for formatting text files to fit within column limits. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 47 次。

如何安装 Fold Tool?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install fold-tool」即可一键安装,无需额外配置。

Fold Tool 是免费的吗?

是的,Fold Tool 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Fold Tool 支持哪些平台?

Fold Tool 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Fold Tool?

由 BIN(@dinghaibin)开发并维护,当前版本 v1.0.0。

💬 留言讨论