jpskill.com
🛠️ 開発・MCP コミュニティ

create-viz

Create publication-quality visualizations with Python. Use when turning query results or a DataFrame into a chart, selecting the right chart type for a trend or comparison, generating a plot for a report or presentation, or needing an interactive chart with hover and zoom.

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o create-viz.zip https://jpskill.com/download/22584.zip && unzip -o create-viz.zip && rm create-viz.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/22584.zip -OutFile "$d\create-viz.zip"; Expand-Archive "$d\create-viz.zip" -DestinationPath $d -Force; ri "$d\create-viz.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して create-viz.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → create-viz フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
1

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

[Skill 名] create-viz

/create-viz - 可視化の作成

見慣れないプレースホルダーが表示された場合や、どのツールが接続されているかを確認する必要がある場合は、CONNECTORS.md を参照してください。

Python を使用して、出版品質のデータ可視化を作成します。明瞭さ、正確さ、デザインに関するベストプラクティスに従って、データからグラフを生成します。

使用方法

/create-viz <data source> [chart type] [additional instructions]

ワークフロー

1. リクエストの理解

以下を判断します。

  • データソース: クエリ結果、貼り付けられたデータ、CSV/Excel ファイル、またはクエリ対象のデータ
  • グラフの種類: 明示的に要求されたものか、推奨が必要なものか
  • 目的: 探索、プレゼンテーション、レポート、ダッシュボードコンポーネント
  • 対象読者: 技術チーム、役員、外部関係者

2. データの取得

データウェアハウスが接続されており、データのクエリが必要な場合:

  1. クエリを記述し、実行します。
  2. 結果を pandas DataFrame にロードします。

データが貼り付けられたり、アップロードされたりした場合:

  1. データを pandas DataFrame にパースします。
  2. 必要に応じてクリーンアップと準備を行います(型変換、null 処理など)。

データが会話中の以前の分析からのものである場合:

  1. 既存のデータを参照します。

3. グラフの種類の選択

ユーザーがグラフの種類を指定しなかった場合は、データと質問に基づいて推奨します。

データ関係 推奨グラフ
時間経過に伴う傾向 折れ線グラフ
カテゴリ間の比較 棒グラフ(カテゴリが多い場合は横棒)
全体に対する部分の構成 積み上げ棒グラフまたは積み上げ面グラフ(6カテゴリ未満でない限り円グラフは避ける)
値の分布 ヒストグラムまたは箱ひげ図
2つの変数間の相関 散布図
時間経過に伴う2変数比較 二重軸折れ線グラフまたはグループ化棒グラフ
地理データ コロプレスマップ
ランキング 横棒グラフ
流れまたはプロセス サンキーダイアグラム
関係のマトリックス ヒートマップ

ユーザーが指定しなかった場合は、推奨事項を簡潔に説明します。

4. 可視化の生成

必要に応じて、以下のライブラリのいずれかを使用して Python コードを記述します。

  • matplotlib + seaborn: 静的で出版品質のグラフに最適です。デフォルトの選択肢です。
  • plotly: インタラクティブなグラフや、ユーザーがインタラクティブ性を要求した場合に最適です。

コード要件:

import matplotlib.pyplot as plt
import seaborn as sns
import pandas as pd

# Set professional style
plt.style.use('seaborn-v0_8-whitegrid')
sns.set_palette("husl")

# Create figure with appropriate size
fig, ax = plt.subplots(figsize=(10, 6))

# [chart-specific code]

# Always include:
ax.set_title('Clear, Descriptive Title', fontsize=14, fontweight='bold')
ax.set_xlabel('X-Axis Label', fontsize=11)
ax.set_ylabel('Y-Axis Label', fontsize=11)

# Format numbers appropriately
# - Percentages: '45.2%' not '0.452'
# - Currency: '$1.2M' not '1200000'
# - Large numbers: '2.3K' or '1.5M' not '2300' or '1500000'

# Remove chart junk
ax.spines['top'].set_visible(False)
ax.spines['right'].set_visible(False)

plt.tight_layout()
plt.savefig('chart_name.png', dpi=150, bbox_inches='tight')
plt.show()

5. デザインのベストプラクティスの適用

色:

  • 一貫性があり、色覚異常に配慮したパレットを使用します。
  • 色を意味のある方法で使用します(装飾的ではなく)。
  • 対照的な色で主要なデータポイントや傾向を強調します。
  • 重要度の低い参照データをグレーアウトします。

タイポグラフィ:

  • メトリックだけでなく、洞察を述べる記述的なタイトル(例:「月別収益」ではなく「収益は前年比23%増加」)。
  • 読みやすい軸ラベル(可能であれば90度回転させない)。
  • 明瞭さを増す場合に、主要なポイントにデータラベルを付けます。

レイアウト:

  • 適切な余白とマージン。
  • データと重ならない凡例の配置。
  • 自然な順序がない限り、カテゴリを値でソートします(アルファベット順ではなく)。

正確性:

  • 棒グラフのY軸はゼロから開始します。
  • 明確な表記なしに誤解を招く軸の区切りを使用しません。
  • パネルを比較する際に一貫したスケールを使用します。
  • 適切な精度(小数点以下10桁を表示しない)。

