بنقرة واحدة
latex-doctor
Clean and fix .tex files -- strip comments, fix compilation errors, verify section markers
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Clean and fix .tex files -- strip comments, fix compilation errors, verify section markers
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Create a new empirical research project: generates projects/<name>/ with latex, code, scripts, results, literature, and guidance subfolders plus README.md and project-level CLAUDE.md.
Publication-ready figure conventions for empirical finance and economics. Covers matplotlib styling, color palettes, export settings, and common figure types (time series, decile bars, coefficient plots, event studies). Auto-apply when creating any figure, plot, or visualization.
Agent-driven cold-start onboarding. Use the repo shell entrypoint to find or install Python 3.11+, then run the shared bootstrap audit/plan/apply flow and configure WRDS only if the user has it.
Create and compile Beamer presentations following the Rhetoric of Decks philosophy. Use when making seminar or conference slides.
Compile LaTeX to PDF using pdflatex + bibtex cycle
Creates new Claude Code skills, auto-apply skills, or auto-trigger rules, or audits existing ones for quality and effectiveness.
| name | latex-doctor |
| description | Clean and fix .tex files -- strip comments, fix compilation errors, verify section markers |
The "clean room" skill. Run to get a .tex file into a consistent, compilable state with verified section markers.
/latex-doctor -- full cleanup of the main .tex file/latex-doctor comments -- only strip comments/latex-doctor markers -- only verify section markers/latex-doctor compile -- only fix compilation issues/latex-doctor path/to/file.tex -- clean a specific filetools/bootstrap.py audit, or a repo-root compatibility shim if present):
cd {latex_dir} && pdflatex -interaction=nonstopmode {file} && bibtex {stem} && pdflatex -interaction=nonstopmode {file} && pdflatex -interaction=nonstopmode {file}
Scan the .tex file and remove unnecessary comments:
REMOVE:
% some old note)% comment part)% \begin{table}...% \end{table})PRESERVE (never touch):
%% BEGIN key and %% END key section markers% !TeX directives% inside \url{}, \verb||, or verbatim environments%% NOTE: or similar)Report: "Removed N comment lines (K characters saved)"
Verify %% BEGIN/END markers for consistency.
.tex file for all %% BEGIN key and %% END key markersCLAUDE.md defines registered section keys, cross-reference against them\section{} commands without %% BEGIN/END pairs%% BEGIN key without matching %% END key (or vice versa)%% END key appears before the next %% BEGIN keyReport: "Verified N markers. M issues found."
Address common compilation errors:
Missing packages:
\usepackage{X} is missing but commands from package X are used, add the \usepackage to the preambleUndefined references:
\ref{label} where \label{label} does not existMissing bibliography:
.bib file exists and is referenced\cite{} not in .bib)Orphaned labels:
\label{...}) but are never referenced (\ref{...})Address common warnings:
Overfull \hbox:
\allowbreak, adjust column width, \resizebox)Underfull \hbox:
Missing references:
Report: "Addressed N warnings. Reduced from M to K remaining."
LATEX DOCTOR REPORT
====================
File: [filename]
COMMENTS:
Removed: N lines (K characters)
Preserved: M marker/directive lines
SECTION MARKERS:
Verified: N markers
Issues: M issues found [list if any]
COMPILATION:
Before: E errors, W warnings
After: E' errors, W' warnings
Fixed: [list of fixes applied]
REMAINING ISSUES:
- [list of issues that need human attention]
STATUS: [CLEAN COMPILE / N ISSUES REMAINING]