My Claude Code Setup
Pedro H. C. Sant'Anna · Emory University
Work in progress. This summarizes how I use Claude Code for academic work — lecture slides, R scripts, Beamer-to-Quarto pipelines. I keep learning and updating these files. Sharing what I've figured out so far with friends and colleagues.
A starter kit for academics using Claude Code with LaTeX/Beamer, R, and Quarto. You describe what you want; Claude plans the approach, runs specialized agents, fixes issues, verifies quality, and presents results — like a contractor who handles the entire job. Extracted from a PhD course I developed (Econ 730 at Emory, 6 lectures, 800+ slides).
Read the full guide
What's in the template
- Contractor mode orchestrator — you describe the task; Claude autonomously plans, implements, reviews with agents, fixes issues, and re-verifies until quality gates pass
- Adversarial critic-fixer loop — two agents that check each other's work across up to 5 rounds — the critic can't fix, the fixer can't approve
- Quality scoring — every file scored 0–100; nothing ships below 80; PRs require 90+
- Beamer → Quarto pipeline — 11-phase translation with TikZ-to-SVG and ggplot-to-plotly conversion
- 10 specialized agents — proofreader, slide auditor, pedagogy reviewer, R reviewer, TikZ critic, domain reviewer, adversarial QA pair, translator, verifier
- 13 slash commands —
/compile-latex, /proofread, /deploy, /qa-quarto, /slide-excellence, /create-lecture, and more
- 12 auto-loaded rules — quality gates, orchestrator protocol, notation consistency, R conventions, verification protocol, replication-first coding
- Plan-first workflow — non-trivial tasks start in plan mode; plans saved to disk survive context compression; never
/clear
- Continuous learning —
[LEARN:tag] corrections persist in MEMORY.md across sessions, preventing repeated mistakes
- Automatic session logs — Claude saves what was done, key decisions, and open questions — incrementally, not just at session end
Getting started
git clone https://github.com/pedrohcgs/claude-code-my-workflow.git my-project
cd my-project
# 1. Edit CLAUDE.md with your project info
# 2. Fill in .claude/rules/knowledge-base-template.md
# 3. Start Claude Code and test: /compile-latex MyFirstLecture
The full guide walks through everything: setup, agents, quality gates, workflow patterns, and customization.
Source
Everything is on GitHub: pedrohcgs/claude-code-my-workflow