Token导航 LogoToken导航

Agent Skill · 研究检索

chart-builder(图表生成器)

chart-builder 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

chart-builder 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 71,089。

总安装 196周安装 8GitHub Stars 15下载 63核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:chart-builder(图表生成器)
来源仓库:https://github.com/nickcrew/claude-ctx-plugin
仓库路径:skills/chart-builder
安装命令:
npx skills add https://github.com/nickcrew/claude-ctx-plugin --skill chart-builder
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/nickcrew/claude-ctx-plugin --skill chart-builder

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

chart-builder 提供从数据洞察到可视化实现的完整流程,涵盖图表类型选择、配色规范与无障碍设计。适合需要准确传达数据含义的项目,支持 Python matplotlib/Seaborn 与 JavaScript Chart.js 输出。内置常见图表模板与最佳实践指南,避免误导性视觉呈现与信息过载。

需用户提供原始数据或明确分析目标,否则无法生成有效图表脚本。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/chart-builder

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/nickcrew/claude-ctx-plugin --skill chart-build…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

chart-builder 怎么安装?

在终端执行 npx skills add https://github.com/nickcrew/claude-ctx-plugin --skill chart-builder。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

chart-builder 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

chart-builder 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

chart-builder 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

chart-builder 用的人多吗?

公开数据是累计安装 196 次,近一周安装 8 次,下载 63 次,GitHub 15 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

chart-builder 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
chart-builder

图表生成器 · 本页

19615需要联网未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Chart Builder

Overview

This skill provides a systematic approach to data visualization—from choosing the right chart type for your data and message, to implementing it in Python (matplotlib/seaborn) or JavaScript (Chart.js). It covers chart anatomy, color principles, accessibility requirements, and common pitfalls, so every chart communicates its insight clearly and honestly.

When to Use

  • You need to communicate a data insight visually
  • You're unsure which chart type fits your data shape and message
  • You need reproducible chart code in Python or JavaScript
  • You want to improve a chart that isn't communicating clearly
  • You're building a report, slide deck, or embedded visualization

When NOT to Use

  • Building a full interactive BI dashboard (use dashboard-designer skill)
  • Designing data art or infographics for marketing
  • Creating maps or geospatial visualizations (use a GIS tool)
  • Animating data for video production

Quick Reference

Chart TypeBest ForAvoid When
Bar (vertical)Comparing categories, rankingsToo many categories (>12)
Bar (horizontal)Long category labels, rankingsShowing trends over time
LineTrends over time, continuous dataCategorical/unordered x-axis
ScatterCorrelation between two variablesFewer than ~20 data points
Pie / DonutPart-of-whole (max 5 slices)Comparing many segments
HeatmapMatrix of values, correlation tablesAudiences unfamiliar with the format
Box plotDistribution comparison across groupsPresenting to non-technical audience
HistogramDistribution of a single variableShowing trends or comparisons
AreaCumulative totals over timeMultiple overlapping series
Stacked barPart-of-whole across categoriesComparing absolute values

Instructions

Step 1: Choose the Right Chart Type

Answer these questions:

  1. How many variables? 1 (distribution) → histogram/box. 2 (relationship) → scatter/line. 2+ (comparison) → bar/heatmap.
  2. What's the x-axis? Time → line/area. Categories → bar. Continuous numeric → scatter.
  3. What's the message? Trend → line. Ranking → bar. Proportion → pie (≤5 slices). Correlation → scatter.

Step 2: Chart Anatomy — Label Everything

A complete chart has:

  • Title: one-sentence insight, not just the topic ("West Region Revenue Up 34% in Q3", not "Revenue by Region")
  • Axis labels with units (e.g., "Revenue (USD thousands)")
  • Legend (if multiple series)
  • Data source in a footer note
  • Gridlines: horizontal only, light grey, behind data

Step 3: Color Principles

  • Use 2–4 colors maximum for categorical data
  • Use a sequential palette (light→dark) for ordered/quantitative data
  • Use diverging palette (blue→white→red) for data with a meaningful midpoint (e.g., % change, NPS)
  • Never use red/green alone—colorblind users cannot distinguish them; add pattern or shape
  • Highlight the most important series in a strong color; grey out everything else

Step 4: Accessibility Checklist

  • Minimum contrast ratio 4.5:1 for text against background
  • Add alt text describing the chart's key finding
  • Don't rely on color alone to encode information (add labels, patterns)
  • Font size minimum 12pt for axis labels, 14pt for titles
  • Provide a data table below the chart for screen readers

Step 5: Python Implementation (matplotlib / seaborn)

Bar chart:

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

df = pd.DataFrame({
    'Region': ['West', 'East', 'North', 'South'],
    'Revenue': [4200, 3100, 1800, 2700]
})

fig, ax = plt.subplots(figsize=(8, 5))
bars = ax.bar(df['Region'], df['Revenue'], color=['#2563EB', '#64748B', '#64748B', '#64748B'])
ax.set_title("West Region Leads Q3 Revenue", fontsize=16, fontweight='bold', pad=12)
ax.set_xlabel("Region", fontsize=12)
ax.set_ylabel("Revenue (USD thousands)", fontsize=12)
ax.yaxis.grid(True, color='#E5E7EB', linewidth=0.8)
ax.set_axisbelow(True)
ax.spines[['top', 'right']].set_visible(False)

