paper-quality-gate

Validates LaTeX manuscripts against length, citation, and evidence-free claim rules before compilation.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

AI-generated academic papers often contain fabricated empirical results, unsupported numeric predictions, or typography that silently breaks XeLaTeX rendering. This Skill provides a deterministic, fail-closed audit that blocks manuscript compilation when such publication-safety violations are detected.

Core Features & Use Cases

  • Evidence-Free Claim Detection: Rejects completed-finding claims, reported significance statistics, and concrete predicted outcome numbers (in English and Chinese) when no user-supplied evidence exists, while allowing explicit hypotheses, planned thresholds, and declared metric targets.
  • Caption-Level Auditing: Independently checks every figure and table caption for categorical outcome claims such as "the proposed method achieves lower cost" when evidence is absent.
  • LaTeX Typography Enforcement: Blocks literal Unicode Greek glyphs and Latin-style en/em dashes, requiring named LaTeX math macros and -- / --- punctuation to avoid missing-glyph degradation in XeLaTeX.
  • Use Case: As an internal gate in an automated paper-writing pipeline, it runs after LaTeX sanitization and immediately before compilation, exiting non-zero with a list of blockers whenever upstream length or citation gates fail or the manuscript makes unsupported claims.

Quick Start

Run the paper quality gate on the generated manuscript package to verify all length, citation, and evidence checks pass before compiling the paper.

Frequently Asked Questions about paper-quality-gate

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

FAQPage Schema
How do I validate an AI-generated research paper before compiling it?

Run a deterministic audit script over the manuscript package that checks length and citation gate verdicts, scans result sections for unsupported claims, and exits non-zero on violations. This gate performs exactly that fail-closed check immediately before LaTeX compilation.

How to detect fabricated experimental results in generated manuscripts?

Scan result sections and captions for completed-finding phrases, significance statistics, and numeric improvement claims when no evidence was supplied. The audit uses regex patterns in both English and Chinese, while exempting explicit hypotheses, planned significance thresholds, and declared metric targets.

Does the gate allow predicted results or hypotheses in a paper?

Yes, explicitly conditional claims, planned significance thresholds, and hypothesis-framed captions remain valid. A predefined metric target such as 50% accuracy is allowed when the time-to-target stays nonnumeric, but concrete predicted numbers like a 12% improvement are blocked without evidence.

Why does XeLaTeX show missing glyphs for Greek letters and dashes?

Literal Unicode Greek characters and Unicode en/em dashes often lack glyphs in LaTeX fonts, causing silent rendering degradation. The gate rejects these characters and requires named math macros like \(\alpha\) and LaTeX -- / --- punctuation instead.

What input format does the paper quality gate require?

The gate reads a JSON object from stdin containing paper_contract, length_gate, citation_gate, and manuscript_package fields. The manuscript package must include a readable MANUSCRIPT_PATH or MANUSCRIPT_TEX block, and the script requires Python to execute.