fin-paper-convert

fin-paper-convert is a skill for Claude Code, Codex from csmar432/finai-research. It costs 12 tokens per session (9,465 once invoked), scanned A, original, MIT.

A LaTeX build and conversion workflow for turning a finance or economics manuscript into PDFs and journal-specific versions. It first checks that the manuscript, figures, bibliography tools, and other required files are present.

In plain words
What is it for?
Use it to validate a LaTeX project, compile the manuscript, troubleshoot missing components, and create submission variants for the target journal.
Why use it?
It reduces avoidable compilation failures and makes it easier to prepare different versions of the same paper. These can include an anonymous submission version, an arXiv version, or a Word version when supported by the workflow.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python scripts/research_framework/latex_compiler.py \.

Good fit Use it to validate a LaTeX project, compile the manuscript, troubleshoot missing components, and create submission variants for the target journal.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/csmar432/finai-research
agentmods
npx agentmods add skills/csmar432/finai-research/fin-paper-convert

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for fin-paper-convert

README.md
[![agentmods](https://agentmods.dev/badge/skills/csmar432/finai-research/fin-paper-convert/github.svg)](https://agentmods.dev/skills/csmar432/finai-research/fin-paper-convert)
Your own site
<a href="https://agentmods.dev/skills/csmar432/finai-research/fin-paper-convert"><img src="https://agentmods.dev/badge/skills/csmar432/finai-research/fin-paper-convert/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for fin-paper-convert

Your own site · 80×15
<a href="https://agentmods.dev/skills/csmar432/finai-research/fin-paper-convert"><img src="https://agentmods.dev/badge/skills/csmar432/finai-research/fin-paper-convert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 12 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 9,465 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00012 $0.09465
Opus 5 $0.00006 $0.04732
Sonnet 5 $0.00002 $0.01893
Haiku 4.5 $0.00001 $0.00946

Measured 11d ago against content hash 5c7a66774e90, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

fin-paper-convert scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

result = subprocess.run(
.agents/skills/fin-paper-convert/SKILL.md · 1,217 lines

How it starts

The opening of the file, as written. The whole thing — 1,217 lines — stays where its author put it; the contents beside it link to each section on GitHub.

fin-paper-convert

Compile LaTeX manuscripts to publication-ready PDFs and generate submission variants (anonymous, arxiv, word) for the target journal.

Step 0: Pre-compilation Check

Before running LaTeX compilation, verify all components are ready:

# Check required files exist
ls -la output/fin-manuscript/draft_v1/
ls -la output/fin-manuscript/draft_v1/sections/ 2>/dev/null || echo "No sections dir"
ls -la output/fin-manuscript/draft_v1/figures/  2>/dev/null || echo "No figures dir"

# Check LaTeX installation
which xelatex pdflatex latexmk 2>/dev/null
latexmk --version 2>/dev/null || echo "latexmk not found"

# Check bibliography tool
which bibtex biber 2>/dev/null
#!/usr/bin/env python3
"""Pre-compilation validation for fin-paper-convert."""

import os
import re
from pathlib import Path
from dataclasses import dataclass
from typing import List, Optional, Tuple


@dataclass
class ValidationResult:
    ok: bool
    errors: List[str]
    warnings: List[str]
    missing_files: List[str]


def validate_latex_project(base_dir: str) -> ValidationResult:
    """
    Validate all required files and structure before compilation.
    """
    base = Path(base_dir)
    errors = []
    warnings = []
    missing = []
    
    # Check main.tex
    main_tex = base / "main.tex"
    if not main_tex.exists():
        missing.append(str(main_tex))
        errors.append("main.tex not found")
    
    # Check references.bib
    bib_file = base / "references.bib"
    if not bib_file.exists():
        missing.append(str(bib_file))
        errors.append("references.bib not found")
    else:
        # Count references
        bib_content = bib_file.read_text(encoding="utf-8")
        ref_count = len(re.findall(r'@\w+\{', bib_content))
        warnings.append(f"Found {ref_count} references in references.bib")
    
    # Check figures directory
    fig_dir = base / "figures"
    if not fig_dir.exists():
        warnings.append("figures/ directory not found (no figures will be included)")
    else:
        fig_files = list(fig_dir.glob("*.pdf")) + list(fig_dir.glob("*.png"))
        if not fig_files:
            warnings.append("No figure files (.pdf/.png) found in figures/")
    
    # Check sections directory
    sec_dir = base / "sections"
    if sec_dir.exists():
        tex_files = list(sec_dir.glob("*.tex"))
        if tex_files:
            warnings.append(f"Found {len(tex_files)} section .tex files")
    
    # Validate main.tex structure
    if main_tex.exists():
        content = main_tex.read_text(encoding="utf-8")
        
        # Check required packages
        if r'\documentclass' not in content:
            errors.append("main.tex missing \\documentclass")
        
        # Check bibliography commands
        if r'\bibliography' not in content and r'\addbibresource' not in content:
            warnings.append("No bibliography command found in main.tex")
        
        # Check input commands for sections
        if sec_dir.exists() and not any(r'\input{' in content for _ in [1]):
            warnings.append("No \\input{} commands found — sections may not be included")
    
    return ValidationResult(
        ok=len(errors) == 0,
        errors=errors,
        warnings=warnings,
        missing_files=missing,
    )

Read the full file on GitHub · 1,217 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 1,217 lines · 12 tokens per session scan A 5c7a66774e90

Subscribe to this mod's changes

fin-paper-convert is a skill published in the GitHub repository csmar432/finai-research (100 stars, last pushed 2d ago), licensed MIT. It adds 12 tokens to every session and 9,465 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

compile-latex

Compile a Beamer LaTeX slide deck with XeLaTeX (3 passes + bibtex). Use when user says "compile", "build the slides", "rebuild the PDF", "run latex", "render the tex", or asks why a .tex file isn't producing a PDF. Operates on Slides/.tex.

pedrohcgs/claude-code-my-workflow · 73 tokens

beamer-deck

Create an academic presentation as a LaTeX Beamer source and reviewed PDF with an original theme. Use when the requested deliverable is a conference, seminar, or lecture deck in Beamer. Not for PowerPoint or RevealJS; use $pptx or $quarto-deck.

flonat/flonat-research · 63 tokens

bib-parse

Extract citations from a PDF and generate a validated .bib file. Use when the user asks to extract citations from a PDF and generate a validated .bib file. Reads the PDF, identifies referenced works, constructs BibTeX entries, and verifies metadata.

flonat/flonat-research · 54 tokens

latex-health-check

Compile all LaTeX projects and report cross-project build consistency. Use when checking whether a collection of papers builds cleanly. Not for rendered visual inspection after a clean build; use $latex-polish.

flonat/flonat-research · 45 tokens

latex-polish

Inspect a cleanly compiling LaTeX document for source pathologies and rendered visual defects by linting and viewing selected PDF pages. Use when compilation succeeds but title pages, floats, tables, figures, or layout still need publication-quality review. Not for basic compilation health; use $latex-health-check.

flonat/flonat-research · 64 tokens

brief-compliance-check

Check a LaTeX coursework submission against the requirements in a supplied PDF assessment brief. Use when verifying format, required sections, word limits, or deliverables before submission. Not for general prose proofreading; use $proofread.

flonat/flonat-research · 50 tokens