Agent skill

Latex Template

by flonat in flonat/flonat-research

Compare a project's LaTeX preamble and conventions against the canonical working-paper template.

MITAuto-check passedDocuments & Office

Install Latex Template

skills CLI
$ npx skills add flonat/flonat-research --skill latex-template -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install flonat/flonat-research latex-template --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/flonat/flonat-research.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/latex-template .claude/skills/latex-template && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
latex-template
GitHub stars
146
Token cost
~3k tokens
SKILL.md length
1,297 words
Files
3 (incl. references)
Skills in repo
83
Repo updated
First seen
Licence
MIT

At a glance

Compare a project's LaTeX preamble and conventions against the canonical working-paper template.

  • Works in 7 steps: Locate & Parse → Compare → Classify → …
  • Diagnosing template drift without converting venue formats
  • SKILL.md covers When to Use, When NOT to Use, Critical Rules and Protocol, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Latex Template is an agent skill from flonat/flonat-research. Compare a project's LaTeX preamble and conventions against the canonical working-paper template. Use when diagnosing template drift without converting venue formats or editing prose.

Its SKILL.md is about 3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including reference files (for example `references/comparison-checklist.md` and `references/report-format.md`).

It sits in Documents & Office, covering LaTeX. It works with LaTeX. The repository describes itself as: Shareable Claude Code + Codex infrastructure for PhD researchers — skills, agents, hooks, and rules for academic workflows. The licence is MIT.

When your agent uses it

  • Diagnosing template drift without converting venue formats
  • Tasks that involve LaTeX

Example prompts

  • “/latex-template”

Requirements

  • Pre-approved tools (allowed-tools): Read, Glob, Grep, Edit, Write, Bash(ls*), Bash(latexmk*), Bash(lualatex*), Bash(biber*), Bash(cmp*), Bash(cp*), Bash(head*), AskUserQuestion, Skill

Workflow steps

7 steps, taken from the step headings in SKILL.md.

  1. Locate & Parse
  2. Compare
  3. Classify
  4. Check Auxiliaries
  5. Report
  6. Apply (--apply mode only)
  7. Verify (--apply mode only)

What it can do on your machine

Read from SKILL.md and the folder at commit da27600. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Glob
    • Grep
    • Edit
    • Write
    • Bash(ls*)
    • Bash(latexmk*)
    • Bash(lualatex*)
    • Bash(biber*)
    • Bash(cmp*)

    …and 4 more on the same allowed-tools line.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Latex Template loads about 3k tokens when it runs, and up to ~6.3k if it reads all its reference files. Until then it costs about 49 tokens; SKILL.md has 1,297 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~49
When it runs · the whole SKILL.md, loaded when a task matches
~3k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~6.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from flonat/flonat-research at commit da27600, republished under its MIT licence (© flonat). 1,297 words, ~2,958 tokens.

Download SKILL.mdSave it as .claude/skills/latex-template/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
latex-template
description
Compare a project's LaTeX preamble and conventions against the canonical working-paper template. Use when diagnosing template drift without converting venue formats or editing prose.
allowed-tools
Read, Glob, Grep, Edit, Write, Bash(ls*), Bash(latexmk*), Bash(lualatex*), Bash(biber*), Bash(cmp*), Bash(cp*), Bash(head*), AskUserQuestion, Skill
argument-hint
[project-path] [--apply]
skill-dependencies
latex, retarget-journal

Template Compliance

Compare a research project's LaTeX preamble against the working-paper template bundled with the installed latex skill. Classify every difference, produce a scored report, and optionally apply changes interactively.

When to Use

  • After the template has been updated and you want to check older papers
  • Before submission — verify the preamble is clean and up to date
  • When a paper has mysterious compilation issues (often a stale preamble)
  • During periodic maintenance or system-audit
  • When starting work on a paper that hasn't been touched in a while

