Skip to main content

skimproof

Skim the text. Keep the proof.

Site and live example · Results · Research

Give your coding agent a long article, a paper, a PDF, or a folder of documents. You get one short page in which each statement shows the source sentences that it rests on, word for word, and everything that was left out is listed.

A source on the left and its brief on the right. Two threads join a limit in the brief to the source sentences that it rests on, with the verdict of an independent reader below.

Use it

Install the skill one time:

# Claude Code
claude plugin marketplace add bvolpato/skimproof && claude plugin install skimproof@skimproof

# Other agents: copy the skill folder
git clone https://github.com/bvolpato/skimproof && cp -R skimproof/skills/skimproof ~/.agents/skills/

Then ask your agent:

Skim https://example.com/long-article

That is all that you type. Several links or a folder become one brief. To choose where it goes, say so: "Skim https://example.com/long-article into ~/skims/article". The skill needs uv, and the first run downloads a headless Chromium.

What happens, and when the LLM runs

Step Who LLM
1 skimproof capture <link> -o <folder> saves the text with a number for each sentence, keeps the figures, and writes task.md script no
2 The agent follows task.md: it reads read.md one time, and writes brief.md your agent yes
3 skimproof build <folder> checks each statement against its quotes, and writes brief.html script no

Your agent runs both commands, with the same folder. The folder is the bundle: it holds the text, the figures, the task, and the brief. Without -o, capture makes one from the last part of the first link or file name, in the current directory: long-article.skim. It does not replace a bundle unless you add --force, and then it keeps the old one as <folder>.old.

skimproof never calls a model: it has no API key and no model setting. The LLM is the agent that you already use, for example Claude Code, Codex, or Cursor. If step 3 finds an error, the same agent repairs brief.md.

Step 2 uses one agent or more, by the size of the source. capture decides, and prints it:

Source Who reads Task files
Up to about 3,000 words The agent that you talk with task.md
Up to about 25,000 words One more agent, so that the text does not fill your conversation task.md
Larger One reader for each 18,000 words or so, at the same time, and then one editor parts/01.task.md, ..., then task.md
You ask for a second opinion One fresh agent that sees only the statements and their quotes verify.d/01.md

Each task is a file, so you can read exactly what a model was told. An agent that supports no other agents follows the tasks itself, one after the other. In one run with version 0.5, six documents with 7,500 words took one agent 5.7 minutes and 82,000 tokens (evals/QUICK.md).

A brief is plain text. Each line ends with the numbers of its source sentences, and f02 is a figure:

# Title
## Answer
Median delay fell from 48 to 9 minutes in a 12-week trial of one harbor. [12 40-42]
Keep in mind: It was not tested in a storm. [88]
![The outer zone started slowest and gained most](f02)

Use it from Python

The same two steps, and a function of yours in place of the agent:

uv add "skimproof @ git+https://github.com/bvolpato/skimproof@v0.8.0"
import anthropic
import skimproof

client = anthropic.Anthropic()

def llm(prompt: str) -> str:  # any model: skimproof gives a prompt, and you return the reply
    with client.messages.stream(model="claude-opus-5-5", max_tokens=32000, thinking={"type": "adaptive"}, messages=[{"role": "user", "content": prompt}]) as s:
        m = s.get_final_message()
    if m.stop_reason != "end_turn":
        raise RuntimeError(m.stop_reason)  # a brief that was cut off would look complete
    return "".join(b.text for b in m.content if b.type == "text")

r = skimproof.skim("https://example.com/long-article", "article", llm=llm, purpose="an engineer who must decide")
print(r.page)                        # article/brief.html, or None if an error is left
for s in r.statements:
    print(s.text, [q.text for q in s.quotes])

skim is capture, the model calls, and build. If build finds errors, the model gets them one time to repair its brief. A repair that drops other statements is refused. For your own agents or your own control flow, use the parts:

b = skimproof.capture("https://example.com/long-article", "article-2")  # no model
for task in b.tasks:          # readers of a large source can run at the same time, and the last task writes the brief
    task.save(llm(task.prompt))  # or: an agent with file tools follows task.file
r = skimproof.build(b)        # no model
r.errors, r.warnings, r.statements, r.left_out

If a model call fails, the folder stays, and skimproof.finish("article", llm=llm) runs only the missing calls. Failures that you can act on raise skimproof.SkimError. For scanned pages and text in images, install skimproof[ocr]. A function that gets only text does not see the figures. An agent that follows task.file can open them.

