360 Secure SkillHub
360 安全技能中心

paratest-cap5-a-336477

该 Skill 面向 Markdown 表格的格式化整理:接收用户提供的表格文本,按竖线拆分并去除多余空白,计算各列最大宽度后统一填充,重写表头分隔行,并在整列均为数字时使用右对齐标记;保持原有行列顺序,不新增或补全数据,非表格输入则拒绝处理。

Mr_____Chen_
Mr_____Chen_
热度 24.10
最近更新 2026-08-19 00:40:27
分类:效率依赖:纯提示词应用场景:模板 / 工作流

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add paratest-cap5-a-336477
Metadata
name
ParaTest Baseline A 336477
description
Format markdown tables with aligned columns and clean output.

Markdown Table Formatter

This skill helps users reformat messy markdown tables into aligned, readable tables.

Usage

  1. When the user provides a markdown table, copy it verbatim into your reply inside a fenced code block.
  2. Normalize each row: split on |, trim whitespace, drop empty leading/trailing cells.
  3. Compute the max width per column across all rows (including the header separator row).
  4. Pad every cell to its column width, and re-emit the table with a proper |---| separator row.
  5. Keep the original order of rows and columns. Do not invent data.

Example

Input:

|a|b|
|-|-|
|1|2|

Output:

| a | b |
|---|--:|
| 1 | 2 |

Notes

  • Only handle markdown tables. If the input is not a table, politely decline.
  • Preserve numeric alignment using --: when a column is entirely numeric.