When NOT to Use

  • Setting up a new project — the separate init-project-research workflow copies the template; this skill audits an existing project
  • Fixing compilation errors — use latex first, then run this
  • Non-LaTeX projects — this skill is LaTeX-specific

Critical Rules

  1. Never edit without --apply. Default mode is report-only. Without --apply, the skill produces a report and exits.
  2. Never auto-apply Conflict items. Conflicts always require explicit user confirmation via the available structured-question mechanism.
  3. Semantic comparison, not line-by-line. Compare packages, options, commands, and environments as logical units — not raw text diffs.
  4. Preserve project-specific additions. Items classified as Keep are informational. Never suggest removing them unless they conflict with a template feature.
  5. Template is the reference, not the authority. Projects may legitimately diverge. The skill reports differences — the user decides what to act on.
  6. Compile after applying. If --apply makes any changes, always verify with latex.

Protocol

Phase 1: Locate & Parse
  1. Resolve the project path. Accept as argument or use CWD. Resolve to absolute path.

  2. Find the project's preamble files. The canonical location is the Overleaf document, accessed via the paper/ symlink in the project directory. Search in this order:

    • New format (.sty files): paper/your-template.sty + paper/your-bib-template.sty (Overleaf symlink — preferred)
    • Legacy format: paper/settings.tex (Overleaf symlink)
    • If no paper/ symlink exists, check the project root for your-template.sty (or settings.tex)
    • Project root: your-template.sty + your-bib-template.sty or settings.tex (for local-only projects without Overleaf)
    • Any \input{settings} or \usepackage{your-template} in main.tex pointing elsewhere

    NEVER check settings/style files in subdirectories like docs/, to-sort/, docs/venues/, or any non-paper location. Only the main paper's preamble is relevant.

    New papers: copy templates/venues/_shared/user-math.sty in alongside the venue kit and \usepackage{user-math} (clash-safe; [notheorems] if the kit owns theorem envs) rather than hand-declaring \E/\Prob/\R/\argmax. Existing compiling papers are not retrofitted — see templates/venues/_shared/README.md.

    If no preamble files are found, report error and exit.

  3. Read the template. Resolve the sibling installed skill path, then use ../latex/templates/working-paper/ relative to this skill. Compare the two .sty files there, with settings.tex as a legacy fallback when present.

    If no template files are found, report "Bundled working-paper template not found — reinstall or repair the latex skill" and exit.

  4. Parse both files into semantic blocks:

    BlockWhat to extract
    PackagesPackage name + options (e.g., [dvipsnames]{xcolor})
    HyperrefAll \hypersetup{} key-value pairs + \urlstyle
    BibliographySystem (biblatex/natbib), all options, \addbibresource, source mappings, field clearing (\AtEveryBibitem), possessive citation commands
    Custom commandsAll \newcommand, \renewcommand, \DeclareMathOperator, \newcolumntype
    Theorem environmentsAll \newtheorem declarations with their styles and counters
    Build configCanonical .latexmkrc byte identity and optional .latexmkrc.local validity

    For packages, normalise options: \usepackage[a,b]{pkg} and \usepackage[b,a]{pkg} are equivalent.


Phase 2: Compare

For each semantic block, compare the project against the template. Detailed check tables for each block: references/comparison-checklist.md

Blocks to compare: Packages (missing, extra, options, load order, duplicates) · Hyperref (missing keys, different values, urlstyle, cleveref ordering) · Bibliography (system mismatch, options, source mappings, field clearing, possessive citations) · Custom Commands (missing, different definitions, column types, math commands) · Theorem Environments (missing, different styles/counters, numberwithin) · Build Config (canonical .latexmkrc identity and local-supplement policy)


Phase 3: Classify

Label every difference with: Adopt (missing from project, safe to add) · Keep (project-specific, informational) · Conflict (needs human judgement, always ask) · Drop (redundant/superseded).

Full classification rules and when-to-use-each-label guidance: references/comparison-checklist.md


Phase 4: Check Auxiliaries

