paper-latex-sanitizer
GitHub作为论文写入前的确定性预处理工具,规范化LaTeX标点符号,替换未提供的预测数值为占位符,并清理冗余的图表模板输入行。
Trigger Scenarios
Install
npx skills add opensquilla/opensquilla --skill paper-latex-sanitizer -g -y
SKILL.md
Frontmatter
{
"name": "paper-latex-sanitizer",
"metadata": {
"requires": {
"anyBins": [
"python",
"python3"
]
}
},
"entrypoint": {
"parse": "text",
"stdin": "{{ with.payload }}",
"command": "python {baseDir}\/scripts\/sanitize.py",
"timeout": 30
},
"provenance": {
"origin": "opensquilla-original",
"license": "Apache-2.0"
},
"description": "Deterministically normalize safe LaTeX punctuation and replace unsupported forecast magnitudes with explicit placeholders before meta-paper-write publication gates run.",
"user-invocable": false,
"disable-model-invocation": true
}
Paper LaTeX sanitizer
Internal deterministic pre-publication sanitizer for meta-paper-write.
It runs before the length, citation, and publication-quality gates.
The sanitizer performs only two bounded repairs:
- normalize U+2011, U+2013, and isolated U+2014 punctuation to LaTeX-safe
ASCII equivalents while preserving paired Chinese em dashes (
——); - when
EVIDENCE_STATUS: not_supplied, replace concrete forecast magnitudes in results-facing sections withTBD/待实验确定. Planned setup values remain intact. A declared result threshold remains intact only when the same magnitude is present in the authoritative user request/paper contract; labeling an invented number as a target or hypothesis does not preserve it; - remove only the known generated
figure_placeholder_templateortable_placeholder_templateinput line when the same manuscript already contains the corresponding inlined figure/table environment. Arbitrary user\input{...}commands and non-redundant template inputs remain untouched.
For an artifact-backed package, the referenced MANUSCRIPT_PATH is replaced
atomically and the compact manifest is returned. Inline manuscript packages
are normalized in the returned package. This step is not a quality gate: the
independent paper-quality-gate must still run afterwards and block any
unsupported semantic claims that remain.
Version History
- 95673be Current 2026-08-07 00:58


