Code Flowchart Generator
Paste the following prompt into your AI chat to install this skill:
Please follow https://skillhub.cn/install/skillhub.md to install @user_76770c14/hyy into your AI assistant.
About this skill
When to Use It
When reviewing complex code or writing technical docs, describing execution paths, module dependencies, and data movement in prose can be hard to scan. This skill turns code context into flowcharts, which helps with code review, architecture notes, onboarding, and interface tracing. It is aimed at code logic visualization rather than generic drawing, producing Mermaid, ASCII, HTML, image, or PDF outputs.
How It Works
You provide code context, functional description, target chart type, detail level, and preferred output. The skill identifies what to express: an execution flowchart, component diagram, system architecture diagram, data flow diagram, decision tree, tree structure, or a grouped process with subflows. Then it organizes nodes into start/end, process, decision, input/output, subflow, and connecting lines. It also supports direction such as TD or LR, color themes, node shapes, spacing, borders, font size, and annotations. For hierarchy-heavy structures, subgroups or tree layouts can keep related nodes together and reduce crossing lines.
Limits and Notes
It works best for medium-complexity modules with clear structure. For large systems, split the explanation into execution flow, data flow, and architecture-level views instead of forcing one oversized diagram. If code depends heavily on runtime state, implicit callbacks, distributed concurrency, or complex condition combinations, the flowchart can only cover main paths and should be read with the source code. Prioritize readability first, then add detail.
Use Cases
- Review a sorting algorithm by drawing branch conditions and execution order as a top-down flowchart.
- Write architecture notes for a web app by generating component dependencies and module relationships.
- Trace a payment flow by mapping data movement among orders, risk checks, and settlement.
- Prepare onboarding docs by turning decision-tree logic into an annotated tree diagram.
Best For
- backend engineers who review algorithm branches and output Mermaid flowcharts
- architects who explain module dependencies and call chains to new team members
- solution leads who clarify data movement across payment or order flows
- technical writers who produce review-ready code diagrams
Related Skills
A systematic code error fixing skill that follows a five-step workflow: Reproduce, Isolate, Understand, Fix, Verify, to help developers resolve code errors.
Supports inline SVG/HTML rendering and Mermaid code output, covering common technical diagram creation like architecture and flow diagrams.
A comprehensive browser automation guide covering navigation, interaction, multi-tab management, and data collection, tailored for domestic web ecosystems and tools like Playwright/Selenium.
Control Windows WeChat through GUI automation to search contacts and send text, images, or files without official APIs.