# Docintel Document Analysis

> Evidence-grounded document analysis, contract risk review, question answering, and comparison.

Docintel Document Analysis is a free AI agent skill on Agensi by Mohamed Hafez, in Legal & Compliance. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Mohamed Hafez](https://www.agensi.io/creators/mohamed-hafez)
- Category: [Legal & Compliance](https://www.agensi.io/skills/legal-compliance)
- Version: 1.0
- Last updated: 2026-11-28
- Security: scan passed (2026-11-28); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/docintel-document-analysis
- Tags: document-analysis, contract-review, pdf, rag, research

## About this skill

Analyzing dense legal and technical documents manually is slow and prone to oversight. This skill provides an automated pipeline for parsing, searching, and auditing PDF, DOCX, and TXT files with strict evidence-grounded verification.

### What it does
- **Multi-format extraction** identifies and processes text from PDF, DOCX, and TXT files while preserving section headers and clause numbering.
- **Evidence-based QA** answers specific questions using only the provided text, citing filenames and page numbers for every claim.
- **Contractual risk detection** flags potential issues like automatic renewals or termination clauses using an issue-spotting rubric.
- **Version comparison** aligns two documents to highlight material differences in dates, amounts, and notice periods.
- **Citations verification** cross-references every factual claim against verbatim excerpts to prevent hallucinations.

### How it works
1. **Inventory and Extract:** The agent catalogs supplied files and uses internal scripts or native tools to extract text while mapping page boundaries.
2. **Retrieve and Index:** Lexical search and semantic ranking locate relevant passages, including surrounding context and definitions.
3. **Analyze and Audit:** The agent applies risk-detection logic to identify obligations or compares two versions side-by-side.
4. **Report:** Results are delivered via structured templates, separating explicit facts from interpretations.

### Frameworks & tools
The skill utilizes Python-based helpers for BM25-style lexical retrieval and text extraction. It works with standard PDF libraries like `pypdf`, `pdfplumber`, or `pdftotext`.

### Why this beats prompting it yourself
Generic prompts often lose track of page numbers or hallucinate clauses that do not exist. This skill uses a dedicated verification loop and standalone retrieval scripts to ensure every answer is anchored to a specific, verifiable section of the source file.

### Use cases
- Reviewing service agreements to find hidden renewal dates and termination penalties.
- Comparing a new contract draft against an executed version to find changed terms.
- Extracting key financial data from multi-page corporate reports with page citations.
- Summarizing technical whitepapers into executive bullet points for quick review.

### Known limitations
Does not provide legal advice or determine enforceability. Performance on scanned/image-only PDFs is limited without external OCR tools. Requires searchable text for reliable indexing.

## Requires

- Python

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Docintel Document Analysis skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### Which file formats are supported, and can it handle scanned images?

This skill handles PDF, DOCX, and TXT files. It is optimized for text-based documents; while it can process standard digital PDFs, files consisting entirely of images or scans will require external OCR processing for best results.

### How does this skill ensure the accuracy of legal citations compared to standard AI chat?

Unlike generic prompts, this skill uses a dedicated retrieval-augmented generation (RAG) pipeline and a verification loop. This ensures every claim is backed by a specific page number and verbatim citation, significantly reducing the risk of AI hallucinations.

### What exactly is included in the purchase?

The package includes the Docintel agent logic, specialized Python-based retrieval scripts (including BM25 lexical search), and structured reporting templates. You receive everything needed to deploy the document analysis pipeline within your supported AI environment.

### Can I use this skill to compare a new contract draft against an older version?

Yes, the version comparison feature is designed specifically to align two different documents. It identifies material changes in dates, financial amounts, and notice periods, highlighting differences side-by-side with source evidence.

### Which AI frameworks or agents is this skill compatible with?

This skill is designed for compatibility with major AI agent frameworks that support Python-based tool execution. It integrates seamlessly with standard document libraries like pypdf and pdfplumber to maintain document structure and section headers.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