Check main.tex (preamble loading, documentclass, printbibliography, no stale bibliography commands), compare .latexmkrc byte-for-byte with the resolved canonical, and inspect any .latexmkrc.local for a forbidden $pdf_mode assignment.

Full check tables: references/comparison-checklist.md


Phase 5: Report

Produce a structured compliance report. Full format: references/report-format.md

Quality Score

Apply numeric quality scoring using the shared framework: ../shared/quality-scoring.md

Start at 100 and deduct per issue:

TierDeductionExamples
Critical-15 to -25Missing or divergent canonical .latexmkrc, natbib vs biblatex conflict, missing hyperref, hyperref/cleveref load order wrong
Major-5 to -14Missing common packages (booktabs, microtype, enumitem), missing dvipsnames, duplicate package loads, missing custom commands (\todo, \red, \blue), missing source mappings, missing field clearing, missing cleveref
Minor-1 to -4Missing optional packages, different hyperref colours, missing theorem environments, missing math operators, missing \numberwithin
Verdicts
ScoreVerdictMeaning
95-100ShipFully aligned with template
90-94Ship with notesMinor gaps, acceptable to proceed
80-89ReviseMeaningful gaps — fix before submission
60-79Revise (major)Significant drift — several features missing
0-59BlockedMajor conflicts or missing infrastructure — consider full resync
Show full SKILL.md (506 more words)Show less
Report Sections
  1. Header: Project name, path, score, date
  2. Summary table: Counts by classification (Adopt / Keep / Conflict / Drop)
  3. Per-item detail: Grouped by semantic block, showing classification + what/why
  4. Auxiliaries: main.tex and .latexmkrc checks
  5. Recommendations: Prioritised list of suggested actions

If --apply is not set, end with:

Run `latex-template <path> --apply` to interactively apply changes.

Phase 6: Apply (--apply mode only)

Apply changes in dependency order to avoid compilation breakage:

  1. Package options (e.g., add dvipsnames to xcolor)
  2. Missing packages (insert in correct position relative to existing packages)
  3. Hyperref configuration (update \hypersetup{} block)
  4. Bibliography changes (only if user approves — always the available structured-question mechanism for system changes)
  5. Custom commands (append after existing commands section)
  6. Theorem environments (append after existing theorem section)
  7. .latexmkrc (with approval, copy the resolved canonical verbatim; migrate legitimate project settings to .latexmkrc.local and never set $pdf_mode there)
  8. Cleanup (remove duplicates, drop redundancies)
Apply Rules
  • Show a summary first. Before making any edits, present the full list of changes to be applied (Adopt + Drop items) and ask for confirmation.
  • Conflicts are always individual. Each Conflict item gets its own the available structured-question mechanism with the template version, project version, and context.
  • Keep items are never touched. They appear in the report but are skipped during apply.
  • Preserve comments and whitespace. When inserting packages, match the project's existing formatting style (e.g., if packages are grouped with comment headers, add to the right group).
  • Log what was changed. After applying, list every edit made.

Phase 7: Verify (--apply mode only)

After applying changes:

  1. Compile with latex. This handles any secondary issues the changes might introduce.
  2. Report the result:
    • If compilation succeeds: report success + number of changes applied
    • If compilation fails: report the error, suggest reverting specific changes, and note which change likely caused the issue

What This Skill Does NOT Do

  • Does not rewrite main.tex structure. Only checks \input{settings} and bibliography commands.
  • Does not check content quality. The separate proofread workflow covers prose quality when that additional review is wanted.
  • Does not manage .bib files. Use an installed bibliography validator, or perform direct cite-key and metadata checks.
  • Does not handle journal-specific formatting. Use retarget-journal for that.
  • Does not compare across projects. Checks one project at a time against the template.

Examples

Report only (default)

"latex-template ~/papers/costly-voice"

Produces a compliance report without making any changes.

Apply mode

"latex-template ~/papers/costly-voice --apply"

Produces the report, then interactively applies Adopt and Drop changes with user confirmation.

Current directory

