← 返回 Skills 市场
radenwahid

Code2Flow

作者 raden wahid · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
36
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install code2flow
功能描述
Analyze codebase structures and source files to generate clear, accurate Mermaid.js diagrams that visualize system architecture and workflows.
使用说明 (SKILL.md)

You are the Auto Architect, an advanced AI Software Architect specializing in code analysis and visual documentation. Your primary directive is to analyze directory structures and source code files provided by the user, and explain the system's architecture by generating highly accurate Mermaid.js diagrams.

Core Execution Rules:

  1. Deep Analysis: Thoroughly analyze the data flow, dependencies, and logical architecture between provided files.
  2. Mandatory Visualization: You MUST include at least one valid mermaid code block in your response. Choose the most appropriate diagram type:
    • graph TD / flowchart for user journeys and logical flows.
    • sequenceDiagram for API interactions or inter-component communication.
    • classDiagram or erDiagram for database schemas and data models.
  3. Structured Output: Always present your findings using clear markdown formatting, utilizing headings, bullet points, and brief architectural summaries BEFORE presenting the Mermaid diagram.
  4. Syntax Validity: Ensure your Mermaid syntax is 100% valid. Escape special characters inside node text and avoid syntax that breaks standard Mermaid renderers.
安全使用建议
This skill appears coherent and low-risk as written, but keep these practical precautions: (1) Do not paste private secrets, credentials, or proprietary data into prompts you want to remain confidential — the skill's purpose is to analyze any code you provide. (2) The skill source and homepage are unknown; prefer skills with a public repo or maintainer identity if you need auditability. (3) Validate generated Mermaid output before publishing, and be cautious if you enable any agent/network access that could transmit pasted code externally. (4) If you require stricter guarantees, run the skill only in an environment with no outbound network access and avoid sending sensitive code to the agent.
能力评估
Purpose & Capability
Name/description (Code2Flow / generate Mermaid diagrams from code) match the SKILL.md: it instructs the agent to analyze provided code/dirs and output diagrams. The skill requires no binaries, env vars, or external installs, which is proportionate for an instruction-only diagramming helper.
Instruction Scope
Runtime instructions are narrowly scoped to analyzing directory structures and code snippets supplied by the user and producing Mermaid diagrams with a structured markdown response. The SKILL.md does not instruct reading system files, environment variables, or sending data to third-party endpoints.
Install Mechanism
There is no install spec and no code files to write or execute. As an instruction-only skill this has a minimal on-disk footprint and low installation risk.
Credentials
The skill declares no required environment variables, credentials, or config paths. No unrelated secrets or credentials are requested, which is appropriate for its function.
Persistence & Privilege
always:false (default) and no persistent installs or configuration changes are requested. The skill does not request to modify other skills or global agent settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install code2flow
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /code2flow 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of Auto Architect & Diagrammer. - Provides code analysis and architectural explanations based on user-supplied directories and source files. - Automatically generates accurate Mermaid.js diagrams (flowchart, sequence, class, or ER diagrams) for clear visual documentation. - Ensures each response includes a structured summary and at least one valid Mermaid code block. - Enforces strict Mermaid syntax validity for reliable rendering. - Outputs are formatted with headings, bullet points, and concise system overviews before diagrams.
元数据
Slug code2flow
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Code2Flow 是什么?

Analyze codebase structures and source files to generate clear, accurate Mermaid.js diagrams that visualize system architecture and workflows. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 36 次。

如何安装 Code2Flow?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install code2flow」即可一键安装,无需额外配置。

Code2Flow 是免费的吗?

是的,Code2Flow 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Code2Flow 支持哪些平台?

Code2Flow 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Code2Flow?

由 raden wahid(@radenwahid)开发并维护,当前版本 v1.0.0。

💬 留言讨论