# office docs

> Ingest DOCX, PPTX, XLSX, and Notion/Confluence docs into structured Markdown for RAG pipelines.

office docs is a free AI agent skill on Agensi by claude-dev-suite, in LLM Ops. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [claude-dev-suite](https://www.agensi.io/creators/claude-dev-suite)
- Category: [LLM Ops](https://www.agensi.io/skills/llm-ops)
- Uses: 3
- Version: 1.0
- Last updated: 2026-09-21
- Security: scan passed (2026-09-21); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/office-docs
- Tags: llm-ops, python, rag, data-extraction, office-automation

## About this skill

### The problem

Standard text loaders often flatten Office files into a mess of plain text, losing the headings, table structures, and slide notes that provide critical context for RAG systems. Large spreadsheets or slide decks can also overflow context windows if not chunked with structural awareness.

### What it does

- Converts DOCX to Markdown while preserving heading hierarchies, lists, and tracked changes using mammoth and python-docx.
- Extracts PPTX content slide-by-slide, capturing both visual text and speaker notes while saving embedded images.
- Implements table-aware XLSX chunking with pandas and openpyxl, ensuring headers are repeated across chunks for data integrity.
- Automates structured exports from Notion, Confluence, and Quip into clean Markdown for vector ingestion.
- Identifies and extracts embedded images, cell comments, and document revisions as distinct metadata layers.

### Frameworks & tools

Python, python-docx, python-pptx, openpyxl, pandas, mammoth, notion-client, atlassian-python-api, and markdownify.

### Why this beats prompting it yourself

Extracting nested data like DOCX comments or XLSX formulas requires specific library knowledge and boilerplate that generic LLM prompts often hallucinate. This skill provides production-ready logic for handling large files in read-only modes and maintaining metadata paths that improve RAG retrieval accuracy.

### Use cases

- Building a RAG pipeline for internal corporate knowledge bases.
- Automating technical documentation migration from Confluence to GitHub.
- Extracting structured data from complex financial spreadsheets for analysis.
- Syncing Notion workspace content into a vector database.

### Known limitations

Requires specific Python libraries to be installed. Does not handle PDF files; use specialized extraction tools for those.

## 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 office docs 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

### How does 'office docs' improve RAG performance compared to standard text loaders?

This skill converts Office files (DOCX, PPTX, XLSX) and cloud docs (Notion, Confluence) into structured Markdown, specifically preserving hierarchies like headings, table headers, and slide notes that generic loaders often lose.

### Does this skill handle large spreadsheets that exceed an LLM's context window?

Yes, the XLSX module uses table-aware chunking that repeats headers across data segments, ensuring the LLM maintains context for every row even in massive spreadsheets.

### What exactly is included in the purchase of this skill?

You will receive the complete Python source code for the extraction logic, a detailed integration guide, and a list of the required open-source libraries (like openpyxl and mammoth) needed to run it.

### Can this skill extract content from PDF files as well?

While it handles complex formatting and embedded images in Office files, it does not support PDF extraction; we recommend using a specialized PDF tool for those specific file types.

### What are the technical requirements for setting up this skill?

The skill is designed to be plug-and-play; once you install the standard Python dependencies listed in the documentation, you can immediately begin ingesting files into your pipeline.

---

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.
