360 Secure SkillHub
360 安全技能中心

Fold Tool

该 Skill 提供 fold-tool 命令,把文本中的长行按指定宽度折行(默认 80 字符),支持仅按空格断行(-s)和按字节计数(-b),用于让文本适配终端列宽或文档边距。文件仅有 SKILL.md 与 scripts/fold.py,未给出命令入口或安装方式。

dinghaibin
dinghaibin
热度 31.51
最近更新 2026-05-11 17:46:25
分类:效率依赖:代码执行 / 读写文件应用场景:文件转换 / 自动化脚本

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add fold-tool
Metadata
name
fold-tool
description
Wrap long lines of text to a specified width. Use for formatting text files to fit within column limits.

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