agentCLAWHUBUnverified

Code To Mindmap

Use when (1) user pastes source code and wants to visualize it as a mind map, node graph, or tree diagram. (2) user says "show this as a mindmap", "draw the... Skill: Code To Mindmap Owner: wangjipeng977 Summary: Use when (1) user pastes source code and wants to visualize it as a mind map, node graph, or tree diagram. (2) user says "show this as a mindmap", "draw the... Tags: latest:1.0.1 Version history: v1.0.1 | 2026-05-19T05:55:32.712Z | user Update README with real Features and 功能特性 content v1.0.0 | 2026-05-19T04:17:08.925Z | user Initial release Archive index: Archive

OpenClaw

Rank

62

Safety

84

Downloads

973

Updated

Oct 11, 2026

Version

1.0.1

Source

CLAWHUB

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 973 downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Public facts

Every fact links back to the source it came from.

Vendor
Clawhubvendor · observed Oct 11, 2026
Protocol compatibility
OpenClawcompatibility · observed Oct 11, 2026
Adoption signal
973 downloadsadoption · observed Oct 11, 2026
Latest release
1.0.1release · observed May 19, 2026
Handshake status
UNKNOWNsecurity

What changed

Newest first. Only changes that point at a source are listed.

  • Release 1.0.1release

    Update README with real Features and 功能特性 content

    Observed May 19, 2026 · source

Install and run

Setup complexity: medium.

clawhub skill install s179qwqch3yp9926afz4rxbz0h85z9mm:code-to-mindmap
  1. Python environment detected. Create a strict virtual environment (`python -m venv .venv`) before installing dependencies to prevent system-level package conflicts.
  2. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  3. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-wangjipeng977-code-to-mindmap/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

24,892 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: code-to-mindmap
description: >
  Use when (1) user pastes source code and wants to visualize it as a mind map, node graph, or tree diagram. 
  (2) user says "show this as a mindmap", "draw the architecture", "make a flowchart of this code", or 
  "visualize the structure". (3) user wants to understand an unfamiliar codebase by seeing its structure visually. 
license: MIT
metadata:
  version: "1.0"
  category: productivity
  author: wangjipeng
  sources:
    - https://github.com/MiniMax-AI/skills
---

# Code to Mindmap

Use when (1) user pastes source code and wants to visualize it as a mind map, node graph, or tree diagram. (2) user says "show this as a mindmap", "draw the architecture", "make a flowchart of this code", or "visualize the structure". (3) user wants to understand an unfamiliar codebase by seeing its structure visually.

## Core Position

This skill solves the specific problem of: *code structure is hard to grasp from raw text — a visual map reveals relationships, hierarchy, and architecture at a glance.*

This skill IS NOT:
- A code documentation tool — it produces visual diagrams, not written docs
- A UML class diagram tool — use PlantUML for detailed class relationships
- A code formatter — it does not change source code

This skill IS activated ONLY when: source code + visualization intent are both present.

## Modes

### `/code-to-mindmap`

**Default mode.** Parses source code and outputs a Mermaid-compatible mindmap or graph.

When to use: User provides code and wants a visual structure diagram.

### `/code-to-mindmap/hierarchy`

Outputs a tree showing file/folder hierarchy without analyzing imports.

When to use: User wants to see project structure, not code relationships.

## Execution Steps

### Step 1 — Parse the Code Structure

1. Receive source code (single file, snippet, or multi-file content)
2. Detect language and framework:
   - Python: parse `def`, `class`, `import`, `async def`
   - JavaScript/TypeScript: parse `function`, `const`, `class`, `import`, `export`
   - Go: parse `func`, `type`, `struct`, `package`
   - General: detect class definitions, function definitions, module-level declarations
3. Identify:
   - Entry points (`main`, `app`, `index`)
   - Class/struct names and their methods
   - Top-level functions
   - Cross-file dependencies (import/require statements)
4. Build a hierarchical tree: modules → classes → methods → nested logic

### Step 2 — Select Diagram Type

| Code Shape | Diagram Type |
|---|---|
| Single file, class-heavy | Mindmap (center = class, branches = methods) |
| Multi-file, import dependencies | Graph (nodes = files, edges = imports) |
| Hierarchical directory | Tree / flowchart |
| State machine or flow | State diagram |
| Call graph (who calls whom) | Flowchart / directed graph |

### Step 3 — Generate Diagram

Output as Mermaid `mindmap` or `graph LR` format:

```mermaid
mindmap
  root((Code))
    ClassName
      method_one
      method_two
        nested_helper
    anot

README.md

# Code To Mindmap

[中文版](./README_zh.md)

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
[![Version](https://img.shields.io/badge/version-1.0-blue)](SKILL.md)

> Converts source code into visual mind maps, node graphs, and tree diagrams using Mermaid syntax

## What Problem This Solves

Code structure is hard to grasp from raw text — class hierarchies, function relationships, and module dependencies are invisible in a flat file. This skill parses source code and produces a visual diagram that reveals the architecture at a glance.

**When triggered:** Source code + visualization/mindmap/flowchart intent.

## Features

- **Multi-language support** — parses Python, JavaScript/TypeScript, Go, and general class/function structures
- **Hierarchical visualization** — shows modules → classes → methods → nested logic as a tree
- **Smart diagram selection** — mindmap for class-heavy files, graph for import dependencies, tree for directory structure
- **External library distinction** — marks imported stdlib/packages differently from project-internal calls

## Quick Start

```bash
# Via ClawHub
clawhub install code-to-mindmap

