Skip to main content
skill CX Codex

econ-visualization — Claude Code skill: what it does, how to install

econ-visualization generates publication-ready figures and charts for economics research in R or Python.

CC0-1.0 202 installs ★ 675 updated 2026-09-26

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add meleantonio/awesome-econ-ai-stuff --skill econ-visualization -a claude-code
Open on GitHub

What econ-visualization does

The skill instructs coding assistants to draft clean, journal-ready plots instead of generic data charts. It introduces a structured workflow: first gathering your variables and preferred plot layout, then delivering reproducible plotting code with unified scales and minimal themes.

Code generation targets either ggplot2 in R or matplotlib with seaborn in Python. Running the resulting scripts requires R 4.0+ or Python 3.10+ along with the respective visualization libraries.

Export parameters prioritize vector output like PDF or 300 DPI resolution, protecting research papers from pixelated figures.

What it helps with

  • plot event study estimates with confidence intervals
  • standardize chart formatting across research papers
  • export publication-quality figures to vector PDF
  • generate scatter plots with fitted regression lines

Example prompts for the agent

  • Create an event study plot with confidence intervals
  • Plot GDP per capita over time for three countries in ggplot2
  • Build a scatter plot with a fitted regression line

How to install econ-visualization

1Skills CLI (Vercel)

npx skills add meleantonio/awesome-econ-ai-stuff --skill econ-visualization -a claude-code

2Manually: put the files in place

~/.claude/skills/econ-visualization/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/econ-visualization/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about econ-visualization

How to install econ-visualization in Claude Code?

Run npx skills add meleantonio/awesome-econ-ai-stuff --skill econ-visualization -a claude-code in your terminal.

What does econ-visualization do?

It guides coding models to write journal-grade visualization scripts for empirical research using R or Python.

What dependencies are needed to run the plots?

You need R 4.0+ with ggplot2, scales, and dplyr, or Python 3.10+ with matplotlib and seaborn.

Source text

SKILL.md · CC0-1.0
---
name: econ-visualization
description: Create publication-quality charts and graphs for economics papers.
workflow_stage: communication
compatibility:
  - claude-code
  - cursor
  - codex
  - gemini-cli
author: Awesome Econ AI Community
version: 1.0.0
tags:
  - visualization
  - ggplot2
  - charts
  - publication
---

# Econ Visualization

## Purpose

This skill creates publication-quality figures for economics papers, using clean styling, consistent scales, and export-ready formats.

## When to Use

- Building figures for empirical results and descriptive analysis
- Standardizing chart style across a paper or presentation
- Exporting figures to PDF or PNG at journal quality

## Instructions

Follow these steps to complete the task:

### Step 1: Understand the Context

Before generating any code, ask the user:

- What is the dataset and key variables?
- What chart type is needed (line, bar, scatter, event study)?
- What output format and size are required?

### Step 2: Generate the Output

Based on the context, generate code that:

1. **Uses a consistent theme** for academic styling
2. **Labels axes and legends clearly**
3. **Exports figures** at high resolution
4. **Includes reproducible steps** for data preparation

### Step 3: Verify and Explain

After generating output:

- Explain how to regenerate or update the plot
- Suggest alternatives (log scales, faceting, smoothing)
- Note any data transformations used

## Example Prompts

- "Create an event study plot with confidence intervals"
- "Plot GDP per capita over time for three countries"
- "Build a scatter plot with fitted regression line"

## Example Output

```r
# ============================================
# Publication-Quality Figure in R
# ============================================
library(tidyverse)

df <- read_csv("data.csv")

ggplot(df, aes(x = year, y = gdp_per_capita, color = country)) +
  geom_line(size = 1) +
  scale_y_continuous(labels = scales::comma) +
  labs(
    title = "GDP per Capita Over Time",
    x = "Year",
    y = "GDP per Capita (USD)",
    color = "Country"
  ) +
  theme_minimal(base_size = 12) +
  theme(
    legend.position = "bottom",
    panel.grid.minor = element_blank()
  )

ggsave("figures/gdp_per_capita.pdf", width = 7, height = 4, dpi = 300)
```