What the scripts check

  • Build stops at a number or a unit that the quotes do not have, a lost bound such as "at least 93%", a line of a command that is not in the source, or a statement with no citation. There is no page until the agent repairs it.
  • Build warns about a number word or a heading number that has no source, a lost negative, a lost qualifier, or a wider scope, and shows the strongest sentences that were left out. The agent decides.
  • The page shows the quotes of each statement, contradictions, and every source sentence that the brief does not use.
  • Capture keeps figures in their native format, with alt text, caption, drawn text, and OCR apart. A moving drawing is taken at its end state. PDFs, manual pages, and RFCs become chapters, lists, and code. Scanned pages are read with OCR. Formulas keep their TeX, or are rebuilt from how they are drawn.

The scripts cannot see a wrong actor or an added cause. For that, ask for a second opinion (verify.md). To give a reason for each sentence that is left out, there is a slower full proof.

Evidence

These tests measured the full proof, which is optional, and not the fast default. Two tests on fresh public documents, planned and published before any brief existed (evals/CONFIRM.md, evals/confirm):

  • Coverage is kept. Fresh readers answered 75.6% of 90 questions from a skimproof brief, from a one-shot brief, and from a brief that its writer reviewed. No text scored 0, and the full document scored 100.
  • Few errors. 0 errors in about 110 sentences, against 2 for one-shot and 1 for self-review. The auditors found 96% of errors that were planted on purpose. The difference is too small to be meaningful, because all three were already clean.
  • Planted errors are fixed. 24 of 24. A fresh reviewer without the tool also fixed 24 of 24.

So a skimproof brief is as complete and as accurate as a careful fresh review, at about four times the cost. It is not a better editor. What it adds is a record that a person can check: the quotes behind each sentence, a verdict for each sentence, and everything that was left out. One model family, three documents, and model readers instead of people. Earlier designs, and why they changed, are in evals/RESULTS.md. The research page gives the source of each rule and what it does not show.

Wikis and fetch tools

Text from a wiki, a fetch tool, or an MCP server goes in a folder, with a title, a link, a group, and a date in front matter. sources.md has the format and the checks for lost images. For Confluence, skills/skimproof/scripts/confluence-pages saves pages, the pages below them, and their images.

Development

uv sync --locked --group dev --config-file uv.toml
uv run --config-file uv.toml pytest -q

Lock with uv lock --config-file uv.toml. A plain uv lock can copy settings from your own uv config into the lockfile.

Privacy

The tool stores nothing outside the bundle directory. Capture uses a browser on your machine and downloads only the page and its images. The saved source and brief.html have local file names and no local paths. The task files have the path of the bundle, so share brief.html and not the folder. Your agent decides where the text goes, so use it with documents that your model provider may see.

Limits

  • Text and images only. A table drawn as an image is read by OCR, not as rows. OCR makes mistakes, so look at the page before you use a number from a scan. Audio and video files are not read.
  • Capture runs page scripts, so do not point it at a page that you would not open.
  • The checks prove form. A verdict from a model is evidence, not proof.
  • No second reader runs unless you ask. The full proof costs about 5 times a one-shot brief.

MIT license. The bundled copy-as-markdown library is MIT, see src/skimproof/vendor.

Metadata

Release files for skimproof 0.8.0

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

Source distribution (sdist)

Source distribution for skimproof 0.8.0
File Size Uploaded Provenance Actions
skimproof-0.8.0.tar.gz 336.5 kB Without provenance Details for skimproof-0.8.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for skimproof 0.8.0
File Interpreter ABI Platform Actions
skimproof-0.8.0-py3-none-any.whl Python 3 none any Details for skimproof-0.8.0-py3-none-any.whl

Total release size: 686.3 kB

Release files / skimproof-0.8.0.tar.gz

Download URL skimproof-0.8.0.tar.gz
Size 336.5 kB
Tags Source
SHA-256 checksum
How to use checksums
4b02da21d2451ac091accf184cc8f7e994e65bd7d5b156fe2c0a94213f0dc7b6
BLAKE2b-256 checksum
How to use checksums
b046b542bda43835a8769a29d42ed0d6d733decf4a5efa05acef99c83bb7ea1a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / skimproof-0.8.0-py3-none-any.whl

Download URL skimproof-0.8.0-py3-none-any.whl
Size 349.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7e6e9721cc965b7c9eda4bca1b657dd71e9962fb73873c4b13e4c8122e0c3416
BLAKE2b-256 checksum
How to use checksums
390ba1a26c3f403731459d078280925ec83975116c9175097f4b061ea8e9a909
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for skimproof 0.8.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

0.8.0 This release

2 release files No provenance

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