Xpersona
M

Mind Map

CLAWHUB · Unverified

Generate a PNG mind map from Markdown using free (auto), center, or horizontal layout. Use when user asks to produce a brain map/思维导图 from notes. Skill: Mind Map Owner: sawyer-shi Summary: Generate a PNG mind map from Markdown using free (auto), center, or horizontal layout. Use when user asks to produce a brain map/思维导图 from notes. Tags: latest:1.0.2 Version history: v1.0.2 | 2026-03-30T02:47:22.676Z | user - Font fallback improved: now explicitly prioritizes system CJK fonts by OS when download is unavailable. - Documentation update: clarified system font se

62
Rank
84
Safety
1.1k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.1K 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

Install and run

Setup complexity: low.

clawhub skill install s17fk7a77dw6jcbb8n6h4shh6n83k94v:mind-map-skill
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. 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-sawyer-shi-mind-map-skill/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

23,748 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: mind-map-skill
description: Generate a PNG mind map from Markdown using free (auto), center, or horizontal layout. Use when user asks to produce a brain map/思维导图 from notes.
argument-hint: "[free|center|horizontal] [markdown_file_or_inline_markdown]"
disable-model-invocation: true
allowed-tools: Bash(python mind_map/scripts/run_mind_map.py *), Read, Write
---

# Mind Map Skill

Generate mind map images locally from Markdown content.

## Invocation

Use this skill directly:

- `/mind-map-skill free docs/plan.md`
- `/mind-map-skill center "# 项目\n## 模块\n- A\n- B"`
- `/mind-map-skill horizontal notes.md`

Arguments are mapped as:

- `$0`: layout type (`free`, `center`, `horizontal`)
- `$1`: markdown file path or inline markdown text

If layout argument is missing, use `free`.

## Execution steps

1. Parse `$ARGUMENTS`.
2. Resolve markdown input:
   - If `$1` is a file path, read file content.
   - Otherwise treat `$1` as inline markdown.
3. Run from repository root (`D:\Work\skills\mind_map`):

```bash
python mind-map-skill/scripts/run_mind_map.py --layout <layout> --input "<file-or-markdown>" --output-dir mind_map_output
```

By default, output files are grouped by date under `mind_map_output/YYYY-MM-DD/`.
Use `--flat-output` to write directly into `mind_map_output/`.

4. Report:
    - selected layout
    - output PNG path
    - input markdown saved path (same dated folder)
    - node count and depth

## Layout behavior

- `center`: radial structure (equivalent to mind_map_center capability)
- `horizontal`: left-to-right structure (equivalent to mind_map_horizontal capability)
- `free`: auto select based on complexity (equivalent to mind_map_free capability)

Auto rule in free mode:

- choose `center` when `depth <= 4` and `total_nodes <= 100`
- otherwise choose `horizontal`

## Supporting files

- Runtime engine: `mind-map-skill/scripts/mind_map_generator.py`
- Runner script: `mind-map-skill/scripts/run_mind_map.py`
- Example markdown: `mind-map-skill/examples/sample.md`
- Parameter schema (optional compatibility): `mind-map-skill/skill.yaml`
- Detailed reference: `mind-map-skill/reference.md`
- Usage examples: `mind-map-skill/examples.md`

## Font behavior

- On first run, the skill attempts to download a CJK font to local cache: `~/.cache/mind-map-skill/chinese_font.ttc`.
- Download source in repository: `resources/chinese_font.ttc` (not part of skill upload package).
- If download is unavailable, it falls back to prioritized system CJK fonts (Linux/macOS/Windows specific order).

## Project metadata

- **Author**: [@sawyer-shi](https://github.com/sawyer-shi)
- **Email**: sawyer36@foxmail.com

_meta.json

{
  "ownerId": "kn791ps3v68yf8fnrrsp4xy3zx824smv",
  "slug": "mind-map-skill",
  "version": "1.0.2",
  "publishedAt": 1774838842676
}

examples.md

# Mind Map Skill Examples

## Example 1: Free mode with inline markdown

Command:

```bash
python mind_map/scripts/run_mind_map.py --layout free --input "# 项目计划\n## 目标\n- 增长\n- 降本" --filename demo_free --output-dir mind_map_output
```

## Example 2: Center mode with markdown file

Input file `test/input.md`:

```markdown
# 产品路线图
## 核心目标
- 提升留存
- 降低流失
```

Command:

```bash
python mind_map/scripts/run_mind_map.py --layout center --input test/input.md --filename demo_center --output-dir mind_map_output
```

## Example 3: Horizontal mode

Command:

```bash
python mind_map/scripts/run_mind_map.py --layout horizontal --input "# Architecture\n## API\n- Auth\n- Billing\n## Data\n- DB\n- Cache" --filename demo_horizontal --output-dir mind_map_output

If your skill directory is named `mind-map-skill`, replace `mind_map` with `mind-map-skill` in command paths.
```

By default, outputs are created under `mind_map_output/YYYY-MM-DD/`.
Add `--flat-output` if you want files directly under `mind_map_output/`.

## Project metadata

- Author: [@sawyer-shi](https://github.com/sawyer-shi)
- Email: sawyer36@foxmail.com

examples/sample.md

# 产品路线图
## 核心目标
- 提升留存率
- 降低获客成本
## 执行策略
- 数据分析
- 实验迭代
## 风险管理
- 流量波动
- 人员瓶颈

reference.md

# Mind Map Skill Reference

## Purpose

Generate a PNG mind map from Markdown text.

## Font handling

On first run, this skill downloads a CJK font to local cache:

- `~/.cache/mind-map-skill/chinese_font.ttc`
- Remote source: `https://raw.githubusercontent.com/sawyer-shi/mind-map-skill/main/resources/chinese_font.ttc`

Repository storage:

- `resources/chinese_font.ttc` (kept in git repository, excluded from skill package upload)

It then uses the cached font to avoid Chinese text garbling on Linux/macOS.
If download fails, it falls back to system fonts.

System fallback priority:

- Linux: WenQuanYi (MicroHei/ZenHei) -> Noto CJK -> AR PL fonts -> DejaVu Sans
- macOS: PingFang -> Hiragino Sans GB -> STHeiti/Songti/Heiti
- Windows: Microsoft YaHei/JhengHei -> SimHei -> SimSun

## Layout modes

- `free`: Auto-select layout by complexity.
- `center`: Radial layout around root node.
- `horizontal`: Left-to-right hierarchical layout.

## Free mode decision rule

- Select `center` when `depth <= 4` and `total_nodes <= 100`.
- Otherwise select `horizontal`.

## Runner script

Main execution entry:

```bash
python mind_map/scripts/run_mind_map.py --layout <free|center|horizontal> --input "<markdown-or-file>" --output-dir mind_map_output

If your skill directory is named `mind-map-skill`, run:

```bash
python mind-map-skill/scripts/run_mind_map.py --layout <free|center|horizontal> --input "<markdown-or-file>" --output-dir mind_map_output
```
```

Default behavior writes outputs to a date subfolder:

- `mind_map_output/YYYY-MM-DD/`

To disable date grouping, pass `--flat-output`.

## Output

- PNG file path
- Saved input markdown path (same output dated folder)
- Selected layout
- Tree depth
- Total node count

## Errors

- Empty markdown input: returns validation error.
- Unsupported layout value: returns validation error.

## Metadata

- Author: [@sawyer-shi](https://github.com/sawyer-shi)
- Email: sawyer36@foxmail.com

Sponsored

Ads related to Mind Map and adjacent AI workflows.