# Generate Maps

> Regenerate all CZ choropleth maps for the thesis (Frey et al. style)

- **Type:** Skill
- **Install:** `agentstack add skill-alessandrocaforio-academic-writing-generate-maps`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [AlessandroCaforio](https://agentstack.voostack.com/s/alessandrocaforio)
- **Installs:** 0
- **Category:** [AI & ML](https://agentstack.voostack.com/c/ai-and-ml)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [AlessandroCaforio](https://github.com/AlessandroCaforio)
- **Source:** https://github.com/AlessandroCaforio/Academic-Writing/tree/main/.claude/skills/generate-maps

## Install

```sh
agentstack add skill-alessandrocaforio-academic-writing-generate-maps
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Generate Maps

Regenerate all commuting-zone choropleth maps used in the thesis. Maps follow
the visual style of Frey, Berger & Chen (2018) "Political Machinery":
borderless CZ polygons, thin state boundary overlays, sequential warm palette
for task displacement, diverging blue-red for ideology.

## Arguments

- (no args) — regenerate all 4 standard figures
- `election-td` — only the 2x2 election-year TD maps
- `election-ideo` — only the 2x2 election-year ideology maps
- `allyears-td` — only the 2x4 all-years TD maps (appendix)
- `allyears-ideo` — only the 2x4 all-years ideology maps (appendix)
- `single --year YYYY --var COLNAME` — one full-size map

## Steps

1. Run the map generation command:

```bash
cd /Users/alessandro/Projects/Tesi && python3 -m src.geo_viz 
```

Where `` is one of: `all`, `election-td`, `election-ideo`, `allyears-td`, `allyears-ideo`, `single --year YYYY --var td_cz`.

If no arguments are provided, use `all`.

2. Report which figures were saved to `results/figures/`.

3. If the thesis needs recompilation (because figure files changed), run:

```bash
cd /Users/alessandro/Projects/Tesi/thesis && tectonic main.tex 2>&1 | tail -5
```

## Output Files

| Command | Output |
|---------|--------|
| `election-td` | `fig_cz_map_td_elections.pdf/.png` |
| `election-ideo` | `fig_cz_map_ideo_elections.pdf/.png` |
| `allyears-td` | `fig_cz_map_td_all_years.pdf/.png` |
| `allyears-ideo` | `fig_cz_map_ideo_all_years.pdf/.png` |
| `single` | `fig_cz_map_{var}_{year}.pdf/.png` |

## Dependencies

- `src/geo_viz.py` — MapEngine class
- `data/reference/cz_boundaries.geojson` — CZ polygons (722 CZs, Albers projection)
- `data/reference/state_boundaries.geojson` — State outlines (49 states)
- `results/panels/cz_analysis_panel.csv` — CZ-level panel data

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [AlessandroCaforio](https://github.com/AlessandroCaforio)
- **Source:** [AlessandroCaforio/Academic-Writing](https://github.com/AlessandroCaforio/Academic-Writing)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-alessandrocaforio-academic-writing-generate-maps
- Seller: https://agentstack.voostack.com/s/alessandrocaforio
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
