light-citation
Verify scholarly references and claim-citation support for Light stage 10. Use when auditing…
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
$ npx -y skills add Light0305/Light-skills --skill light-typesetting --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/light-typesettingContext 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
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.
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.
`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.
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.
references, experiments or numbers to close a page budget.
or current authoritative instructions with URL/date provenance. Never embed a universal venue limit.
`ERROR`, never call it `PASS`, and never mark the delivery `DELIVERED`.
unavailability does not enlarge it. `ROUTES` has no key 11; repair failures inside stage 11 and never invent a back-edge.
For a real PDF build, detect the local toolchain before claiming success:
MacTeX or TinyTeX;
backend matches the manuscript;
triggers;
`biblatex` unless explicitly declared otherwise;
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.
Copy `templates/typesetting_input.json`. Record:
manifest;
must be regenerated after citation edits so hashes match the referenced files;
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.
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` |
Detect XeLaTeX for `fontspec`, `xeCJK`, `ctex`, `unicode-math` or `polyglossia`; LuaLaTeX for Lua triggers; otherwise pdfLaTeX. Detect traditional `\bibl
Repo: Light0305/Light-skills
Verify scholarly references and claim-citation support for Light stage 10. Use when auditing…
Light 科研主线第 2 步·数据工程:**找得到且用得起的数据**(来源/许可/版本/大小/split)+ **提 idea 前先判数据可行性** (数据够不够支撑研究/统计功效)+…
Light 科研主线 stage 6:把冻结的 question/estimand、experiment matrix、pre-registration 与 data lineage…
Light 科研主线第 9 步·图表:图服务论点(每图支撑哪条 claim、删了缺什么)+ 出版级规格(栏宽/字号/色盲安全/ 误差棒+n+显著性)+ 视觉诚实(不偷偷截 y 轴/不双…
Light 多格式文件深度理解常驻技能:强大地读 Word / PDF / PPTX / Excel / CSV / 图片 / 视频 / 代码 / 压缩包,**不只提取文字,而是理解结构…