360 Secure SkillHub
360 安全技能中心

Format Tool

该 Skill 提供 format-tool 命令行工具,把原始输出整理为可读的表格和结构化显示,支持左对齐、右对齐、居中对齐,可自定义填充与分隔符,并兼容 JSON、CSV 及管道输入。实现位于 scripts/format.py,需 bash 与 python3 运行。

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

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add format-tool
Metadata
name
format-tool
description
Format and beautify text output for better readability. Use for cleaning up structured data and aligning columns.

Format - Text Formatting Utility

Format text with configurable alignment, padding, and column spacing. Transforms raw output into readable tables and structured displays.

Usage

format-tool [options] [file...]

Features

  • Column alignment (left, right, center)
  • Custom padding and separators
  • JSON and CSV input support
  • Pipe input compatible

Examples

format-tool --align center data.txt
echo "col1,col2,col3" | format-tool --csv --table