skills/67-econfin-workflow-toolkit/paper-referee-revise/SKILL.md
Revise an academic paper based on journal referee reports. Reads referee comments from review report or annotated manuscript, then directly modifies main.tex one comment at a time with user approval. Generates response letter after revision. Trigger when user says "referee revise" / "paper-referee-revise" / "审稿意见修改" / "根据审稿人意见修改" / "referee report".
npx skillsauth add brycewang-stanford/Awesome-Agent-Skills-for-Empirical-Research paper-referee-reviseInstall 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.
This skill revises an academic paper (main.tex) based on journal referee reports received during the peer review process. The user provides a project folder containing the manuscript, supporting files, and referee materials. The skill extracts referee comments, triages empirical work, then processes text revisions one by one with user approval, and finally drafts a response letter.
Input: A project folder containing:
main.tex — the main manuscript (the source file; will NOT be overwritten)referee.txt, referee.md, referee.pdf, report.txt, report.md, report.pdf, review.txt, review.md, review.pdf, R1.txt, R1.pdf, referee1.*, referee2.*)annotated.tex, annotated.pdf) where annotations/comments from the referee serve as review commentsreferee1.pdf, referee2.pdf) — process each referee's comments separatelyOutput:
empirical-revise.pdf (empirical revision strategy) and halts.main-rX.tex (revised manuscript with changes in red) and response-rX.tex (response letter), then halts.$ARGUMENTS or ask).X — this determines output file names: main-rX.tex and response-rX.tex.X = 1: the source file is main.tex.X = 2: the source file is main-r1.tex.X = 3: the source file is main-r2.tex.main-r{X-1}.tex (i.e., the output of the previous round). If X = 1, use main.tex.main-r1.tex is missing), alert the user and ask them to confirm.referee*, report*, review*, R1*, R2*, R3*, annotated*, comments*, feedback*, revision*..tex files from subfolders so that you have full knowledge of the paper's empirical results. This is critical for proposing accurate revisions when referees comment on results..tex files: look for comments marked with % or annotation commands (e.g., \annotate{}, \comment{}, \todo{}, or any custom annotation commands, or highlighted/colored text added by the referee)..txt / .md files: read the full content as referee comments..pdf files: read the PDF content to extract referee text..docx files: use Bash to extract text content.Referee 1 comments:
ID | Type | Location | Comment Summary
------|-----------|---------------------------|------------------------------------------
R1-1 | Empirical | Section 3, para 2 | Endogeneity concern, suggests IV approach
R1-2 | Text | Section 4.1, Table 2 | Clarify discussion of control variables
R1-3 | Editorial | Section 2, para 4 | Typo in variable name
Referee 2 comments:
ID | Type | Location | Comment Summary
------|-----------|---------------------------|------------------------------------------
R2-1 | Empirical | Section 5 | Additional robustness checks needed
R2-2 | Text | Introduction, para 3 | Clarify contribution statement
Total: N comments (X empirical, Y text, Z editorial).
This phase is mandatory. It runs before any text revision begins.
Identify empirical comments: From Phase 2 classification, collect all comments typed as "Empirical" — i.e., any comment that demands:
If empirical comments exist, generate empirical-revise.tex in the project folder with the following structure:
\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[margin=1in]{geometry}
\usepackage{enumitem}
\usepackage{booktabs}
\usepackage{longtable}
\usepackage{xcolor}
\title{Empirical Revision Strategy}
\author{}
\date{}
\begin{document}
\maketitle
\section{Overview}
This document summarizes all empirical work required to address referee comments.
Total empirical comments: N (out of M total comments).
\section{Empirical Tasks}
\subsection{[R1-1] [Brief title of the empirical task]}
\textbf{Referee's comment:} [Full text of the referee's original comment]
\textbf{Current status:} [What the paper currently does — reference existing table/figure if applicable]
\textbf{Required action:}
\begin{itemize}
\item [Specific step 1: e.g., "Run OLS regression of Y on X with firm and year FE, adding control variables Z1, Z2"]
\item [Specific step 2: e.g., "Store results in a new table: table_iv.tex"]
\item [...]
\end{itemize}
\textbf{Suggested table/figure name:} [e.g., table\_iv.tex, table\_robust\_subsample.tex]
\textbf{Suggested placement:} [e.g., "Section 4.2, after Table 3" or "Appendix"]
% Repeat \subsection for each empirical comment
...
\section{Summary of New Tables/Figures Needed}
\begin{longtable}{lll}
\toprule
File name & Description & Placement \\
\midrule
table\_iv.tex & IV/2SLS results for endogeneity & Section 4.2 \\
table\_robust\_sub.tex & Subsample robustness & Section 5.1 \\
... & ... & ... \\
\bottomrule
\end{longtable}
\section{Non-Empirical Comments (For Reference)}
The following comments do not require new empirical work and will be addressed in the text revision phase:
\begin{itemize}
\item [R1-3] [Brief summary]
\item [R2-2] [Brief summary]
\item ...
\end{itemize}
\end{document}
cd [project-folder] && pdflatex empirical-revise.tex
If pdflatex fails, try xelatex empirical-revise.tex. If compilation fails entirely, inform the user that the .tex file is ready and they can compile it manually.
══════════════════════════════════════════════════════════════
实证修改策略已生成: [project-folder]/empirical-revise.pdf
共发现 N 条涉及实证的审稿意见,需要先完成以下工作:
- 新增表格: X 个
- 修改现有表格: Y 个
- 新增图表: Z 个
请完成实证工作后,将新的表格/图表文件放入项目文件夹,
然后重新运行本skill继续修改论文正文。
══════════════════════════════════════════════════════════════
Do NOT proceed to Phase 4. The program ends here.
Re-entry after empirical work is done: When the user re-runs this skill on the same folder after completing the empirical work, Phase 3 should detect that empirical-revise.pdf already exists. Ask the user to confirm: "实证修改是否已全部完成?(Has all empirical work been completed?)" If the user confirms yes, proceed to Phase 4. If not, the user should complete the remaining work first.
Before starting: Copy the source manuscript to main-rX.tex (i.e., for round 1 copy main.tex → main-r1.tex; for round 2 copy main-r1.tex → main-r2.tex; etc.). All subsequent edits are made to main-rX.tex, NEVER to the source file. Ensure main-rX.tex includes \usepackage{xcolor} in the preamble (add it if not already present) — this is required for red markup. If the source file already contains \textcolor{red}{} markup from a previous round, convert those red markings to normal black text first (remove the \textcolor{red}{} wrappers, keeping the content), so that only the current round's changes appear in red.
For each referee comment (both text-only AND empirical comments that now have completed results), follow this exact interaction pattern:
───────────────────────────────────────────
[R1-1] (Empirical/Text/Editorial) — Referee 1, Comment 1:
[Full text of the referee's comment]
───────────────────────────────────────────
Locate and display the relevant passage from main-rX.tex:
Original text (main-rX.tex, lines XX-YY):
┌─────────────────────────────────────────┐
│ [The exact paragraph(s) from main-rX.tex│
│ that this comment refers to] │
└─────────────────────────────────────────┘
If the comment refers to missing content (e.g., "the authors should add a discussion of X"), show the surrounding context where the new text should be inserted.
Generate a revised version of the text that addresses the referee's comment. All new or changed text must be wrapped in \textcolor{red}{...} so that changes are visually highlighted in the compiled PDF:
Proposed revision:
┌─────────────────────────────────────────┐
│ [The revised paragraph with changed │
│ portions wrapped in \textcolor{red}{}] │
└─────────────────────────────────────────┘
Rationale: [Brief explanation of what was changed and why it addresses the referee's concern]
Red markup rules:
\textcolor{red}{}. Unchanged surrounding text stays in normal color.\textcolor{red}{}.\ref{} in red..tex file was modified or newly added for this revision, add \color{red} at the beginning of the table environment or wrap changed cells in \textcolor{red}{}.Use AskUserQuestion to ask:
Do you approve this revision? (yes / no / skip / edit)
- yes: Apply this revision to main-rX.tex
- no: I will propose a new revision (tell me what to adjust)
- skip: Skip this comment and move to the next
- edit: You provide the revised text yourself
main-rX.tex. Record this as "applied" with both the original and revised text (needed for response letter). Confirm the change was applied, then move to the next comment.\textcolor{red}{} markup) using the Edit tool. Record as "applied". Move to the next comment.Important: Maintain a revision log throughout Phase 4. For each comment, record:
main-rX.tex, including all \textcolor{red}{} markup and the exact figure/table numbers (\ref{}, "Table 3", "Figure 2", etc.)After all comments have been processed, generate a highly detailed response letter as response-rX.tex in the project folder. This response letter is a primary deliverable — referees and editors judge a revision largely by it, so it must read as a thorough, self-contained account of every change. A thin response letter (a sentence or two per comment) signals a superficial revision and invites rejection; a thorough one demonstrates that every concern was taken seriously.
The finished PDF's overall heft scales with the total number of referee comments:
Count the total across all referees to pick the multiplier. This is a guideline for overall heft, not a quota to pad: the length comes naturally from (a) a substantive narrative of the revision approach and (b) complete, verbatim excerpts of every revised passage. High-effort comments will run well over the per-comment average; short editorial fixes will run under. Aim for the aggregate target across the whole letter. If the draft is far short of it, the usual cause is that excerpts were truncated or the narrative was too terse — fix those rather than inserting filler.
Before writing each response, decide whether the comment was high-effort or low-effort:
When in doubt, treat the comment as high-effort — a fuller explanation never hurts.
Each comment's response has three parts, in this order:
main-rX.tex in full — never abbreviate, never use ellipses, never write "[...]" or "the paragraph now reads ...". Reproduce every revised paragraph, sentence, table caption, or figure note in its entirety. If the revision touches several locations, excerpt every one of them, each labeled with its section/location.\textcolor{red}{}, exactly as in main-rX.tex, so the referee sees precisely what is new.Figure and table numbering: When excerpting, keep every figure and table number identical to the manuscript — do not renumber. If the revised text says "Table 3" or contains \ref{tab:iv}, reproduce it verbatim. The referee must be able to cross-reference the letter against the paper without confusion.
\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[margin=1in]{geometry}
\usepackage{xcolor}
\usepackage{enumitem}
\usepackage{booktabs}
\usepackage{longtable}
\title{Response to Referee Comments}
\author{}
\date{}
\begin{document}
\maketitle
We sincerely thank the referees for their careful reading of our manuscript and their constructive comments and suggestions. We have carefully considered each comment and revised the manuscript accordingly. Below, we provide a detailed, point-by-point response to each comment. All changes in the revised manuscript are highlighted in {\textcolor{red}{red}}, and we reproduce the revised passages in full so they can be read alongside the manuscript.
\section{Response to Referee 1}
\subsection*{Comment R1-1}
\textbf{Referee's comment:} ``[Full, complete text of the referee's original comment — do not abbreviate.]''
\textbf{Response:} [The revision-approach narrative. 300--500 words for a high-effort comment; 100--200 words for a low-effort comment. Substantive prose explaining the approach, method, and — for empirical work — the actual results.]
\textbf{Revised text in the manuscript:} The relevant passage(s) now read as follows. [Then reproduce every revised passage IN FULL, with changed portions in \textcolor{red}{red}, and with all figure/table numbers identical to the manuscript. If multiple locations were revised, label and quote each one, e.g.:]
\textit{Section 4.2, after Table 3:}
\begin{quote}
[Complete revised paragraph, verbatim, with \textcolor{red}{} markup intact.]
\end{quote}
% For skipped comments: keep the same three-part structure where it applies —
% give a substantive narrative (still 100--500 words by effort level) explaining
% respectfully why no change was made. If no text changed, the "Revised text"
% block is omitted.
% Repeat \subsection* for every comment...
\section{Response to Referee 2}
% Same structure...
\end{document}
Response letter rules:
Compile to PDF:
cd [project-folder] && pdflatex response-rX.tex
HALT the program after generating the response letter. Display:
══════════════════════════════════════════════════════════════
修改完成!
修改后的论文: [project-folder]/main-rX.tex
回复信: [project-folder]/response-rX.tex
修改统计:
- Referee 1: Applied X/N comments (skipped: Y)
- Referee 2: Applied X/N comments (skipped: Y)
- 总修改: A 处 (实证: B, 文字: C, 编辑: D)
请检查 main-rX.tex 和 response-rX.tex,确认无误后提交。
══════════════════════════════════════════════════════════════
\section{}, \subsection{}, \ref{}, \cite{}, \citep{}, math environments, etc.\label{}), cross-references (\ref{}), and citations intact unless the referee specifically asks to change them.\cite{} / 70% \citep{}).---): Do not use the LaTeX em-dash --- in revised or newly written prose (including text inside \textcolor{red}{} markup). It is a common AI-writing tell and clutters academic text. Replace each occurrence with the punctuation its grammatical role calls for: a parenthetical aside becomes parentheses (or commas if short); a connector before an explanation becomes a colon or semicolon; an abrupt shift becomes a period and two sentences; a list continuation becomes a comma plus a connecting word. Leave the en-dash -- used for page and number ranges untouched (e.g., pages={259--271}, 2012--2026). When a revision touches a paragraph, also strip any pre-existing --- from that paragraph as part of the edit.main-rX.tex MUST be wrapped in \textcolor{red}{...}.\usepackage{xcolor} is in the preamble..tex files first, then propose the text revision that discusses the new results. Wrap all new text in \textcolor{red}{}..tex file from the project folder before proposing the revision, to ensure accuracy of reported coefficients, t-statistics, significance levels, sample sizes, etc.ref.bib or similar bibliography files, modify those files as well.tools
Recommend AND run open-source AI tools, agents, Claude Code / Codex skills, and MCP servers for any stage of a literature review — searching, reading, extracting, synthesizing, screening, citation-checking, and paper writing. Use when the user asks "what tool should I use to..." OR "install/run/use <tool> to ..." for research/lit-review work: automating a survey or related-work section, PDF→Markdown extraction for LLMs (MinerU/marker/docling), PRISMA / systematic review (ASReview), citation-backed Q&A over PDFs (PaperQA2), wiring papers into Claude/Cursor via MCP (arxiv/paper-search/zotero servers), or chatting with a Zotero library. Ships a launcher (scripts/litrun.py) that installs each tool in an isolated venv and runs it. Curated catalog of 70+ vetted projects. 支持中英文(用于「文献综述工具选型」与「一键安装/运行」)。
development
Route empirical-research requests through the Auto-Empirical Research Skills catalog when this whole repository is installed as one skill in Codex, CodeBuddy, Claude Code, or another IDE. Use to choose and load the right vendored AERS skill for causal inference, econometrics, replication, data acquisition, manuscript writing, peer review and referee responses, citation checking, de-AIGC editing, or full empirical-paper workflows without reading the entire repository at once.
documentation
Use when the project collects primary data or runs a field, lab, or survey experiment, before the intervention begins — write the pre-analysis plan, size the sample from a power calculation, and register with the AEA RCT Registry. Apply after the design is chosen in aer-identification and before any outcome data are seen.
tools
Guide economists to authoritative data sources with explicit, confirmed data specifications before retrieval; interfaces with Playwright MCP to navigate portals and extract real data, not articles about data.