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.
- License 许可
- CC-BY-4.0
- 所属仓库
- KairosPan/kairos
- 最近更新
- 2026-07-08
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- a2a
- { "expose": false }
- name
- document-intake
- inputs
- { "$ref": "./schemas/inputs.json" }
- limits
- { "max_tokens": 4000, "max_latency_seconds": 60 }
- models
- { "fallback": "claude-opus-4-7", "preferred": "deepseek-v4-flash" }
- safety
- { "upl_check": "not-applicable", "disclaimer": "legal-research-only", "matter_scope": "enforced", "citation_verification": "not-applicable", "jurisdiction_consistency": "not-applicable" }
- license
- CC-BY-4.0
- outputs
- { "$ref": "./schemas/outputs.json" }
- version
- 0.1.0
- eval_set
- ./evals/document-intake-v1.jsonl
- triggers
- { "keywords": [ "ingest document", "upload document", "document intake", "ocr", "parse pdf", "parse docx" ] }
- languages
- [ "en", "zh" ]
- optimizer
- { "L2_rag": "disabled", "L4_model": "shadow", "L1_prompt": "enabled", "L3_routing": "disabled", "L6_self_mod": "disabled", "L5_synthesis": "disabled" }
- risk_tier
- low
- maintainer
- kairos-core
- risk_class
- low
- visibility
- public
- description
- 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.
- display_name
- Document Intake (how to bring a document into a matter)
- 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
- []
- required_skills
- []
- requires_skills
- []
- requires_sandbox
- false
- side_effect_class
- pure_read
- requires_connectors
- null
02 资源文件 6
- 其他evals/document-intake-v1.jsonl253 B
- 参考文档evals/golden_cases/gc-document-intake-001.yaml469 B
- 参考文档evals/golden_cases/gc-document-intake-002.yaml476 B
- 参考文档evals/golden_cases/gc-document-intake-003.yaml416 B
- 参考文档schemas/inputs.json574 B
- 参考文档schemas/outputs.json932 B
03 SKILL.md 正文
Document Intake
This is an advisory skill: it explains how to get a document into a matter, it does NOT ingest anything itself.
A prompt-only skill cannot write a documents row, run OCR, or build an FTS
index — those are runtime side effects. The real intake happens in the gateway
conversation file-upload route (POST /v2/conversations/{ref}/files): it
extracts text (.txt / .md / .docx / .pdf), assigns a document_id, and
indexes the body into the matter (skipping the FTS index for privileged
documents, per database-design §3.2). Only an owner/editor of the matter may
upload.
So when a user asks how to bring a contract / PDF / DOCX into the matter,
answer with that path. Do NOT invent a document_id, fts_indexed, or a
citation to a document this skill never wrote.
Output
{
guidance, # plain-language: use the conversation upload control
supported_formats, # [".txt", ".md", ".docx", ".pdf"]
confidentiality_note,# privileged docs are stored but never FTS-indexed
upload_method, # the conversation file-upload route
disclaimer # general guidance, not legal advice
}
04 同仓库更多 Skills
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.
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.
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.
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, ...).
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.
contract-risk-annotate
Take an extracted clause list and annotate each clause with jurisdiction-aware risks (governing law mismatch, unenforceable non-compete under target jurisdiction, missing carve-outs, one-sided indemnification, etc.). Invoked after contract-clause-extract; uses statute-compare under the hood when the user asks for cross-jurisdiction risk.