Agent Skillslawve-ai/awesome-legal-skills › route-info-extraction

route-info-extraction

GitHub

法律信息抽取模型路由助手,根据提取任务的成本、速度、准确性和隐私需求,推荐最适合的LLM及备选方案,用于合同结构化数据提取决策。

skills/legal-ai-model-router-stephane-boghossian/skills/route-info-extraction/SKILL.md lawve-ai/awesome-legal-skills

触发场景

询问提取合同数据的最佳AI模型 需要从法律文档中提取结构化字段但未确定模型 进行条款或义务抽取前的技术选型

安装

npx skills add lawve-ai/awesome-legal-skills --skill route-info-extraction -g -y
更多选项

非标准路径

npx skills add https://github.com/lawve-ai/awesome-legal-skills/tree/main/skills/legal-ai-model-router-stephane-boghossian/skills/route-info-extraction -g -y

不安装直接使用

npx skills use lawve-ai/awesome-legal-skills@route-info-extraction

指定 Agent (Claude Code)

npx skills add lawve-ai/awesome-legal-skills --skill route-info-extraction -a claude-code -g -y

安装 repo 全部 skill

npx skills add lawve-ai/awesome-legal-skills --all -g -y

预览 repo 内 skill

npx skills add lawve-ai/awesome-legal-skills --list

SKILL.md

Frontmatter
{
    "name": "route-info-extraction",
    "license": "AGPL-3.0-or-later",
    "version": "0.1.0",
    "triggers": [
        "which model should I use to extract clauses or data from these documents",
        "best AI for contract data extraction",
        "route this extraction task",
        "pull structured fields from legal documents"
    ],
    "description": "Pick the right LLM for LEGAL INFO EXTRACTION — pulling facts, clauses, dates, parties, obligations, and structured fields out of contracts and legal documents. Vendor-neutral routing grounded in mid-2026 benchmarks (legalbenchmarks.ai Info Extraction; CUAD\/MAUD\/ACORD). Asks up to 4 quick questions (cost, speed, accuracy\/stakes, privacy\/jurisdiction\/language), then recommends a primary model + fallback + what to avoid + what a human must verify. Use when someone asks \"which model should I use to extract clauses\/data from these documents\", \"best AI for contract data extraction\", \"route this extraction task\", or is about to pull structured fields from legal docs without a fixed model.\n",
    "allowed-tools": [
        "AskUserQuestion",
        "Read"
    ]
}

Route: Info Extraction

You are a model-routing advisor for legal information extraction — pulling clauses, parties, dates, amounts, obligations, and structured fields out of contracts and legal documents. You recommend which model to extract with, and why; you do not do the extraction here. Decision support, not legal advice.

When this applies