# Or manually
cp -r code-to-mindmap ~/.openclaw/skills/
```

### Usage

```
/code-to-mindmap
```

Paste source code and ask to visualize it as a mind map.

```
/code-to-mindmap/hierarchy
```

Shows project file/folder tree without analyzing imports.

## Modes

| Mode | Description |
|------|-------------|
| `/code-to-mindmap` | Parses code, outputs Mermaid mindmap or graph |
| `/code-to-mindmap/hierarchy` | Shows file/folder structure only, no import analysis |

## Examples

| Scenario | Diagram |
|----------|---------|
| Single Python class | Center = class name, methods as child nodes |
| Multi-file project | Multiple sub-diagrams per module, import edges |
| Anonymous/lambda functions | Listed as "anonymous / lambda" node |
| 20+ node codebase | Split into sub-diagrams, top-level summary first |

## Directory Structure

```
code-to-mindmap/
├── SKILL.md
├── LICENSE
├── README.md
├── README_zh.md
├── CONTRIBUTING.md
├── .gitignore
├── references/       # Mermaid syntax guide, parsing patterns
├── scripts/          # render.py — Mermaid to PNG/SVG
└── tests/
```

## License

MIT License — see [LICENSE](LICENSE).

_meta.json

{
  "ownerId": "kn70zthc74p61mvctddrancx0s832g4r",
  "slug": "code-to-mindmap",
  "version": "1.0.1",
  "publishedAt": 1779170132712
}

references/index.md

# code-to-mindmap — References

Detailed documents for `code-to-mindmap` skill.

TODO: Add reference files here as needed.

scripts/requirements.txt

# No external Python deps — uses mmdc CLI or mermaid.live
Github ReposUpdated 2d agoRank 70

AionUi

Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!

MCPOPENCLAW
Github ReposUpdated 6mo agoRank 70

activepieces

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

OPENCLAW
Github ReposUpdated 6mo agoRank 70

cherry-studio

AI productivity studio with smart chat, autonomous agents, and 300+ assistants.

MCPOPENCLAW
Github ReposUpdated 7mo agoRank 70

CopilotKit

The Frontend for Agents & Generative UI. React + Angular

OPENCLAW

Machine-readable data

The same record, as JSON, for agents and crawlers.

{
  "facts": [
    {
      "factKey": "vendor",
      "category": "vendor",
      "label": "Vendor",
      "value": "Clawhub",
      "href": "https://clawhub.ai/wangjipeng977/skills/code-to-mindmap",
      "sourceUrl": "https://clawhub.ai/wangjipeng977/skills/code-to-mindmap",
      "sourceType": "profile",
      "confidence": "medium",
      "observedAt": "2026-10-11T23:51:46.886Z",
      "isPublic": true
    },
    {
      "factKey": "protocols",
      "category": "compatibility",
      "label": "Protocol compatibility",
      "value": "OpenClaw",
      "href": "https://www.xpersona.co/api/v1/agents/clawhub-wangjipeng977-code-to-mindmap/contract",
      "sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-wangjipeng977-code-to-mindmap/contract",
      "sourceType": "contract",
      "confidence": "medium",
      "observedAt": "2026-10-11T23:51:46.886Z",
      "isPublic": true
    },
    {
      "factKey": "traction",
      "category": "adoption",
      "label": "Adoption signal",
      "value": "973 downloads",
      "href": "https://clawhub.ai/wangjipeng977/code-to-mindmap",
      "sourceUrl": "https://clawhub.ai/wangjipeng977/code-to-mindmap",
      "sourceType": "profile",
      "confidence": "medium",
      "observedAt": "2026-10-11T23:51:46.886Z",
      "isPublic": true
    },
    {
      "factKey": "latest_release",
      "category": "release",
      "label": "Latest release",
      "value": "1.0.1",
      "href": "https://clawhub.ai/wangjipeng977/code-to-mindmap",
      "sourceUrl": "https://clawhub.ai/wangjipeng977/code-to-mindmap",
      "sourceType": "release",
      "confidence": "medium",
      "observedAt": "2026-05-19T05:55:32.712Z",
      "isPublic": true
    },
    {
      "factKey": "handshake_status",
      "category": "security",
      "label": "Handshake status",
      "value": "UNKNOWN",
      "href": "https://www.xpersona.co/api/v1/agents/clawhub-wangjipeng977-code-to-mindmap/trust",
      "sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-wangjipeng977-code-to-mindmap/trust",
      "sourceType": "trust",
      "confidence": "medium",
      "observedAt": null,
      "isPublic": true
    }
  ],
  "events": [
    {
      "eventType": "release",
      "title": "Release 1.0.1",
      "description": "Update README with real Features and 功能特性 content",
      "href": "https://clawhub.ai/wangjipeng977/code-to-mindmap",
      "sourceUrl": "https://clawhub.ai/wangjipeng977/code-to-mindmap",
      "sourceType": "release",
      "confidence": "medium",
      "observedAt": "2026-05-19T05:55:32.712Z",
      "isPublic": true
    }
  ]
}

Record generated Oct 12, 2026.

For crawlers

This page is free to read. The run-check above is the only paid part, and it answers HTTP 402 until it is paid. Everything else here is public.

  • One record, as JSON: card, facts, snapshot, contract, trust, changes, warnings, seen by, disagreements.
  • Every agent, one feed: /.well-known/ai-catalog.json
  • What this site sells, and the price: /.well-known/x402
  • Paid run-check: /api/v1/agents/clawhub-wangjipeng977-code-to-mindmap/run-check

Sponsored

Ads related to Code To Mindmap and adjacent AI workflows.