# Value labels on bars
for bar in bars:
    ax.text(bar.get_x() + bar.get_width()/2, bar.get_height() + 50,
            f"${bar.get_height():,.0f}K", ha='center', va='bottom', fontsize=11)

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

Line chart (trend):

import matplotlib.pyplot as plt
import pandas as pd

df = pd.DataFrame({
    'Month': ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'],
    'Revenue': [180, 210, 195, 240, 285, 310]
})

fig, ax = plt.subplots(figsize=(9, 5))
ax.plot(df['Month'], df['Revenue'], color='#2563EB', linewidth=2.5, marker='o', markersize=7)
ax.fill_between(range(len(df)), df['Revenue'], alpha=0.08, color='#2563EB')
ax.set_title("Revenue Growing Steadily — Up 72% H1", fontsize=16, fontweight='bold')
ax.set_ylabel("Revenue (USD thousands)", fontsize=12)
ax.yaxis.grid(True, color='#E5E7EB', linewidth=0.8)
ax.set_axisbelow(True)
ax.spines[['top', 'right']].set_visible(False)
plt.tight_layout()
plt.savefig("revenue_trend.png", dpi=150, bbox_inches='tight')

Scatter plot (correlation):

import seaborn as sns
import matplotlib.pyplot as plt

fig, ax = plt.subplots(figsize=(8, 6))
sns.regplot(data=df, x='marketing_spend', y='revenue', ax=ax,
            scatter_kws={'alpha': 0.6, 'color': '#2563EB'},
            line_kws={'color': '#DC2626', 'linewidth': 1.5})
ax.set_title("Marketing Spend Strongly Correlates with Revenue (r=0.78)", fontsize=14, fontweight='bold')
ax.set_xlabel("Marketing Spend (USD)", fontsize=12)
ax.set_ylabel("Revenue (USD)", fontsize=12)
ax.spines[['top', 'right']].set_visible(False)
plt.tight_layout()

Heatmap (correlation matrix):

import seaborn as sns
import matplotlib.pyplot as plt

corr = df[['revenue', 'units_sold', 'discount_pct', 'marketing_spend']].corr()
fig, ax = plt.subplots(figsize=(7, 6))
sns.heatmap(corr, annot=True, fmt=".2f", cmap='RdBu_r', center=0,
            vmin=-1, vmax=1, square=True, linewidths=0.5, ax=ax)
ax.set_title("Correlation Matrix — Sales Variables", fontsize=14, fontweight='bold')
plt.tight_layout()

Step 6: JavaScript Implementation (Chart.js)

Bar chart:

<canvas id="revenueChart" width="600" height="400"></canvas>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script>
const ctx = document.getElementById('revenueChart').getContext('2d');
new Chart(ctx, {
  type: 'bar',
  data: {
    labels: ['West', 'East', 'North', 'South'],
    datasets: [{
      label: 'Revenue (USD K)',
      data: [4200, 3100, 1800, 2700],
      backgroundColor: ['#2563EB', '#64748B', '#64748B', '#64748B'],
      borderRadius: 4,
    }]
  },
  options: {
    responsive: true,
    plugins: {
      title: { display: true, text: 'West Region Leads Q3 Revenue', font: { size: 16 } },
      legend: { display: false }
    },
    scales: {
      y: { grid: { color: '#E5E7EB' }, ticks: { callback: v => `$${v}K` } },
      x: { grid: { display: false } }
    }
  }
});
</script>

Line chart (multi-series):

new Chart(ctx, {
  type: 'line',
  data: {
    labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'],
    datasets: [
      {
        label: 'Revenue',
        data: [180, 210, 195, 240, 285, 310],
        borderColor: '#2563EB',
        backgroundColor: 'rgba(37,99,235,0.08)',
        fill: true,
        tension: 0.3,
        pointRadius: 5
      },
      {
        label: 'Target',
        data: [200, 220, 220, 250, 270, 300],
        borderColor: '#DC2626',
        borderDash: [6, 3],
        fill: false,
        pointRadius: 0
      }
    ]
  },
  options: {
    plugins: { title: { display: true, text: 'Revenue vs Target — H1 2024' } },
    scales: { y: { grid: { color: '#E5E7EB' } } }
  }
});

Examples

Example 1: Build a Sales Trend Line Chart

Input: "I have monthly revenue data for 2023 and want to show the growth trend."

Step 1 — Chart choice: Time series data → line chart. Message is trend → line with a subtle fill works well.

Step 2 — Python code:

import matplotlib.pyplot as plt
import pandas as pd

data = {
    'month': pd.date_range('2023-01', periods=12, freq='MS'),
    'revenue': [210, 195, 230, 255, 280, 310, 295, 340, 365, 390, 410, 445]
}
df = pd.DataFrame(data)
mom_growth = (df['revenue'].iloc[-1] / df['revenue'].iloc[0] - 1) * 100

