Token导航 LogoToken导航

Agent Skill · 研究检索

ascii-diagram(ASCII 图)

ascii-diagram 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

ascii-diagram 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为只读;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 51,212。

总安装 588周安装 24GitHub Stars 公开资料未说明下载 188核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:ascii-diagram(ASCII 图)
来源仓库:https://github.com/lwlee2608/agent-skills
仓库路径:skills/ascii-diagram
安装命令:
npx skills add https://github.com/lwlee2608/agent-skills --skill ascii-diagram
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/lwlee2608/agent-skills --skill ascii-diagram

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

ascii-diagram 通过打印比对循环修正 ASCII 图的对齐错误,解决边框错位与连接断裂问题。优先使用 Unicode 框线字符,仅在必要时降级为纯 ASCII 符号。适用于流程图、架构图与层次结构的可视化校正,提升专业感。禁止在同一图中混合不同风格字符,确保渲染一致性。

建议人工复核关键节点位置,尤其当涉及多列布局或嵌套分支时。

来源仓库内路径:skills/ascii-diagram

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/lwlee2608/agent-skills --skill ascii-diagram;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它标注为只读,先用只读任务试一次,确认行为符合预期再扩大使用范围。

常见问题

6 条

ascii-diagram 怎么安装?

在终端执行 npx skills add https://github.com/lwlee2608/agent-skills --skill ascii-diagram。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

ascii-diagram 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

ascii-diagram 需要什么权限?

权限级别是只读。该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

ascii-diagram 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

ascii-diagram 用的人多吗?

公开数据是累计安装 588 次,近一周安装 24 次,下载 188 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

ascii-diagram 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。
  • 标注为只读权限,试用阶段不容易误改本地文件。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。
  • 只想先试试效果、不希望它改动本地文件的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
ascii-diagram

ASCII 图 · 本页

588—只读未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Validate ASCII Diagram

ASCII diagrams produced by agents frequently have alignment issues — misaligned corners, uneven borders, broken connectors. LLMs cannot reliably count characters in their head. This skill uses a print-and-inspect loop to catch and fix alignment bugs.

Rules

  1. Prefer Unicode box-drawing characters. Use ┌, ┐, └, ┘ for corners, ─ for horizontal borders, │ for vertical borders, and ┬, ┴, ├, ┤, ┼ for junctions. Only fall back to plain ASCII (+, -, |) if the user explicitly requests it or the target format cannot render Unicode. Never mix styles in the same diagram.
  2. Every row of a box must be the exact same width — top border, content rows, and bottom border.
  3. Pad short content lines with spaces so the right border │ lands in the same column on every row.
  4. Connectors and arrows should clearly connect to the box borders they relate to. Verify gaps are intentional.
  5. No tab characters. Tabs render at unpredictable widths and silently break alignment. Use spaces only.
  6. No trailing whitespace. Invisible trailing spaces cause width mismatches that look correct but aren't.

Verification procedure

Do NOT try to validate by counting characters in your head. Instead, use the print-and-inspect loop below.

Step 0: Decide whether to delegate to a subagent

Delegate the entire verification loop to a subagent (via the Agent tool) when the diagram is both (a) >6 lines AND (b) has multiple boxes or nested/connected layouts. The loop produces a lot of ruler output and iteration churn that is not useful to keep in the main context.

For smaller diagrams (a single box, a short table, ≤6 lines), run the loop inline — spawning a subagent is slower than just doing it.

When delegating, hand off with this template (the subagent does not have this skill loaded):

File: <absolute path>
Lines: <start>-<end>
Task: Run the verification loop in skills/ascii-diagram/SKILL.md steps 1-5. Edit the source file in place.
Report: PASS or FAIL, iteration count, and a one-line summary of fixes. Do not paste the diagram back.

After the subagent returns:

  • Re-read the edited lines to confirm the summary matches what actually changed — subagent reports describe intent, not necessarily the diff.
  • On FAIL (subagent hit the 3-iteration cap with issues remaining), decide whether to accept the partial fix, re-delegate with specific guidance, or finish inline. Do not silently treat FAIL as done.

Step 1: Write the diagram to a temp file

