LaTeX preflight

Lint TeX source for the pdflatex-compile failure classes a permissive AST parser accepts — the ones that pass validation and then break the build.

Skills it satisfies

A skill states the capability; this Tool is one way to exercise it. Each skill’s declared input and output contract follows, where it has one.

latex-validation

Source: folio-assistant-sci/skills/content/folio-paper-adapter/latex-validation.md.

Also satisfied by: latex-overfull, tex-snippet-validate, tex-source-audit.

The skill declares no I/O contract (schemas/skills/latex-validation/{input,output}.schema.json).

Inputs and outputs

Each port names a shared type by IRI, so two Tools for one skill can be checked for interchangeability.

porttyperequireddescriptionconstraint
injsonFlagboolean · A boolean switch — projects to a bare flag, with no value word
inwarnFlagReport without failing — for a corpus not yet clean.boolean · A boolean switch — projects to a bare flag, with no value word
outfindingsTextCompile-breaking hazards, located. A clean run here is not a successful compile; it is the absence of these classes.string · A short single-line human string. Not admissible as a command-line argument.

Processes and tasks

No process step names a skill this Tool satisfies.

How it is deployed and reached

  • Command line. From the repository root: bun run folio-assistant-sci/pipeline/latex-preflight.ts.
  • GitHub Actions. No workflow in this checkout runs its command.

As an API: its operation in the OpenAPI document and the MCP tool list of its layer.

installnone
runtimebun
networkno

What it is made of

Linked data

The Tool is published as its own JSON-LD document at its IRI, https://litlfred.github.io/folio-assistant/folio-assistant-sci/tools/latex-preflight.jsonld, partOf its layer’s document. The node below is the definition this page was drawn from, and is embedded in the page as application/ld+json.

{
  "@context": "https://litlfred.github.io/folio-assistant/folio-assistant-sci/folio-assistant-sci.context.jsonld",
  "@id": "https://litlfred.github.io/folio-assistant/folio-assistant-sci/tools/latex-preflight.jsonld",
  "@type": "https://litlfred.github.io/cat-harness/v0/ns/Tool",
  "partOf": "https://litlfred.github.io/folio-assistant/folio-assistant-sci/folio-assistant-sci.jsonld",
  "name": "latex-preflight",
  "title": "LaTeX preflight",
  "description": "Lint TeX source for the pdflatex-compile failure classes a permissive AST parser accepts — the ones that pass validation and then break the build.",
  "install": {
    "none": true
  },
  "invoke": {
    "shell": "bun run folio-assistant-sci/pipeline/latex-preflight.ts"
  },
  "io": {
    "inputs": [
      {
        "name": "json",
        "schema": "https://litlfred.github.io/folio-assistant/cat-harness/tool-types.schema.json#/$defs/Flag",
        "required": false,
        "arg": {
          "flag": "--json"
        }
      },
      {
        "name": "warn",
        "schema": "https://litlfred.github.io/folio-assistant/cat-harness/tool-types.schema.json#/$defs/Flag",
        "description": "Report without failing — for a corpus not yet clean.",
        "required": false,
        "arg": {
          "flag": "--warn"
        }
      }
    ],
    "outputs": [
      {
        "name": "findings",
        "schema": "https://litlfred.github.io/folio-assistant/cat-harness/tool-types.schema.json#/$defs/Text",
        "description": "Compile-breaking hazards, located. A clean run here is not a successful compile; it is the absence of these classes."
      }
    ]
  },
  "satisfies": [
    "latex-validation"
  ],
  "requirements": {
    "runtime": [
      "bun"
    ],
    "network": false
  }
}

folio-assistant — code under the Apache License 2.0, documentation under CC BY 3.0. Generated schema and API references are rebuilt from source on every push to main.

deployed dev