Contract structure parsing

From aifinlab/FinClaw · View interactive version

Contract structure parsing is an AI agent skill from the GitHub repository aifinlab/FinClaw. 用于条款/义务/责任解析的合同结构解析原子 skill,适用于通用行业文档解析场景。

How to use this skill

Skill file

合同结构解析 Skill

数据来源

本 Skill 支持多种合同文档输入格式,核心数据来源包括:

1. 合同文档类型

2. 合同内容类型

3. 文档特征

4. 数据格式要求

说明:本 Skill 不包含文档采集功能,需要用户提供合同文档文件。建议文档格式规范,以便进行准确的结构解析。


功能

本 Skill 提供全面的合同结构解析能力,涵盖多种解析功能:

1. 合同结构识别

2. 条款结构解析

3. 义务责任识别

4. 关键信息提取

5. 版式还原

6. 高级处理功能


使用示例

输出示例

{
  "document_info": {
    "filename": "contract.pdf",
    "file_size": 1024000,
    "page_count": 20,
    "language": "zh-CN",
    "contract_type": "贷款合同"
  },
  "header": {
    "title": "银行贷款合同",
    "contract_number": "LOAN-2024-001",
    "party_a": "示例银行股份有限公司",
    "party_b": "示例公司",
    "sign_date": "2024-03-15",
    "effective_date": "2024-03-20"
  },
  "structure": {
    "clauses": [
      {
        "level": 1,
        "title": "第一条 贷款金额和用途",
        "content": "贷款金额和用途内容...",
        "page": 1,
        "obligations": ["借款人应按约定用途使用贷款"],
        "responsibilities": ["贷款人应按约定发放贷款"]
      },
      {
        "level": 1,
        "title": "第二条 贷款利率和期限",
        "content": "贷款利率和期限内容...",
        "page": 2
      }
    ]
  },
  "key_information": {
    "loan_amount": 10000000,
    "interest_rate": 4.35,
    "loan_term": 12,
    "repayment_method": "等额本息",
    "guarantee": ["抵押", "保证"]
  }
}

注意事项与限制

1. 文档格式要求

2. 解析准确性

3. 性能考虑

4. 法律术语

5. 使用限制


参考资料

License

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.