Skip to content

tweedmann/clo-author

 
 

Repository files navigation

The Clo-Author: Your Econ AI Research Assistant for Claude Code

Version

Work in progress. This is an experiment born out of my discovery of Pedro's tool. This repo is a packaging of my own interpretation of that, tailored to pure research. It is evolving as I learn, and I share it in case others find it useful and would like to build upon it. Expect rough edges.

An open-source Claude Code workflow that turns your terminal into a full-service applied econometrics research assistant — from literature review to journal submission.

Live guide: hsantanna88.github.io/clo-author
Built on: Pedro Sant'Anna's claude-code-my-workflow


Quick Start

# 1. Fork and clone
gh repo fork hsantanna88/clo-author --clone
cd clo-author

# 2. Open Claude Code
claude

Then paste this prompt:

I am starting a new applied econometrics research project on [YOUR TOPIC]. Read CLAUDE.md and help me set up the project structure. Start with a literature review on [YOUR TOPIC].

Claude reads the configuration, fills in your project details, and enters contractor mode — planning, implementing, reviewing, and verifying autonomously.

Using VS Code? Open the Claude Code panel instead. Everything works the same.


What It Does

Contractor Mode

You describe a task. Claude plans the approach, implements it, runs specialized review agents, fixes issues, re-verifies, and scores against quality gates — all autonomously. You approve the plan and see a summary when the work meets quality standards.

16 Specialized Agents in Worker-Critic Pairs

Every creator has a paired critic. Critics can't edit files; creators can't score themselves.

Phase Worker (Creates) Critic (Reviews)
Discovery Librarian librarian-critic
Discovery Explorer explorer-critic
Strategy Strategist strategist-critic
Execution Coder coder-critic
Execution Data-engineer coder-critic
Paper Writer writer-critic
Peer Review domain-referee + methods-referee
Presentation Storyteller storyteller-critic
Infrastructure Orchestrator, Verifier

10 Slash Commands

Category Commands
Research /new-project, /discover, /strategize, /analyze, /write
Review /review, /revise
Output /talk, /submit
Tools /tools (commit, compile, validate-bib, journal, learn, deploy, context)

Quality Gates

Weighted aggregate scoring with per-component minimums:

Score Gate Applies To
80 Commit Weighted aggregate (blocking)
90 PR Weighted aggregate (blocking)
95 Submission Aggregate + all components >= 80
-- Advisory Talks (reported, non-blocking)

Context Survival

Plans, specifications, and session logs survive auto-compression and session boundaries. MEMORY.md accumulates learning across sessions — patterns discovered in one session inform future work.


Project Structure

your-project/
├── CLAUDE.md                    # Project configuration (fill in placeholders)
├── .claude/                     # 16 agents, 10 skills, 8 rules, 4 hooks
├── Bibliography_base.bib        # Centralized bibliography
├── Paper/                       # Main LaTeX manuscript (source of truth)
│   ├── main.tex
│   └── sections/
├── Talks/                       # Derivative Beamer presentations
├── Data/                        # Raw and cleaned datasets
├── Figures/                     # Generated figures
├── Tables/                      # Generated tables
├── Supplementary/               # Online appendix
├── Replication/                 # Replication package for deposit
├── scripts/                     # Analysis code (R, Stata, Python, Julia)
├── quality_reports/             # Plans, session logs, reviews, scores
├── explorations/                # Research sandbox
└── master_supporting_docs/      # Reference papers and data docs

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: Stata, Python, Julia (for multi-language analysis), Quarto (web slides).


Adapting for Your Field

  1. Fill in CLAUDE.md — replace [BRACKETED PLACEHOLDERS] with your project details
  2. Fill in the domain profile (.claude/rules/domain-profile.md) — your field's journals, data sources, identification strategies, conventions, and seminal references. Use /discover interview to populate it interactively.
  3. Configure your language — R is the default; Stata, Python, and Julia are also supported. Set your preference in CLAUDE.md.

The Clo-Author is designed for applied econometrics, but the infrastructure (contractor mode, quality gates, adversarial review) works for any quantitative research field.


Origin

This project is a fork of Pedro Sant'Anna's claude-code-my-workflow, which was built for Econ 730 at Emory University (6 lectures, 800+ slides). The Clo-Author reorients that infrastructure from lecture production to applied economics research publication.

The core infrastructure (contractor mode, quality gates, context survival, session logging) comes from the original template. The adversarial worker-critic architecture, econometrics-specific agents, paper drafting skills, and submission workflow are new.

Maintained by Hugo Sant'Anna.


License

MIT License. Fork it, customize it, make it yours.

About

From Pedro Sant'Anna's A ready-to-fork Claude Code template for academics using LaTeX/Beamer + R. Multi-agent review, quality gates, adversarial QA, and replication protocols.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 60.9%
  • SCSS 32.1%
  • Shell 5.8%
  • TeX 1.2%