# Xmind Gen

> Markdown見出し階層やリスト構造から、XMind 8 (R3.7.9) で開ける.xmindマインドマップファイルを生成するスキル。「マインドマップにして」「xmindで作って」「.xmindファイルを生成」「マインドマップ化」「構造を可視化」「xmind出力」「ツリー構造をxmindに」などのリクエストで使う。研修資料の構造設計・提案書骨子・調査結果の整理など、階層構造を持つ情報を可視化する用途。生成されるファイルは旧形式（content.xml ベース）なので XMind 8 / XMind 2020 / XMind (Zen) の全環境で開ける。

- **Type:** Skill
- **Install:** `agentstack add skill-y-mori29-xmind-claude-skills-xmind-gen`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [y-mori29](https://agentstack.voostack.com/s/y-mori29)
- **Installs:** 0
- **Category:** [Content & Media](https://agentstack.voostack.com/c/content-and-media)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [y-mori29](https://github.com/y-mori29)
- **Source:** https://github.com/y-mori29/xmind-claude-skills/tree/main/skills/xmind-gen

## Install

```sh
agentstack add skill-y-mori29-xmind-claude-skills-xmind-gen
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# xmind-gen — マインドマップ生成スキル

## 何をするスキルか

Markdown形式の階層情報（見出し `#` `##` または箇条書き `-`）を、**XMind 8 互換の.xmindファイル**に変換する。

## 入力フォーマット

### パターンA: Markdown見出し
```markdown
# ルートタイトル
## 第1階層A
### 第2階層A-1
### 第2階層A-2
## 第1階層B
```

### パターンB: 箇条書き
```markdown
- ルートタイトル
  - 第1階層A
    - 第2階層A-1
  - 第1階層B
```

### パターンC: 混在（見出し→箇条書き）
```markdown
# ルート
## カテゴリA
- 項目1
- 項目2
## カテゴリB
```

## 拡張記法（スタイル・マーカー・ノート）

### スタイル指定 — タイトル末尾に `{.スタイル名}`

| 記法 | 効果 |
|---|---|
| `{.purple}` | 紫背景・白文字・角丸長方形（強調・概念タグ） |
| `{.green}` | 薄緑背景 #D7E4BD（結論・ポジティブメッセージ） |
| `{.lightgreen}` | 明るい緑背景 #CCFFCC（質問・問題提起） |
| `{.rounded}` | 角丸長方形のみ・色なし（章タイトル相当） |

### マーカー指定 — タイトル末尾に `[!マーカーID]`（複数可）

| カテゴリ | マーカーID例 |
|---|---|
| 重要度 | `priority-1` 〜 `priority-5` |
| タスク進捗 | `task-start` / `task-quarter` / `task-half` / `task-3quar` / `task-done` |
| フラッグ | `flag-red` / `flag-orange` / `flag-yellow` / `flag-green` / `flag-blue` / `flag-purple` / `flag-gray` |
| 星 | `star-red` / `star-orange` / `star-yellow` / `star-green` / `star-blue` / `star-purple` |
| シンボル | `symbol-question` / `symbol-info` / `symbol-plus` / `symbol-wrong` / `symbol-pause` |
| 表情 | `smiley-smile` / `smiley-laugh` / `smiley-cry` / `smiley-angry` |
| 矢印 | `arrow-up` / `arrow-down` / `arrow-left` / `arrow-right` |

### ノート — 直前トピックの下に `>` で記述（複数行可）

```markdown
### トピック名
> このトピックの説明・補足
> 複数行のノートも可能
> 3行目もOK
```

### 拡張記法サンプル

```markdown
# プロジェクト計画

## 第1四半期 {.rounded}
### 重要施策 {.purple} [!priority-1]
> 経営会議で決定済み・優先度最高

### 完了タスク [!task-done]
### 進行中(50%) [!task-half]

## 第2四半期 {.rounded}
### 確認事項 {.lightgreen} [!symbol-question]
> 顧客に確認後に着手
```

## 使い方（Claude実行手順）

1. ユーザーから「○○のマインドマップを作って」と言われたら、まず**構造化したMarkdown**を作る（Claude自身が書く）
2. プロジェクト配下に一時Markdownファイルを書き出す（例: `tmp/xmind-input.md`）
3. 以下を実行：
   ```bash
   cd "C:/Users/green/.claude/skills/xmind-gen"
   npm install --silent  # 初回のみ
   node generate.js --in  --out 
   ```
4. 生成された`.xmind`ファイルを森さんに案内する

## 出力場所のルール

`feedback_output_location` に従い、`/c/tmp` ではなく**プロジェクト配下**に保存する。
例：`C:/Users/green/Projects/ai-business/yamae-gws-training/xmind/構造案_v01.xmind`

## ファイル構成

- `generate.js` — メイン変換スクリプト（Node.js）
- `templates/meta.xml` — XMind 8 メタデータ雛形
- `templates/manifest.xml` — マニフェスト雛形
- `templates/styles.xml` — スタイル雛形
- `package.json` — 依存（adm-zip のみ）

## 制約

- 関係線・複数シート・添付画像には非対応。必要になったら拡張する
- XMind 8 (R3.7.9) で開ける形式に準拠
- テーマは森さんの「My テーマ」固定（中央=白背景・第1階層=紺背景・以降=黒枠12pt・Meiryo UI）

## 関連スキル

- `xmind-parse` — 既存.xmindファイルの解析・読み込み

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [y-mori29](https://github.com/y-mori29)
- **Source:** [y-mori29/xmind-claude-skills](https://github.com/y-mori29/xmind-claude-skills)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-y-mori29-xmind-claude-skills-xmind-gen
- Seller: https://agentstack.voostack.com/s/y-mori29
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
