Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Python (matplotlib, seaborn, plotly) でデータ可視化を行うスキル。 「グラフを作って」「チャート作成」「データを可視化して」等のリクエストで発動。 チャート選定、デザイン原則、アクセシビリティ対応も含む。
.claude/skills/minicoohei-data-visualization/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-09 | ✗→✓ | ▲ Improved | 255% | 0% |
| case-01 | ✓→✓ | = Same ✓ | 241% | 0% |
| case-02 | ✓→✓ | = Same ✓ | 212% | 0% |
| case-03 | ✓→✓ | = Same ✓ | 186% | 0% |
| case-04 | ✓→✓ | = Same ✓ | 223% | 0% |
Chart selection guidance, Python visualization code patterns, design principles, and accessibility considerations for creating effective data visualizations.
| What You're Showing | Best Chart | Alternatives | |---|---|---| | Trend over time | Line chart | Area chart (if showing cumulative or composition) | | Comparison across categories | Vertical bar chart | Horizontal bar (many categories), lollipop chart | | Ranking | Horizontal bar chart | Dot plot, slope chart (comparing two periods) | | Part-to-whole composition | Stacked bar chart | Treemap (hierarchical), waffle chart | | Composition over time | Stacked area chart | 100% stacked bar (for proportion focus) | | Distribution | Histogram | Box plot (comparing groups), violin plot, strip plot | | Correlation (2 variables) | Scatter plot | Bubble chart (add 3rd variable as size) | | Correlation (many variables) | Heatmap (correlation matrix) | Pair plot | | Geographic patterns | Choropleth map | Bubble map, hex map | | Flow / process | Sankey diagram | Funnel chart (sequential stages) | | Relationship network | Network graph | Chord diagram | | Performance vs. target | Bullet chart | Gauge (single KPI only) | | Multiple KPIs at once | Small multiples | Dashboard with separate charts |
pythonimport matplotlib.pyplot as plt import matplotlib.ticker as mticker import seaborn as sns import pandas as pd import numpy as np # Professional style setup plt.style.use('seaborn-v0_8-whitegrid') plt.rcParams.update({ 'figure.figsize': (10, 6), 'figure.dpi': 150, 'font.size': 11, 'axes.titlesize': 14, 'axes.titleweight': 'bold', 'axes.labelsize': 11, 'xtick.labelsize': 10, 'ytick.labelsize': 10, 'legend.fontsize': 10, 'figure.titlesize': 16, }) # Colorblind-friendly palettes PALETTE_CATEGORICAL = ['#4C72B0', '#DD8452', '#55A868', '#C44E52', '#8172B3', '#937860'] PALETTE_SEQUENTIAL = 'YlOrRd' PALETTE_DIVERGING = 'RdBu_r'
pythonfig, ax = plt.subplots(figsize=(10, 6)) for label, group in df.groupby('category'): ax.plot(group['date'], group['value'], label=label, linewidth=2) ax.set_title('Metric Trend by Category', fontweight='bold') ax.set_xlabel('Date') ax.set_ylabel('Value') ax.legend(loc='upper left', frameon=True) ax.spines['top'].set_visible(False) ax.spines['right'].set_visible(False) # Format dates on x-axis fig.autofmt_xdate() plt.tight_layout() plt.savefig('trend_chart.png', dpi=150, bbox_inches='tight')
pythonfig, ax = plt.subplots(figsize=(10, 6)) # Sort by value for easy reading df_sorted = df.sort_values('metric', ascending=True) bars = ax.barh(df_sorted['category'], df_sorted['metric'], color=PALETTE_CATEGORICAL[0]) # Add value labels for bar in bars: width = bar.get_width() ax.text(width + 0.5, bar.get_y() + bar.get_height()/2, f'{width:,.0f}', ha='left', va='center', fontsize=10) ax.set_title('Metric by Category (Ranked)', fontweight='bold') ax.set_xlabel('Metric Value') ax.spines['top'].set_visible(False) ax.spines['right'].set_visible(False) plt.tight_layout() plt.savefig('bar_chart.png', dpi=150, bbox_inches='tight')
pythonfig, ax = plt.subplots(figsize=(10, 6)) ax.hist(df['value'], bins=30, color=PALETTE_CATEGORICAL[0], edgecolor='white', alpha=0.8) # Add mean and median lines mean_val = df['value'].mean() median_val = df['value'].median() ax.axvline(mean_val, color='red', linestyle='--', linewidth=1.5, label=f'Mean: {mean_val:,.1f}') ax.axvline(median_val, color='green', linestyle='--', linewidth=1.5, label=f'Median: {median_val:,.1f}') ax.set_title('Distribution of Values', fontweight='bold') ax.set_xlabel('Value') ax.set_ylabel('Frequency') ax.legend() ax.spines['top'].set_visible(False) ax.spines['right'].set_visible(False) plt.tight_layout() plt.savefig('histogram.png', dpi=150, bbox_inches='tight')
pythonfig, ax = plt.subplots(figsize=(10, 8)) # Pivot data for heatmap format pivot = df.pivot_table(index='row_dim', columns='col_dim', values='metric', aggfunc='sum') sns.heatmap(pivot, annot=True, fmt=',.0f', cmap='YlOrRd', linewidths=0.5, ax=ax, cbar_kws={'label': 'Metric Value'}) ax.set_title('Metric by Row Dimension and Column Dimension', fontweight='bold') ax.set_xlabel('Column Dimension') ax.set_ylabel('Row Dimension') plt.tight_layout() plt.savefig('heatmap.png', dpi=150, bbox_inches='tight')
pythoncategories = df['category'].unique() n_cats = len(categories) n_cols = min(3, n_cats) n_rows = (n_cats + n_cols - 1) // n_cols fig, axes = plt.subplots(n_rows, n_cols, figsize=(5*n_cols, 4*n_rows), sharex=True, sharey=True) axes = axes.flatten() if n_cats > 1 else [axes] for i, cat in enumerate(categories): ax = axes[i] subset = df[df['category'] == cat] ax.plot(subset['date'], subset['value'], color=PALETTE_CATEGORICAL[i % len(PALETTE_CATEGORICAL)]) ax.set_title(cat, fontsize=12) ax.spines['top'].set_visible(False) ax.spines['right'].set_visible(False) # Hide empty subplots for j in range(i+1, len(axes)): axes[j].set_visible(False) fig.suptitle('Trends by Category', fontsize=14, fontweight='bold', y=1.02) plt.tight_layout() plt.savefig('small_multiples.png', dpi=150, bbox_inches='tight')
pythondef format_number(val, format_type='number'): """Format numbers for chart labels.""" if format_type == 'currency': if abs(val) >= 1e9: return f'${val/1e9:.1f}B' elif abs(val) >= 1e6: return f'${val/1e6:.1f}M' elif abs(val) >= 1e3: return f'${val/1e3:.1f}K' else: return f'${val:,.0f}' elif format_type == 'percent': return f'{val:.1f}%' elif format_type == 'number': if abs(val) >= 1e9: return f'{val/1e9:.1f}B' elif abs(val) >= 1e6: return f'{val/1e6:.1f}M' elif abs(val) >= 1e3: return f'{val/1e3:.1f}K' else: return f'{val:,.0f}' return str(val) # Usage with axis formatter ax.yaxis.set_major_formatter(mticker.FuncFormatter(lambda x, p: format_number(x, 'currency')))
pythonimport plotly.express as px import plotly.graph_objects as go # Simple interactive line chart fig = px.line(df, x='date', y='value', color='category', title='Interactive Metric Trend', labels={'value': 'Metric Value', 'date': 'Date'}) fig.update_layout(hovermode='x unified') fig.write_html('interactive_chart.html') fig.show() # Interactive scatter with hover data fig = px.scatter(df, x='metric_a', y='metric_b', color='category', size='size_metric', hover_data=['name', 'detail_field'], title='Correlation Analysis') fig.show()
sns.color_palette("colorblind")Before sharing a visualization:
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | pass→pass | 8,552 | 17,690 | +107% | 1 | 1 | 0% | 1,358 | 4,626 | +241% | 0 | 0 | — |
case-02 | pass→pass | 8,940 | 4,862 | -46% | 1 | 1 | 0% | 1,203 | 3,748 | +212% | 0 | 0 | — |
case-03 | pass→pass | 10,108 | 9,210 | -9% | 1 | 1 | 0% | 1,596 | 4,567 | +186% | 0 | 0 | — |
case-04 | pass→pass | 8,509 | 8,549 | +0% | 1 | 1 | 0% | 1,422 | 4,593 | +223% | 0 | 0 | — |
case-05 | pass→pass | 8,896 | 6,781 | -24% | 1 | 1 | 0% | 1,364 | 4,174 | +206% | 0 | 0 | — |
case-06 | pass→pass | 10,838 | 13,660 | +26% | 1 | 1 | 0% | 1,653 | 5,390 | +226% | 0 | 0 | — |
case-07 | pass→pass | 13,621 | 9,926 | -27% | 1 | 1 | 0% | 2,188 | 4,774 | +118% | 0 | 0 | — |
case-08 | pass→pass | 9,379 | 5,932 | -37% | 1 | 1 | 0% | 1,468 | 3,926 | +167% | 0 | 0 | — |
case-09 | fail→pass | 7,537 | 6,123 | -19% | 1 | 1 | 0% | 1,141 | 4,048 | +255% | 0 | 0 | — |
case-10 | pass→pass | 8,501 | 11,778 | +39% | 1 | 1 | 0% | 1,298 | 4,798 | +270% | 0 | 0 | — |
case-11 | pass→pass | 8,823 | 5,127 | -42% | 1 | 1 | 0% | 1,593 | 4,017 | +152% | 0 | 0 | — |
case-12 | pass→pass | 11,360 | 7,331 | -35% | 1 | 1 | 0% | 2,119 | 4,335 | +105% | 0 | 0 | — |
case-13 | pass→pass | 10,137 | 7,779 | -23% | 1 | 1 | 0% | 937 | 4,332 | +362% | 0 | 0 | — |
case-14 | pass→pass | 13,382 | 17,409 | +30% | 1 | 1 | 0% | 2,298 | 6,252 | +172% | 0 | 0 | — |
case-15 | pass→pass | 13,425 | 13,254 | -1% | 1 | 1 | 0% | 2,069 | 5,272 | +155% | 0 | 0 | — |
case-16 | pass→pass | 9,771 | 9,804 | +0% | 1 | 1 | 0% | 1,498 | 4,782 | +219% | 0 | 0 | — |
case-17 | pass→pass | 8,597 | 9,338 | +9% | 1 | 1 | 0% | 1,378 | 4,641 | +237% | 0 | 0 | — |
case-18 | pass→pass | 5,362 | 4,255 | -21% | 1 | 1 | 0% | 883 | 3,775 | +328% | 0 | 0 | — |
case-19 | pass→pass | 12,525 | 10,679 | -15% | 1 | 1 | 0% | 1,934 | 4,771 | +147% | 0 | 0 | — |
case-20 | pass→pass | 11,772 | 8,144 | -31% | 1 | 1 | 0% | 2,152 | 4,490 | +109% | 0 | 0 | — |
case-21 | pass→pass | 17,154 | 12,125 | -29% | 1 | 1 | 0% | 1,707 | 5,355 | +214% | 0 | 0 | — |
case-22 | pass→pass | 5,206 | 5,024 | -3% | 1 | 1 | 0% | 867 | 4,032 | +365% | 0 | 0 | — |
case-23 | pass→pass | 9,323 | 9,285 | -0% | 1 | 1 | 0% | 1,783 | 4,659 | +161% | 0 | 0 | — |
case-24 | pass→pass | 4,908 | 7,717 | +57% | 1 | 1 | 0% | 795 | 4,505 | +467% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 24 cases were attempted. The headline lift of +4 percentage points is the difference between those two pass rates over the 24 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.