Academic-Writing: Skill for Claude Code

.claude/skills/rewrite-literature/SKILL.md

rewrite-literature is a skill for Claude Code from AlessandroCaforio/Academic-Writing. It costs 28 tokens per session (7,414 once invoked), scanned C, original, MIT.

A literature-review rewriting workflow that uses several agents to extract evidence from cited research papers and rebuild a thesis chapter. A literature review is the part of a thesis that explains and compares earlier research.

In plain words
What is it for?
It is for rewriting all of Chapter 2, working through one pipeline phase, or drafting a specific section such as 2.1.
Why use it?
It helps organize evidence from many papers and turn it into a structured chapter instead of doing the research and rewriting in one pass.

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/thesis/chapters/.litreview_workspace/drafts.

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/rewrite-literature/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 rewrite-literature

README.md
[![agentmods](https://agentmods.dev/badge/skills/alessandrocaforio/academic-writing/rewrite-literature/github.svg)](https://agentmods.dev/skills/alessandrocaforio/academic-writing/rewrite-literature)
Your own site
<a href="https://agentmods.dev/skills/alessandrocaforio/academic-writing/rewrite-literature"><img src="https://agentmods.dev/badge/skills/alessandrocaforio/academic-writing/rewrite-literature/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 rewrite-literature

Your own site · 80×15
<a href="https://agentmods.dev/skills/alessandrocaforio/academic-writing/rewrite-literature"><img src="https://agentmods.dev/badge/skills/alessandrocaforio/academic-writing/rewrite-literature.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,414 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00028 $0.07414
Opus 5 $0.00014 $0.03707
Sonnet 5 $0.00006 $0.01483
Haiku 4.5 $0.00003 $0.00741

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

Security

Grade C, and why

rewrite-literature scanned grade C with 1 finding 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 11d 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf /Users/alessandro/Projects/Tesi/thesis/chapters/.litreview_workspace
.claude/skills/rewrite-literature/SKILL.md · 612 lines

How it starts

The opening of the file, as written. The whole thing — 612 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Literature Review Rewrite Orchestrator

Rewrite Chapter 2 from scratch with deep extraction from ~20 cited papers. Uses a 5-phase pipeline with 7 specialized agents.

Arguments

  • all — Run the full 5-phase pipeline (default)
  • phase1 through phase5 — Run a specific phase (assumes prior phases completed)
  • section N — Draft only section 2.N (for iterating on one section)

Workspace

All intermediate artifacts go in thesis/chapters/.litreview_workspace/. Create it at the start:

mkdir -p /Users/alessandro/Projects/Tesi/thesis/chapters/.litreview_workspace/drafts

Target Structure (~400-500 lines)

Chapter 2: Literature Review
├── Intro paragraph (preview sections using \Cref)
├── 2.1 Automation and the Labor Market
│   ├── 2.1.1 The Task-Based Framework
│   ├── 2.1.2 Labor Market Polarization
│   ├── 2.1.3 Task Displacement and Rent Dissipation
│   └── 2.1.4 Bridge paragraph → politics
├── 2.2 Economic Shocks and Political Attitudes
│   ├── 2.2.1 The China Shock and Political Consequences
│   ├── 2.2.2 Automation and Voting Behavior
│   └── 2.2.3 Methodological Parallels (NEW)
├── 2.3 Mechanisms: From Economic Disruption to Political Change
│   ├── 2.3.1 The Economic Insecurity Thesis
│   ├── 2.3.2 The Cultural Backlash Thesis
│   ├── 2.3.3 Status Threat and the 2016 Election
│   ├── 2.3.4 Psychological Foundations (DEEPENED)
│   └── 2.3.5 Identity Threat as Integrating Framework (NEW)
└── 2.4 Contribution of This Thesis

PHASE 1: RESEARCH (parallel)

Launch TWO agents in parallel using the Task tool:

Agent 1: Extraction Assembler (sonnet, read-only)

subagent_type: general-purpose
model: sonnet

Prompt:

You are assembling a structured evidence dossier for a thesis literature review rewrite.

Read ALL files in thesis/references/literature_analysis/paper_extractions/*.json (12 files), the concept graph at thesis/references/literature_analysis/concept_graph.json, and the mechanism extraction at thesis/references/literature_analysis/mechanism_extraction.json.

Produce TWO JSON files in thesis/chapters/.litreview_workspace/:

dossier.json — Organize ALL extracted evidence by the target section structure:

{
  "2.1.1_task_framework": {
    "papers": ["autor_levy_murnane_2003"],
    "key_quotes": [{"text": "...", "page": N, "bibkey": "autor2003skill"}],
    "claims": [{"claim": "...", "evidence": "...", "strength": "strong"}],
    "concept_edges": ["task_model → routine_manual", "task_model → substitution"],
    "constructs": [{"name": "...", "definition": "..."}]
  },
  "2.1.2_polarization": { ... },
  ...
}

gaps.json — Identify areas where extractions are thin and RAG queries would help:

{
  "gaps": [
    {
      "section": "2.1.3",
      "topic": "rent dissipation mechanism details",
      "query": "rent dissipation automation wage premium loss",
      "reason": "Extraction has claim but no detailed mechanism quote"
    },
    ...
  ]
}

Map evidence to these sections:

  • 2.1.1: autor_levy_murnane_2003 (task framework, DOT, routine/nonroutine)
  • 2.1.2: autor_dorn_2013 (polarization, U-shape, commuting zones, shift-share)
  • 2.1.3: acemoglu_restrepo_2025 (task displacement, labor share, rent dissipation)
  • 2.2.1: autor_dorn_hanson_majlesi_2020, colantone_stanig_2018 (China shock politics)
  • 2.2.2: frey_berger_chen_2018, anelli_colantone_stanig_2019 (robots and voting)
  • 2.2.3: methodological parallels (shift-share across studies, pseudo-panel)
  • 2.3.1: economic insecurity evidence (Colantone & Stanig, Norris/Inglehart)
  • 2.3.2: inglehart_norris_2016, norris_inglehart_2018 (cultural backlash)
  • 2.3.3: mutz_2018, morgan_2018 (status threat debate)
  • 2.3.4: osborne_2023, stenner_2005 (psychological mechanisms, dual-process)
  • 2.3.5: manunta_2025, gidron_hall_2017 (identity threat integration)
  • 2.4: contribution positioning

Include ALL verbatim quotes with page numbers. Be exhaustive — this is the evidence base for the entire chapter.

Read the full file on GitHub · 612 lines

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. 11d ago First seen · 612 lines · 28 tokens per session scan C a5da790e7eda

Subscribe to this mod's changes

rewrite-literature is a skill published in the GitHub repository AlessandroCaforio/Academic-Writing (17 stars, last pushed 5mo ago), licensed MIT. It adds 28 tokens to every session and 7,414 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.