Communityコーディング&開発github.com

markdown-viewer/canvas

JSON形式で自由配置ノードを使用して空間図を作成します。コンセプトマップ、ナレッジグラフ、x/y座標の精密制御が必要な計画ボードに最適です。

canvas とは?

markdown-viewer/canvasは、JSON形式で定義されたノードをx/y座標で自由に配置できる空間図(キャンバス)を作成するためのスキルです。主にAIエージェント(Claude Code、Cursor、Codexなど)が、コンセプトマップやナレッジグラフ、計画ボードなど視覚的な情報整理を必要とする場面で利用されます。ノードはテキスト、色、形状、リンク先などをプロパティとして持ち、エッジで接続することで複雑な関係性を図示できます。このスキルを使用すると、AIエージェントはマークダウンドキュメント内に埋め込まれたJSONブロックを解析し、それを元に動的なキャンバスUIをレンダリングします。ユーザーはノードの位置をピクセル単位で指定できるため、精密なレイアウトが要求される図表の作成に適しています。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/markdown-viewer/skills/tree/main/skills/canvas

Installed? Explore more コーディング&開発 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

canvas は何をしますか?

JSON形式を使用して、自由配置ノードによる空間図を作成します。コンセプトマップ、ナレッジグラフ、x/y座標の精密制御が必要な計画ボードに最適です。

使用方法

キャンバスは、```canvas コードブロック内にJSON形式で定義します。

基本構造

{
  "nodes": [
    {
      "id": "node1",
      "x": 100,
      "y": 200,
      "width": 150,
      "height": 80,
      "text": "ノード1",
      "color": "#4A90D9",
      "shape": "rectangle"
    },
    {
      "id": "node2",
      "x": 400,
      "y": 200,
      "width": 150,
      "height": 80,
      "text": "ノード2",
      "color": "#50C878",
      "shape": "rounded-rectangle"
    }
  ],
  "edges": [
    {
      "from": "node1",
      "to": "node2",
      "label": "接続",
      "style": "solid"
    }
  ]
}

ノードプロパティ

プロパティ型必須説明
id文字列はいノードの一意識別子
x数値はいキャンバス上のX座標(ピクセル)
y数値はいキャンバス上のY座標(ピクセル)
width数値いいえノードの幅(デフォルト: 150)
height数値いいえノードの高さ(デフォルト: 80)
text文字列はいノードに表示するテキスト
color文字列いいえノードの背景色(CSSカラー値)
shape文字列いいえノードの形状(rectangle、rounded-rectangle、circle、diamond)

エッジプロパティ

プロパティ型必須説明
from文字列はいソースノードのID
to文字列はいターゲットノードのID
label文字列いいえエッジに表示するラベル
style文字列いいえエッジのスタイル(solid、dashed、dotted)
color文字列いいえエッジの色(CSSカラー値)

例

コンセプトマップ

{
  "nodes": [
    { "id": "ai", "x": 250, "y": 50, "text": "人工知能", "color": "#FF6B6B" },
    { "id": "ml", "x": 100, "y": 200, "text": "機械学習", "color": "#4ECDC4" },
    { "id": "dl", "x": 400, "y": 200, "text": "深層学習", "color": "#45B7D1" },
    { "id": "nlp", "x": 50, "y": 350, "text": "自然言語処理", "color": "#96CEB4" },
    { "id": "cv", "x": 250, "y": 350, "text": "コンピュータビジョン", "color": "#FFEAA7" },
    { "id": "rl", "x": 450, "y": 350, "text": "強化学習", "color": "#DDA0DD" }
  ],
  "edges": [
    { "from": "ai", "to": "ml", "label": "サブセット" },
    { "from": "ai", "to": "dl", "label": "サブセット" },
    { "from": "ml", "to": "nlp", "label": "応用" },
    { "from": "dl", "to": "cv", "label": "応用" },
    { "from": "ml", "to": "rl", "label": "関連" }
  ]
}

計画ボード

{
  "nodes": [
    { "id": "idea", "x": 50, "y": 100, "text": "アイデア発想", "color": "#FFD93D", "shape": "diamond" },
    { "id": "proto", "x": 300, "y": 100, "text": "プロトタイピング", "color": "#6BCB77" },
    { "id": "test", "x": 550, "y": 100, "text": "テスト", "color": "#4D96FF" },
    { "id": "launch", "x": 800, "y": 100, "text": "ローンチ", "color": "#FF6B6B", "shape": "rounded-rectangle" }
  ],
  "edges": [
    { "from": "idea", "to": "proto", "label": "設計" },
    { "from": "proto", "to": "test", "label": "検証" },
    { "from": "test", "to": "launch", "label": "デプロイ" }
  ]
}

対応プラットフォーム

  • Claude Code
  • Cursor
  • Codex
  • その他、マークダウンレンダリングをサポートするAIエージェント

Individual skills in this repo

This repo contains 13 individual skills — each has its own dedicated page.

markdown-viewer/archimate

Create ArchiMate enterprise architecture diagrams using PlantUML stdlib macros. Best for TOGAF viewpoints, layered EA modeling (Business/Application/Technology), motivation analysis, and migration planning.

markdown-viewer/architecture

Create layered system architecture diagrams using HTML/CSS templates with color-coded tiers and grid layouts. Best for technology stacks, microservices topology, and multi-tier application design.

markdown-viewer/bpmn

Create business process diagrams using PlantUML syntax with BPMN, EIP, and Lean Mapping stencil icons. Best for workflow automation, approval chains, message-based integration patterns, and value stream mapping.

markdown-viewer/cloud

Create cloud provider architecture diagrams using PlantUML syntax with official AWS, Azure, GCP, and Alibaba Cloud service icons. Best for multi-service cloud topologies and migration blueprints.

markdown-viewer/data-analytics

Create data pipeline and analytics architecture diagrams using PlantUML syntax with database/analytics stencil icons. Best for ETL pipelines, data lakes, real-time streaming, data warehousing, and BI dashboard design.

markdown-viewer/graphviz

Create directed/undirected graphs using DOT language with automatic layout. Best for dependency trees, call graphs, package hierarchies, and module relationships requiring fine-grained edge routing.

markdown-viewer/infocard

Create editorial-style information cards using HTML/CSS in Markdown. Best for knowledge summaries, data highlights, event announcements, and single-topic content cards with magazine-quality typography.

markdown-viewer/iot

Create IoT architecture diagrams using PlantUML syntax with device and sensor stencil icons. Best for smart home, industrial IoT (IIoT), fleet management, edge computing, and sensor network layouts.

markdown-viewer/mindmap

Create hierarchical mind maps using PlantUML @startmindmap syntax. Best for brainstorming, topic decomposition, study notes, and decision trees with automatic radial layout, left/right branches, and per-node styling.

markdown-viewer/network

Create network topology diagrams using PlantUML syntax with mxgraph device icons (Cisco, Citrix, etc.). Best for LAN/WAN layouts, datacenter interconnects, and physical/logical network design.

markdown-viewer/security

Create security architecture diagrams using PlantUML syntax with identity, encryption, firewall, and compliance stencil icons. Best for IAM flows, zero-trust models, encryption pipelines, and threat detection architectures.

markdown-viewer/uml

Create UML diagrams using PlantUML syntax. Best for software modeling — Class, Sequence, Activity, State Machine, Component, Use Case, and Deployment diagrams with concise text-based notation and auto-layout.

markdown-viewer/vega

Create data-driven charts with Vega-Lite (declarative) and Vega (programmatic). Best for statistical visualization of numeric data — bar, line, scatter, heatmap, area, radar charts, and word clouds.

関連スキル