latex-writer

latex-writer is a skill for Claude Code from muhammad1438/academic-writer-skills. It costs 0 tokens per session (4,226 once invoked), scanned A, original, MIT.

Instructions for writing and compiling academic documents with LaTeX, a text-based system for precise document layout, equations, citations, figures, and tables.

In plain words
What is it for?
Use it for journal articles, theses, reports, presentations, equations, bibliographies, figures, and tables.
Why use it?
It helps choose a suitable document format and resolve formatting or compilation issues before submitting or sharing a paper.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the academic-writer plugin — 27 skills shipped together

Good fit Use it for journal articles, theses, reports, presentations, equations, bibliographies, figures, and tables.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/muhammad1438/academic-writer-skills/latex-writer
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add muhammad1438/academic-writer-skills --skill latex-writer
Clone the repo
git clone --depth 1 https://github.com/muhammad1438/academic-writer-skills

Made for: Claude Code.

Or install academic-writer, the plugin that ships this one along with the rest of its 27 skills.

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 latex-writer

README.md
[![agentmods](https://agentmods.dev/badge/skills/muhammad1438/academic-writer-skills/latex-writer/github.svg)](https://agentmods.dev/skills/muhammad1438/academic-writer-skills/latex-writer)
Your own site
<a href="https://agentmods.dev/skills/muhammad1438/academic-writer-skills/latex-writer"><img src="https://agentmods.dev/badge/skills/muhammad1438/academic-writer-skills/latex-writer/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 latex-writer

Your own site · 80×15
<a href="https://agentmods.dev/skills/muhammad1438/academic-writer-skills/latex-writer"><img src="https://agentmods.dev/badge/skills/muhammad1438/academic-writer-skills/latex-writer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,226 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00000 $0.04226
Opus 5 $0.00000 $0.02113
Sonnet 5 $0.00000 $0.00845
Haiku 4.5 $0.00000 $0.00423

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

Security

Grade A, and why

latex-writer scanned grade A with 0 findings 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 12d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/latex-writer/SKILL.md · 472 lines

How it starts

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

LaTeX Writer

LaTeX is the standard document preparation system for mathematics, physics, engineering, computer science, and increasingly used across all academic disciplines for its precise typesetting, equation rendering, and bibliography management.


Document Class Selection

Choose the document class before anything else — it sets the fundamental layout.

Class Use Case Key Features
article Journal papers, short reports, conference papers Standard academic default; no chapter divisions
report Long reports, theses, technical documentation Has chapters; two-sided by default
book Textbooks, monographs, book-length works Parts, chapters; front/main/back matter
beamer Presentations and slides Frame-based; themes and colour schemes
IEEEtran IEEE journal and conference papers Strict IEEE formatting; two-column option
revtex4-2 APS/AIP physics journals (Physical Review, etc.) Physics-community standard; multiple journal modes
elsarticle Elsevier journal submissions Author-year and numbered citation modes
acmart ACM conference and journal papers Multiple sub-formats (acmsmall, sigconf, etc.)
memoir Highly customisable books and theses Replaces many packages; built-in flexibility

Standard article declaration:

\documentclass[12pt, a4paper]{article}

Two-column IEEE:

\documentclass[conference]{IEEEtran}

Elsevier submission:

\documentclass[review, 12pt]{elsarticle}

Minimal Working Example (MWE)

Every LaTeX document needs this skeleton:

\documentclass[12pt, a4paper]{article}

% ── Encoding & fonts ──────────────────────────────────────────
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}   % not needed in modern TeX distributions

% ── Page geometry ─────────────────────────────────────────────
\usepackage[margin=2.5cm]{geometry}

% ── Mathematics ───────────────────────────────────────────────
\usepackage{amsmath, amssymb, amsthm}

% ── Bibliography ──────────────────────────────────────────────
\usepackage[style=apa, backend=biber]{biblatex}
\addbibresource{references.bib}

% ── Figures ───────────────────────────────────────────────────
\usepackage{graphicx}
\graphicspath{{figures/}}

% ── Tables ────────────────────────────────────────────────────
\usepackage{booktabs}

% ── Cross-references ──────────────────────────────────────────
\usepackage[hidelinks]{hyperref}
\usepackage{cleveref}

% ── Title information ─────────────────────────────────────────
\title{Your Paper Title}
\author{Author Name \and Second Author}
\date{\today}

\begin{document}
\maketitle
\begin{abstract}
  Your abstract text.
\end{abstract}

\section{Introduction}
Your introduction.

\printbibliography
\end{document}

Read the full file on GitHub · 472 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. 12d ago First seen · 472 lines · 0 tokens per session scan A 3d50acca8521

Subscribe to this mod's changes

latex-writer is a skill published in the GitHub repository muhammad1438/academic-writer-skills (6 stars, last pushed 5mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 4,226 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

read

Read PDF page by page with structured output — key arguments, terms glossary, thesis connections. Use when reading academic papers, books, or articles.

yha9806/academic-writing-toolkit · 31 tokens

release-governance

Use when preparing, auditing, releasing, PDF-hardening, or rebuttal-hardening academic manuscripts, datasets, artifacts, reviewer packets, or claim registers involving multiple refs, local assets, human labels, agent-assisted drafts, wide tables, figure provenance, submission PDFs, or evidence-boundary checks.

yha9806/academic-writing-toolkit · 64 tokens

export

Convert thesis chapters and reading notes from Markdown to Word (.docx) and package for submission. Use when preparing materials for supervisors or examiners.

yha9806/academic-writing-toolkit · 31 tokens

human-eval-handoff-repair

Use when validating, repairing, or mapping human-evaluation handoff packages, filled annotation CSVs, rebuttal annotation UIs, or reviewer annotation returns across package versions. Applies to checking row alignment, detecting cross-snapshot contamination, converting old labels to current schemas, generating…

yha9806/academic-writing-toolkit · 78 tokens

thesis-control

Use when AI-assisted thesis or manuscript edits risk claim drift, scope creep, loss of intended use, experiment-role promotion, or repeated revisions that fail to converge; provides author-intent control, lightweight or strict contracts, drift audits, revision escalation, and human gates.

yha9806/academic-writing-toolkit · 57 tokens

argument-governance

Build and audit the manuscript or research-project argument system across intended use, gaps, claims, data, results, experiment roles, contributions, innovation evidence, limitations, and contribution focus. Use when a paper, thesis chapter, review article, or research project needs an explicit argument map…

yha9806/academic-writing-toolkit · 143 tokens