paper-latex-sanitizer

Normalizes LaTeX punctuation and replaces unsupported forecast magnitudes with placeholders in manuscripts.

6.8k|540|Updated May 6, 2026
One-click install
npx skills add https://github.com/opensquilla/opensquilla --skill paper-latex-sanitizer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: paper-latex-sanitizer
Source: https://github.com/opensquilla/opensquilla/tree/main/src/opensquilla/skills/bundled/paper-latex-sanitizer
Command: npx skills add https://github.com/opensquilla/opensquilla --skill paper-latex-sanitizer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Generated LaTeX manuscripts often contain unsafe Unicode punctuation and invented numeric forecasts that would fail publication-quality gates. This Skill deterministically repairs those issues before quality gates run, without altering legitimate content.

Core Features & Use Cases

  • Punctuation Normalization: Converts U+2011, U+2013, and isolated U+2014 characters to LaTeX-safe ASCII equivalents while preserving paired Chinese em dashes.
  • Forecast Magnitude Neutralization: When EVIDENCE_STATUS is not_supplied, replaces concrete predicted result numbers in results-facing sections with TBD or 待实验确定 placeholders, while preserving declared thresholds backed by the user request.
  • Redundant Input Removal: Deletes generated figure/table placeholder template inputs only when the manuscript already inlines the corresponding environment.
  • Use Case: A meta-paper-write pipeline produces a manuscript package; this sanitizer runs as a pre-gate step, atomically rewriting the referenced MANUSCRIPT_PATH and returning a compact manifest with repair counts.

Quick Start

Run the paper-latex-sanitizer on the generated manuscript package to normalize punctuation and replace unsupported forecast numbers before the publication quality gate.

Frequently Asked Questions about paper-latex-sanitizer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I sanitize a generated LaTeX manuscript before publication checks?

Pass a JSON payload containing the manuscript package, paper contract, and user request to the sanitize script via stdin. It normalizes unsafe punctuation, replaces unsupported forecast numbers with placeholders, and returns a manifest with repair counts.

How to replace invented result numbers in AI-generated papers?

When EVIDENCE_STATUS is not_supplied, the sanitizer detects forecast cues near outcome terms in results sections and replaces concrete magnitudes with TBD or 待实验确定. Declared thresholds backed by the user request or paper contract are preserved.

Does the sanitizer modify Chinese punctuation in LaTeX documents?

It preserves paired Chinese em dashes (——) as ordinary punctuation. Only isolated U+2014 em dashes are converted to LaTeX triple hyphens, while U+2011 and U+2013 become ASCII hyphen and double hyphen respectively.

Can the sanitizer write files outside the skill workspace?

No. It resolves manuscript paths against the current workspace, rejects absolute paths, parent traversal, and symlinks, and validates runtime-owned run directories. Writes use atomic temporary-file replacement within the workspace only.

Is the LaTeX sanitizer a replacement for a paper quality gate?

No. It performs only bounded deterministic repairs and explicitly is not a quality gate. An independent paper-quality-gate must still run afterward to block unsupported semantic claims that remain in the manuscript.