← 返回 Skills 市场
athola

Nm Cartograph Data Flow

作者 athola · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
102
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install nm-cartograph-data-flow
功能描述
Generate Mermaid data flow diagrams showing how data moves between components. Use for tracing requests and API call chains
使用说明 (SKILL.md)

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).

安全使用建议
This skill appears to do what it says and asks for nothing extra, but be cautious about what code you let it 'explore.' When using it, explicitly restrict the exploration scope to the repository or directories you intend (avoid scanning home directories or secrets). Also confirm the permissions of the referenced codebase-explorer agent and that the Mermaid rendering MCP is an internal rendering service (so diagrams and code structure aren't sent to an external endpoint). If you need stricter guarantees, test the skill on a sanitized sample repo first.
功能分析
Type: OpenClaw Skill Name: nm-cartograph-data-flow Version: 1.0.0 The skill is designed to generate Mermaid data flow diagrams by orchestrating a codebase explorer agent and a Mermaid Chart MCP tool. The instructions in SKILL.md are strictly focused on structural analysis and visualization of code components, with no evidence of data exfiltration, unauthorized command execution, or malicious prompt injection.
能力评估
Purpose & Capability
Name/description match the runtime instructions: the SKILL.md describes exploring a codebase, building a structural model, converting it into Mermaid sequence diagrams, and rendering via a Mermaid Chart MCP. No unrelated binaries, env vars, or config paths are requested.
Instruction Scope
Instructions are scoped to exploring a codebase and generating diagrams, which aligns with the stated purpose. However the step 'Explore [scope]' is broad and could cause the agent to read many repository files; the SKILL.md does not explicitly limit/forbid reading sensitive files (credentials, .env, config), so you should limit the exploration scope in practice and confirm the codebase-explorer agent's permissions.
Install Mechanism
No install spec or code files — instruction-only skill. This is low-risk because nothing is downloaded or written to disk by the skill itself.
Credentials
The skill requests no environment variables, credentials, or config paths. That is proportionate for a diagram-generation skill that transforms code structure into Mermaid.
Persistence & Privilege
always is false and the skill is user-invocable. It does not request permanent presence or elevated platform-wide configuration changes.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install nm-cartograph-data-flow
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /nm-cartograph-data-flow 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of the data-flow skill, version 1.0.0. - Generates Mermaid sequence diagrams to visualize data movement between components. - Includes detailed workflow for tracing requests, documenting APIs, and understanding pipelines. - Provides example syntax, usage guidelines, and rendering integration steps.
元数据
Slug nm-cartograph-data-flow
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

Nm Cartograph Data Flow 是什么?

Generate Mermaid data flow diagrams showing how data moves between components. Use for tracing requests and API call chains. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 102 次。

如何安装 Nm Cartograph Data Flow?

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

Nm Cartograph Data Flow 是免费的吗?

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

Nm Cartograph Data Flow 支持哪些平台?

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

谁开发了 Nm Cartograph Data Flow?

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

💬 留言讨论