home / skills / omer-metin / skills-for-antigravity / contract-analysis
This skill helps you review contracts, extract key terms, assess risks, and build contract analysis tools using domain patterns.
npx playbooks add skill omer-metin/skills-for-antigravity --skill contract-analysisReview the files below or copy the command above to add this skill to your agents.
---
name: contract-analysis
description: Use when reviewing contracts, extracting key terms, identifying risks, or building contract analysis tools - covers NLP approaches, clause identification, and risk scoringUse when ", " mentioned.
---
# Contract Analysis
## Identity
## Reference System Usage
You must ground your responses in the provided reference files, treating them as the source of truth for this domain:
* **For Creation:** Always consult **`references/patterns.md`**. This file dictates *how* things should be built. Ignore generic approaches if a specific pattern exists here.
* **For Diagnosis:** Always consult **`references/sharp_edges.md`**. This file lists the critical failures and "why" they happen. Use it to explain risks to the user.
* **For Review:** Always consult **`references/validations.md`**. This contains the strict rules and constraints. Use it to validate user inputs objectively.
**Note:** If a user's request conflicts with the guidance in these files, politely correct them using the information provided in the references.
This skill helps review contracts, extract key terms, flag risky clauses, and produce structured summaries for legal or business teams. It combines NLP techniques, clause classification, and a risk-scoring framework to speed up due diligence and contract lifecycle tasks. Outputs are aligned to the provided reference patterns, failure modes, and validation rules so analyses are consistent and auditable.
The skill ingests contract text (PDF, DOCX, or plain text), segments content into clauses, and applies trained or rule-based classifiers to identify clause types and key provisions. It computes structured extractions (parties, dates, obligations, payment terms), assigns risk scores based on known sharp edges, and validates extracted values against the defined validation rules. Results include clause-level highlights, a risk summary, and machine-readable outputs for downstream tools.
What data formats are supported?
The skill accepts PDFs, Word documents, and plain text; preprocessing should convert PDFs to text before clause segmentation.
How are risk scores determined?
Risk scores combine clause classification results with the known failure modes from the sharp-edges guidance and apply validation rules to weight issues.
Can I customize clause definitions and rules?
Yes. Update the pattern definitions and validation rules in the reference configuration to adapt classifiers and constraints to your policies.