Format tabular data as ASCII box tables for Telegram. Stdin-only input eliminates shell injection risks. Handles smart column sizing, text wrapping, and proper padding for monospace display.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install telegram-ascii-table或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install telegram-ascii-table⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/telegram-ascii-table/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: telegram-ascii-table description: Format tabular data as ASCII box tables for Telegram. Stdin-only input eliminates shell injection risks. Handles smart column sizing, text wrapping, and proper padding for monospace display. ---
Format tabular data as ASCII box-drawing tables that render correctly in Telegram code blocks.
{baseDir}/scripts/ascii-table.py <<'EOF'
Name|Value|Status
Server|web-01|Online
Database|db-01|Syncing
EOF
Wrap output in triple backticks when sending to Telegram.
# Desktop mode (default): Unicode box chars, 58 char width
ascii-table <<'EOF'
Server|Status|Uptime
web-01|Online|14d 3h
db-01|Syncing|2d 12h
EOF
# Mobile mode: ASCII chars, 48 char width
ascii-table --mobile <<'EOF'
Task|Status
Deploy|Done
Test|Pending
EOF
# Custom width
ascii-table --width 80 <<'EOF'
Column|Another Column
data|more data
EOF
cat data.txt | ascii-table
echo -e 'Name|Value\nRow1|Data1' | ascii-table
some-command | ascii-table --mobile
┌───────────┬───────┬────────────────────────────────────────────┐
│ Flag │ Short │ Description │
├───────────┼───────┼────────────────────────────────────────────┤
│ --desktop │ -d │ Unicode box chars, 58 char width (DEFAULT) │
├───────────┼───────┼────────────────────────────────────────────┤
│ --mobile │ -m │ ASCII chars, 48 char width │
├───────────┼───────┼────────────────────────────────────────────┤
│ --width N │ -w N │ Override default width │
└───────────┴───────┴────────────────────────────────────────────┘
┌───────────────┬──────────────────────┬─────────────────────┐
│ Aspect │ Desktop (default) │ Mobile │
├───────────────┼──────────────────────┼─────────────────────┤
│ Characters │ Box drawing │ ASCII (+ - chars) │
├───────────────┼──────────────────────┼─────────────────────┤
│ Default width │ 58 chars │ 48 chars │
├───────────────┼──────────────────────┼─────────────────────┤
│ Rendering │ Clean on desktop │ Reliable everywhere │
├───────────────┼──────────────────────┼─────────────────────┤
│ Use when │ Recipient on desktop │ Recipient on mobile │
└───────────────┴──────────────────────┴─────────────────────┘
Unicode box-drawing characters render at inconsistent widths on mobile Telegram. Use --mobile for mobile recipients.
|┌──────────┬──────────┬──────────┐
│ Server │ Status │ Uptime │
├──────────┼──────────┼──────────┤
│ web-01 │ Online │ 14d 3h │
├──────────┼──────────┼──────────┤
│ db-01 │ Syncing │ 2d 12h │
└──────────┴──────────┴──────────┘
+------------+----------+----------+
| Server | Status | Uptime |
+------------+----------+----------+
| web-01 | Online | 14d 3h |
+------------+----------+----------+
| db-01 | Syncing | 2d 12h |
+------------+----------+----------+
┌─────────┬────────┬──────────────────────────────────────┐
│ Task │ Status │ Notes │
├─────────┼────────┼──────────────────────────────────────┤
│ Deploy │ Done │ Rolled out to prod successfully │
│ API │ │ │
├─────────┼────────┼──────────────────────────────────────┤
│ Fix bug │ WIP │ Waiting on upstream OAuth fix │
└─────────┴────────┴──────────────────────────────────────┘
This script intentionally does not accept row data as CLI arguments.
Shell argument parsing happens before any script runs. Characters like ` `, $, and ! in double-quoted args get executed or expanded by the shell — not by the script receiving them. For example, whoami ` would execute and substitute its output before the script ever sees it.
By requiring stdin input, user data bypasses shell parsing entirely. A quoted heredoc (<<'EOF') passes everything through literally — no escaping needed, no execution possible.
| separates columns (cannot appear in cell content)安装 Telegram Ascii Table 后,可以对 AI 说这些话来触发它
Help me get started with Telegram Ascii Table
Explains what Telegram Ascii Table does, walks through the setup, and runs a quick demo based on your current project
Use Telegram Ascii Table to format tabular data as ASCII box tables for Telegram
Invokes Telegram Ascii Table with the right parameters and returns the result directly in the conversation
What can I do with Telegram Ascii Table in my developer & devops workflow?
Lists the top use cases for Telegram Ascii Table, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/telegram-ascii-table/ 目录(个人级,所有项目可用),或 .claude/skills/telegram-ascii-table/(项目级)。重启 AI 客户端后,用 /telegram-ascii-table 主动调用,或让 AI 根据上下文自动发现并使用。
Telegram Ascii Table 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Telegram Ascii Table 可免费安装使用。请查阅仓库了解许可证信息。
Format tabular data as ASCII box tables for Telegram. Stdin-only input eliminates shell injection risks. Handles smart column sizing, text wrapping, and proper padding for monospace display.
Telegram Ascii Table 属于「Developer & DevOps」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my developer & devops tasks using Telegram Ascii Table
Identifies repetitive steps in your workflow and sets up Telegram Ascii Table to handle them automatically