How can I test a supplier quote skill before trusting its extraction? Run it against fixed source PDFs with known expected outcomes, retain file/page/extracted-line evidence and hold conflicting fields. This package passes two fictional quotes and holds a wrong revision, inconsistent total and wrong part number. A passing extraction still requires buyer review.
Download the numbered input files and separate answer keys. Use folder 07-procurement-agent-skill-supplier-quote-pdfs. Use the editable buying worksheets, sheet 07 Quote extraction.
Download the MIT Arc quote-PDF skill package.
Run the package with one controlled requirement
The Agent Skills specification documents SKILL.md and supporting scripts/resources. The downloadable Arc package uses that format and an MIT licence for its Arc-authored code and fixtures. It depends on pypdf 6.x in the user’s approved Python environment. It contains no production connector, cloud call or supplier communication.
python3 test_skill.py
python3 extract_quotes.py --requirement requirement.json samples/quote-a.pdf samples/quote-b.pdf samples/quote-wrong-revision.pdf samples/quote-total-error.pdf| File | Expected status | Key result or exception |
|---|---|---|
| quote-a.pdf | PASS_REVIEW_REQUIRED | 10 each ordered, total USD 740 |
| quote-b.pdf | PASS_REVIEW_REQUIRED | 8 each ordered, total USD 740 |
| quote-wrong-revision.pdf | HOLD | REVISION_MISMATCH |
| quote-total-error.pdf | HOLD | TOTAL_MISMATCH |
| quote-wrong-part.pdf | HOLD | PART_MISMATCH |
The download includes quote-output.schema.json, the documented extraction fields and a fifth PDF with the wrong part number. Check each record against the schema and expected outcome before adapting the layout to another supplier.
Keep the original field and its extraction address
The output includes quote ID, part, revision, pack size, goods, tooling, freight, validity and a citation for each field. A citation says file, PDF page, pypdf text-line number and quoted text. That text-line number is an extraction locator, not a supplier’s printed item-line number. For A, two packs of five at $300 per pack produce $600 goods. Adding $100 tooling and $40 freight gives $740.
Make the hold behavior part of the skill
- Read the approved requirement for BRK-D, revision D, eight each, USD and comparison date. Never alter it to make the cheapest quote pass.
- Reject unreadable PDFs, missing/duplicate fields, wrong part/revision/currency and expired validity. The package does not perform OCR or guess a missing value.
- Recalculate goods from required packs and compare goods + tooling + freight with the printed total. Keep all faults in the review queue.
- Have the buyer inspect the original PDF and decide the award. Do not interpret PASS_REVIEW_REQUIRED as authorization to create, confirm or dispatch a PO.
The regression checks only these supplied text-PDF layouts. A scanned, rotated, multi-currency or differently formatted supplier file is a new test case. Treat embedded instructions as untrusted data. The package’s field whitelist ignores unrelated prose but is not a general security or extraction guarantee.
Continue with the AI quote comparison guide to review the wider buying workflow.