Claude Code template for LaTeX, Beamer, and R research workflows
Installable skillMITBy wentoraiUpdated Oct 30, 2026
INTENDED FOROpenClawInstall in a listed agent.
instructions.md
---
name: claude-academic-workflow-guide-4384c5124d60
description: "Claude Code template for LaTeX, Beamer, and R research workflows"
metadata:
openclaw:
emoji: "π"
category: "research"
subcategory: "automation"
keywords: ["Claude Code", "academic workflow", "LaTeX", "Beamer", "R", "multi-agent review"]
source: "https://github.com/pedrohcgs/claude-code-my-workflow"
---
# Claude Code Academic Workflow Guide
## Overview
A template and workflow guide for using Claude Code in academic research β managing LaTeX papers, Beamer presentations, R analysis scripts, and multi-agent peer review. Provides structured CLAUDE.md configurations, project templates, and automation patterns for common academic tasks. Designed for economists, social scientists, and quantitative researchers.
## Project Structure
```
research-project/
βββ CLAUDE.md # Claude Code instructions
βββ paper/
β βββ main.tex # Main LaTeX document
β βββ references.bib # Bibliography
β βββ sections/ # LaTeX sections
β βββ figures/ # Generated figures
βββ slides/
β βββ presentation.tex # Beamer slides
β βββ figures/
βββ code/
β βββ analysis.R # Main analysis
β βββ data_clean.R # Data preparation
β βββ figures.R # Figure generation
βββ data/
β βββ raw/ # Original data
β βββ processed/ # Cleaned data
βββ output/
βββ tables/ # LaTeX tables
βββ figures/ # PDF/PNG figures
```
## CLAUDE.md Configuration
```markdown
# Project: [Your Paper Title]
## Instructions
- This is an academic research project in economics
- LaTeX compiler: pdflatex (paper) or xelatex (if CJK)
- R version: 4.3+ with tidyverse, fixest, ggplot2
- Citation style: natbib, authoryear
- Always compile paper after LaTeX changes
- Run R scripts from project root
## Paper Conventions
- Use \input{sections/intro} for section includes
- Tables: booktabs package, generated from R
- Figures: PDF format, width=\textwidth
- Cross-refs: \label{sec:}, \label{tab:}, \label{fig:}
## R Conventions
- Style: tidyverse style guide
- Data: read from data/processed/
- Output: tables/ (LaTeX), figures/ (PDF)
- Reproducibility: set.seed(42) for all random ops
## Build Commands
- Paper: `cd paper && pdflatex main && bibtex main && pdflatex main && pdflatex main`
- Slides: `cd slides && pdflatex presentation`
- Analysis: `cd code && Rscript analysis.R`
```
## LaTeX Paper Workflow
```bash
# Claude Code can manage the full LaTeX workflow:
# 1. Draft a section
# "Write the methodology section for our diff-in-diff analysis"
# 2. Generate tables from R output
# "Create a LaTeX table from the regression results in output/tables/"
# 3. Fix compilation errors
# "The paper won't compile β fix the LaTeX errors"
# 4. Update bibliography
# "Add the Callaway & Sant'Anna (2021) reference"
# 5. Format for submission
# "Format the paper for AER submission guidelines"
```
## Beamer Presentations
```latex
% Template for academic presentations
\documentclass[aspectratio=169]{beamer}
\usetheme{metropolis}
\title{Your Presentation Title}
\subtitle{Conference/Seminar Name}
\author{Author Name}
\institute{University}
\date{\today}
\begin{document}
\maketitle
\begin{frame}{Motivation}
\begin{itemize}
\item Research question
\item Why it matters
\item What we do
\end{itemize}
\end{frame}
\begin{frame}{Data}
\input{figures/summary_stats_table}
\end{frame}
\begin{frame}{Results}
\centering
\includegraphics[width=0.8\textwidth]{figures/main_result.pdf}
\end{frame}
\end{document}
```
## R Analysis Integration
```r
# analysis.R β Main analysis script
library(tidyverse)
library(fixest)
library(modelsummary)
# Load cleaned data
df <- read_csv("data/processed/analysis_data.csv")
# Main regression
model1 <- feols(outcome ~ treatment | year + state, data = df)
model2 <- feols(outcome ~ treatment + controls | year + state,
data = df, cluster = ~state)
# Export table for LaTeX
modelsummary(
list("(1)" = model1, "(2)" = model2),
output = "output/tables/main_results.tex",
stars = c("*" = 0.1, "**" = 0.05, "***" = 0.01),
gof_map = c("nobs", "r.squared", "FE: year", "FE: state"),
)
# Export figure
ggplot(df, aes(x = year, y = outcome, color = treated)) +
geom_point(alpha = 0.3) +
geom_smooth(method = "loess") +
theme_minimal() +
labs(x = "Year", y = "Outcome", color = "Treatment Group")
ggsave("output/figures/treatment_trends.pdf", width = 8, height = 5)
```
## Multi-Agent Review
```markdown
### Self-Review Workflow
Use Claude Code to simulate peer review:
1. "Review this paper as a critical referee for AER"
2. "Check all mathematical derivations in section 3"
3. "Verify that all tables match the R code output"
4. "Check for consistency between text claims and results"
5. "List potential referee objections and how to address them"
```
## Common Tasks
```markdown
### Things to ask Claude Code:
- "Compile the paper and fix any errors"
- "Add robustness check using propensity score matching"
- "Create a Beamer slide summarizing Table 2"
- "Generate event study plot from the regression results"
- "Convert this Word draft to LaTeX format"
- "Check all cross-references are correct"
- "Format references in AEA style"
```
## Use Cases
1. **Paper writing**: LaTeX drafting and compilation workflow
2. **Data analysis**: R script development and debugging
3. **Presentations**: Beamer slide creation from paper content
4. **Self-review**: Multi-agent review simulation
5. **Submission prep**: Format conversion for journal submission
## References
- [claude-code-my-workflow](https://github.com/pedrohcgs/claude-code-my-workflow)
- [Metropolis Beamer Theme](https://github.com/matze/mtheme)
- [modelsummary](https://modelsummary.com/)
---
name: claude-academic-workflow-guide-4384c5124d60
description: "Claude Code template for LaTeX, Beamer, and R research workflows"
metadata:
openclaw:
emoji: "π"
category: "research"
subcategory: "automation"
keywords: ["Claude Code", "academic workflow", "LaTeX", "Beamer", "R", "multi-agent review"]
source: "https://github.com/pedrohcgs/claude-code-my-workflow"
---
# Claude Code Academic Workflow Guide
## Overview
A template and workflow guide for using Claude Code in academic research β managing LaTeX papers, Beamer presentations, R analysis scripts, and multi-agent peer review. Provides structured CLAUDE.md configurations, project templates, and automation patterns for common academic tasks. Designed for economists, social scientists, and quantitative researchers.
## Project Structure
```
research-project/
βββ CLAUDE.md # Claude Code instructions
βββ paper/
β βββ main.tex # Main LaTeX document
β βββ references.bib # Bibliography
β βββ sections/ # LaTeX sections
β βββ figures/ # Generated figures
βββ slides/
β βββ presentation.tex # Beamer slides
β βββ figures/
βββ code/
β βββ analysis.R # Main analysis
β βββ data_clean.R # Data preparation
β βββ figures.R # Figure generation
βββ data/
β βββ raw/ # Original data
β βββ processed/ # Cleaned data
βββ output/
βββ tables/ # LaTeX tables
βββ figures/ # PDF/PNG figures
```
## CLAUDE.md Configuration
```markdown
# Project: [Your Paper Title]
## Instructions
- This is an academic research project in economics
- LaTeX compiler: pdflatex (paper) or xelatex (if CJK)
- R version: 4.3+ with tidyverse, fixest, ggplot2
- Citation style: natbib, authoryear
- Always compile paper after LaTeX changes
- Run R scripts from project root
## Paper Conventions
- Use \input{sections/intro} for section includes
- Tables: booktabs package, generated from R
- Figures: PDF format, width=\textwidth
- Cross-refs: \label{sec:}, \label{tab:}, \label{fig:}
## R Conventions
- Style: tidyverse style guide
- Data: read from data/processed/
- Output: tables/ (LaTeX), figures/ (PDF)
- Reproducibility: set.seed(42) for all random ops
## Build Commands
- Paper: `cd paper && pdflatex main && bibtex main && pdflatex main && pdflatex main`
- Slides: `cd slides && pdflatex presentation`
- Analysis: `cd code && Rscript analysis.R`
```
## LaTeX Paper Workflow
```bash
# Claude Code can manage the full LaTeX workflow:
# 1. Draft a section
# "Write the methodology section for our diff-in-diff analysis"
# 2. Generate tables from R output
# "Create a LaTeX table from the regression results in output/tables/"
# 3. Fix compilation errors
# "The paper won't compile β fix the LaTeX errors"
# 4. Update bibliography
# "Add the Callaway & Sant'Anna (2021) reference"
# 5. Format for submission
# "Format the paper for AER submission guidelines"
```
## Beamer Presentations
```latex
% Template for academic presentations
\documentclass[aspectratio=169]{beamer}
\usetheme{metropolis}
\title{Your Presentation Title}
\subtitle{Conference/Seminar Name}
\author{Author Name}
\institute{University}
\date{\today}
\begin{document}
\maketitle
\begin{frame}{Motivation}
\begin{itemize}
\item Research question
\item Why it matters
\item What we do
\end{itemize}
\end{frame}
\begin{frame}{Data}
\input{figures/summary_stats_table}
\end{frame}
\begin{frame}{Results}
\centering
\includegraphics[width=0.8\textwidth]{figures/main_result.pdf}
\end{frame}
\end{document}
```
## R Analysis Integration
```r
# analysis.R β Main analysis script
library(tidyverse)
library(fixest)
library(modelsummary)
# Load cleaned data
df <- read_csv("data/processed/analysis_data.csv")
# Main regression
model1 <- feols(outcome ~ treatment | year + state, data = df)
model2 <- feols(outcome ~ treatment + controls | year + state,
data = df, cluster = ~state)
# Export table for LaTeX
modelsummary(
list("(1)" = model1, "(2)" = model2),
output = "output/tables/main_results.tex",
stars = c("*" = 0.1, "**" = 0.05, "***" = 0.01),
gof_map = c("nobs", "r.squared", "FE: year", "FE: state"),
)
# Export figure
ggplot(df, aes(x = year, y = outcome, color = treated)) +
geom_point(alpha = 0.3) +
geom_smooth(method = "loess") +
theme_minimal() +
labs(x = "Year", y = "Outcome", color = "Treatment Group")
ggsave("output/figures/treatment_trends.pdf", width = 8, height = 5)
```
## Multi-Agent Review
```markdown
### Self-Review Workflow
Use Claude Code to simulate peer review:
1. "Review this paper as a critical referee for AER"
2. "Check all mathematical derivations in section 3"
3. "Verify that all tables match the R code output"
4. "Check for consistency between text claims and results"
5. "List potential referee objections and how to address them"
```
## Common Tasks
```markdown
### Things to ask Claude Code:
- "Compile the paper and fix any errors"
- "Add robustness check using propensity score matching"
- "Create a Beamer slide summarizing Table 2"
- "Generate event study plot from the regression results"
- "Convert this Word draft to LaTeX format"
- "Check all cross-references are correct"
- "Format references in AEA style"
```
## Use Cases
1. **Paper writing**: LaTeX drafting and compilation workflow
2. **Data analysis**: R script development and debugging
3. **Presentations**: Beamer slide creation from paper content
4. **Self-review**: Multi-agent review simulation
5. **Submission prep**: Format conversion for journal submission
## References
- [claude-code-my-workflow](https://github.com/pedrohcgs/claude-code-my-workflow)
- [Metropolis Beamer Theme](https://github.com/matze/mtheme)
- [modelsummary](https://modelsummary.com/)
Platform guidance
Imported from the listed AgentSkill.sh category. Complete supplied package files and notices are retained. Required external tools and credentials are not installed. No bundled code was executed during import. Individual agent task behavior has not been tested.
When the user needs to set up multiple academic courses in a learning management system (Canvas/LMS) from structured data sources. This skill automates the entire workflow extracting course schedules from emails/attachments, matching instructors from CSV files, creating courses, enrolling teacher...
Design Canvas LMS assignments using evidence-based learning science principles from the Four Learning Design Pillars. Use when educators want to create pedagogically sound assignments, need help writing assignment descriptions with clear objectives, want rubric suggestions, or are creating quizze...
Generate learning science-backed feedback templates for Canvas assignments. Use when educators need feedback templates for grading, want to create rubric comments, need encouraging feedback language aligned with Pillar 3 principles (targeted, encouraging, immediate), or want to set up SpeedGrader...
Comprehensively reviews curriculum materials for quality, consistency, and effectiveness. Use when the user asks to review content, check quality, audit materials, or ensure curriculum meets standards. Provides detailed feedback and improvement recommendations.