Scaffolds a new academic paper from a LaTeX boilerplate template, replacing placeholders and compiling a test PDF.
Ships in ai-asset-pricing. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Scaffold a new academic paper from the repo's LaTeX boilerplate template. The
template includes 6 table exemplars, 1 figure, and 2 equation styles — all
tagged [REMOVE] — so Claude has maximum context on formatting conventions.
/setup-paper "My Paper Title" — basic scaffold with placeholder authors/setup-paper "My Paper Title" --authors "John Smith (MIT), Jane Doe (LSE)" — with authors/setup-paper "My Paper Title" --authors "John Smith (MIT)" --topic "asset pricing anomalies" — with topic-aware fillerExtract from $ARGUMENTS:
----authors (optional): comma-separated "Name (Affiliation)" pairs--topic (optional): one-line description for smarter filler generationIf title is missing, use AskUserQuestion to prompt.
Determine where to write main.tex and references.bib:
projects/<name>/ (any depth), target = projects/<name>/latex//latex/, target = cwdCreate the target directory if it does not exist.
Find the repo root by walking up from cwd looking for boilerplate/template_main.tex.
The boilerplate lives at:
<repo_root>/boilerplate/template_main.tex
<repo_root>/boilerplate/template_references.bib
If the boilerplate files are not found, stop and tell the user.
boilerplate/template_main.texboilerplate/template_references.bibmain.tex and references.bib\bibliography{} line: replace template_references with referencesFind and replace these [REMOVE] placeholders in main.tex:
| Find | Replace with |
|---|---|
[REMOVE] Your Paper Title Here | User's title |
[REMOVE] First Author\thanks{...} block | Generated from --authors (see below) |
[REMOVE] Second Author\thanks{...} block | Remove if only one author, or replace |
[REMOVE] We gratefully acknowledge... | [REMOVE] Acknowledgments go here. (keep tag) |
[REMOVE] This paper studies... (abstract) | Topic-aware filler if --topic, else keep |
[REMOVE] Keyword One; ... | [REMOVE] Keyword One; Keyword Two; Keyword Three. (keep tag) |
[REMOVE] G12; C12. | [REMOVE] G12; C12. (keep tag) |
Also replace the Internet Appendix title:
| [REMOVE] Your Paper Title Here (in IA section) | User's title |
Author block generation from --authors "Name1 (Affil1), Name2 (Affil2)":
\author{
{\normalsize Name1\thanks{{\scriptsize
Affil1; \url{[email protected]}}}}
\and
{\normalsize Name2\thanks{{\scriptsize
Affil2; \url{[email protected]}}}}
}
If no --authors provided, leave the template's placeholder authors intact.
If --topic is provided, rewrite the introduction filler (~250 words) to:
\citet{FamaFrench_1992}, \citet{FamaFrench_1993}, and \citet{FamaFrench_2015}[REMOVE]Also write 2–3 sentence [REMOVE]-tagged filler for Data, Methodology, Results, and Conclusion sections that references the topic.
If no --topic, leave the template's default filler intact.
Do NOT remove the example tables, figures, or equations. These serve as formatting exemplars.
Run the standard build cycle using the pdflatex path from canonical local state reported by tools/bootstrap.py audit:
cd {target_dir} && pdflatex -interaction=nonstopmode main.tex && bibtex main && pdflatex -interaction=nonstopmode main.tex && pdflatex -interaction=nonstopmode main.tex
Report any errors or warnings. If pdflatex is not available, skip compilation and note it in the summary.
Print the structured summary below.
The template includes 7 table styles for reference:
| Label | Archetype | Location | Pattern |
|---|---|---|---|
tab:example_panel | Panel results + t-stats | Data | \scalebox{0.75}, 2 panels, \cmidrule, \addlinespace |
tab:example_descriptive | Summary statistics | Data | \scalebox{0.85}, no panels, percentiles |
tab:example_definitions | Lookup / definitions | Data | p{6cm} text column, \texttt{} mnemonics |
tab:example_decomposition | Multi-leg decomposition | Results | \scalebox{0.72}, Long/Short/L-S groups |
tab:example_comparison | Compact comparison | Results | \scalebox{0.78}, Mean + Alpha side-by-side |
tab:example_summary | Appendix summary | Appendix A | No scaling, counts + aggregate stats |
tab:ia_example | IA subsample results | Internet Appendix | \scalebox{0.80}, Roman numeral numbering (IA.I) |
PAPER SETUP COMPLETE
====================
Title: {title}
Authors: {author list or "template placeholders (replace [REMOVE] tags)"}
Topic: {topic or "none"}
Target: {target_dir}
Files created:
{target_dir}/main.tex (from boilerplate/template_main.tex)
{target_dir}/references.bib (from boilerplate/template_references.bib)
Compile: SUCCESS / FAILED / SKIPPED (pdflatex not available)
Pages: {N}
Section keys (for /write-section):
introduction, data, methodology, results, conclusion, appendix-a, internet-appendix
Table exemplars (7):
tab:example_panel, tab:example_descriptive, tab:example_definitions,
tab:example_decomposition, tab:example_comparison, tab:example_summary,
tab:ia_example
[REMOVE] items: {count} across {N} sections
Next steps:
1. Search for [REMOVE] and replace all filler content with your text
2. Add your .bib entries to references.bib (FF 1992/1993/2015 included as demos)
3. Keep example tables as formatting reference until you replace with your own
4. Run /build-paper to recompile after edits
What SKILL.md sets; muted values are Claude Code's defaults
38 skills in this plugin
/audit-captionsAudit all table and figure captions for language, notation, and formatting consistency/audit-mathAdversarial audit of mathematical proofs, derivations, and formal environments/audit-sectionDeep audit of a single section -- style, factual accuracy, citations, logical flow/bond-dataReference for the Dickerson corporate bond dataset: column mappings between WRDS and PyBondLab, rating encoding, return definitions, signal clusters, and data gotchas. Auto-apply when loading bond data for PyBondLab analysis./build-contextGenerate guidance/paper-context.md from user-provided .tex, .md, or .pdf files/build-deckCreate and compile Beamer presentations following the Rhetoric of Decks philosophy. Use when making seminar or conference slides./ai-asset-pricing:setup-paper <title> [--authors 'Name1 (Affil1), Name2 (Affil2)'] [--topic 'one-line description']from ai-asset-pricing
ai-asset-pricing@fin-skills is listed by howard-lynn-ye/fin-rsi — review the source before installing
npx claudepluginhub howard-lynn-ye/fin-rsi --plugin ai-asset-pricingOther plugins' skills for the same job