Skip to content
Research
Skill

/light-typesetting

Build and preflight submission-ready LaTeX/PDF artifacts for Light stage 11. Use when receiving a paper-writing manuscript, figure delivery, citation delivery.json/references.bib/citekey-audit.json, or a venue/template profile; when selecting pdfLaTeX/XeLaTeX/LuaLaTeX and

BOOST
From plugin
light-skills
64123 skills
Install
$ npx -y skills add Light0305/Light-skills --skill light-typesetting --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/light-typesetting

Context preview

The summary Claude sees to decide when to auto-load this skill.

Build and preflight submission-ready LaTeX/PDF artifacts for Light stage 11. Use when receiving a paper-writing manuscript, figure delivery, citation delivery.json/references.bib/citekey-audit.json, or a venue/template profile; when selecting pdfLaTeX/XeLaTeX/LuaLaTeX and

SKILL.md

light-typesetting.SKILL.md
name: light-typesetting
description: Build and preflight submission-ready LaTeX/PDF artifacts for Light stage 11. Use when receiving a paper-writing manuscript, figure delivery, citation delivery.json/references.bib/citekey-audit.json, or a venue/template profile; when selecting pdfLaTeX/XeLaTeX/LuaLaTeX and BibTeX/Biber; when diagnosing LaTeX errors or unresolved references; when checking page limits, double-blind identity, PDF metadata, template, page box, embedded fonts, TODOs, figures, tables, labels and citations; or when producing a reproducible compile manifest, PDF, compliance report, failure bundle and venue-matching handoff. Distinguishes PASS, manuscript ERROR, toolchain UNAVAILABLE and convergence UNRESOLVED without redoing citation authenticity or figure scientific QA.

Typesetting · stage 11

Turn approved author artifacts into a reproducible PDF submission bundle. The job is not merely to make LaTeX compile: preserve provenance, select a coherent engine/backend, preflight dependencies, compile to convergence, locate the first root cause, run profile-driven desk-reject checks, and hand exact PDF/page facts to venue-matching.

Read `typesetting-resource-map.md` before running a real build. Read `references/build_contract.md` before writing or consuming machine artifacts. Use `references/latex_errors.md` only after the first source-located error is known. Use a venue template under `templates/` only when it matches the current author kit; the bundled copy is a starting point, not current venue truth.

Non-negotiable boundaries

  • Consume citation `delivery.json`, `references.bib` and

`citekey-audit.json`. Require `delivery.status=DELIVERED`, declared `deliverable_hashes`, empty citation failures and empty claim-review leftovers. Declared citation deliverables must be relative paths inside the citation delivery directory, and the build snapshot must preserve the audit, failure and claim-review sidecars under provenance. Check staged keys and compilation. Do not re-decide DOI existence, metadata conflicts, retractions or claim relevance.

  • Consume figure files, declared dimensions/DPI and source manifest. Require

the manifest to be `light.figure_delivery.v1` or `light.figure_build.v1` and require the embedded file hash to match a declared output hash. For empirical figure deliveries, require confirmed result-analysis evidence binding. Check presence, embedding, float/layout and compilation. Do not redo visual honesty, scientific content or publication-size generation.

  • Consume the approved paper-writing manuscript. Do not invent claims,

references, experiments or numbers to close a page budget.

  • Take page, anonymity, template, font and page-box rules only from user input

or current authoritative instructions with URL/date provenance. Never embed a universal venue limit.

  • Keep tool/resource failure as `UNAVAILABLE`. Never call it manuscript

`ERROR`, never call it `PASS`, and never mark the delivery `DELIVERED`.

  • Keep stage-11 critical scope to typesetting. Security/network/tool

unavailability does not enlarge it. `ROUTES` has no key 11; repair failures inside stage 11 and never invent a back-edge.

Local LaTeX environment contract

For a real PDF build, detect the local toolchain before claiming success:

  • core: Python stdlib plus a LaTeX distribution such as TeX Live, MiKTeX,

MacTeX or TinyTeX;

  • compile driver: prefer `latexmk`; use `tectonic` only when its supported

backend matches the manuscript;

  • engines: `pdflatex`, `xelatex` and `lualatex` as selected from source/profile

triggers;

  • bibliography: `bibtex` for traditional `\bibliography{}` and `biber` for

`biblatex` unless explicitly declared otherwise;

  • PDF checks: `pdfinfo` and `pdffonts` when page box, page count or embedded

font facts are required.

If the compiler, engine, backend, package or PDF inspector is missing, mark the state `UNAVAILABLE`, explain the missing component, and ask the user whether to install/configure it or switch toolchains. Never silently install system tools, never call a missing toolchain a manuscript error, and never report a PDF as delivered unless the build actually produced and checked that PDF.

Workflow

1. Freeze the input contract

Copy `templates/typesetting_input.json`. Record:

  • the paper-writing entrypoint plus every required source file;
  • each figure source, target relative path, dimensions/DPI and delivery/build

manifest;

  • citation `delivery.json` and desired staged BibTeX filename; the delivery

must be regenerated after citation edits so hashes match the referenced files;

  • `light.typesetting_venue_profile.v1`, including source kind, URL if any,

check date and rules.

If a venue rule is unknown, keep it `null`, `0` or absent. Do not infer it from another venue or last year's template.

2. Preflight before compilation

python scripts/build_submission.py --spec typesetting-input.json --preflight-only

Require a provenance-preserving `source/` snapshot. Check missing inputs, `\input`/`\include`, graphics, labels/refs, citation-delivery schema/status, deliverable hashes, delivered citekey audit, empty citation failure/review handoffs, live staged citekeys, figure manifest output hashes, empirical figure evidence binding, document class, required packages and local package availability. Use a new/empty output directory per iteration; the builder refuses stale run directories.

Classify:

| Evidence | State | |---|---| | missing manuscript/figure/BibTeX/key/label, stale upstream hash, open citation review, unconfirmed empirical-figure evidence or backend conflict | `ERROR` | | required engine/backend/package/tool absent or cannot execute | `UNAVAILABLE` | | no blocker | `PASS` |

3. Select engine and bibliography backend

Detect XeLaTeX for `fontspec`, `xeCJK`, `ctex`, `unicode-math` or `polyglossia`; LuaLaTeX for Lua triggers; otherwise pdfLaTeX. Detect traditional `\bibl

Read more
Ships withlight-skills

面向科研、竞赛与创新项目的 AI 全流程技能包

Get the whole plugin
Stats
647
Stars
77
Forks
Maintained
Maintenance
Python
Language
MIT
License
3mo ago
Last commit
4mo ago
Created
4h ago
Added

Repo: Light0305/Light-skills

Other skills on light-skills.

light-figure
Skill

light-figure

Light 科研主线第 9 步·图表:图服务论点(每图支撑哪条 claim、删了缺什么)+ 出版级规格(栏宽/字号/色盲安全/ 误差棒+n+显著性)+ 视觉诚实(不偷偷截 y 轴/不双…