## Requirements

### Software

- R 4.0+ or Python 3.10+

### Packages

- For R: `ggplot2`, `scales`, `dplyr`
- For Python: `matplotlib`, `seaborn` (optional alternative)

## Best Practices

1. **Use vector formats** (PDF, SVG) for publication
2. **Keep labels concise** and readable
3. **Document data filters** used in the figure

## Common Pitfalls

- Overcrowded plots without clear labeling
- Inconsistent scales across figures
- Exporting low-resolution images

## References

- [ggplot2 documentation](https://ggplot2.tidyverse.org/)
- [Tufte (2001) The Visual Display of Quantitative Information](https://www.edwardtufte.com/tufte/books_vdqi)

## Changelog

### v1.0.0

- Initial release

© Awesome Econ AI Community · CC0-1.0 · meleantonio/awesome-econ-ai-stuff

Similar skills

All skills for Science and research →
visualization-choice-reporting lyndonkl visualization-choice-reporting — a skill for Claude Code, Codex, Cursor and other platforms that matches chart types to data questions and produces reports with headlines, context and recommended actions. CX Codex +1 148installs data-visualization official OpenAI data-visualization — a skill for Codex and ChatGPT that acts as an orchestrator for web visualization work: it classifies the task, picks the smallest set of specialist skills, and routes before any code gets written. CX Codex GP ChatGPT +1 26installs statistical-and-uncertainty-visualization official OpenAI statistical-and-uncertainty-visualization builds charts and dashboards that show spread, intervals and missing data instead of hiding them behind a single summary line. CX Codex GP ChatGPT +1 10installs scientific-visualization K-Dense-AI scientific-visualization is a Claude Code skill that creates and audits publication-ready scientific figures in Matplotlib, Seaborn, and Plotly for truthful data encoding and accessibility. CX Codex +1 2,700installs trading-visualization agiprolabs trading-visualization builds trading charts: candlesticks, equity curves, drawdowns, correlation heatmaps and return distributions. Useful when you need to review a strategy or put together a report. CX Codex +1 567installs d3-visualization nexu-io The d3-visualization skill teaches the agent to create interactive D3.js visualizations. Use it to generate charts for dashboards, reports, and data-rich prototypes. CX Codex +1 3,300installs

From the same set12

The whole set →
r-econometrics r-econometrics generates R code for causal inference and panel data using fixest, complete with diagnostics and publication tables. Useful for IV, DiD, and RDD research designs. CX Codex +1 340installs beamer-presentation beamer-presentation is a Claude Code skill that builds academic Beamer decks from a paper or project, with timed structure, themes, charts, and tables. CX Codex +1 285installs lit-review-assistant lit-review-assistant structures economics literature reviews, crafts database queries, and tracks research gaps. Helps synthesize empirical papers into standardized markdown templates. CX Codex +1 241installs api-data-fetcher The api-data-fetcher skill helps an agent pull economic indicators from FRED, World Bank, and other APIs. Use it for datasets, recurring updates, or cross-country panels. CX Codex +1 208installs research-ideation research-ideation guides economists from raw observations or datasets to testable research questions. Useful when starting dissertation projects or designing policy evaluations. CX Codex +1 196installs python-panel-data python-panel-data is a Claude Code skill that generates Python code for panel-data analysis, including fixed- and random-effects models, difference-in-differences, and regression tables. CX Codex +1 163installs latex-econ-model latex-econ-model typesets economic theory models in LaTeX using standard academic notation, from utility optimization to dynamic programming setups. CX Codex +1 147installs latex-tables Creates clean LaTeX tables for regression results and summary statistics using academic formatting standards. Use it when you need to format statistical output for journal submission. CX Codex +1 128installs

Project sponsors

Companies that keep this analytics open