Skip to main content

Prose Preflight

Your manuscript, checked by scripts, read by an agent.

PyPI Python Vale uv License last commit


No server. No API key. No network. Five agent skills over eight deterministic checkers. Same input, same findings, every time.

An LLM asked to proofread a text reads all 9,000 words into its context, forgets the middle, and invents a citation error on page 4. This doesn't. The checkers find the problems and hand over line, column, and a short excerpt; the agent judges and reports, and never reads the manuscript to find anything.

Install

Claude Code plugin

/plugin marketplace add domrice/prose-preflight
/plugin install prose

Any other harness (Cursor, Codex, Copilot, Gemini, Windsurf, …)

npx skills@latest add domrice/prose-preflight

Both resolve the package from PyPI — no repo on disk, no paths in SKILL.md. Needs uv; it supplies its own Python ≥ 3.11.

The six skills

/prose-init         once per project — writes the contract
/prose-preflight    check and report            ┐
/prose-deepread     read end to end and report  ┘ never edit
/prose-outline      plan the sections           ┐
/prose-draft        write new prose             │ only with your yes
/prose-edit         apply findings you picked   ┘
  • prose-init interviews you once — what you are writing, who reads it, which venue and style, which terms and acronyms — and writes prose-preflight.yaml. The other five read it.
  • prose-preflight runs the checkers and diagnoses the result: what the counts mean, and a verdict on every severity: review finding — keep, soften, or cut, with a rewrite. A checker can see a hedge; only the agent can weigh it against your argument.
  • prose-deepread is the opposite: it reads the manuscript end to end for what no regex reaches — claims the results do not support, terms used before they are defined, sections that do not deliver what their heading promises, passages that can go. Expensive, so it runs only when you ask for it by name.
  • prose-outline plans a new document or re-plans a draft: the claim, then one section per question the reader asks. On your yes it writes headings and an intent comment under each — never body text — and can record the headings as required_sections, so preflight checks them from then on. Moving or renaming existing sections it lists for prose-edit.
  • prose-draft is the only one that writes new text. Give it content — bullets, notes, numbers — and it proposes an outline, waits for your yes, drafts against the contract, and inserts under the heading you named. No contract, no draft; no content, only questions.
  • prose-edit closes the loop: it applies the findings you picked out of a report, and only those. It reads the paragraph around each finding rather than the file, previews every change before touching disk, and marks what it changed. A review finding is edited only because you named it.

The contract

One file per project, prose-preflight.yaml, holds both halves of your setup. Run /prose-init once; it writes the file through the tool, so the YAML is serialized and its keys validated, never hand-typed. A prose-preflight.yaml in the working directory is picked up automatically.

The contract: block is agent-facing — no checker reads it, but every report carries it, so the agent judging your hedges knows whether "may indicate" is right for your journal. The checks: block is the deterministic half.

contract:
  document: conference paper
  audience: graphics researchers, non-specialist in differentiable rendering
  venue: SIGGRAPH — ACM house style, numbered citations
  voice: first person plural, past tense for methods, active where possible
  guide: PROSE.md # the long-form rules; see below
  format: tex # md | tex | txt

checks:
  terminology:
    terms:
      ray tracing: [raytracing, ray-tracing]
      signed distance field: [SDF, signed-distance field]
  sentence_length:
    max_words: 32
  structure:
    required_sections:
      [Abstract, Introduction, Related Work, Method, Results, Conclusion, References]
  units:
    disabled_rules: [range_dash] # if your venue insists on hyphens

contract.guide points at a Markdown file — PROSE.md by convention, written by /prose-init beside the YAML. notes: is a scalar, good for a house rule or two; anything that becomes a list that grows belongs in the guide, under topic headings, one rule per bullet. prose-draft, prose-edit, and prose-deepread read it and treat it as part of the contract; where a guide rule and a contract key disagree, the guide is the more specific statement and wins. prose-preflight deliberately does not read it, so a routine check never pays for it. A guide that is named but missing stops the two skills that write.

