# Document intake routing

> Document intake routing is an open-source agent skill for files and documents. Sorts each page of a multi-document intake packet by type before extraction. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/mrmps/classifier-dev/tree/main/skills/document-intake-routing
- **Repository:** https://github.com/mrmps/classifier-dev
- **GitHub stars:** 440
- **License:** MIT
- **Skill name:** document-intake-routing
- **Collection:** https://github.com/mrmps/classifier-dev
- **Categories:** [files and documents](https://ai-powered.com/categories/files-and-documents)
- **Listing updated:** 2026-12-04

## About

This skill guides an agent through splitting a long intake PDF, such as a mailroom bundle, loan file or claim packet, into pages and labelling each one with a document type and a page role. Pages are extracted as text, redacted for common sensitive patterns like SSNs, card numbers, emails and credentials, and sent to a hosted classifier over HTTP. Two passes run over the same pages, one for document type and one for page role, so each label is scored on its own.

The workflow ends in a confidence gate. Pages scoring 0.9 or higher go to the extractor for their type, pages in the middle band are extracted but queued for review or re-run on a stronger model, and low-confidence pages are sent to a person. The skill also explains when not to use the hosted service, such as confidential packets, and suggests substituting a local model that returns calibrated scores.

The skill expects a PDF with a text layer, Python with pdfplumber or pdftotext, and network access to the classifier endpoint. Image-only scans need OCR first.

## When your agent uses it

> Label each page of an intake packet with a document type and a page role before extraction runs, so only confident pages reach an extractor and the rest reach a person. Use when a mailroom, loan file, claim packet or vendor upload arrives as one long PDF. Triggers on "route these scanned forms", "which form type is each page", "split this intake packet", "sort these scans by form type".

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/mrmps/classifier-dev/tree/HEAD/skills/document-intake-routing)
- [License: MIT](https://github.com/mrmps/classifier-dev/tree/HEAD/skills/document-intake-routing)

## Features

- **Per-page text extraction:** Reads each PDF page's text and drops blank pages before classification.
- **Sensitive data redaction:** Replaces credentials, emails, card numbers, SSNs and long numeric runs before any text leaves the machine.
- **Two-pass labelling:** Classifies document type and page role in separate requests to keep label probabilities clean.
- **Confidence-based routing:** Sends high-confidence pages to extraction and uncertain pages to human review.
- **Local model alternative:** Describes how to replace the hosted classifier with a self-run model when data cannot leave the network.

## Good for

- Split a scanned loan file into its individual forms
- Identify which form type each page of a claim packet is
- Sort a vendor upload of mixed invoices and statements
- Flag pages that need a person to review before extraction

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/document-intake-routing` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mrmps/classifier-dev.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/document-intake-routing &&
cp -R "$tmp/skills/document-intake-routing" ~/.claude/skills/document-intake-routing &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/document-intake-routing` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/document-intake-routing` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mrmps/classifier-dev.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/document-intake-routing &&
cp -R "$tmp/skills/document-intake-routing" ~/.agents/skills/document-intake-routing &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/document-intake-routing` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/document-intake-routing` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mrmps/classifier-dev.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/document-intake-routing &&
cp -R "$tmp/skills/document-intake-routing" ~/.cursor/skills/document-intake-routing &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/document-intake-routing` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/mrmps/classifier-dev.git --path skills/document-intake-routing
```

Or copy the folder to `~/.gemini/skills/document-intake-routing` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/document-intake-routing`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/mrmps/classifier-dev.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/document-intake-routing &&
cp -R "$tmp/skills/document-intake-routing" ~/.copilot/skills/document-intake-routing &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/document-intake-routing` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/mrmps/classifier-dev.git
```

Then copy `classifier-dev/skills/document-intake-routing` into your agent's skills folder as `document-intake-routing`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need to run?

A PDF with a text layer, Python with pdfplumber or pdftotext, and network access to the classifier.dev endpoint. Image-only scans must be OCR'd first.

### Does Document intake routing send my documents to a third party?

Only redacted page text is sent to classifier.dev, which the skill notes is still a third-party service. For confidential packets it recommends a local model instead.

### Does Document intake routing extract fields from the forms?

No. It only classifies pages by type and role; extraction is a separate step that runs afterward.

### How do I install Document intake routing in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/document-intake-routing to use it in all your projects, or to .claude/skills/document-intake-routing in one project.

### Does Document intake routing run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Document intake routing?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Document intake routing?

The closest alternatives to Document intake routing are Downloads and inbox sorter, Baidu document parser, Qianfanocr document intelligence, Convert PDF to md and Headline filter map reduce.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Downloads and inbox sorter](https://ai-powered.com/skills/downloads-and-inbox-sorter): Downloads and inbox sorter is an open-source agent skill for files and documents.
- [Baidu document parser](https://ai-powered.com/skills/baidu-document-parser): Baidu document parser is an open-source agent skill for files and documents.
- [Qianfanocr document intelligence](https://ai-powered.com/skills/qianfanocr-document-intelligence): Qianfanocr document intelligence is an open-source agent skill for files and documents.
- [Convert PDF to md](https://ai-powered.com/skills/convert-pdf-to-md): Convert PDF to md is an open-source agent skill for files and documents.
- [Headline filter map reduce](https://ai-powered.com/skills/headline-filter-map-reduce): Headline filter map reduce is an open-source agent skill for files and documents.
- [Azure AI document intelligence ts](https://ai-powered.com/skills/azure-ai-document-intelligence-ts): Azure AI document intelligence ts is an open-source agent skill for cloud and infrastructure.
- [Azure AI document intelligence dotnet](https://ai-powered.com/skills/azure-ai-document-intelligence-dotnet): Azure AI document intelligence dotnet is an open-source agent skill for files and documents.
- [PDF](https://ai-powered.com/skills/pdf-openai): PDF is a free agent skill for files and documents.

---
Source: https://ai-powered.com/skills/document-intake-routing
