ascii-table-renderer
When to use this skill
CRITICAL TRIGGER RULE
- Use this skill ONLY when the user explicitly mentions the exact skill name:
ascii-table-renderer.
Trigger phrases include:
- "ascii-table-renderer"
- "use ascii-table-renderer"
- "用 ascii-table-renderer 把列表打印成表格"
- "使用 ascii-table-renderer 生成 ASCII 表格(对齐/列宽)"
Boundary
- Do not fetch data (DB/API). Only render and format output.
- Default borders are ASCII-only:
+ - |. - Out of scope: merged cells, multi-row headers, complex spanning layouts.
How to use this skill
Inputs
- headers (required)
- rows (required)
- maxWidth (default 80)
- maxColWidth (default 20)
- borderStyle (light | minimal, default light)
- overflow (ellipsis | wrap, default ellipsis)
- align (left | right | center, default left)
Outputs (required)
- tableCompact (log-friendly)
- tableReadable (interactive-friendly)
- rules (width/truncation/null/alignment rules)
Steps
- Compute per-column widths:
min(maxColWidth, max(contentWidth)) - Handle overflow:
- ellipsis: use
...consistently - wrap: wrap within column width while keeping row alignment
- ellipsis: use
- Output two variants:
- compact: minimal or fewer separators
- readable: clearer borders
Script
scripts/render_table.py: render tables from JSON stdin (compact/readable)
Inline Example
Input: headers=["Name", "Role", "Status"], rows=[["Alice", "Engineer", "Active"], ["Bob", "Designer", "Away"]]
tableCompact:
Name Role Status
Alice Engineer Active
Bob Designer Away
tableReadable:
+-------+----------+--------+
| Name | Role | Status |
+-------+----------+--------+
| Alice | Engineer | Active |
| Bob | Designer | Away |
+-------+----------+--------+
Examples
examples/basic.md
Quality checklist
- Columns align consistently; each line does not exceed maxWidth
- Null values are rendered as
- - Copy/paste safe (no trailing spaces)
Keywords
English: ascii-table-renderer, ascii table, align, columns, rows, truncate, wrap, terminal, log 中文: ascii-table-renderer, ASCII 表格, 对齐, 列宽, 截断, 换行, 终端, 日志, 工单
More from partme-ai/full-stack-skills
vite
Guidance for Vite using the official Guide, Config Reference, and Plugins pages. Use when the user needs Vite setup, configuration, or plugin selection details.
68element-plus-vue3
Provides comprehensive guidance for Element Plus Vue 3 component library including installation, components, themes, internationalization, and API reference. Use when the user asks about Element Plus for Vue 3, needs to build Vue 3 applications with Element Plus, or customize component styles.
63vue3
Guidance for Vue 3 using the official guide and API reference. Use when the user needs Vue 3 concepts, patterns, or API details to build components, apps, and tooling.
54electron
Build cross-platform desktop applications with Electron, covering main/renderer process architecture, IPC communication, BrowserWindow management, menus, tray icons, packaging, and security best practices. Use when the user asks about Electron, needs to create desktop applications, implement Electron features, or build cross-platform desktop apps.
51uniapp-project
Provides per-component and per-API examples with cross-platform compatibility details for uni-app, covering built-in components, uni-ui components, and APIs (network, storage, device, UI, navigation, media). Use when the user needs official uni-app components or APIs, wants per-component examples with doc links, or needs platform compatibility checks.
40ascii-cli-logo-banner
Entry point for ASCII CLI banners that routes to the Python built-in font skill or figlet.js/FIGfont skill. Use when the user wants a startup banner, ASCII logo, terminal welcome screen, or CLI branding for a service.
38