| name | paper-ocr-notes-pipeline |
| description | Canonical end-to-end workflow for turning a paper PDF or URL into grounded OCR artifacts and a teachable notes.md. |
Paper OCR Notes Pipeline
This skill is a reusable policy for paper ingestion and note production. It must stay self-contained and work in any workspace.
Do not require any companion README.md or local notes file to run this workflow. If one exists, treat it only as supplemental context.
Objective
Generate a self-contained notes package from a paper source while preserving provenance, factual grounding, OCR quality, and teachability.
Inputs
- One of: a PDF path, a paper URL, or an arXiv abs URL.
- Optional: preferred folder slug.
- Optional: output root directory.
Output Root Resolution
Use this priority order:
- If the user provides an output root, use it.
- Else create and use
./papers-articles in the current working directory.
Output Contract
Create a dedicated folder:
<output-root>/<paper-slug>/
Required files:
- source file:
<paper>.pdf or link.txt for URL-only sources,
notes.md as the primary deliverable,
README.md as a paper-local artifact and provenance index,
<paper>.ocr.feedback-loop.txt as the final OCR output,
<paper>.ocr.feedback-loop-comparison.md as the OCR replacement report.
notes.md must be sufficient for a new reader to learn the paper without opening extra files.
Canonical Notes Sections
Use these headings in order:
# <Paper Title>
## TL;DR
## Beginner's Guide
## Paper Summary
## Deep Dive
## Critical Analysis
## Learning Path
## Key Equations Summary
## References
Nested Skills
- Use
pdf-ocr-feedback for pagewise OCR refinement.
- Use
technical-writing-workflow while drafting and revising notes.md.
Core Principles
- Reader intuition comes before technical detail.
- Do not blur distinct concepts.
- Evidence-first writing: claims point to table, figure, section, or page evidence.
- Revision is mandatory.
- Identity verification is mandatory before trusting extracted content.
- Uncertainty and limitations must be stated explicitly.
Workflow
Follow the phases in order.
Phase 0 - Intake and setup
- Resolve canonical identity: title, authors, date/version, identifier (arXiv/DOI when available).
- Create output folder and store source.
- Initialize
notes.md skeleton with required section order.
- Create paper-local
README.md listing source and produced artifacts.
Phase 1 - Extraction and OCR feedback loop
Use nested skill pdf-ocr-feedback for pagewise OCR refinement.
Required OCR behavior:
- Pass-1 extraction across all pages.
- Per-page quality scoring and weak-page detection.
- Pass-2 retries only on weak pages.
- Merge pages in original order.
Required OCR format:
- Preserve
===== PAGE N ===== delimiters.
- Preserve page order.
- Record replaced pages and rationale in comparison report.
Phase 1.5 - Identity gate (mandatory)
Before trusting extracted content, verify anchors:
- title matches target,
- author block matches reasonably,
- identifier/date lines are consistent when available.
If any anchor mismatches:
- reject extraction,
- rerun extraction,
- revalidate before proceeding.
Phase 2 - Ground-truth extraction (facts only)
Collect source-backed facts only (no interpretation yet):
- problem statement and failure mode,
- contributions as stated by authors,
- method overview,
- key equations and definitions,
- experimental setup: tasks, datasets, models, baselines, metrics, ablations/stress tests,
- headline quantitative results,
- limitations stated by authors.
Stop condition: answer "what did they do" without guessing.
Phase 3 - Compose notes.md in strict order
- TL;DR (problem, key idea, 1-2 evidence numbers, caveat)
- Beginner's Guide (college-level, define symbols once, one concrete toy example)
- Paper Summary (problem recap, contributions, results, experiments table)
- Deep Dive (definitions, derivation steps, implementation sketch, optional pseudocode)
- Critical Analysis (assumptions, objections, failure modes, validation/refutation experiments)
- Learning Path (prereqs, next study steps, diagnostics)
- Key Equations Summary (equation + one-line meaning)
While drafting, apply technical-writing-workflow:
- anchor explanations in familiar ground,
- define terms at point of need,
- keep ontology and score ownership clear,
- cut implementation-operator detail unless it matters scientifically,
- keep claims tied to evidence.
Phase 4 - Exploration and consistency checks
While reading and drafting, run these checks:
Problem framing checks:
- what exactly breaks and under what conditions,
- where boundary conditions are stated.
Method checks:
- what estimator/objective is actually optimized,
- which terms are additive vs multiplicative,
- what comes from probabilities vs gradients vs external signals.
Claims checks:
- theoretical vs empirical claims separation,
- strongest evidence source for each major claim,
- missing ablations/OOD/calibration/compute analyses.
Consistency checks:
- terminology consistency across sections,
- equation-to-implementation narrative alignment,
- baseline independence assumptions where claimed,
- proxy computability with stated costs.
Phase 5 - Revision passes (non-negotiable)
- Clarity pass:
- remove duplicates,
- ensure definitions appear before equations,
- soften overconfident wording where uncertainty exists.
- Correctness pass:
- detect concept conflations,
- remove unsupported claims,
- fix misleading pseudocode assumptions.
- Objection stress test:
- state strongest objection,
- provide rebuttal conditions,
- propose falsifiable tests.
- Update TL;DR caveat after all revisions.
Phase 6 - Quality gates (must pass all)
- Accuracy: symbols and claims are correct and evidence-backed.
- Completeness: experiments table includes tasks, baselines, metrics.
- Teachability: beginner section is understandable by a college-level reader.
- Critical rigor: at least one strong objection and a test plan.
- Implementation sanity: pseudocode and grouping assumptions are coherent.
Inference and process optimization defaults
- Prefer source-of-truth hierarchy:
- official source text (arXiv source/HTML when available),
- OCR feedback-loop output,
- targeted visual rechecks for disputed pages.
- Use selective rereads: only revisit sections needed for unresolved claims.
- Maintain a claim-to-evidence ledger while writing to reduce drift.
- Minimize full-document rescans unless identity gate or consistency checks fail.
- Keep output deterministic: fixed section order and explicit caveats.
Common pitfalls to avoid
- Over-summarizing without experimental context.
- Concept conflation (baseline vs weighting, confidence vs correctness).
- Pseudocode that violates grouping assumptions.
- Omitting caveats/limitations.
Must not do
- Do not depend on external README files for policy.
- Do not rely on memory summaries over source evidence.
- Do not finalize if identity gate fails.
- Do not skip revision passes or quality gates.