6. 保存と提示

  1. グラフを記述的な名前のPNGファイルとして保存します。
  2. グラフをユーザーに表示します。
  3. ユーザーが変更できるように、使用したコードを提供します。
  4. バリエーション(異なるグラフの種類、異なるグループ化、ズームされた時間範囲など)を提案します。

/create-viz Show monthly revenue for the last 12 months as a line chart with the trend highlighted
/create-viz Here's our NPS data by product: [pastes data]. Create a horizontal bar chart ranking products by score.
/create-viz Query the orders table and create a heatmap of order volume by day-of-week and hour

ヒント

  • インタラクティブなグラフ(ホバー、ズーム、フィルターなど)が必要な場合は、「interactive」と指定すると、Claude が plotly を使用します。
  • より大きなフォントと高いコントラストが必要な場合は、「presentation」と指定してください。
  • 複数のグラフを一度に要求できます(例:「2x2のグリッドでグラフを作成し、...を表示してください」)。
  • グラフは現在のディレクトリにPNGファイルとして保存されます。
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

/create-viz - Create Visualizations

If you see unfamiliar placeholders or need to check which tools are connected, see CONNECTORS.md.

Create publication-quality data visualizations using Python. Generates charts from data with best practices for clarity, accuracy, and design.

Usage

/create-viz <data source> [chart type] [additional instructions]

Workflow

1. Understand the Request

Determine:

  • Data source: Query results, pasted data, CSV/Excel file, or data to be queried
  • Chart type: Explicitly requested or needs to be recommended
  • Purpose: Exploration, presentation, report, dashboard component
  • Audience: Technical team, executives, external stakeholders

2. Get the Data

If data warehouse is connected and data needs querying:

  1. Write and execute the query
  2. Load results into a pandas DataFrame

If data is pasted or uploaded:

  1. Parse the data into a pandas DataFrame
  2. Clean and prepare as needed (type conversions, null handling)

If data is from a previous analysis in the conversation:

  1. Reference the existing data

3. Select Chart Type

If the user didn't specify a chart type, recommend one based on the data and question:

Data Relationship Recommended Chart
Trend over time Line chart
Comparison across categories Bar chart (horizontal if many categories)
Part-to-whole composition Stacked bar or area chart (avoid pie charts unless <6 categories)
Distribution of values Histogram or box plot
Correlation between two variables Scatter plot
Two-variable comparison over time Dual-axis line or grouped bar
Geographic data Choropleth map
Ranking Horizontal bar chart
Flow or process Sankey diagram
Matrix of relationships Heatmap

Explain the recommendation briefly if the user didn't specify.

4. Generate the Visualization

Write Python code using one of these libraries based on the need:

  • matplotlib + seaborn: Best for static, publication-quality charts. Default choice.
  • plotly: Best for interactive charts or when the user requests interactivity.

Code requirements:

import matplotlib.pyplot as plt
import seaborn as sns
import pandas as pd

# Set professional style
plt.style.use('seaborn-v0_8-whitegrid')
sns.set_palette("husl")

# Create figure with appropriate size
fig, ax = plt.subplots(figsize=(10, 6))

# [chart-specific code]

# Always include:
ax.set_title('Clear, Descriptive Title', fontsize=14, fontweight='bold')
ax.set_xlabel('X-Axis Label', fontsize=11)
ax.set_ylabel('Y-Axis Label', fontsize=11)

# Format numbers appropriately
# - Percentages: '45.2%' not '0.452'
# - Currency: '$1.2M' not '1200000'
# - Large numbers: '2.3K' or '1.5M' not '2300' or '1500000'

# Remove chart junk
ax.spines['top'].set_visible(False)
ax.spines['right'].set_visible(False)

plt.tight_layout()
plt.savefig('chart_name.png', dpi=150, bbox_inches='tight')
plt.show()

5. Apply Design Best Practices

Color:

  • Use a consistent, colorblind-friendly palette
  • Use color meaningfully (not decoratively)
  • Highlight the key data point or trend with a contrasting color
  • Grey out less important reference data

Typography:

  • Descriptive title that states the insight, not just the metric (e.g., "Revenue grew 23% YoY" not "Revenue by Month")
  • Readable axis labels (not rotated 90 degrees if avoidable)
  • Data labels on key points when they add clarity

Layout:

  • Appropriate whitespace and margins
  • Legend placement that doesn't obscure data
  • Sorted categories by value (not alphabetically) unless there's a natural order

Accuracy:

  • Y-axis starts at zero for bar charts
  • No misleading axis breaks without clear notation
  • Consistent scales when comparing panels
  • Appropriate precision (don't show 10 decimal places)

6. Save and Present

  1. Save the chart as a PNG file with descriptive name
  2. Display the chart to the user
  3. Provide the code used so they can modify it
  4. Suggest variations (different chart type, different grouping, zoomed time range)

Examples

/create-viz Show monthly revenue for the last 12 months as a line chart with the trend highlighted
/create-viz Here's our NPS data by product: [pastes data]. Create a horizontal bar chart ranking products by score.
/create-viz Query the orders table and create a heatmap of order volume by day-of-week and hour

Tips

  • If you want interactive charts (hover, zoom, filter), mention "interactive" and Claude will use plotly
  • Specify "presentation" if you need larger fonts and higher contrast
  • You can request multiple charts at once (e.g., "create a 2x2 grid of charts showing...")
  • Charts are saved to your current directory as PNG files