# Document parsing

A reusable skill the "Index every signed contract, verified" recipe pulls in. Add it once and every agent on the team can use it.

Bulk-read every Word and PDF contract across the drive into extractable full text.

## Method
1. Sweep {{drive_root}} and list every contract file, docx and PDF.
2. Convert each file to full text, preserving page numbers for later citation.
3. Skip and log any file that fails to parse, corrupted, password-protected, or image-only, rather than silently omitting it.
4. Batch the sweep so a large repository completes without manual chunking.
5. Hand each contract's text to the key-term-extraction skill.

## Rules
- A failed parse is logged and reported, never dropped silently from the index.
- Page-level references are preserved so every extracted field can be traced back.
- Drive folders in scope for the sweep (set on first run, then stored in memory).
- Long runs are expected — this is a one-off bulk sweep, not a per-file interactive job.

## Output
Full text per contract file, with page references, plus a parse-failure log for files the sweep could not read.
