| name | contract-field-extractor |
| description | Extract structured contract fields from existing contract text or already parsed contract content according to a configured field list. Use when the user asks for 合同字段抽取, 合同信息抽取, 合同关键信息提取, 合同台账, contract field extraction, contract metadata extraction, contract ledger data, or extracting parties, amount, dates, term, payment terms, renewal terms, breach clauses, or other configured contract fields. This skill does not parse uploaded files directly; it works only after contract text is available from another system or parser. |
| when_to_use | Use this skill when contract text is already available and the user needs configured field extraction with field descriptions, types, required flags, extraction rules, default values, empty-value handling, evidence, status, and confidence scores; use file-generator only when the user asks to export the structured result. |
| provider_type | builtin |
| provider_id | file_generator |
| runtime_type | hybrid |
| tools | ["generate_file"] |
| max_calls_per_turn | 5 |
| timeout_seconds | 10 |
| display | {"icon":"file-search","category":"document_processing","scenarios":["document_handling","legal_compliance","business_operations"],"label":{"en_US":"Contract Field Extractor","zh_Hans":"合同字段抽取"},"description":{"en_US":"Designed for contract review and ledger preparation; extracts parties, amounts, dates, obligations, and configured fields with source evidence and confidence.","zh_Hans":"适用于合同审阅和台账整理,可抽取主体、金额、日期、义务等指定字段,并返回原文证据和置信度。"},"when_to_use":{"en_US":"Use when parsed contract text needs structured field extraction or ledger-ready output.","zh_Hans":"当已解析合同文本需要结构化抽取或生成合同台账数据时使用。"},"tags":{"en_US":["Contract","Extraction","Structured Data"],"zh_Hans":["合同","字段抽取","结构化"]}} |
Contract Field Extractor Skill
Use this skill to extract configured fields from contract text that is already available in the conversation or supplied by another system. This skill does not read files, parse PDF/DOCX bytes, OCR images, or inspect uploads directly.
Scope
Use this skill for:
- Extracting contract parties, contract name, contract number, amount, currency, signing date, effective date, expiry date, term, payment terms, renewal terms, breach clauses, jurisdiction, contacts, and other configured fields.
- Producing JSON, Markdown, or CSV-ready structured contract extraction results.
- Preparing contract ledger rows for later database insertion or manual review.
- Returning confidence, evidence, source location, status, and notes for every configured field.
Do not use this skill to:
- Parse uploaded files directly.
- OCR scanned contracts or screenshots.
- Provide final legal advice, enforceability conclusions, or legal risk certification.
- Invent missing contract content.
- Write database records directly without a separate database handoff and confirmation.
Workflow
- Confirm contract text is available. It must be pasted text, prior chat context, or parsed contract content supplied by another system.
- Confirm the configured field list is available. Do not invent a field list for a production extraction request.
- If the user asks to use a built-in field template, read
field-templates.md and use the exact template schema.
- If contract text or field configuration is missing, call
request_user_input.
- Read
field-schema-contract.md before interpreting field configuration.
- Read
extraction-rules.md before extracting values.
- Extract every configured field, including required fields. Missing required fields must still appear in the output.
- When no contract value exists and no explicit default is configured, return
value: "未提取到" and extraction_status: "missing".
- When no contract value exists but the field has an explicit configured default and the rules allow using it, return that default with
extraction_status: "defaulted".
- Read
confidence-rules.md and assign confidence for every field.
- Read
output-format.md and return the structured result in the requested format. Default to JSON in the answer when no export is requested.
- If the user asks to export, save, download, or generate a contract ledger file, read and call .