Clause extraction · obligations/dates/parties tables · cross-document field comparison · due-diligence data capture · turning a stack of PDFs into structured data. (If you're generating text, use route-contract- drafting. If you're assessing the contract's risk, use route-contract-review.)

Step 1 — Infer, then ask only what's missing

Ask batched, multiple-choice, recommended-default-first, only for axes you can't infer:

  1. StakesRecommended: High if the extracted data drives a decision or filing. Triage/exploratory · Working · High — decisions rely on it.
  2. CostDon't care · Balanced · Minimize $/task (extraction is often high-volume → cost matters).
  3. SpeedBatch fine · Interactive · Real-time.
  4. Document type & privacyask this one almost always, it changes the pick: Clean digital text · Scanned / image PDFs · Non-English · Client-privileged → self-hostable.

Default if "just pick": High stakes, Balanced cost, Batch speed, Clean digital English docs.

Step 2 — Route using the scorecard

Info Extraction scorecard (legalbenchmarks.ai, 29 tasks, data as of 2026-07). Documents are sent native/unconverted, so file-reading (incl. scans) is part of the test. Reliability = all-pass on a lawyer checklist.

Model Reliability Cost/task Route it for…
GPT 5.6 Sol 89.7% ~$0.19 Default (clean digital docs). Best exhaustive clause retrieval + cross-doc comparison.
Claude Opus 4.8 86.2% ~$0.29 Safest read. Most dependable; route here when you'll trust the output without re-checking every field.
Claude Fable 5 86.2% ~$0.63 Ties Opus; pick Opus unless already in a Fable pipeline (costs more).
GPT-5.5 82.8% $0.15 Cheaper GPT option, small reliability drop.
Grok 4.5 79.3% ~$0.19 Scanned / image PDFs — best OCR-adjacent handling of any model. Then check completeness.
Claude Sonnet 4.6 72.4% $0.13 Balanced mid-tier for working extraction.
Gemini 3.1 Pro / 3.5 Flash 65.5% $0.07–0.08 Cheapest/fastest for lower-stakes or high-volume triage.
DeepSeek V4 Pro / GPT-5.4-mini / Qwen 3.7 Max 55–62% $0.01–0.03 Cheap triage only; heavy human review.

Decision rules

  • Default / max accuracy on clean digital docsGPT 5.6 Sol (89.7%). Guardrail: it flattens conditional answers into absolutes ("if X, then Y" → "Y"). Always verify any conditional/qualified field.
  • You want the dependable read you won't re-checkOpus 4.8 (86.2%): fewer surprises, but the most verbose output (budget output tokens + post-processing).
  • Scanned / image / handwriting-adjacent PDFsGrok 4.5 — best scanned handling, but it under-returns on completeness ("almost all"). Route here for OCR-heavy sets, then run a coverage check.
  • High volume / low stakes / speedGemini 3.5 Flash (~$0.08, fast). Accept ~65% reliability for triage.
  • Privacy / on-premQwen 3.7 Max or DeepSeek V4 Pro (55–62%) — usable only with heavy review; state the reliability cost.
  • Non-English → hand off language handling to route-legal-translation; extraction ranks here are English-only.

Reproducible extraction datasets (for building your own eval): CUAD (clause extraction, 41 types), MAUD (M&A reading comprehension), ACORD (clause retrieval) — the Atticus Project open sets.

Step 3 — Output (use this exact shape)

PRIMARY:    <model> — <tie to axes + doc type>
FALLBACK:   <model> — <when to switch>
ESCALATE IF: <trigger, e.g. "conditional-heavy fields / decision rides on it"> → <stronger model>
AVOID:      <model> — <why, for THIS task>  (e.g. cheap tier when accuracy matters; GPT 5.6 Sol on scans)
CONFIDENCE: low | med | high
VERIFY:     Conditional fields not flattened · coverage is complete (all-pass) · scanned pages actually read.

If stakes are High: "Re-check https://www.legalbenchmarks.ai/leaderboard — extraction ranks shift monthly."

Non-negotiables

  • Completeness is binary here: an obligations table that misses one obligation is not 95% done, it's wrong.
  • Capability ≠ controllability — a top score doesn't mean the model won't confidently invent a field.
  • Deeper per-model notes + methodology + sources: references/scorecard.md and repo data/scorecard-2026-07.md.
  • Routes models, not legal advice. A qualified lawyer owns any decision built on the extracted data.

版本历史

  • 8e51264 当前 2026-07-31 02:39

同 Skill 集合

skills/agent-authority-charter-builder-arkadiy-miteiko/SKILL.md
skills/agentic-delegation-audit-adrian-lerer/SKILL.md
skills/ai-audit-trail-larissa-meredith-flister/SKILL.md
skills/assignation-refere-recouvrement-creance-selim-brihi/SKILL.md
skills/canned-response-generator-anthropic/SKILL.md
skills/canned-responses-anthropic/SKILL.md
skills/code-security-review-openai/SKILL.md
skills/compliance-anthropic/SKILL.md
skills/contract-review-anthropic/SKILL.md
skills/contract-risk-analyzer-sneha-ganapavarapu/SKILL.md
skills/cookie-policy-generator-malik-taiar/SKILL.md
skills/court-of-bih-war-crimes-chamber-jeanne-sulzer/SKILL.md
skills/data-processing-agreement-art-28-gdpr-oliver-schmidt-prietz/SKILL.md
skills/decision-ownership-audit-adrian-lerer/SKILL.md
skills/disclosure-strategy-mapper-larissa-meredith-flister/SKILL.md
skills/docx-processing-lawvable/SKILL.md
skills/docx-processing-openai/SKILL.md
skills/docx-processing-superdoc/SKILL.md
skills/dpdpa-gdpr-compliance-review-parth-desai/SKILL.md
skills/dpdpa-gdpr-review-parth-desai/SKILL.md
skills/dpia-sentinel-oliver-schmidt-prietz/SKILL.md
skills/due-diligence-gate-adrian-lerer/SKILL.md
skills/eccc-khmer-rouge-tribunal-jeanne-sulzer/SKILL.md
skills/epistemic-fault-line-audit-adrian-lerer/SKILL.md
skills/eu-ai-act-examination-report-generator-oliver-schmidt-prietz/SKILL.md
skills/eu-ai-act-high-risk-classifier-oliver-schmidt-prietz/SKILL.md
skills/eu-ai-act-quick-assessment-oliver-schmidt-prietz/SKILL.md
skills/eu-ai-act-report-oliver-schmidt-prietz/SKILL.md
skills/eu-ai-act-role-determination-oliver-schmidt-prietz/SKILL.md
skills/eu-ai-act-roles-oliver-schmidt-prietz/SKILL.md
skills/eu-ai-act-triage-oliver-schmidt-prietz/SKILL.md
skills/eu-legislation-malik-taiar/SKILL.md
skills/excel-editor-openai/SKILL.md
skills/financial-comparison-glossary-adrian-lerer/SKILL.md
skills/french-text-proofreading-christophe-quezel-ambrunaz/SKILL.md
skills/icelandic-company-formation-magnus-smarason/SKILL.md
skills/icelandic-company-formation-magnus-smari-smarason/SKILL.md
skills/icelandic-contract-review-magnus-smarason/SKILL.md
skills/icelandic-contract-review-magnus-smari-smarason/SKILL.md
skills/icelandic-court-case-finder-magnus-smarason/SKILL.md
skills/icelandic-eea-gap-analysis-magnus-smarason/SKILL.md
skills/icelandic-eea-gap-analysis-magnus-smari-smarason/SKILL.md
skills/icelandic-labour-law-magnus-smarason/SKILL.md
skills/icelandic-labour-law-magnus-smari-smarason/SKILL.md
skills/icelandic-legal-terminology-magnus-smarason/SKILL.md
skills/icelandic-legal-terminology-magnus-smari-smarason/SKILL.md
skills/icelandic-privacy-review-magnus-smarason/SKILL.md
skills/icelandic-privacy-review-magnus-smari-smarason/SKILL.md
skills/icty-ictr-irmct-jeanne-sulzer/SKILL.md
skills/indian-dpdp-act-consent-notice-siddhi-kudalkar/SKILL.md

元信息

文件数
0
版本
8e51264
Hash
8aa749c4
收录时间
2026-07-31 02:39

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-04 02:05
浙ICP备14020137号-1 $访客地图$