Audits LaTeX table and figure captions for consistency in language, notation, terminology, and formatting. Run manually or with optional scope filters.
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.
Systematic audit of all \caption{} blocks, tablenotes, and figure notes for cross-caption consistency in language, notation, terminology, number formatting, and structure.
/audit-captions -- audit all captions in main.tex/audit-captions tables -- audit only table captions/audit-captions figures -- audit only figure captions/audit-captions appendix -- audit captions in appendix sections onlyThe user provides an optional scope filter. If omitted, all captions in main.tex are audited.
.claude/rules/notation-protocol.md for mathematical notation conventions (if it exists).claude/rules/academic-writing.md for terminology rules and banned wordsguidance/paper-context.md for canonical numbers, sample description, and project-specific terminology (if it exists)main.tex in fullFor each \caption{...} in main.tex, extract:
\label{...} associated with this float\caption{...}\caption{Title.} followed by \begin{spacing}{1}{\footnotesize ... }\end{spacing}\caption{Title.} followed by \begin{justify}\begin{spacing}{1}\footnotesize{...}\end{spacing}\end{justify}\begin{tablenotes}...\end{tablenotes}\textbf{Panel A:} or \multicolumn{...}{...}{\textbf{Panel A:} ...} text inside the floatBuild a numbered registry of all captions for cross-comparison. Record the section each caption belongs to (using %% BEGIN/END markers).
Compare the phrasing of recurring concepts across ALL captions. Flag inconsistencies in:
3a. Sample period description
3b. Return descriptions
3c. Statistical methodology descriptions
3d. Variable definitions
3e. Approach/method naming
Check mathematical notation in captions against notation-protocol.md (if available):
$\E[...]$ not $E[...]$)If guidance/paper-context.md defines a terminology table, apply it to all captions. Flag any use of deprecated or incorrect terms.
Also check for banned words from banned-words.md appearing in captions.
Check that all captions follow a consistent structure:
6a. Caption title format
6b. Caption notes structure
6c. Panel descriptions
Check consistency in how numbers are formatted across captions:
For each table/figure referenced in the body text:
Compare all captions pairwise for near-duplicate phrases:
If the target scope contains no \caption{} commands:
/audit-captions without a scope filter to audit all captions."CAPTION AUDIT
=============
INVENTORY:
Tables: N captions extracted
Figures: M captions extracted
Total: N+M
CAPTION REGISTRY:
| # | Type | Label | Line | Title (truncated) | Has Notes | Sample Period |
|---|------|-------|------|-------------------|-----------|---------------|
| 1 | Table | tab:summary | 560 | Summary Statist... | Yes | [start] to [end] |
| 2 | Figure | fig:ts | 660 | Time series of... | Yes | [start] to [end] |
| ... | ... | ... | ... | ... | ... | ... |
LANGUAGE CONSISTENCY: [N issues]
- [Line X vs Line Y] [SEVERITY]: Sample period format inconsistency
Caption A: "Sample: YYYY-MM to YYYY-MM, $T$=N"
Caption B: "Sample: YYYY-MM to YYYY-MM" (missing $T$)
- [Line X vs Line Y] [SEVERITY]: Variable definition inconsistency
Caption A: "$\mu$ is mean monthly return (\%)"
Caption B: "$\mu$ is mean return (\%)"
NOTATION CONSISTENCY: [N issues]
- [Line X] [SEVERITY]: [description]
TERMINOLOGY COMPLIANCE: [N issues]
- [Line X] [SEVERITY]: [description]
STRUCTURAL CONSISTENCY: [N issues]
- [Line X] [SEVERITY]: [description]
NUMBER FORMAT: [N issues]
- [Line X vs Line Y] [SEVERITY]: [description]
ABBREVIATIONS: [N issues]
- [Line X] [SEVERITY]: [description]
CAPTION-TEXT ALIGNMENT: [N issues]
- [Line X (text) vs Line Y (caption)] [SEVERITY]: [description]
COPY-PASTE DRIFT: [N pairs flagged]
- Captions [A] and [B]: N% overlap in notes text
Difference: [specific divergent detail]
SEVERITY SUMMARY:
CRITICAL: N (factual mismatches between caption and text/data)
IMPORTANT: N (language or notation inconsistencies visible to referees)
MINOR: N (formatting preferences, abbreviation nits)
NICE-TO-HAVE: N (structural polish)
STANDARDIZATION RECOMMENDATIONS:
[3-5 specific phrases that should be standardized across all captions, with the recommended canonical form:]
1. Sample period: "[recommended canonical form]"
2. Standard errors: "[recommended canonical form]"
3. [etc.]
TOP PRIORITY FIXES:
1. [CRITICAL] [Line X]: [description and suggested fix]
2. [IMPORTANT] [Line Y]: [description and suggested fix]
3. [etc.]
This skill can be called from /check-consistency as an additional pass focused on float environments:
Step 5b: Caption Consistency
Run /audit-captions. Include CRITICAL and IMPORTANT findings in the output.
It can also be called from /full-paper-audit after the cross-section consistency step:
Step 3b: Run /audit-captions to check caption-level consistency.
Include CRITICAL and IMPORTANT findings in the master report.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/ai-asset-pricing:audit-captionsfrom 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-pricing38 skills in this plugin
/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 filesOther plugins' skills for the same job