Code Flow Visualizer

v1.0.0

Convert Python, JavaScript, or TypeScript functions into Mermaid flowcharts to visualize code logic and structure clearly.

0· 522·2 current·2 all-time
MIT-0
Download zip
LicenseMIT-0 · Free to use, modify, and redistribute. No attribution required.
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
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.
Assessment
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.

Like a lobster shell, security has layers — review code before you run it.

codevk977q525jbtf4gd6wkqpjtpaf181kv1ylatestvk977q525jbtf4gd6wkqpjtpaf181kv1yvisualizervk977q525jbtf4gd6wkqpjtpaf181kv1y

License

MIT-0
Free to use, modify, and redistribute. No attribution required.

SKILL.md

Code Flow Visualizer

将代码转换为 Mermaid 流程图表示,便于理解代码逻辑流程。

功能

  • 分析代码逻辑结构
  • 生成 Mermaid 流程图
  • 支持 Python、JavaScript、TypeScript

使用方式

当用户需要可视化代码流程时说"可视化代码"或"生成流程图"。

示例

用户: 帮我把这个Python函数生成流程图
助手: (使用 code_flow_visualizer skill)

工具

使用 Mermaid JS 或 PlantUML 生成图表。

限制

  • 仅处理单一函数/方法
  • 不支持 goto 语句
  • 复杂循环可能简化显示

Files

2 total
Select a file
Select a file to preview.

Comments

Loading comments…