legal-document-analyzer — Claude Code skill: analysis and setup
This skill reviews contracts, detects risks, and checks compliance. Use it when an agent must process PDF, DOCX, or plain-text legal documents.
npx skills add qodex-ai/ai-agent-skills --skill legal-document-analyzer -a claude-codeWhat legal-document-analyzer does
The skill parses PDF, DOCX, and text files, then structures sections, clauses, definitions, parties, and dates. It can classify contracts such as NDAs, employment agreements, service contracts, purchases, and leases. Key terms, renewal rules, payments, performance measures, duties, rights, and liabilities are extracted.
Risk checks cover financial exposure, unclear language, conflicting clauses, operational issues, and compliance topics such as GDPR and data protection. The workflow can also research laws for a contract type and jurisdiction, regulatory duties, case law, and established precedents.
A report can present the extracted terms, obligations, risk assessment, compliance gaps, and recommendations. Document processing names pypdf, python-docx, textract, and OCR libraries. Major issues still call for legal counsel.
What it helps with
- parse a PDF, DOCX, or text document
- extract parties, dates, and contract terms
- spot financial and legal exposure
- check required clauses and compliance gaps
- produce a contract review report
Example prompts for the agent
- Review
contract.pdf, identify the parties and dates, and list its obligations and risks. - Classify
service_agreement.docxand extract payment, renewal, and liability terms. - Check this contract for GDPR compliance and write a report on missing requirements.
How to install legal-document-analyzer
1Skills CLI (Vercel)
npx skills add qodex-ai/ai-agent-skills --skill legal-document-analyzer -a claude-code2Manually: put the files in place
~/.claude/skills/legal-document-analyzer/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/legal-document-analyzer/
1Skills CLI (Vercel)
npx skills add qodex-ai/ai-agent-skills --skill legal-document-analyzer -a codex2Manually: put the files in place
.agents/skills/legal-document-analyzer/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add qodex-ai/ai-agent-skills --skill legal-document-analyzer -a cursor2Manually: put the files in place
.cursor/skills/legal-document-analyzer/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install qodex-ai/ai-agent-skills legal-document-analyzer2Manually: put the files in place
.github/skills/legal-document-analyzer/SKILL.md1Skills CLI (Vercel)
npx skills add qodex-ai/ai-agent-skills --skill legal-document-analyzer -a gemini-cli2Platform CLI
gemini skills install https://github.com/qodex-ai/ai-agent-skills --path skills/legal-document-analyzerManually: put the files in place
.devin/skills/legal-document-analyzer/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add qodex-ai/ai-agent-skills --skill legal-document-analyzer -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about legal-document-analyzer
How do I install legal-document-analyzer in Claude Code?
Run npx skills add qodex-ai/ai-agent-skills --skill legal-document-analyzer -a claude-code, then use ~/.claude/skills/legal-document-analyzer/SKILL.md.
What does legal-document-analyzer do?
It structures legal documents, reviews contract terms, flags risks, checks compliance, and prepares reports with recommendations.
Which document formats and libraries does it cover?
It handles PDF, DOCX, and text documents. The listed processing tools are pypdf, python-docx, textract, and OCR libraries.