code-flow-viz
用于梳理和可视化代码流程,生成清晰的 ASCII 流程图、数据流图和表格分析。适用于已有代码的梳理、新功能设计的说明、以及技术文档的编写。
npx skills add majiayu000/claude-skill-registry --skill code-flow-viz-mmorit00-fund-portfolio-bot-2 --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# 代码流程可视化规范 本 Skill 提供一套可复用的模板和方法,用于梳理代码流程、生成可视化文档。 > **核心原则**:用文字和 ASCII 图表讲清楚"数据从哪来、经过哪些层、最后到哪去"。 ## When to use 在以下场景使用本 Skill: - 用户询问"某个功能是怎么工作的" - 新增功能需要设计数据流 - 重构前需要梳理现有逻辑 - 编写技术文档或架构说明 - 代码评审时需要可视化调用链 ## 核心模板 ### 1. 完整流程图(多场景对比) 适用于:梳理一个功能的多种使用场景(如手动 vs 自动、成功 vs 失败) ``` ┌─────────────────────────────────────────────────────────────────────┐ │ 功能名称(如:限额管理全生命周期) │ └─────────────────────────────────────────────────────────────────────┘ ═══════════════════════════════════════════════════════════════════════ 场景 1:场景名称(如:自动查询限额状态) ═══════════════════════════════════════════════════════════════════════ 用户命令 │ ▼ ┌─────────────────────────────────────────────────────────────────┐ │ uv run python -m src.cli.xxx ... │ └────────────────┬────────────────────────────────────────────────┘ │ ▼ ┌────────────────┐ │ CLI 层 │ 调用 Flow 函数 │ _do_xxx() │ ────────────────────┐ └────────────────┘ │ ▼ ┌──────────────────────────┐ │ Flow 层 │ │ xxx_flow() │ └───────┬──────────────────┘ │ ▼ ┌─────────────────────────────┐ │ Data 层 │ │ XxxRepo / XxxClient │ └────────┬─────────────────────┘ │ ▼ ┌────────────────────────────┐ │ 外部系统 / 数据库 │ │ (SQLite / API / etc) │ └──────────┬─────────────────┘ │ 返回数据 ▼ ┌─
- When to use
- 核心模板
- 1. 完整流程图(多场景对比)
- 2. 数据库表结构说明
- 3. 分层调用链图(简化版)
- 4. 数据类设计分析表
- 5. 业务关键点标注
- 使用方法
- Step 1: 确定分析目标
- Step 2: 选择合适的模板
- Step 3: 填充内容
- Step 4: 添加对比分析
- 实际案例
- 案例 1:限额管理流程(完整版)
What does the code-flow-viz skill do?
用于梳理和可视化代码流程,生成清晰的 ASCII 流程图、数据流图和表格分析。适用于已有代码的梳理、新功能设计的说明、以及技术文档的编写。
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill code-flow-viz-mmorit00-fund-portfolio-bot-2 --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
