Community编程与开发github.com

anatta-rs/ast-to-mermaid

将代码转换为抽象语法树(AST)图形,并渲染为 Mermaid 图表

ast-to-mermaid 是什么?

该技能能够分析源代码并生成其抽象语法树(AST)的可视化表示,最终以 Mermaid 图表的形式呈现。它支持多种编程语言,利用解析器提取代码的 AST 结构,并将其转化为 Mermaid 流程图或类图等格式。这对于开发者理解复杂代码结构、进行代码审查或教学演示非常有用。该技能基于 GitHub 上的 anatta-rs/ast-to-mermaid 项目,可在支持 Mermaid 的平台上使用,如 Markdown 文档、Notion 或在线图表编辑器。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add anatta-rs/ast-to-mermaid

Installed? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

ast-to-mermaid 是做什么的?

将代码转换为抽象语法树(AST)图形,并渲染为 Mermaid 图表

相关技能