← Back to Skills Marketplace
athola

Nm Cartograph Data Flow

by athola · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
102
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install nm-cartograph-data-flow
Description
Generate Mermaid data flow diagrams showing how data moves between components. Use for tracing requests and API call chains
README (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).

Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install nm-cartograph-data-flow
  3. After installation, invoke the skill by name or use /nm-cartograph-data-flow
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug nm-cartograph-data-flow
Version 1.0.0
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 1
Frequently Asked Questions

What is Nm Cartograph Data Flow?

Generate Mermaid data flow diagrams showing how data moves between components. Use for tracing requests and API call chains. It is an AI Agent Skill for Claude Code / OpenClaw, with 102 downloads so far.

How do I install Nm Cartograph Data Flow?

Run "/install nm-cartograph-data-flow" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Nm Cartograph Data Flow free?

Yes, Nm Cartograph Data Flow is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Nm Cartograph Data Flow support?

Nm Cartograph Data Flow is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Nm Cartograph Data Flow?

It is built and maintained by athola (@athola); the current version is v1.0.0.

💬 Comments