← 返回 Skills 市场
Code Flow Visualizer
作者
HonestQiao
· GitHub ↗
· v1.0.0
633
总下载
0
收藏
3
当前安装
1
版本数
在 OpenClaw 中安装
/install code-flow-visualizer
功能描述
Convert Python, JavaScript, or TypeScript functions into Mermaid flowcharts to visualize code logic and structure clearly.
使用说明 (SKILL.md)
Code Flow Visualizer
将代码转换为 Mermaid 流程图表示,便于理解代码逻辑流程。
功能
- 分析代码逻辑结构
- 生成 Mermaid 流程图
- 支持 Python、JavaScript、TypeScript
使用方式
当用户需要可视化代码流程时说"可视化代码"或"生成流程图"。
示例
用户: 帮我把这个Python函数生成流程图
助手: (使用 code_flow_visualizer skill)
工具
使用 Mermaid JS 或 PlantUML 生成图表。
限制
- 仅处理单一函数/方法
- 不支持 goto 语句
- 复杂循环可能简化显示
安全使用建议
This skill is internally consistent and does not request credentials or installs. It returns Mermaid-format flowchart code (not a rendered image), so you'll need a Mermaid-compatible viewer to render diagrams. Because the implementation is simple (regex/AST-based example in skill.yaml), expect simplifications or occasional inaccuracies for complex functions — test with non-sensitive example code first. Avoid pasting secrets or private credentials into any skill. If you need precise, production-grade control-flow analysis, prefer a skill that documents a full parser/AST library or provides source code for review.
功能分析
Type: OpenClaw Skill
Name: code-flow-visualizer
Version: 1.0.0
The skill is designed to convert code into Mermaid flowchart representations. The `SKILL.md` instructions are straightforward and do not contain any prompt injection attempts. The `skill.yaml` provides a simplified JavaScript example that performs string manipulation to generate Mermaid syntax. There is no evidence of data exfiltration, unauthorized execution, persistence, or any other malicious intent. While a poorly implemented Mermaid renderer could potentially be vulnerable to crafted input within the generated Mermaid string, this is a vulnerability of the rendering environment, not an intentional malicious act by the skill itself, which merely performs a string transformation.
能力评估
Purpose & Capability
Name and description match the provided SKILL.md and skill.yaml: both describe extracting control flow and returning Mermaid flowchart code for a single function. There are no unrelated environment variables, binaries, or config paths requested.
Instruction Scope
SKILL.md confines actions to analyzing a single function and producing Mermaid/PlantUML output. It does not instruct reading arbitrary system files, accessing external endpoints, or exfiltrating data. It includes reasonable limitations (single function, simplified loops).
Install Mechanism
There is no install specification and no code files to write to disk. The skill is instruction-only, so nothing is downloaded or installed by the skill itself.
Credentials
The skill requests no environment variables, credentials, or config paths. This is proportionate for a code-to-diagram converter.
Persistence & Privilege
The skill does not request always:true or any elevated persistence. It is user-invocable and can be used normally by the agent without special privileges.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install code-flow-visualizer - 安装完成后,直接呼叫该 Skill 的名称或使用
/code-flow-visualizer触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of Code Flow Visualizer.
- Converts code into Mermaid flowcharts for easier logic visualization
- Supports Python, JavaScript, and TypeScript functions/methods
- Responds to triggers like "可视化代码" or "生成流程图"
- Generates diagrams using Mermaid JS or PlantUML
- Handles single functions/methods only; does not support goto statements or complex loops
元数据
常见问题
Code Flow Visualizer 是什么?
Convert Python, JavaScript, or TypeScript functions into Mermaid flowcharts to visualize code logic and structure clearly. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 633 次。
如何安装 Code Flow Visualizer?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install code-flow-visualizer」即可一键安装,无需额外配置。
Code Flow Visualizer 是免费的吗?
是的,Code Flow Visualizer 完全免费(开源免费),可自由下载、安装和使用。
Code Flow Visualizer 支持哪些平台?
Code Flow Visualizer 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Code Flow Visualizer?
由 HonestQiao(@honestqiao)开发并维护,当前版本 v1.0.0。
推荐 Skills