paperless-ngx
Skill81 starsChanged 8 months agoMITView on GitHub
Manage documents in Paperless-ngx document management system. Use when the user asks to "upload document", "search paperless", "find document", "add to paperless", "tag document", "manage correspondents", "organize documents", "archive document", "export document", "delete document", or mentions Paperless-ngx, document management, OCR, or paperless office.
- Reads credentials
1 other project uses a version of this.
Adopted by
Most recently taken up by
- ColCh/paperless-ngx-skilltheir own version, first seen Jun 17, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- ColCh/paperless-ngx-skill★ 9same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository22 other files it gives its agents.
- AGENTS.mdAGENTS.md
- skills/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- docs/CLAUDE.mdCLAUDE.md
- skills/CLAUDE.mdCLAUDE.md
- bytestashSkill
- gh-address-commentsSkill
- homelab-healthSkill
- homelab-setupSkill
- linkdingSkill
- memosSkill
- notebooklmSkill
- plexSkill
- prowlarrSkill
- qbittorrentSkill
- radarrSkill
- radicaleSkill
- sabnzbdSkill
- sonarrSkill
- tailscaleSkill
- tautulliSkill
- zfsSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
27 rules. About 0 are common, 15 are distinctive, and 12 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈15
Distinctive · estimate
This author's own choices. Worth a look.
12
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 31
Search documents by content, tags, correspondent, or date
- Distinctive: line 33
Update document metadata (title, tags, correspondent, dates)
- Distinctive: line 35
Delete documents (with confirmation)
- Very specific: line 49
Add these variables to ~/.claude-homelab/.env:
- Very specific: line 62
Add to .env file as shown above
- Very specific: line 71
All commands return JSON output for LLM parsing.
- Distinctive: line 204
When the user asks about Paperless-ngx:
- Very specific: line 208
Use upload command with appropriate metadata
- Very specific: line 213
Use search "tax" --tags "2024" or similar query
- Very specific: line 218
Search for documents: search "invoice" --correspondent "Acme Corp"
- Distinctive: line 219
Create or find "paid" tag
- Distinctive: line 220
Use bulk operation to add tag to results
- Very specific: line 223
Use list with filter parameter
- Distinctive: line 229
Ask for explicit confirmation
- Distinctive: line 280
Rate limits: No documented limits (self-hosted)
- Distinctive: line 293
Search supports multiple query types:
- Distinctive: line 306
All three provide different organizational axes for your documents.
- Distinctive: line 310
Delete operations require confirmation:
- Distinctive: line 315
Always confirm with user before executing delete operations.
- Distinctive: line 319
Tag consistently: Use lowercase, hyphens for multi-word (e.g., "project-alpha")
- Distinctive: line 323
Search before upload: Avoid duplicates
- Very specific: line 328
Check API token in .env
- Very specific: line 333
Verify document/tag/correspondent ID exists
- Very specific: line 334
Check PAPERLESS_URL is correct
- Distinctive: line 339
Check script output for specific error message
- Very specific: line 343
Verify URL in .env
- Very specific: line 357
CRITICAL: When invoking scripts from this skill via the zsh-tool, ALWAYS use pty: true.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Paperless-ngx Skill
⚠️ MANDATORY SKILL INVOCATION ⚠️
YOU MUST invoke this skill (NOT optional) when the user mentions ANY of these triggers:
- "upload document", "add document to paperless", "scan to paperless"
- "search paperless", "find document", "search documents"
- "tag document", "add tags", "manage tags in paperless"
- "manage correspondents", "add correspondent", "list correspondents"
- "update document", "edit document metadata", "change document type"
- "archive document", "export document", "download document"
- "delete document", "remove document from paperless"
- "list my documents", "show recent documents", "what documents do I have"
- Any mention of Paperless-ngx, document management, OCR, or paperless office
Failure to invoke this skill when triggers occur violates your operational requirements.
Purpose
This skill provides read-write access to a self-hosted Paperless-ngx instance for document management with OCR. Paperless-ngx transforms physical documents into a searchable online archive with full-text search, tagging, and metadata management.
Core capabilities:
- Upload documents with auto-OCR and metadata extraction
- Search documents by content, tags, correspondent, or date
- Manage tags, correspondents, and document types
- Update document metadata (title, tags, correspondent, dates)
- Archive and export operations
- Delete documents (with confirmation)
- Bulk operations on multiple documents
Primary use case: Maintain a searchable digital archive of all documents with powerful organization and retrieval capabilities.
Setup
Prerequisites
- Paperless-ngx instance running and accessible
- API token generated from Paperless-ngx UI
curlandjqinstalled
Credential Configuration
Add these variables to ~/.claude-homelab/.env:
# Paperless-ngx - Document management system
PAPERLESS_URL="https://paperless.example.com"
PAPERLESS_API_TOKEN="<your_api_token>"To generate an API token:
- Log into your Paperless-ngx instance
- Go to Settings → My Profile
- Click "Create Token" under "API Tokens"
- Copy the generated token
- Add to
.envfile as shown above
Security:
.envfile is gitignored (never commit)- Set permissions:
chmod 600 ~/.claude-homelab/.env - Token has same permissions as your user account
Commands
All commands return JSON output for LLM parsing. Scripts source credentials from .env automatically.
Document Operations
Upload a document:
bash scripts/paperless-api.sh upload /path/to/document.pdf
bash scripts/paperless-api.sh upload scan.jpg --title "Receipt" --tags "expense,2024"
bash scripts/paperless-api.sh upload contract.pdf --correspondent "Acme Corp" --document-type "Contract"Search documents:
bash scripts/paperless-api.sh search "invoice"
bash scripts/paperless-api.sh search "meeting notes" --limit 10
bash scripts/paperless-api.sh search "2024" --tags "tax"
bash scripts/paperless-api.sh search --correspondent "John Doe"List documents:
bash scripts/paperless-api.sh list
bash scripts/paperless-api.sh list --limit 20
bash scripts/paperless-api.sh list --ordering "-created"Get document details:
bash scripts/paperless-api.sh get <document-id>Download/export document:
bash scripts/paperless-api.sh download <document-id>
bash scripts/paperless-api.sh download <document-id> --output /path/to/save.pdfUpdate document:
bash scripts/paperless-api.sh update <document-id> --title "New Title"
bash scripts/paperless-api.sh update <document-id> --add-tags "urgent,reviewed"
bash scripts/paperless-api.sh update <document-id> --correspondent "Jane Smith"
bash scripts/paperless-api.sh update <document-id> --document-type "Invoice"
bash scripts/paperless-api.sh update <document-id> --archive-serial-number "2024-001"Delete document:
bash scripts/paperless-api.sh delete <document-id> # Prompts for confirmationTag Management
List tags:
bash scripts/tag-api.sh list
bash scripts/tag-api.sh list --ordering "name"Create tag:
bash scripts/tag-api.sh create "project-alpha"
bash scripts/tag-api.sh create "urgent" --color "#ff0000"Get tag details:
bash scripts/tag-api.sh get <tag-id>Update tag:
bash scripts/tag-api.sh update <tag-id> --name "new-name"
bash scripts/tag-api.sh update <tag-id> --color "#00ff00"Delete tag:
bash scripts/tag-api.sh delete <tag-id> # Prompts for confirmationCorrespondent Management
List correspondents:
bash scripts/correspondent-api.sh listCreate correspondent:
bash scripts/correspondent-api.sh create "Acme Corporation"Get correspondent details:
bash scripts/correspondent-api.sh get <correspondent-id>Update correspondent:
bash scripts/correspondent-api.sh update <correspondent-id> --name "New Name"Delete correspondent:
bash scripts/correspondent-api.sh delete <correspondent-id> # Prompts for confirmationBulk Operations
Bulk tag documents:
bash scripts/bulk-api.sh add-tag <tag-id> --documents "1,2,3"
bash scripts/bulk-api.sh remove-tag <tag-id> --documents "1,2,3"Bulk set correspondent:
bash scripts/bulk-api.sh set-correspondent <correspondent-id> --documents "1,2,3"Bulk set document type:
bash scripts/bulk-api.sh set-document-type <type-id> --documents "1,2,3"Bulk delete documents:
bash scripts/bulk-api.sh delete --documents "1,2,3" # Prompts for confirmationWorkflow
When the user asks about Paperless-ngx:
- "Upload this document to Paperless"
- Save file locally if needed
- Use
uploadcommand with appropriate metadata - Optionally add tags, correspondent, document type
- Paperless will auto-OCR and extract text
- "Find my 2024 tax documents"
- Use
search "tax" --tags "2024"or similar query - Present results with ID, title, date, tags
- User can request full details with
get <id>
- Use
- "Tag all invoices from Acme Corp as paid"
- Search for documents:
search "invoice" --correspondent "Acme Corp" - Create or find "paid" tag
- Use bulk operation to add tag to results
- Search for documents:
- "Show me documents without tags"
- Use
listwith filter parameter - Present untagged documents
- Suggest tagging workflow
- Use
- "Delete this old document"
- Confirm document ID with user
- Ask for explicit confirmation
- Use
delete <id>command
- "Add a new supplier as correspondent"
- Use
correspondent-api.sh create "Supplier Name" - Return correspondent ID for future document uploads
- Use
Detailed Flow: Document Upload
User: "Upload this receipt to Paperless and tag it as expense"
1. Verify file path exists and is readable
2. Upload document with metadata:
bash scripts/paperless-api.sh upload /path/to/receipt.pdf --tags "expense"
3. Paperless processes document (OCR, thumbnail generation)
4. Return document ID and success confirmation
5. Optionally ask if user wants to set correspondent or document typeDetailed Flow: Search and Organize
User: "Find all documents from last month that need review"
1. Calculate date range (last month)
2. Search documents by date range
3. Filter results by tag or keyword "review"
4. Present results with metadata
5. Offer to bulk-tag results or export listDetailed Flow: Bulk Tagging
User: "Tag all invoices from Q1 as archived"
1. Search for invoices in Q1 date range
2. Extract document IDs from results
3. Find or create "archived" tag
4. Use bulk operation to add tag to all documents
5. Report number of documents taggedNotes
API Details
- Authentication: Token authentication via
Authorization: Token <token>header - Base URL:
/api/endpoint - API Version: Version 5 (specify via Accept header)
- Rate limits: No documented limits (self-hosted)
- Pagination: Uses
pageandpage_sizeparameters
Document Processing
Paperless-ngx automatically processes uploaded documents:
- OCR extraction (if not already text-based PDF)
- Thumbnail generation
- Metadata extraction (date, correspondent guessing)
- Full-text indexing for search
Search Syntax
Search supports multiple query types:
- Full-text:
search "meeting notes" - Tag filter:
search --tags "work,urgent" - Correspondent:
search --correspondent "John Doe" - Date range:
search --created-after "2024-01-01" - Document type:
search --document-type "Invoice"
Tags vs Correspondents
- Tags: General-purpose labels (e.g., "urgent", "personal", "2024")
- Correspondents: People or organizations (e.g., "Acme Corp", "John Smith")
- Document Types: Categories of documents (e.g., "Invoice", "Contract", "Receipt")
All three provide different organizational axes for your documents.
Destructive Operations
Delete operations require confirmation:
- Delete document: Permanently removes document and files
- Delete tag: Removes tag from all documents (documents remain)
- Delete correspondent: Removes from all documents (documents remain)
Always confirm with user before executing delete operations.
Best Practices
- Tag consistently: Use lowercase, hyphens for multi-word (e.g., "project-alpha")
- Set correspondents: Makes searching by sender/recipient easier
- Use document types: Categories help with organization and workflows
- Archive serial numbers: Track original paper document storage
- Search before upload: Avoid duplicates
Common Errors
401 Unauthorized:
- Check API token in
.env - Token may have expired (regenerate in Paperless UI)
- Verify user permissions
404 Not Found:
- Verify document/tag/correspondent ID exists
- Check PAPERLESS_URL is correct
400 Bad Request:
- Invalid metadata (e.g., non-existent tag ID)
- Malformed file upload
- Check script output for specific error message
Connection refused:
- Paperless-ngx instance not running
- Verify URL in
.env
Reference
- Official Docs: https://docs.paperless-ngx.com/
- API Reference: See
references/api-endpoints.mdfor complete API documentation - Quick Reference: See
references/quick-reference.mdfor command examples - Troubleshooting: See
references/troubleshooting.mdfor common issues - Scripts:
skills/paperless-ngx/scripts/
🔧 Agent Tool Usage Requirements
CRITICAL: When invoking scripts from this skill via the zsh-tool, ALWAYS use pty: true.
Without PTY mode, command output will not be visible even though commands execute successfully.
Correct invocation pattern:
<invoke name="mcp__plugin_zsh-tool_zsh-tool__zsh">
<parameter name="command">./skills/paperless-ngx/scripts/paperless-api.sh [args]</parameter>
<parameter name="pty">true</parameter>
</invoke>Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

