markdown-viewer
它能做什么
这项技能为 Markdown 文档添加示意图、数据图表和信息图等视觉内容。适合撰写技术文档、希望在文中加入清晰图示的人。
适用场景
- ✓当你想在 Markdown 文档中加入流程图、架构图或 UML 图时。
- ✓当你想在技术文档中加入数据图表、KPI 卡片、时间线或路线图时。
- ✓当你想在 Markdown 笔记中放入思维导图或概念图的时候。
技能链接
https://github.com/EKKOLearnAI/ekko-studio/blob/main/packages/skills/markdown-viewer/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请为我的应用画一张架构图,包含前端、API 和数据库三层,放进我的 README 里。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会根据目标选择最简单的合适渲染器,例如图表引擎、图示引擎或自由画布,并把图表代码写入 Markdown。使用前必须先安装技能包。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Markdown Viewer
Use this skill when the user wants a diagram, visualization, architecture view, data chart, technical documentation graphic, infographic, mind map, or editorial-quality content card directly inside Markdown.
Markdown Viewer Agent Skills is an opinionated skill pack for AI coding agents. It covers diagram generation, data visualization, and technical documentation using multiple Markdown-rendered engines, including PlantUML, Vega/Vega-Lite, JSON Canvas, infographic blocks, and direct HTML/CSS embeds.
Setup
If the upstream skill pack is not installed, install it first:
npx skills add markdown-viewer/skills
After installation, prefer reading the specific upstream skill for the requested output type before writing complex diagrams. The pack includes detailed syntax rules, examples, and common pitfalls for each renderer.
Skill Selection
Choose the smallest renderer that fits the user's goal:
| User goal | Use |
|---|---|
| Bar, line, scatter, heatmap, area, radar, word cloud, or data-driven chart | vega / vega-lite |
| KPI card, roadmap, timeline, SWOT, funnel, org chart, or structured visual summary | infographic |
| Free-position mind map, concept map, knowledge graph, or planning board | canvas |
| System layers, microservices, app/data/infrastructure layers | architecture |
| Editorial knowledge card, event card, data highlight, or polished content tile | infocard |
| UML class, sequence, activity, state, component, deployment, package, or use-case diagram | uml |
| AWS, Azure, GCP, Alibaba Cloud, Kubernetes, serverless, or multi-cloud diagram | cloud |
| LAN/WAN, data center, enterprise network, or device topology | network |
| Threat model, zero-trust, IAM, firewall, encryption, or compliance view | security |
| Enterprise architecture with business/application/technology layers | archimate |
| BPMN workflow, swim lanes, integration pattern, or value stream map | bpmn |
| ETL/ELT, warehouse, lakehouse, ML pipeline, or analytics workflow | data-analytics |
| Sensors, edge computing, smart factory/home, fleet, or digital twin view | iot |
| Hierarchical brainstorm tree or study outline | mindmap |
Output Rules
- Write the result in Markdown unless the user asks for a separate file.
- Use the correct code fence for the chosen renderer:
vega-liteorvegafor data charts.infographicfor infographic YAML blocks.canvasfor JSON Canvas maps.plantumlorpumlfor UML, cloud, network, security, ArchiMate, BPMN, data analytics, IoT, and PlantUML mind maps.
- For
architectureandinfocard, embed the HTML/CSS directly in Markdown when that renderer expects raw HTML instead of a code fence. - Keep diagrams focused. Prefer a clear, accurate first version over decorative complexity.
- Label nodes and edges with domain language the user already used.
- For technical diagrams, include enough structure to be useful in docs: boundaries, data flow, dependencies, trust zones, layers, or ownership where relevant.
- For data visualizations, include explicit sample data or use the data the user supplied. Do not invent real metrics without marking them as placeholders.
- For security or compliance diagrams, avoid implying guarantees. Show controls, boundaries, and risks factually.
Workflow
- Identify the user's artifact type: chart, diagram, architecture, process, mind map, infographic, or card.
- Select the renderer from the guide above.
- If the pack is installed locally, read the corresponding upstream
SKILL.mdfor exact syntax and pitfalls. - Draft the Markdown artifact with the correct code fence or raw HTML/CSS style.
- Check syntax before delivery: matching fences, valid JSON/YAML where required, PlantUML starts and ends correctly, and labels are readable.
- If the user needs a file, save it as
.mdand include only the final artifact plus concise notes.
Delivery
When finished, tell the user:
- which renderer or sub-skill you used;
- where the Markdown file is, if one was created;
- any placeholder data or assumptions;
- any viewer requirement, such as needing a Markdown Viewer extension or compatible renderer.
Do not use static screenshots when the user asked for Markdown-native visuals. The value of this skill is that the output stays editable, reviewable, and renderable from Markdown.
常见问题
我需要先安装什么吗?
需要。在智能体使用之前,先通过 npx skills add markdown-viewer/skills 安装技能包。
它支持哪些类型的图?
柱状图、折线图和热力图等图表,以及架构图、UML、云架构图、网络图、数据图和信息图。
它如何选择格式?
它会根据技能中的对照表,为每个目标匹配渲染器,例如用图表引擎处理数据,用画布绘制思维导图。
详情
作者的原始描述
Create rich diagrams, data visualizations, technical architecture views, and editorial content cards directly in Markdown using the Markdown Viewer Agent Skills pack. Use for Mermaid-like diagram requests, PlantUML architecture diagrams, Vega charts, JSON Canvas maps, infographics, UML, cloud/network/security/data/IoT diagrams, and polished Markdown documentation visuals.
repo: EKKOLearnAI/ekko-studio
热度
- GitHub 星标
- 12k
- 排名
- #11585
- 许可证
- —
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
1password
12k帮你的智能体使用 1Password CLI 为命令和配置文件获取机密信息,同时不在聊天、日志或已保存的文件中显示这些信息。
apple-notes
12k帮你的智能体在 Mac 上使用 memo 命令行工具创建、搜索、阅读、编辑、移动或删除 Apple 备忘录。
apple-reminders
12k帮你的智能体在 Mac 上使用 remindctl 工具列出、创建、编辑、完成或删除 Apple 提醒事项及提醒列表。
document-to-action-items
12k帮你的智能体把文档、会议记录或一组笔记,整理成一张清晰的任务、负责人、截止日期和决定的表格。