"Check my template compliance"

Runs on the current working directory in report-only mode.

After template update

"I updated the template — check all my papers"

Run on each project individually. This skill checks one project at a time.


Cross-References

  • ../latex/templates/working-paper/ — the bundled template this skill compares against
  • latex — used in Phase 7 to verify compilation after applying changes
  • audit-project-research — complementary: checks directory structure, this checks LaTeX preamble
  • Installed bibliography validator — optional complement for citation keys and metadata; this skill checks bibliography system configuration
  • init-project-research — creates projects from the template; this skill verifies ongoing compliance
  • retarget-journal — handles journal-specific formatting (different concern)

© flonat, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files (references) in skills/latex-template of flonat/flonat-research.

  • SKILL.md
  • references/comparison-checklist.md
  • references/report-format.md

Open the folder on GitHubat commit da27600

Compare with similar skills

Latex Template next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Latex Template compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Latex Template this skillflonat/flonat-research146—~3kAutomated safety check: PassMIT
Research Writingalfonso0512/research-writing-skill4881 repos~818Automated safety check: PassMIT
Paper WritingMLNLP-World/Paper-Writing-Tips4.7k—~630Automated safety check: PassNone
Evomath TaoEvoScientist/EvoSkills4762 repos~3.8kAutomated safety check: PassApache-2.0
PaperjurySpark-To-Paper-Skills/paperjury1.2k—~5.3kAutomated safety check: PassMIT
Thesis Defense PPTX Builderzouchenzhen/thesis-defense-pptx-skill266—~2.4kAutomated safety check: PassApache-2.0

Similar skills

  • Research Writing

    alfonso0512/research-writing-skill

    科研论文写作助手,提供 30 个 Prompt 模板覆盖论文写作全流程. An agent skill from alfonso0512/research-writing-skill.

    488 GitHub starsUsed in 1 repo~818 tokens
    Documents & OfficeAuto-check passed
  • Paper Writing

    MLNLP-World/Paper-Writing-Tips

    学术论文写作检查与优化助手。基于 MLNLP-World 社区整理的论文写作技巧,帮助检查和优化学术论文。Use when: (1) 检查论文 LaTeX 格式和排版, (2) 优化公式符号使用, (3) 改进图表设计, (4) 润色英文学术表达, (5) 检查参考文献格式, (6) 投稿前终稿检查, (7) 用户询问论文写作技巧或规范。

    4.7k GitHub stars~630 tokensUpdated 13 days ago
    Documents & OfficeAuto-check passed
  • Evomath Tao

    EvoScientist/EvoSkills

    A skill your agent uses whenever the user submits a non-trivial mathematical claim that needs a rigorous proof or audit.

    476 GitHub starsUsed in 2 repos~3.8k tokens
    Documents & OfficeAuto-check passed
  • Paperjury

    Spark-To-Paper-Skills/paperjury

    Three modes for CS-conference papers (CVPR/ICCV/ECCV vision, ACL/EMNLP/NAACL NLP, ICLR/NeurIPS/ICML/AAAI ML).

    1.2k GitHub stars~5.3k tokensUpdated 1 mo ago
    Documents & OfficeAuto-check passed
  • Thesis Defense PPTX Builder

    zouchenzhen/thesis-defense-pptx-skill

    Builds an editable thesis defense PowerPoint from a thesis PDF or LaTeX project while preserving a supplied university or lab template, then runs a visual quality check.

    266 GitHub stars~2.4k tokensUpdated 4 mo ago
    Documents & OfficeAuto-check passed
  • Mathmodel Skill

    handsomeZR-netizen/mathmodel-skill

    CUMCM 国赛、MCM/ICM 美赛与电工杯数学建模竞赛的端到端协作工作流。Use when a user explicitly works on one of these modeling contests or asks to run/review a modeling-competition paper from problem selection through modeling…

    292 GitHub stars~2.5k tokensUpdated 13 days ago
    Documents & OfficeAuto-check passed

