Skip to main content
skill CX Codex

latex-writing — Claude Code skill: semantic LaTeX markup

The latex-writing skill reviews LaTeX documents for best practices: correct list environments for key-value pairs, csquotes for quotation marks, cleveref for cross-references.

no license 2 installs ★ 224 updated 2026-10-29

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add NeverSight/learn-skills.dev --skill latex-writing -a claude-code
Open on GitHub

What latex-writing does

The skill activates when editing .tex and .nw files or when LaTeX, BibTeX, or document formatting comes up. It focuses on three core practices: using description instead of itemize for label-definition pairs (API parameters, configuration options, glossaries), proper \enquote{} instead of straight quotes, and cross-references via \cref{} rather than \ref{} with manual prefixes.

For literate programming in .nw files, the skill recommends [[code]] notation instead of \texttt{} with manual underscore escaping—this handles special characters automatically and keeps source readable. It works alongside the literate-programming skill when both are active.

The skill catches common mistakes: mixing itemize and description, forgotten escapes in .nw, broken cross-references. It needs no dependencies—it's guidance for how the AI should write LaTeX.

What it helps with

  • Choose the right list environment (description for labeled items, itemize for simple elements)
  • Apply semantic markup instead of manual formatting
  • Write identifiers in .nw files using [[code]] without manual escaping
  • Create cross-references with proper prefixes via cleveref
  • Audit LaTeX files for adherence to best practices

Example prompts for the agent

  • Fix this list — use description if items have labels instead of itemize
  • Review my .nw file, especially identifiers with underscores
  • Rewrite these cross-references using \cref{} instead of hardcoded prefixes

How to install latex-writing

1Skills CLI (Vercel)

npx skills add NeverSight/learn-skills.dev --skill latex-writing -a claude-code

2Manually: put the files in place

~/.claude/skills/latex-writing/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/latex-writing/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about latex-writing

How do I install latex-writing in Claude Code?

Run npx skills add NeverSight/learn-skills.dev --skill latex-writing -a claude-code. The skill will be copied to ~/.claude/skills/latex-writing/SKILL.md and activated automatically.

What does latex-writing do?

It guides the AI to write LaTeX with correct semantic markup: use description for label-value pairs, \cref{} for references, [[code]] in .nw files instead of manual escaping, and csquotes for quotation marks.

When should I use description instead of itemize?

Use description when each item has a label and explanation (API parameters, configuration keys, definitions). Use itemize for plain lists without labels. If your list starts with bold text like \textbf{Label:}, that's a sign description is the right choice.

Similar skills

All skills for Writing and docs →

From the same set6

Project sponsors

Companies that keep this analytics open