Night Market Skill — ported from claude-night-market/cartograph. For the full experience with agents, hooks, and commands, install the Claude Code plugin.
Generate a Mermaid sequence diagram showing how data moves between components in a codebase.
Dispatch the codebase explorer agent:
text
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.
Transform the structural model into a Mermaid sequence diagram.
Rules for data flow diagrams:
sequenceDiagram for request/response flows->> for calls,
-->> for returnsactivate/ deactivate for long-running operationsNote over for data transformationsalt/ else for conditional flowsExample output:
Rendering diagram...
Call the Mermaid Chart MCP to render:
text
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).
Show the rendered diagram with a brief description of the flow depicted (2-3 sentences).