/aldine:latex-draft-sectionfrom Aldine
Drafts a new section, subsection, or appendix into an existing LaTeX paper within an Aldine project. Reads the paper first, reuses labels, citation keys, and macros, writes the section into its own file wired with \input, compiles once, and reports the commit and deep link.
Ships in Aldine. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Tools come from the plugin's aldine server — they appear as
mcp__plugin_aldine_aldine__<tool> (or mcp__aldine__<tool> if you added the
server yourself with claude mcp add). Every project
tool takes project and branch (default main).
If the user's files are local — a path on disk, a .tex in the working
directory, a git checkout in cwd — stop: this skill is for papers that live
in an Aldine project. Say so and work on the local files with the usual
tools instead. Do not compile whatever list_projects happens to return.
project_structure {project, branch} — the file tree, rootFile,
engine and contentVersion. Note how the paper is split: one file, or
sections/*.tex pulled in with \input/\include.read_file {project, branch, path: <rootFile>} — the preamble (packages,
custom macros, \newcommands, theorem environments, the bibliography
setup) and the order of the existing \input lines. Read the neighbouring
section too, so the new one matches its voice, tense and heading depth.list_labels {project, branch} — every \label you may \ref, \eqref
or \cref. Never write a reference to a label that is not in this list.list_citations {project, branch} — every key you may \cite. A source
the paper needs but does not have goes through latex-bibliography
(references_add), or you ask the user; never invent a key.wordcount if the user gave a length target — it counts the source of the
root file and everything it \input/\includes, commands and comments
stripped; no compile is needed, and it is not the PDF's word count.Put the section in its own file and wire it in with one batch_write, so the
change is one reviewable commit:
batch_write {
project, branch,
files: [
{ path: "sections/related-work.tex", content: "<the section>",
base_version: <contentVersion from project_structure> },
{ path: "<rootFile>", base_version: <contentVersion from read_file>,
edits: [{ quote: "\\input{sections/method}",
replacement: "\\input{sections/method}\n\\input{sections/related-work}" }] }
],
message: "Add related-work section"
}
quote is the existing \input line the new one should follow, copied
verbatim (at least 8 characters, matching once — add occurrence if the
result says ambiguous_anchor).sections/,
chapters/, sec_ prefixes) — do not introduce a second convention.\inputs, ask whether to split it before
creating a folder; otherwise edit_file the section in place, anchored on
the heading it should precede or follow.base_version on each entry: a version_conflict on any entry writes
nothing — re-read that file and resend the batch.\usepackage unless the section cannot be written without it, and
then say so in the answer. Use what the preamble already loads.\method, \eg, theorem environments) instead of
spelling out what they abbreviate.\label{sec:related-work} on the new heading, following the paper's label
prefix style; \ref/\cref only to labels from list_labels.\cite only keys from list_citations. Mark a claim that needs a source
you could not find as % TODO cite: <what> rather than inventing one.engine from project_structure):
--, \"o, \%, \& — a stray Unicode character halts the build..tex about what you did; the commit message
carries that.compile {project, branch} after the batch. If ok:true, report:
commit in the batch_write result) and its message,deepLink (opens the project in Aldine; the Review toast there shows the diff) and
pdfUrl (15-minute signed link),% TODO cite marks, a figure you did not add).If compile returns errors introduced by the section, switch to the
latex-fix-build loop (at most 3 attempts). Errors that were already present
before your change are reported, not fixed, unless the user asks.
write_file over the root file or an existing section to add text —
it discards what a collaborator is typing and makes the diff unreviewable.compile between drafting and wiring in — one compile after the batch.trash_project, create_project or another branch as part of drafting.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub trahloff/aldine --plugin aldine3 skills in this plugin
/latex-bibliographyAdd and cite references in an Aldine LaTeX project — resolve a DOI, arXiv or OpenAlex id to BibTeX with references_add, check list_citations first so nothing is duplicated, insert the \cite with a quote-anchored edit, and tell biber apart from bibtex. Use only when the paper lives in an Aldine project (the user names an Aldine project or instance, or the aldine MCP server is connected and the file is not on local disk) and the user asks to add a reference, cite a paper, fix a bibliography or an "undefined citation" warning. For a local LaTeX checkout do not use this skill. Do not use for prose drafting (latex-draft-section) or general build errors (latex-fix-build)./latex-fix-buildRepair a LaTeX build in an Aldine project — compile, read the parsed errors, fix the failing line with a quote-anchored edit, recompile, at most 3 attempts. Use only when the paper lives in an Aldine project (the user names an Aldine project or instance, or the aldine MCP server is connected and the file is not on local disk) and the user asks to fix, debug or "make it compile", a compile result has errors, or the PDF is missing after an edit. For a local LaTeX checkout do not use this skill. Do not use for drafting new text (latex-draft-section) or for citations (latex-bibliography).2 plugins ship this exact skill · first indexed Sep 19, 2026
Other plugins' skills for the same job