> 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.
npx skills add https://github.com/lawve-ai/awesome-legal-skills --skill 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.
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`.)
Ask batched, multiple-choice, recommended-default-first, only for axes you can't infer:
Triage/exploratory ·Working · High — decisions rely on it.
Don't care · Balanced · Minimize $/task (extraction is often high-volume → cost matters).Batch fine · Interactive · Real-time.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.
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
*conditional* answers into absolutes ("if X, then Y" → "Y"). Always verify any conditional/qualified field.
verbose output (budget output tokens + post-processing).
on completeness ("almost all"). Route here for OCR-heavy sets, then run a coverage check.
state the reliability cost.
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.
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."*
references/scorecard.md and repo data/scorecard-2026-07.md.Production-ready reinforcement learning algorithms (PPO, SAC, DQN, TD3, DDPG, A2C) with scikit-learn-like API. Use for standard RL experiments, quick prototyping, and well-documented algorithm implementations. Best for single-agent RL with Gymnasium environments. For high-performance parallel training, multi-agent systems, or custom vectorized environments, use pufferlib instead.
Create publication-quality scientific diagrams using Nano Banana 2 AI with smart iterative refinement. Uses Gemini 3.6 Flash for quality review. Only regenerates if quality is below threshold for your document type. Specialized in neural network architectures, system diagrams, flowcharts, biological pathways, and complex scientific visualizations.
Implement semantic vector search with AgentDB for intelligent document retrieval, similarity matching, and context-aware querying. Use when building RAG systems, semantic search engines, or intelligent knowledge bases.
Context is the complete state available to a language model at inference time. It includes everything the model can attend to when generating responses: system instructions, tool definitions, retrieved documents, message history, and tool outputs.
Build semantic vector search systems with AgentDB for intelligent document retrieval, RAG applications, and knowledge bases using embedding-based similarity matching
Implement semantic vector search with AgentDB for intelligent document retrieval, similarity matching, and context-aware querying. Use when building RAG systems, semantic search engines, or intelligent knowledge bases.
Cherry Studio 产品知识库、源码路径索引、故障排查和页面导航。当用户询问 Cherry Studio 的功能、配置、报错、使用方法时触发。也适用于用户提到 provider、模型、知识库、Agent、MCP、OpenClaw、PDF、快捷短语等关键词的场景。
Add a persistent wiki knowledge base to a NanoClaw group. Based on Karpathy's LLM Wiki pattern. Triggers on "add wiki", "wiki", "knowledge base", "llm wiki", "karpathy wiki".
Take lawve-ai/route-info-extraction from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.