AGENT SKILL

contract-clause-extract

Parse a contract (PDF / DOCX / plain text already ingested into the matter) and extract a typed list of clauses (governing law, indemnification, IP assignment, non-compete, confidentiality, term, termination, liability cap, dispute resolution, etc.) with span pointers back to the source document.

License 许可
CC-BY-4.0
所属仓库
KairosPan/kairos
最近更新
2026-07-08
Stars
★ 0
Forks
0

01 前言 Front Matter

a2a
{ "expose": true, "billing": { "model": "free" }, "endpoint_path": "/a2a/skills/contract-clause-extract" }
name
contract-clause-extract
inputs
{ "$ref": "./schemas/inputs.json" }
limits
{ "max_tokens": 16000, "max_latency_seconds": 120 }
models
{ "fallback": "claude-opus-4-7", "preferred": "claude-opus-4-7" }
safety
{ "upl_check": "not-applicable", "disclaimer": "legal-research-only", "matter_scope": "enforced", "citation_verification": "required", "jurisdiction_consistency": "advisory" }
license
CC-BY-4.0
outputs
{ "$ref": "./schemas/outputs.json" }
version
0.1.0
eval_set
./evals/contract-clause-extract-v1.jsonl
triggers
{ "keywords": [ "extract clauses", "contract clauses", "clause extraction", "parse contract" ], "do_not_fire_when": [ "no contract document has been ingested into the matter yet", "the user wants drafting, redlining, or risk analysis rather than clause extraction", "the request is about case law or statutes, not a contract" ] }
languages
[ "en", "zh" ]
optimizer
{ "L2_rag": "disabled", "L4_model": "shadow", "L1_prompt": "enabled", "L3_routing": "enabled", "L6_self_mod": "disabled", "L5_synthesis": "disabled" }
risk_tier
medium
maintainer
kairos-core
risk_class
medium
visibility
public
description
Parse a contract (PDF / DOCX / plain text already ingested into the matter) and extract a typed list of clauses (governing law, indemnification, IP assignment, non-compete, confidentiality, term, termination, liability cap, dispute resolution, etc.) with span pointers back to the source document.
display_name
Contract Clause Extraction
golden_cases
[]
strict_model
false
target_users
[ "lawyer" ]
default_model
claude-opus-4-7
jurisdictions
[ "agnostic" ]
allowed_models
[ "claude-opus-4-7", "deepseek-v4-pro", "deepseek-v4-flash" ]
practice_areas
[ "commercial", "corporate" ]
required_skills
[ "kairos/citation-verify", "kairos/disclaimer-injector" ]
requires_skills
[]
requires_sandbox
false
side_effect_class
pure_read
requires_connectors
null

02 资源文件 7

03 SKILL.md 正文

Contract Clause Extract

Per §8.2 M1.2 + §2.4 (A: cross-border contract clause review). Reads a matter-scoped contract document (database-design §3.4.5: matter_id required) and emits a typed clause list for downstream review and redline.

Reading the contract

The full contract text is provided under the input key _document_text (the harness injects it from the matter document named by document_id). Extract clauses VERBATIM from _document_text — never invent clause text. If _document_text is absent (retrieval was unavailable), return an empty clauses list and say so rather than fabricating; still cite the contract document so the output is honest about what it covers.

Citations

citations is the contract document ITSELF and nothing else: a single entry whose source_uri is the exact doc://<document_id> you were given. Do NOT put statutes, cases, or external URLs in citations — this skill only attests "these clauses came from this contract." The harness verifies that doc:// cite against the matter's own documents; a non-matter URL would fail verification and withhold the whole turn.

Output

{
  document_id, contract_title, parties[],
  clauses: [{ name, clause_type, text, span: {start, end}, page }],
  citations: [{ citation, source_uri }],   # required non-empty: the contract doc:// only
  disclaimer                               # required: emit it yourself
}

text is the verbatim clause; span/page are best-effort pointers into _document_text and may be omitted when uncertain. Emit the disclaimer field yourself (e.g. "Clause extraction for legal research, not legal advice").

04 同仓库更多 Skills

KairosPan
KairosPan/kairos

statute-compare

Compare statutory provisions on the same topic across two or more jurisdictions. Invoke when the user asks "regulation / comparison / difference / similarities and differences of X in A/B/C jurisdictions". Covers five dimensions: scope of application, elements, exceptions, penalties, effective date.

★ 0
KairosPan
KairosPan/kairos

setup-interview

On first install/subscription of a skill, run a guided interview to learn the lawyer's playbook (jurisdiction / citation style / risk tolerance / output preferences) and write the answers to user/firm preferences. Mirrors the Anthropic plugin setup-interview UX. Feeds the §5 self-improving feedback source.

★ 0
KairosPan
KairosPan/kairos

retrieval-hybrid

Run the §7.4 hybrid pipeline (structural filter → BM25/FTS5 → local semantic → citation graph → RRF fusion → local rerank → MMR) for one query, returning ranked candidates with full source provenance. Invoke whenever a skill needs to fetch passages from any matter (private or public) before drafting.

★ 0
KairosPan
KairosPan/kairos

query-parser

Extract structured legal-research facets (jurisdiction, doc_type, citation_id, date_range, practice_area, matter_id) from a natural-language query. Invoked first by every retrieval-bearing skill (statute-compare, case-retrieve, ...).

★ 0
KairosPan
KairosPan/kairos

document-intake

Advisory guidance on getting a document into a matter's private index: which file formats are supported, how confidentiality levels behave (privileged documents are stored but never FTS-indexed, per database-design §3.2), and where to upload. The actual ingestion + extraction + indexing is performed by the conversation file-upload route, NOT by this skill — this skill only explains the path.

★ 0
KairosPan
KairosPan/kairos

disclaimer-injector

Inject the appropriate legal disclaimer (legal-research-only, in-house-counsel-only, or academic-use) into the trailing `disclaimer` field of a draft response. Mandatorily run by the Safety Gate; skill authors should not invoke directly.

★ 0