Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Comprehensive data analysis skill for CSV files using Python and pandas
.claude/skills/bilal140202-data-analysis/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-06 | ✗→✓ | ▲ Improved | 18% | 0% |
| case-01 | ✗→✓ | ▲ Improved | 115% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 1475% | 0% |
| case-10 | ✗→✓ | ▲ Improved | 26% | 0% |
| case-11 | ✗→✓ | ▲ Improved | 22% | 0% |
You are a data analysis expert. When this skill is loaded, follow these guidelines for analyzing data.
pythonimport pandas as pd import matplotlib.pyplot as plt # Load CSV df = pd.read_csv('/uploads/filename.csv') # Basic info print(f"Shape: {df.shape}") print(f"Columns: {list(df.columns)}") print(df.dtypes) print(df.describe())
python# Check missing values print(df.isnull().sum()) # Fill or drop df = df.dropna() # or df = df.fillna(df.mean()) # for numeric columns
python# Group by and aggregate summary = df.groupby('category').agg({ 'value': ['mean', 'sum', 'count'], 'other_col': 'first' }) # Correlation correlation = df.select_dtypes(include='number').corr()
Always save charts to /workspace/ directory so they can be viewed in the app.
pythonimport matplotlib.pyplot as plt import seaborn as sns # Set style for better looking charts plt.style.use('seaborn-v0_8-darkgrid') sns.set_palette("husl")
pythonplt.figure(figsize=(10, 6)) df.groupby('category')['value'].sum().plot(kind='bar', color='steelblue', edgecolor='black') plt.title('Value by Category', fontsize=14, fontweight='bold') plt.xlabel('Category') plt.ylabel('Total Value') plt.xticks(rotation=45, ha='right') plt.tight_layout() plt.savefig('/workspace/bar_chart.png', dpi=150, bbox_inches='tight') plt.close()
pythonplt.figure(figsize=(12, 6)) plt.plot(df['date'], df['value'], marker='o', linewidth=2, markersize=4) plt.title('Value Over Time', fontsize=14, fontweight='bold') plt.xlabel('Date') plt.ylabel('Value') plt.grid(True, alpha=0.3) plt.tight_layout() plt.savefig('/workspace/line_chart.png', dpi=150, bbox_inches='tight') plt.close()
pythonplt.figure(figsize=(8, 8)) data = df.groupby('category')['value'].sum() plt.pie(data, labels=data.index, autopct='%1.1f%%', startangle=90, colors=sns.color_palette('pastel')) plt.title('Distribution by Category', fontsize=14, fontweight='bold') plt.tight_layout() plt.savefig('/workspace/pie_chart.png', dpi=150, bbox_inches='tight') plt.close()
pythonplt.figure(figsize=(10, 6)) plt.hist(df['value'], bins=20, color='steelblue', edgecolor='black', alpha=0.7) plt.title('Value Distribution', fontsize=14, fontweight='bold') plt.xlabel('Value') plt.ylabel('Frequency') plt.axvline(df['value'].mean(), color='red', linestyle='--', label=f'Mean: {df["value"].mean():.2f}') plt.legend() plt.tight_layout() plt.savefig('/workspace/histogram.png', dpi=150, bbox_inches='tight') plt.close()
pythonplt.figure(figsize=(10, 6)) plt.scatter(df['x'], df['y'], alpha=0.6, c=df['category'].astype('category').cat.codes, cmap='viridis') plt.title('X vs Y Relationship', fontsize=14, fontweight='bold') plt.xlabel('X') plt.ylabel('Y') plt.colorbar(label='Category') plt.tight_layout() plt.savefig('/workspace/scatter.png', dpi=150, bbox_inches='tight') plt.close()
pythonplt.figure(figsize=(10, 8)) correlation = df.select_dtypes(include='number').corr() sns.heatmap(correlation, annot=True, cmap='coolwarm', center=0, fmt='.2f', square=True, linewidths=0.5) plt.title('Correlation Matrix', fontsize=14, fontweight='bold') plt.tight_layout() plt.savefig('/workspace/heatmap.png', dpi=150, bbox_inches='tight') plt.close()
pythonfig, axes = plt.subplots(2, 2, figsize=(14, 10)) # Plot 1: Bar chart df.groupby('category')['value'].sum().plot(kind='bar', ax=axes[0, 0], color='steelblue') axes[0, 0].set_title('Total by Category') axes[0, 0].tick_params(axis='x', rotation=45) # Plot 2: Line chart df.groupby('date')['value'].mean().plot(ax=axes[0, 1], marker='o') axes[0, 1].set_title('Average Over Time') # Plot 3: Histogram axes[1, 0].hist(df['value'], bins=15, color='green', alpha=0.7) axes[1, 0].set_title('Value Distribution') # Plot 4: Box plot df.boxplot(column='value', by='category', ax=axes[1, 1]) axes[1, 1].set_title('Value by Category') plt.suptitle('') # Remove auto-generated title plt.tight_layout() plt.savefig('/workspace/dashboard.png', dpi=150, bbox_inches='tight') plt.close()
For interactive charts that can be viewed in the browser:
pythonimport plotly.express as px import plotly.graph_objects as go # Interactive bar chart fig = px.bar(df, x='category', y='value', color='category', title='Value by Category') fig.write_html('/workspace/interactive_bar.html') # Interactive line chart fig = px.line(df, x='date', y='value', title='Value Over Time', markers=True) fig.write_html('/workspace/interactive_line.html') # Interactive scatter with hover fig = px.scatter(df, x='x', y='y', color='category', size='value', hover_data=['name'], title='Interactive Scatter') fig.write_html('/workspace/interactive_scatter.html') # Interactive pie chart fig = px.pie(df, values='value', names='category', title='Distribution') fig.write_html('/workspace/interactive_pie.html')
df.head() to verify data loaded correctly/workspace/ directoryWhen presenting results:
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-05 | pass→pass | 11,806 | 15,841 | +34% | 1 | 1 | 0% | 2,113 | 3,458 | +64% | 0 | 0 | — |
case-06 | fail→pass | 15,152 | 7,048 | -53% | 1 | 1 | 0% | 2,709 | 3,194 | +18% | 0 | 0 | — |
case-07 | pass→pass | 12,557 | 5,645 | -55% | 1 | 1 | 0% | 2,106 | 2,923 | +39% | 0 | 0 | — |
case-08 | pass→pass | 12,808 | 10,193 | -20% | 1 | 1 | 0% | 2,375 | 3,923 | +65% | 0 | 0 | — |
case-01 | fail→pass | 12,090 | 12,773 | +6% | 1 | 1 | 0% | 2,046 | 4,401 | +115% | 0 | 0 | — |
case-02 | fail→fail | 20,468 | 9,472 | -54% | 1 | 1 | 0% | 3,629 | 3,184 | -12% | 0 | 0 | — |
case-03 | fail→pass | 8,347 | 29,621 | +255% | 1 | 1 | 0% | 426 | 6,711 | +1475% | 0 | 0 | — |
case-04 | pass→pass | 6,358 | 16,707 | +163% | 1 | 1 | 0% | 1,104 | 5,101 | +362% | 0 | 0 | — |
case-09 | pass→fail | 10,363 | 13,898 | +34% | 1 | 1 | 0% | 1,964 | 3,695 | +88% | 0 | 0 | — |
case-10 | fail→pass | 15,004 | 9,187 | -39% | 1 | 1 | 0% | 2,852 | 3,598 | +26% | 0 | 0 | — |
case-11 | fail→pass | 13,490 | 5,261 | -61% | 1 | 1 | 0% | 2,358 | 2,871 | +22% | 0 | 0 | — |
case-12 | fail→pass | 13,339 | 11,220 | -16% | 1 | 1 | 0% | 2,382 | 4,089 | +72% | 0 | 0 | — |
case-13 | fail→pass | 11,768 | 12,478 | +6% | 1 | 1 | 0% | 2,171 | 4,210 | +94% | 0 | 0 | — |
case-14 | fail→pass | 14,762 | 12,300 | -17% | 1 | 1 | 0% | 2,109 | 4,039 | +92% | 0 | 0 | — |
case-15 | fail→pass | 14,689 | 10,866 | -26% | 1 | 1 | 0% | 2,574 | 3,746 | +46% | 0 | 0 | — |
case-16 | fail→fail | 17,340 | 9,593 | -45% | 1 | 1 | 0% | 2,800 | 3,493 | +25% | 0 | 0 | — |
case-17 | pass→pass | 11,250 | 7,609 | -32% | 1 | 1 | 0% | 2,086 | 3,114 | +49% | 0 | 0 | — |
case-18 | fail→pass | 18,008 | 10,841 | -40% | 1 | 1 | 0% | 3,077 | 3,757 | +22% | 0 | 0 | — |
case-19 | fail→fail | 10,568 | 16,707 | +58% | 1 | 1 | 0% | 1,579 | 4,915 | +211% | 0 | 0 | — |
case-20 | pass→fail | 17,106 | 39,666 | +132% | 1 | 1 | 0% | 3,798 | 8,661 | +128% | 0 | 0 | — |
case-21 | fail→pass | 33,137 | 12,344 | -63% | 1 | 1 | 0% | 1,655 | 4,336 | +162% | 0 | 0 | — |
case-22 | pass→fail | 13,319 | 12,736 | -4% | 1 | 1 | 0% | 2,691 | 3,702 | +38% | 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. 22 cases were attempted, and 19 counted toward the lift figure. The other 3 produced results that are not comparable between the two arms, so they are excluded from the headline rather than averaged into it. The headline lift of +36 percentage points is the difference between those two pass rates over the 19 comparable cases. 4 cases got worse with the skill loaded, and they are included in that figure.
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.