/paperless-ngx:paperless-ngx-clean-up-inboxfrom paperless-ngx
Review the Paperless-ngx inbox (or any selection of documents) one document at a time and fix what automatic import got wrong: useless titles (email subjects, scanner file names), wrong or import-day dates, wrong correspondents, document types and tags. Marks every reviewed document, removes duplicates on request, and ends with a report of follow-ups (open payment reminders, possible business receipts, documents that need a human). Use when the user asks to clean up, sort, review, tidy or process their Paperless-ngx inbox, or says many documents have wrong dates, correspondents, tags or types.
Ships in paperless-ngx. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Imports (mail rules, scanners, consume folder) often leave documents with the email subject or BRWxxxx_000905 as title, the import day as date, and correspondents, types and tags guessed by Paperless-ngx's automatic matching from too little training data. This skill fixes them carefully, because every correction also trains the matching.
If more than one Paperless-ngx instance is connected, resolve which one first, see Working with multiple instances. Read the shared rules there too.
documents_list is_in_inbox=true page_size=1 → count (or the user's own filter).fields=["id","title","created","correspondent","document_type","tags"], page_size=100, ordering=-added, all pages. Patterns to look for: many documents dated the import day, scanner titles, a mail-import tag on most of them, the same subject several times.tags_list, correspondents_list, document_types_list (all pages, page_size large). Note tag parents and which auto-assigned values look wrong (the same correspondent or type on unrelated documents is the typical sign).documents_list has_duplicates=true (byte-identical copies). Repeated mail-rule runs often import the same attachments several times. If there are many, run paperless-ngx-find-duplicates first so you don't clean up copies.Ask the user, with sensible defaults, before writing anything:
claude-reviewed (matching_algorithm: 0, so auto-matching never assigns it) and add it to every reviewed document, leaving the inbox tag for the user to clear. Alternative: remove the inbox tag when done.Don't ask whether to turn off automatic matching. It learns from the corrected data, which is the point.
Fetch the batch with content: documents_list id__in=[…] and fields=["id","title","created","correspondent","document_type","tags","original_file_name","custom_fields","content"]. If the result is saved to a file because it's too large (Claude Code does this), read it with jq, about 1000 characters per document; otherwise fetch 3 to 5 documents per call instead:
jq -r '.results[] | "=== \(.id) | \(.title) | \(.original_file_name) | created=\(.created) corr=\(.correspondent) type=\(.document_type) tags=\(.tags) rel=\(.custom_fields|map(.value)|tostring)\n\(.content[0:1000]|gsub("\n+";" ¶ "))"' FILE
Custom fields that link documents (mail-rule setups often link all attachments of one email) give context for a document that is unclear on its own.
Decide per document, following paperless-ngx-edit-document-metadata for title, date, correspondent, type and tags. Then:
search_threads) is available, search for the email by distinctive subject words, order or invoice numbers, has:attachment, metadata-only view, and use the email's date. One search with OR can cover several documents.passwortgeschützt / password-protected), fill in what the title and filename tell you, and offer paperless-ngx-unlock-pdfs at the end. The email that delivered it often says where the password comes from.Write: documents_partial_update for title and date (plus correspondent, type and the full tag list with the review tag), bulk_edit for clearing fields and for changes shared by many documents. Remember the traps in paperless-ngx-edit-document-metadata, above all that null doesn't clear a field in documents_partial_update.
Create correspondents and types only for real senders and kinds of documents, after checking for spelling variants, with matching_algorithm: 6.
After each batch, tell the user in one or two lines what was done and what's next.
While reading, note:
Only where you can start subagents (for example in Claude Code); otherwise skip this step and keep working in batches. For a few hundred documents, split the remaining IDs into 3 to 4 chunks and start one general-purpose subagent per chunk in a single message, so they run in parallel. Before that:
When the agents report back:
tags__id__none=<review tag> with the same filter).correspondents_list ordering=name for doubles created in parallel, and merge them with paperless-ngx-tidy-metadata.Keep it short:
paperless-ngx-find-duplicates).What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub marceltov/paperless-ngx-plugin --plugin paperless-ngx7 skills in this plugin
/paperless-ngx-edit-document-metadataChange the title, date, correspondent, document type, storage path, tags or custom fields of one or many Paperless-ngx documents with documents_partial_update and bulk_edit, avoiding the API's traps (null not clearing fields, tag lists being replaced, parent tags added automatically). Use when the user asks to rename, re-date, re-tag, recategorize or otherwise correct documents, or when another skill needs to write metadata./paperless-ngx-find-duplicatesFind duplicate documents in Paperless-ngx (byte-identical copies flagged by has_duplicates, and same-content copies such as a scan and a PDF of the same invoice), pick which copy to keep, and move the others to the trash after the user confirms. Use when the user asks to find or remove duplicates, when an import ran twice, or when clean-up-inbox finds many copies./paperless-ngx-manage-instancesConfigure connections to one or more Paperless-ngx MCP server deployments: add a new instance (URL plus API token or OAuth login, optionally labeled), list which are configured and connected, or remove one. Every instance is registered as a user-scoped MCP server via `claude mcp add` (no settings.json editing, no bundled .mcp.json). Use when the paperless MCP server is unconfigured, disconnected or missing credentials (including when a SessionStart hook flags this), when the user asks to set up, configure or connect the Paperless-ngx plugin, or when they want to add, remove or list additional Paperless-ngx instances./paperless-ngx-search-documentsFind Paperless-ngx documents by full text, title, correspondent, type, tag, date, custom field or ID while keeping results small, using documents_list and search_retrieve. Use when the user asks to find, list, count or look up documents ("where is my rental contract", "how many invoices from 2025", "show everything tagged insurance")./paperless-ngx-tidy-metadataClean up Paperless-ngx correspondents, document types and tags: merge doubles (spelling variants, the same sender created twice), remove unused entries, fix tag hierarchies, and adjust matching rules. Use when the user asks to merge or deduplicate correspondents, types or tags, remove unused ones, or after a bulk cleanup created entries in parallel./paperless-ngx-unlock-pdfsRemove the password from encrypted PDFs in Paperless-ngx with documents_remove_password so Paperless-ngx can extract their text, then fix their metadata. Use when documents have empty content because they are password protected (bank statements, health insurance and government mail often are), or when the user asks to unlock, decrypt or remove passwords from documents.