abilityai/trinity-skills/document-extractor
Claude Code and agent skill by abilityai/trinity-skills
- community
Checking that the SKILL.md file is still in the repository.
Extracts key information from documents (PDFs, images, text files) in a folder and creates structured markdown summaries with the same filename but .md extension. Use when you need to analyze and extract insights from multiple documents in a directory.
Install
npx vskill@latest install abilityai/trinity-skills/document-extractorSKILL.md
Document Extractor
Analyze documents in a specified folder and create structured markdown extracts that capture the most important information from each document.
Workflow
1. Initial Setup
- Get current date/time:
date '+%Y-%m-%d %H:%M:%S %Z' - List all files in the specified folder
- Create output directory:
Files/[folder_name]/in the workspace
2. Document Processing
For each document:
- Read using the Read tool
- Collect metadata (file hash, modification date, extraction timestamp)
- Identify document type and extract key information
- Write to
Files/[folder_name]/[original_name].md
3. Information Categories
Legal/Official Documents: Document type/number, dates, issuing authority, key terms, obligations, deadlines
Financial Documents: Account numbers (masked), transactions, amounts, payment dates, tax info
Insurance Documents: Policy numbers, coverage types/limits, premiums, deductibles, exclusions
Contracts/Agreements: Party names, duration, obligations, payment terms, termination clauses
Personal Documents: Document numbers (masked), validity periods, restrictions
4. Output Template
5. Security
- Mask sensitive info (show last 4 digits only)
- Note when information has been redacted
- Flag potential security concerns
6. Summary Report
After processing all documents, create Files/[folder_name]/summary.md with:
- Total documents processed
- Document categories found
- Key findings
- Items requiring attention
Useful Commands
Error Handling
| Error | Cause | Solution | |
|---|---|---|---|
| File unreadable | Corrupted or encrypted file | Skip file, note in summary, try alternative viewer | |
| PDF extraction fails | Scanned image PDF | Use OCR or note as "image-based PDF" | |
| Output folder not writable | Permission issue | Check permissions on Files/ directory | |
| Sensitive data detected | PII or credentials visible | Mask appropriately, flag for review | |
| Duplicate files | Same content, different names | Note duplicates in summary, extract once | |
| Unknown file type | Unsupported format | Skip with note, or convert to supported format first |
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/document-extractor/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/abilityai/trinity-skills/document-extractor)