paper-length-gate
GitHub在LaTeX编译前执行确定性检查,验证工作区稿件结构、引用及基于目标页数的最小篇幅,确保编译就绪。
Trigger Scenarios
Install
npx skills add opensquilla/opensquilla --skill paper-length-gate -g -y
SKILL.md
Frontmatter
{
"name": "paper-length-gate",
"metadata": {
"requires": {
"anyBins": [
"python",
"python3"
]
}
},
"entrypoint": {
"parse": "text",
"stdin": "{{ with.payload }}",
"command": "python {baseDir}\/scripts\/audit.py",
"timeout": 30
},
"provenance": {
"origin": "opensquilla-original",
"license": "Apache-2.0"
},
"description": "Deterministic artifact-backed manuscript readiness gate for meta-paper-write. Validates the workspace LaTeX artifact before compilation while leaving final page-count enforcement to compile_pdf.",
"user-invocable": false,
"disable-model-invocation": true
}
Paper length gate
Internal deterministic pre-compile readiness check. The JSON input contains a
paper contract and the compact manuscript manifest. For full manuscripts the
manifest must point to a non-empty .tex file inside the active workspace.
Compact and repair packages retain an inline-LaTeX compatibility path.
This gate checks document structure, citation presence, and a language-aware
minimum body scale that grows with TARGET_PAGES. Its report-only preflight is
used solely to drive one bounded authoring repair; a second fail-closed run must
pass before compilation. It does not claim that the requested number of
pages was produced. compile_pdf remains authoritative and counts pages from
the compiled PDF with pypdf.
Version History
- 95673be Current 2026-08-07 00:58