Write the diagram to a temp file using the Write tool. Use a unique path like /tmp/diagram-<context>.txt (replace <context> with something specific to this session, e.g., /tmp/diagram-auth-flow.txt) to avoid clobbering other sessions. Use that same path in every command below.

Step 2: Print with a column ruler

Run this Bash command to display the diagram with column numbers (replace <path> with your temp file path):

awk 'BEGIN{
  ruler1=""; ruler2=""
  for(i=0;i<120;i++){
    ruler1=ruler1 sprintf("%d", int(i/10)%10)
    ruler2=ruler2 sprintf("%d", i%10)
  }
  print "     " ruler1
  print "     " ruler2
}
{printf "%3d: %s\n", NR, $0}' <path>

This prints every line with its row number and a two-row column ruler (tens digit, ones digit) across the top, making it trivial to check whether corners, borders, and connectors land in the right columns. If your diagram is wider than 120 columns, bump the 120 in the loop.

Step 3: Check for invisible problems

Run these checks to catch issues that are invisible in normal output (replace <path> with your temp file path):

# Tabs (will break alignment silently)
grep -F $'\t' <path> && echo "FAIL: tabs found" || echo "OK: no tabs"
# Trailing whitespace
grep ' $' <path> && echo "FAIL: trailing spaces found" || echo "OK: no trailing whitespace"

Fix any findings before proceeding.

Step 4: Visually inspect the ruler output

Look at the printed output and check:

  • Box width consistency: For each box, does the right border (│ or ┐/┘) appear in the same column on every row? Read the column number off the ruler.
  • Top/bottom border match: Does the bottom corner (└/┘) sit in the same column as the top corner (┌/┐)?
  • Side-by-side alignment: Do adjacent boxes share consistent column positions?
  • Connectors: Do arrows actually touch the border characters?

Step 5: Fix and repeat

If any issue is found:

  1. Fix the diagram in the file where it lives (not the temp file).
  2. Write the updated diagram to the same temp file again.
  3. Print with the ruler again.
  4. Repeat until every check passes or you hit 3 iterations — whichever comes first. If issues remain after 3 iterations, move on.

Common mistakes to watch for

  • Right border off by one. An extra or missing space before │ shifts the right border to a different column than the top/bottom corner. Use the ruler to verify every row ends at the same column. WRONG: CORRECT: ┌──────────┐ ┌──────────┐ │ hello │ │ hello │ │ world │ ← col 13 │ world │ └──────────┘ ← col 12 └──────────┘
  • Bottom border width mismatch. The bottom border has fewer or more ─ than the top, so the closing corner lands in the wrong column. Count with the ruler, not by eye. WRONG: CORRECT: ┌──────────┐ ← col 12 ┌──────────┐ │ content │ │ content │ └─────────┘ ← col 11 └──────────┘
  • Side-by-side boxes with ragged gap. The gap between adjacent boxes varies across rows, causing the second box to shift. Verify that the second box's corner is in the same column on every row. WRONG: CORRECT: ┌───────┐ ┌───────┐ ┌───────┐ ┌───────┐ │ box 1 │ │ box 2 │ │ box 1 │ │ box 2 │ └───────┘ └───────┘ ← extra └───────┘ └───────┘
  • Mixed box-drawing styles. Mixing ASCII (+, -, |) and Unicode (┌, ─, ┐) characters in the same diagram. Pick one style and use it consistently. WRONG: CORRECT: ┌──────────+ ← ASCII + ┌──────────┐ │ content │ │ content │ └──────────┘ └──────────┘
  • Connector not touching box border. Arrows or lines that float with a gap between them and the box they should connect to. Every connector must start and end at a border character. WRONG: CORRECT: ┌───────┐ ┌───────┐ ┌───────┐ ┌───────┐ │ box 1 │ -> │ box 2 │ │ box 1 │──>│ box 2 │ └───────┘ └───────┘ └───────┘ └───────┘ gap ^ ^ gap no gaps

平台分布

Codex

35.51%
按下载量换算67

Claude

27.23%
按下载量换算51

Cursor

18.98%
按下载量换算36

Gemini CLI

10.16%
按下载量换算19

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills