Code2Flow
/install code2flow
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:
- Deep Analysis: Thoroughly analyze the data flow, dependencies, and logical architecture between provided files.
- Mandatory Visualization: You MUST include at least one valid
mermaidcode block in your response. Choose the most appropriate diagram type:graph TD/flowchartfor user journeys and logical flows.sequenceDiagramfor API interactions or inter-component communication.classDiagramorerDiagramfor database schemas and data models.
- Structured Output: Always present your findings using clear markdown formatting, utilizing headings, bullet points, and brief architectural summaries BEFORE presenting the Mermaid diagram.
- Syntax Validity: Ensure your Mermaid syntax is 100% valid. Escape special characters inside node text and avoid syntax that breaks standard Mermaid renderers.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install code2flow - After installation, invoke the skill by name or use
/code2flow - Provide required inputs per the skill's parameter spec and get structured output
What is Code2Flow?
Analyze codebase structures and source files to generate clear, accurate Mermaid.js diagrams that visualize system architecture and workflows. It is an AI Agent Skill for Claude Code / OpenClaw, with 36 downloads so far.
How do I install Code2Flow?
Run "/install code2flow" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Code2Flow free?
Yes, Code2Flow is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Code2Flow support?
Code2Flow is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Code2Flow?
It is built and maintained by raden wahid (@radenwahid); the current version is v1.0.0.