fig, ax = plt.subplots(figsize=(10, 5))
ax.plot(df['month'], df['revenue'], color='#2563EB', linewidth=2.5, marker='o', markersize=6)
ax.fill_between(df['month'], df['revenue'], alpha=0.07, color='#2563EB')
ax.set_title(f"Revenue Up {mom_growth:.0f}% in 2023", fontsize=16, fontweight='bold')
ax.set_ylabel("Revenue (USD thousands)", fontsize=12)
ax.xaxis.set_major_formatter(plt.matplotlib.dates.DateFormatter('%b'))
ax.yaxis.grid(True, color='#E5E7EB', linewidth=0.8, linestyle='--')
ax.set_axisbelow(True)
ax.spines[['top', 'right']].set_visible(False)
plt.tight_layout()
plt.savefig("2023_revenue_trend.png", dpi=150, bbox_inches='tight')

Output: A clean line chart titled "Revenue Up 112% in 2023" with subtle area fill, gridlines only on y-axis, no top/right spines.


Example 2: Build a Comparison Bar Chart

Input: "Compare Q3 revenue across 5 product categories, highlighting which ones are above target."

Step 1 — Chart choice: Comparing categories → horizontal bar chart (better for 5 labels). Highlight above-target bars differently.

Step 2 — Python code:

import matplotlib.pyplot as plt
import pandas as pd
import numpy as np

df = pd.DataFrame({
    'Category': ['Analytics', 'Storage', 'Compute', 'Networking', 'Security'],
    'Revenue':   [4200, 2800, 3600, 1500, 3100],
    'Target':    [3800, 3000, 3500, 2000, 2900]
})
df['above_target'] = df['Revenue'] >= df['Target']
colors = ['#2563EB' if above else '#94A3B8' for above in df['above_target']]

fig, ax = plt.subplots(figsize=(9, 5))
bars = ax.barh(df['Category'], df['Revenue'], color=colors, height=0.6)
ax.vlines(df['Target'], -0.4, len(df)-0.6, colors='#DC2626', linewidth=1.5,
          linestyle='--', label='Target')

ax.set_title("3 of 5 Categories Beat Q3 Revenue Target", fontsize=15, fontweight='bold')
ax.set_xlabel("Revenue (USD thousands)", fontsize=12)
ax.xaxis.grid(True, color='#E5E7EB', linewidth=0.8)
ax.set_axisbelow(True)
ax.spines[['top', 'right']].set_visible(False)

# Labels
for bar, val in zip(bars, df['Revenue']):
    ax.text(val + 30, bar.get_y() + bar.get_height()/2,
            f"${val:,}K", va='center', fontsize=10)

from matplotlib.patches import Patch
legend_elements = [Patch(color='#2563EB', label='Above Target'),
                   Patch(color='#94A3B8', label='Below Target')]
ax.legend(handles=legend_elements, loc='lower right')
plt.tight_layout()
plt.savefig("category_vs_target.png", dpi=150, bbox_inches='tight')

Output: Horizontal bar chart with blue bars (above target) and grey bars (below target), red dashed target line, value labels on each bar.

Best Practices

  • Title the chart with the insight, not just the topic (e.g., "Churn Doubled in Q4", not "Churn by Quarter")
  • Remove chart junk: gridlines on only one axis, no border box, no 3D effects
  • Sort bar charts by value unless the x-axis is inherently ordered (e.g., time, ordinal scale)
  • Never use a pie chart with more than 5 slices; use a bar chart instead
  • Keep the y-axis starting at zero for bar charts—truncated axes exaggerate differences
  • Add data labels directly on bars/lines when the audience needs exact values
  • Use consistent color encoding across all charts in a report

Common Mistakes

  • Dual y-axes: almost always misleading; use two separate charts instead
  • 3D charts: never—they distort proportions
  • Rainbow color palettes: hard to read and inaccessible; use 2–4 purposeful colors
  • Plotting time on a categorical (non-ordered) axis—always use a proper date axis
  • Omitting axis units (is that revenue in dollars, thousands, or millions?)
  • Pie charts with thin slivers—merge small categories into "Other"
  • Connecting non-continuous data with lines (e.g., survey responses from different years)

Tips & Tricks

  • sns.set_style('whitegrid') gives clean defaults in seaborn with one line
  • Use ax.spines[['top', 'right']].set_visible(False) to immediately make matplotlib charts look modern
  • For colorblind-safe palettes in seaborn, use palette='colorblind'
  • Add a thin horizontal line at y=0 for charts with negative values: ax.axhline(0, color='black', linewidth=0.8)
  • Chart.js's tension: 0.3 makes line charts look smoother without being misleading
  • Export at 150+ DPI for crisp results in presentations: plt.savefig("chart.png", dpi=150)

Related Skills

平台分布

Claude

35.27%
按下载量换算22

Codex

33.87%
按下载量换算21

Cursor

17.96%
按下载量换算11

Gemini CLI

10.71%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills