Quick Start
Get running in 5 minutes
Research papers have a production function: identify, estimate, write, submit. This scaffold automates each stage with specialized agents that create, review, and gate-check every artifact before it advances. One Claude Code configuration handles the full pipeline — from literature review to journal submission.
Works for empirical economics out of the box. Adapts to labor, public, health, development, trade, IO, and other applied fields by customizing the domain profile and journal profiles.
What to Expect
When you run a command, Claude enters plan mode, dispatches specialized agents, scores output against quality gates, and presents results for your approval. This is not autocomplete — it is an orchestrated pipeline where every artifact is created by one agent and reviewed by another before advancing.
The pipeline at a glance:
- Discovery — literature search and data assessment, producing an annotated bibliography and ranked dataset list.
- Strategy — identification design, producing a strategy memo with assumptions, pseudo-code, and robustness plan.
- Execution — analysis code and paper manuscript, producing scripts, tables, figures, and LaTeX sections.
- Review — simulated peer review, producing scored referee reports and an editorial decision.
- Submission — replication packaging and quality gate enforcement (aggregate score >= 95, all components >= 80).
You can enter at any stage. Each phase produces structured output saved to quality_reports/.
Step 1: Fork & Clone
gh repo fork hugosantanna/clo-author --clone
cd clo-authorStep 2: Start Claude Code
claudeUsing VS Code? Open the Claude Code panel instead. Everything works the same.
Step 3: Paste the Starter Prompt
Fill in the bolded placeholders with your project details:
I am starting a new empirical research project in [YOUR FIELD] on [YOUR TOPIC]. Read CLAUDE.md and help me set up the project structure. Start with
/discover lit [YOUR TOPIC].
Claude reads the configuration, fills in your project details, and begins planning — it will present a plan for your approval before doing anything.
Step 4: Start Working
Once setup is done, describe what you need:
- “Review my paper” — checks identification strategy, code, writing, and LaTeX in parallel
/review --methods paper/main.tex— validates your causal design assumptions, clustering, and inference/analyze Data/cleaned/survey.csv— cleans data, runs your specification, produces tables and figures/new-project health insurance— walks you through the full pipeline from literature review to submission
Already have a paper? /review paper/main.tex runs writer-critic, strategist-critic, and the verifier. Want to draft a section? /write intro produces a structured first draft adapted to your paper type. Everything else is optional — explore when you’re ready.
Prerequisites
| Tool | Required For | Install |
|---|---|---|
| Claude Code | Everything | npm install -g @anthropic-ai/claude-code |
| XeLaTeX | Paper compilation | TeX Live or MacTeX |
| R | Analysis & figures | r-project.org |
| gh CLI | GitHub integration | brew install gh (macOS) |
Optional: Python, Julia (multi-language analysis), Quarto (web slides).
Origin
Maintained by Hugo Sant’Anna. MIT License — fork it, customize it, make it yours.