Academic-Writing: Skill for Claude Code

.claude/skills/generate-maps/SKILL.md

generate-maps is a skill for Claude Code from AlessandroCaforio/Academic-Writing. It costs 23 tokens per session (568 once invoked), scanned A, original, MIT.

A command for regenerating commuting-zone choropleth maps for an economics thesis. A choropleth map colors geographic areas according to a value, such as task displacement or ideology.

In plain words
What is it for?
Use it to create election-year maps, all-years appendix maps, or one map for a chosen year and variable, then report the saved figures and recompile the thesis if needed.
Why use it?
It avoids rebuilding each thesis map manually and keeps the specified map styles and figure groups consistent. It can regenerate all standard figures or selected groups.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is AlessandroCaforio/Academic-Writing's own configuration. It tells Claude Code how to work on Academic-Writing itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Academic-Writing configures →

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /Users/alessandro/Projects/Tesi.

Reuse

Borrowing it

Nothing to install: this file belongs to AlessandroCaforio/Academic-Writing. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/AlessandroCaforio/Academic-Writing/main/.claude/skills/generate-maps/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/AlessandroCaforio/Academic-Writing

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for generate-maps

README.md
[![agentmods](https://agentmods.dev/badge/skills/alessandrocaforio/academic-writing/generate-maps/github.svg)](https://agentmods.dev/skills/alessandrocaforio/academic-writing/generate-maps)
Your own site
<a href="https://agentmods.dev/skills/alessandrocaforio/academic-writing/generate-maps"><img src="https://agentmods.dev/badge/skills/alessandrocaforio/academic-writing/generate-maps/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for generate-maps

Your own site · 80×15
<a href="https://agentmods.dev/skills/alessandrocaforio/academic-writing/generate-maps"><img src="https://agentmods.dev/badge/skills/alessandrocaforio/academic-writing/generate-maps.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 568 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00023 $0.00568
Opus 5 $0.00012 $0.00284
Sonnet 5 $0.00005 $0.00114
Haiku 4.5 $0.00002 $0.00057

Measured 9d ago against content hash effe8c57b2da, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

generate-maps scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/generate-maps/SKILL.md · 58 lines

What it actually says

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:
cd /Users/alessandro/Projects/Tesi && python3 -m src.geo_viz <COMMAND>

Where <COMMAND> 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.

  1. Report which figures were saved to results/figures/.

  2. If the thesis needs recompilation (because figure files changed), run:

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
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 58 lines · 23 tokens per session scan A effe8c57b2da

Subscribe to this mod's changes

generate-maps is a skill published in the GitHub repository AlessandroCaforio/Academic-Writing (17 stars, last pushed 5mo ago), licensed MIT. It adds 23 tokens to every session and 568 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

proofcheck

A systematic checker for mathematical proofs in statistics and machine-learning research papers.

gyf9712/stat-theory-skills · 57 tokens

theory-simulation

Bridge between theoretical results and Monte Carlo simulation, built to top-stat-journal standards (AoS, JASA, JRSS-B, Biometrika, Bernoulli). Two modes: (1) DESIGN mode — for each theoretical claim, design new simulations that verify rates, coverage, stress-test assumptions, and reveal theory-improvement…

gyf9712/stat-theory-skills · 214 tokens

proof-repair

Generate self-consistent repair plans for mathematical proof issues found by /proofcheck, with literature-backed support. For each problematic assumption, model, proposition, or theorem, proposes fixes that preserve the full dependency chain and searches arXiv, Semantic Scholar, and Google Scholar for new references…

gyf9712/stat-theory-skills · 114 tokens

theory-sharpen

A framework for testing whether a research paper’s theoretical results can be made stronger, such as by using fewer assumptions or proving faster rates. It also checks whether the theory matches the model, experiments, and existing research.

gyf9712/stat-theory-skills · 105 tokens

theory-design

Design a coherent theoretical framework for a new statistics / ML theory research topic, paper-type aware. Three modes — Theory paper (explain phenomena or provide new theoretical tools), Methodology paper (propose a new method with theoretical guarantees), Application paper (apply existing methods to scientific data…

gyf9712/stat-theory-skills · 227 tokens

proof-writer

A proof-writing aid for mathematical results in machine learning and artificial intelligence theory. It checks whether the stated assumptions actually support each proof step.

gyf9712/stat-theory-skills · 73 tokens