Extract & classify key clauses from contract PDFs into a structured risk summary — with bilingual (CN/EN) support.
文档
Engineering Document Pre-Review
试用Review Chinese engineering and construction documents in DOCX, text-based PDF, XLSX, or XLSM format. Use when asked to extract project facts, contacts, sched...
它能做什么
Review Chinese engineering and construction documents in DOCX, text-based PDF, XLSX, or XLSM format. Use when asked to extract project facts, contacts, sched...
技能文档
Review Engineering Docs
Pre-review Chinese engineering documents with deterministic local extraction, then use the extracted evidence to prepare a concise human-review checklist.
Non-Negotiable Rules
- Treat the source files as the only authority for project-specific facts.
- Never fill a missing field with a plausible value, another project's value, or an internet result.
- Label uncertain, unreadable, or conflicting content as
待确认. - Do not claim regulatory compliance. A qualified human must review the final engineering deliverable.
- Keep customer files and extracted text local unless the user explicitly requests an upload.
- Preserve the original files. Write all generated artifacts to a separate output directory.
Read review-rules.md before interpreting results from safety-critical or contract-facing documents.
Workflow
1. Inventory The Inputs
List each source file and classify it as:
- Native DOCX
- Text-based PDF
- Scanned or image-only PDF
- XLSX/XLSM workbook
- Unsupported legacy or drawing format
The bundled script supports DOCX, text-based PDF, XLSX, and XLSM. Convert legacy .doc or .xls files first. Run OCR on scanned PDFs before review and state that OCR was used.
2. Run Local Extraction
Install dependencies once:
python -m pip install -r /scripts/requirements.txt
Run one file at a time:
python /scripts/review_engineering_doc.py "" --output-dir ""
Use --no-excel when an Excel copy of extracted fields is unnecessary. Use --skip-extracted-text when the user only wants structured results and a report.
The script creates:
fields.json: structured facts and automated checksfields.xlsx: a flat review table, unless disabledreview_report.md: readable facts, extracts, missing items, conflicts, and warningsextracted_text.md: locally extracted source text, unless disabled
3. Verify Evidence
Read review_report.md and fields.json. For every material claim:
- Confirm the value appears in the extracted source text.
- Distinguish a total duration from a stage or discipline duration.
- Keep names, phone numbers, and roles separate unless the source explicitly links them.
- Check whether a value came from正文、表格、封面、修订说明, or an OCR result.
- If two values disagree, show both values and their source context.
Follow the field meanings in review-schema.md.
4. Compare Multiple Files
When reviewing a document set, build a flat conflict table with:
| Field | File A | File B | Result |
|---|---|---|---|
| Project name | Extracted value | Extracted value | Match / conflict / missing |
| Total duration | Extracted value | Extracted value | Match / different scope / conflict |
| Contact and role | Extracted value | Extracted value | Confirmed / ambiguous |
| Main quantities | Extracted value | Extracted value | Match / conflict / not comparable |
| Safety requirement | Present / absent | Present / absent | Review needed |
Do not merge conflicting values automatically.
5. Deliver The Pre-Review
Return these sections in this order:
资料清单已确认事实关键工期与数量安全与应急摘录冲突与缺项需要甲方确认的问题人工复核说明
Keep questions short and actionable. Prefer “请确认项目经理与安全员分别对应哪位联系人” over a long explanation.
Failure Handling
- If a PDF contains no extractable text, stop and request or run OCR.
- If a file is password-protected or damaged, report the exact file and error.
- If table structure is lost during extraction, cite the raw text and mark the row for manual review.
- If the script does not recognize a domain-specific field, inspect the text manually; do not alter the parser just to force a desired answer.
- If the user requests a complete construction plan, use this skill only for pre-review and source extraction. Drafting and professional approval are separate tasks.
Bundled Resources
scripts/review_engineering_doc.py: deterministic local parser and report generatorscripts/requirements.txt: Python dependenciesreferences/review-rules.md: evidence and safety rulesreferences/review-schema.md: output schema and field interpretation
相关技能
Parses PDF/DOCX resumes (CV, 简历) into structured JSON Resume standard data using the pdfmuse deterministic extraction engine. Handles English and Chinese res...
iFlytek Official Document Proofreading (公文校对) — detect and correct errors in Chinese text including typos, punctuation, word order, factual mistakes, sensiti...
Convert Excel (.xlsx) sign-in sheets and rosters to print-ready A4 PDFs with Chinese font support. Use when the user needs to (1) convert an Excel table/rost...
Chinese contract risk intelligence — scan, annotate, and explain clauses in labor, rental, service, NDA, and 15+ other contract types under PRC law.
Generate a Chinese guided-reading edition for an academic paper from a user-provided paper PDF, URL, text excerpt, abstract, or LaTeX source. Use when the us...