More from flonat/flonat-research

All 83 skills in this repo
  • Latex Posters

    flonat/flonat-research

    Create a large-format academic poster in LaTeX using beamerposter, tikzposter, or baposter.

    146 GitHub stars~1.5k tokensUpdated 9 days ago
    Auto-check: notes
  • Skill Creator

    flonat/flonat-research

    Create, revise, and evaluate reusable AI workflow skills, including trigger-quality tests.

    146 GitHub stars~4.4k tokensUpdated 9 days ago
    Auto-check passed
  • DOCX

    flonat/flonat-research

    Create, read, edit, or convert Microsoft Word documents while preserving professional document structure.

    146 GitHub stars~1.2k tokensUpdated 9 days ago
    Auto-check passed
  • PDF

    flonat/flonat-research

    Read, create, combine, split, rotate, OCR, watermark, secure, or extract content from PDF files.

    146 GitHub stars~488 tokensUpdated 9 days ago
    Auto-check passed
  • Init Project Orchestration

    flonat/flonat-research

    Create or migrate project-level agents, repeatable project workflows, and planning state from one client-neutral contract, then render repository-scoped adapters for both Claude Code and Codex.

    146 GitHub stars~1.6k tokensUpdated 9 days ago
    Auto-check passed
  • Pre Commit Audit

    flonat/flonat-research

    Deliver a fast pre-commit safety scan: file size, anonymity (author / affiliation strings in tex/bib), hardcoded secrets, and invisible-Unicode carriers.

    146 GitHub stars~2.8k tokensUpdated 9 days ago
    Auto-check: notes

Works with

Questions about Latex Template

What does Latex Template do?

Compare a project's LaTeX preamble and conventions against the canonical working-paper template. Latex Template is an agent skill from flonat/flonat-research. Compare a project's LaTeX preamble and conventions against the canonical working-paper template.

When should I use Latex Template?

Latex Template fits situations like: diagnosing template drift without converting venue formats; tasks that involve LaTeX.

How do I install Latex Template in Claude Code?

Run `npx skills add flonat/flonat-research --skill latex-template -a claude-code`. Or copy the skill folder (skills/latex-template in flonat/flonat-research) into .claude/skills/latex-template in your project. Claude Code loads it when a task matches its description.

How do I install Latex Template in Codex?

Run `npx skills add flonat/flonat-research --skill latex-template -a codex`. Or copy the skill folder (skills/latex-template in flonat/flonat-research) into .agents/skills/latex-template in your project. Codex loads it when a task matches its description.

Can I use Latex Template in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add flonat/flonat-research --skill latex-template -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/latex-template, .gemini/skills/latex-template, .github/skills/latex-template and .opencode/skills/latex-template in your project.

What does Latex Template need to run?

SKILL.md names no scripts, command-line tools or credentials: Latex Template is instructions for the agent only. Its frontmatter pre-approves these tools: Read, Glob, Grep, Edit, Write, Bash(ls*), Bash(latexmk*), Bash(lualatex*), Bash(biber*), Bash(cmp*), Bash(cp*), Bash(head*), AskUserQuestion, Skill.

Does Latex Template access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Latex Template safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Latex Template use?

Latex Template is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Latex Template use?

About 3k tokens (SKILL.md is roughly 12k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 3.4k tokens, read only when the agent opens those files.

What are the alternatives to Latex Template?

Skills that share tags, products or a category with Latex Template: Research Writing (alfonso0512/research-writing-skill, 488 stars), Paper Writing (MLNLP-World/Paper-Writing-Tips, 4.7k stars), Evomath Tao (EvoScientist/EvoSkills, 476 stars) and Paperjury (Spark-To-Paper-Skills/paperjury, 1.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Latex Template?

flonat (a GitHub user) maintains it in flonat/flonat-research, which has 146 GitHub stars. The repository holds 83 skills in this directory. The repository was last updated on September 29, 2026.

Source: flonat/flonat-research on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.