chart
できること
エージェントがグラフツールを使い、棒、折れ線、円、散布図などのグラフでデータを表示するよう案内します。AIのコーディング環境の中で、数字をグラフで見たい人向けです。
使う場面
- ✓データのグラフ、チャート、プロットを明示的に依頼するとき。
- ✓傾向や比較を、棒、折れ線、円のグラフで示したいとき。
- ✓関係やプロセスを図にしたいとき。
スキルのリンク
https://github.com/Kilo-Org/kilocode/blob/main/.kilo/skills/chart/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“月ごとの売上データを折れ線グラフにして、傾向がわかるようにしてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントはサポートされているグラフの種類を選び、データとラベルをグラフツールに渡して、描画をツールに任せます。プロセスの図は、グラフではなくテキストのブロックとして書かれます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Data Visualization
The chart tool is ALWAYS available in this environment. When the user asks to visualize data (charts, graphs, plots), you MUST call the chart tool. Never output the config as text, never say the tool is unavailable, never suggest external renderers. Always use the tool call — it is the only correct response for data visualization requests. Do NOT repeat or echo the config JSON in your text response.
Use the chart tool only when the user explicitly asks for a chart, graph, or plot. Only use these supported Chart.js v4 types: bar, bubble, pie, doughnut, line, mixed, polarArea, radar, scatter. For area charts, use line with fill: true on the dataset — do NOT use area as a type.
Use mermaid fenced code blocks (```mermaid) when:
- The user asks for a diagram, flowchart, sequence diagram, ER diagram, or architecture diagram
- Visualizing relationships, processes, or structure — not data values
Mermaid is NOT a tool and is NOT Chart.js — never call the chart tool for mermaid diagrams. Just write the mermaid syntax directly in your text response inside a fenced code block. No tool call needed.
Do not use either for: code, text, or data that is already clear in prose or table form.
The chart tool input accepts:
title(string) — short label shown in the tool headerdescription(string, optional) — subtitle shown below the titlespec(string) — a Chart.js config object as a JSON string
The spec field must be a Chart.js config JSON string with type, data, and optionally options. Examples:
Bar chart:
{
"type": "bar",
"data": {
"labels": ["A", "B", "C"],
"datasets": [{ "label": "Value", "data": [10, 20, 15] }]
}
}
Area chart (line with fill):
{
"type": "line",
"data": {
"labels": ["Jan", "Feb", "Mar", "Apr"],
"datasets": [{ "label": "Value", "data": [10, 28, 19, 45], "fill": true }]
}
}
Line chart:
{
"type": "line",
"data": {
"labels": ["Jan", "Feb", "Mar", "Apr"],
"datasets": [{ "label": "Value", "data": [10, 28, 19, 45], "fill": false }]
}
}
Scatter plot:
{
"type": "scatter",
"data": {
"datasets": [{
"label": "Points",
"data": [{ "x": 1, "y": 5 }, { "x": 2, "y": 8 }, { "x": 3, "y": 3 }]
}]
}
}
Time series:
{
"type": "line",
"data": {
"labels": ["2024-01", "2024-02", "2024-03", "2024-04"],
"datasets": [{ "label": "Value", "data": [120, 145, 132, 178], "fill": true }]
}
}
Pie chart:
{
"type": "pie",
"data": {
"labels": ["A", "B", "C"],
"datasets": [{ "data": [30, 50, 20] }]
}
}
Doughnut chart:
{
"type": "doughnut",
"data": {
"labels": ["A", "B", "C"],
"datasets": [{ "data": [30, 50, 20] }]
}
}
Radar chart:
{
"type": "radar",
"data": {
"labels": ["Speed", "Power", "Agility", "Stamina"],
"datasets": [{ "label": "Player", "data": [80, 60, 90, 70] }]
}
}
Bubble chart:
{
"type": "bubble",
"data": {
"datasets": [{
"label": "Group A",
"data": [{ "x": 10, "y": 20, "r": 8 }, { "x": 15, "y": 10, "r": 5 }]
}]
}
}
Polar area chart:
{
"type": "polarArea",
"data": {
"labels": ["A", "B", "C", "D"],
"datasets": [{ "data": [11, 16, 7, 14] }]
}
}
Mixed chart (bar + line):
{
"type": "bar",
"data": {
"labels": ["Jan", "Feb", "Mar"],
"datasets": [
{ "type": "bar", "label": "Revenue", "data": [100, 120, 90] },
{ "type": "line", "label": "Trend", "data": [95, 115, 100] }
]
}
}
You may customize colors by setting backgroundColor and borderColor arrays on datasets. The renderer handles sizing — do not set width or height.
Only include scales in options for cartesian chart types: bar, line, scatter, bubble. Do NOT include scales for pie, doughnut, polarArea, radar, or mixed — it will cause them to fail.
よくある質問
対応しているグラフの種類は?
棒、バブル、円、ドーナツ、折れ線、複合、極座標の面積、レーダー、散布図に対応しています。
面グラフはどう作りますか?
折れ線グラフを使い、データセットの塗りつぶしオプションをオンにします。
フローチャートも作れますか?
フローチャートや図はmermaidのコードとして書かれ、グラフツールの出力にはなりません。
詳細
作者による元の説明
Use when the user asks to visualize data with charts, graphs, or plots using the `chart` tool (bar, line, scatter, pie, time series, etc.).
repo: Kilo-Org/kilocode
人気
- GitHubのスター
- 28k
- ランキング
- #9872
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
jetbrains-sandbox
28kエージェントが、LinuxのクラウドサンドボックスにIntelliJをインストールし、ブラウザで見られる画面と、検査や自動化のためにIDEを操作するツールを用意できるよう支援します。
effect
28kエージェントが、TypeScriptでEffectを書く方法を教えます。型付きのサービス、スキーマ、ワークフローに、古い例ではなく現在のv4のAPIを使います。
rtl-aware-development
28kエージェントが、右から左に書く言語に対応したインターフェースを作れるよう支援します。論理的なレイアウトと、方向の混在するテキストの分離を使います。
似ているスキル
gitcrawl
394k保存されたGitHubのイシューとプルリクエストのアーカイブを検索し、重複をまとめ、GitHub上の現在の状態を確認するようエージェントを支援します。
slacrawl
394kローカルのSlackアーカイブ内のメッセージを検索して件数を数え、アーカイブの新しさを確認し、必要に応じて更新するようエージェントを支援します。
goplaces
394kGoogle Placesを使って、場所を検索し、詳細や口コミを取得し、場所の名前を解決するようエージェントを支援します。スクリプト用にJSON出力もできます。