skills/43-wentorai-research-plugins/skills/research/automation/claude-academic-workflow-guide/SKILL.md
Claude Code template for LaTeX, Beamer, and R research workflows
npx skillsauth add brycewang-stanford/Awesome-Agent-Skills-for-Empirical-Research claude-academic-workflow-guideInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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.
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
# 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`
# 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"
% 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}
# 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)
### 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"
### 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"
development
Conduct rigorous thematic analysis (TA) of qualitative data following Braun and Clarke's (2006) six-phase framework. Use whenever the user mentions 'thematic analysis', 'TA', 'Braun and Clarke', 'qualitative coding', 'identifying themes', or asks for help analysing interviews, focus groups, open-ended survey responses, or transcripts to identify patterns. Also trigger for questions about inductive vs theoretical coding, semantic vs latent themes, essentialist vs constructionist epistemology, building a thematic map, or writing up a qualitative findings section. Covers all six phases, the four upfront analytic decisions, the 15-point quality checklist, and the five common pitfalls. Produces a Word document write-up and an annotated thematic map. Does NOT cover IPA, grounded theory, discourse analysis, conversation analysis, or narrative analysis — use a different method for those.
development
Guide users through writing a systematic literature review (SLR) following the PRISMA 2020 framework. Use this skill whenever the user mentions 'systematic review', 'systematic literature review', 'SLR', 'PRISMA', 'PRISMA 2020', 'PRISMA flow diagram', 'PRISMA checklist', or asks for help writing, structuring, or auditing a literature review that follows reporting guidelines. Also trigger when the user asks about inclusion/exclusion criteria for a review, search strategies for databases like Scopus/WoS/PubMed, study selection processes, risk of bias assessment, or narrative synthesis for a review paper. This skill covers the full PRISMA 2020 checklist (27 items), produces a Word document manuscript in strict journal article format, generates an annotated PRISMA flow diagram, and enforces APA 7th Edition referencing throughout. It does NOT cover meta-analysis or statistical pooling. By Chuah Kee Man.
testing
Performs placebo-in-time sensitivity analysis with hierarchical null model and optional Bayesian assurance. Use when checking model robustness, verifying lack of pre-intervention effects, or estimating study power.
data-ai
Fit, summarize, plot, and interpret a chosen CausalPy experiment. Use after the causal method has been selected, including when configuring PyMC/sklearn models and scale-aware custom priors.