Keep only what you change; the rest falls back to defaults. Lists are replaced, not appended, and unknown keys are reported on stderr, so a typo never fails silently.

Two lists ship empty, because a wrong entry costs a false positive on every run: terminology.terms and structure.required_sections. Fill them in and those checks switch on.

Everything a document convention needs lives in YAML. If a new convention would need a code change, that's a bug in the checker.

Checks

check flags severity
vale.* grammar, spelling, style — whatever your Vale config says error/warning
terminology.variant dataset where the config wants data set (opt-in) warning
acronym.undefined used without expansion at first use warning
structure.missing_section · .section_order required sections, absent or out of order (opt-in) error/warning
sentence_length.long sentences over max_words warning
readability.flesch · .fog per section, skipping ones too short to score warning
units.space_before_unit · .percent_spacing · .range_dash · .p_value_spacing 12 mm → NBSP, 5 % → 5%, 3-7 → 3–7, p<.05 → p < 0.05 warning
claim.hedge · .booster "may possibly suggest", "clearly demonstrates" review

review is not a quieter warning. It is the line between what a script can decide and what it cannot: whether your evidence carries your claim. Nothing marked review is ever auto-applied, by the tool or the agent.

Code, math, verbatim blocks, and LaTeX command sequences are blanked before any regex runs — character-for-character, so every offset stays a true source position. Your equations are not prose and are not judged as such.

The full report lands in PREFLIGHT_<file>.md, one per document; only a capped summary goes through the agent's context. That split is the whole point.

Vale

Vale powers grammar and style and is pinned as a dependency — no brew install, no manual step. The binary is fetched once on first run and cached; after that, runs are offline. If that download is blocked (air-gapped, proxy, locked-down CI), the run emits one vale.unavailable warning and the other seven checkers still report. Vale is never a hard prerequisite; install it yourself and it's picked up from PATH.

Vale has no LaTeX reader, so a .tex file is handed to it as masked prose — commands, preamble, math, and verbatim already blanked, line for line — and the alerts still carry true source positions.

Develop

git clone https://github.com/domrice/prose-preflight && cd prose-preflight
uv sync && uv run pytest

Every checker has a fixture pair in tests/fixtures/: an intentionally flawed document and the exact set of (check, line) pairs it must produce. Pinning positions is deliberate — false positives cost more here than misses, since each one burns agent tokens and spends trust in the report.

Adding a checker is one module exposing check(doc, rule) -> list[Finding] plus one line in the registry. If it also needs a change to the runner, the design was wrong.

License

MIT

Metadata

Release files for prose-preflight 0.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for prose-preflight 0.4.1
File Size Uploaded Provenance Actions
prose_preflight-0.4.1.tar.gz 64.7 kB With provenance Details for prose_preflight-0.4.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for prose-preflight 0.4.1
File Interpreter ABI Platform Actions
prose_preflight-0.4.1-py3-none-any.whl Python 3 none any Details for prose_preflight-0.4.1-py3-none-any.whl

Total release size: 91.8 kB

Release files / prose_preflight-0.4.1.tar.gz

Download URL prose_preflight-0.4.1.tar.gz
Size 64.7 kB
Tags Source
SHA-256 checksum
How to use checksums
90cfa2434c0383b88350f3dfb9495697d5dabb1b88e16831612ed6e4510e5516
BLAKE2b-256 checksum
How to use checksums
321fcd70621f7a3cd8890b0317f86ac7399be6ef5f780e34e0d269d4fec1f474
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.

Transparency log

Release files / prose_preflight-0.4.1-py3-none-any.whl

Download URL prose_preflight-0.4.1-py3-none-any.whl
Size 27.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6768af71cf25de9558d02f818f513cafaf0042e26453a3a32c7960f58843a21a
BLAKE2b-256 checksum
How to use checksums
c9528dd435edccd41534f9876b5c5427a536ea85ef48da6e137fbb9a9c85c6f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.

Transparency log

Security for prose-preflight 0.4.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for prose_preflight-0.4.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page