src-tauri/resources/skill-templates/data-create-viz/SKILL.md
Create publication-quality visualizations with Python
npx skillsauth add frumu-ai/tandem data-create-vizInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
If you see unfamiliar placeholders or need to check which tools are connected, please ask about available integrations.
Create publication-quality data visualizations using Python. Generates charts from data with best practices for clarity, accuracy, and design.
You can ask to create a visualization from a data source (e.g., "Create a line chart of monthly revenue" or "Visualize this data").
data source — Query results, pasted data, CSV/Excel file, or data to be queriedchart type — (Optional) Explicit chart type (e.g., "bar chart", "heatmap")Determine:
If data warehouse is connected and data needs querying:
If data is pasted or uploaded:
If data is from a previous analysis in the conversation:
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.
Write Python code using one of these libraries based on the need:
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()
Color:
Typography:
Layout:
Accuracy:
development
Create detailed implementation plans before making code changes. Use this when you need to plan complex refactors, new features, or multi-file changes. The plan helps users review and approve changes before execution.
testing
Create a retention-focused YouTube video package and output it as a set of files under scripts/<slug>/ (hooks, outline, A-roll, shotlist, on-screen text, CTA, chapters, metadata, titles/thumbnails, filming checklist).
tools
Review and improve the clarity, tone, and impact of text files in your workspace.
development
Watch important pages and notify when content changes.