360 Secure SkillHub
360 安全技能中心

paratest-cap5-a-336477

该 Skill 接收 Markdown 表格文本,按行拆分并去除多余空白,计算各列最大宽度后补齐单元格,输出带标准分隔行的对齐表格;仅处理 Markdown 表格,不修改行列顺序或补充数据。

分类:效率
Mr_____Chen_
Mr_____Chen_
热度 0.00
最近更新 2026-08-19 00:40:27

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add Mr_____Chen_/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.