← 返回
未分类 中文

Nm Cartograph Data Flow

Generates a Mermaid sequence diagram showing how data moves between components
生成 Mermaid 时序图,展示组件之间的数据流动。
athola athola 来源
未分类 clawhub v1.9.12 4 版本 99791.7 Key: 无需
★ 0
Stars
📥 479
下载
💾 1
安装
4
版本
#latest

概述

> Night Market Skill — ported from claude-night-market/cartograph. For the full experience with agents, hooks, and commands, install the Claude Code plugin.

Data Flow Diagram

Generate a Mermaid sequence diagram showing how data moves

between components in a codebase.

When To Use

  • Tracing how a request flows through the system
  • Understanding data transformation pipelines
  • Documenting API call chains
  • Answering "what happens when X is called?"

Workflow

Step 1: Explore the Codebase

Dispatch the codebase explorer agent:

Agent(cartograph:codebase-explorer)
Prompt: Explore [scope] and return a structural model.
Focus on function calls, data transformations, and
inter-module communication for a data flow diagram.

Step 2: Generate Mermaid Syntax

Transform the structural model into a Mermaid sequence

diagram.

Rules for data flow diagrams:

  • Use sequenceDiagram for request/response flows
  • Participants are modules or components (not functions)
  • Arrows show data direction: ->> for calls,

-->> for returns

  • Use activate/deactivate for long-running operations
  • Add Note over for data transformations
  • Limit to 8-10 participants maximum
  • Use alt/else for conditional flows
  • Handle circular calls by showing them once with a note

Example output:

sequenceDiagram
    participant User
    participant Command as /commit
    participant Sanctum as sanctum.commit
    participant Leyline as leyline.git_platform
    participant Git

    User->>Command: /commit
    Command->>Sanctum: generate_message()
    Sanctum->>Leyline: get_staged_changes()
    Leyline->>Git: git diff --cached
    Git-->>Leyline: diff output
    Leyline-->>Sanctum: structured changes
    Note over Sanctum: Classify change type
    Sanctum-->>Command: commit message
    Command->>Git: git commit -m "..."

Step 3: Render via MCP

Call the Mermaid Chart MCP to render:

mcp__claude_ai_Mermaid_Chart__validate_and_render_mermaid_diagram
  prompt: "Data flow diagram of [scope/feature]"
  mermaidCode: [generated syntax]
  diagramType: "sequenceDiagram"
  clientName: "claude-code"

If rendering fails, fix syntax and retry (max 2 retries).

Step 4: Present Results

Show the rendered diagram with a brief description of the

flow depicted (2-3 sentences).

版本历史

共 4 个版本

  • v1.9.12 当前
    2026-06-19 19:52 安全 安全
  • v1.0.3
    2026-06-09 17:49 安全 安全
  • v1.0.2
    2026-05-09 16:38 安全 安全
  • v1.0.1
    2026-05-07 09:26 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 677 📥 327,205
dev-programming

Mcporter

steipete
使用 mcporter CLI 直接列出、配置、认证及调用 MCP 服务器/工具(支持 HTTP 或 stdio),涵盖临时服务器、配置编辑及 CLI/类型生成功能。
★ 195 📥 67,623
dev-programming

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 72 📥 181,803