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
npx skills add NeverSight/learn-skills.dev --skill latex-writing -a claude-codeWhat 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-code2Manually: put the files in place
~/.claude/skills/latex-writing/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/latex-writing/
1Skills CLI (Vercel)
npx skills add NeverSight/learn-skills.dev --skill latex-writing -a codex2Manually: put the files in place
.agents/skills/latex-writing/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add NeverSight/learn-skills.dev --skill latex-writing -a cursor2Manually: put the files in place
.cursor/skills/latex-writing/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install NeverSight/learn-skills.dev data/skills-md/dbosk/claude-skills/latex-writing2Manually: put the files in place
.github/skills/latex-writing/SKILL.md1Skills CLI (Vercel)
npx skills add NeverSight/learn-skills.dev --skill latex-writing -a gemini-cli2Platform CLI
gemini skills install https://github.com/NeverSight/learn-skills.dev --path data/skills-md/dbosk/claude-skills/latex-writingManually: put the files in place
.devin/skills/latex-writing/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add NeverSight/learn-skills.dev --skill latex-writing -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
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.