Skip to content
Skills Library
Documents & office · Conversion & formats

file-parser

/file-parser

Parse PDF and TXT files with streaming chunking and BM25 retrieval. Extracts text page-by-page (PDF) or line-by-line (TXT), never loading full document into memory. Use when working with PDF documents, text files, or when the user mentions PDF, TXT, reading files, document parsing, text extraction.

Author
hfyjq ↗
Repository
Crannia ↗
Licence
Apache-2.0
Last repository change
14.11.2026

Assessment and security

85/ 100Class: good
Format20 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
5
Scripts
2
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 14.11.2026, without references to retired models or APIs.

Licence

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

What to check before installing
  • 2 scripts in this package. Review them before installing, as Claude may execute them.

Scripts: __init__.py, handler.py

What it does and when to use it

Parse PDF and TXT files with streaming chunking and BM25 retrieval. Extracts text page-by-page (PDF) or line-by-line (TXT), never loading full document into memory. Use when working with PDF documents, text files, or when the user mentions PDF, TXT, reading files, document parsing, text extraction.

Original author description

Parse PDF and TXT files with streaming chunking and BM25 retrieval. Extracts text page-by-page (PDF) or line-by-line (TXT), never loading full document into memory. Use when working with PDF documents, text files, or when the user mentions PDF, TXT, reading files, document parsing, text extraction.

How it works

  1. When to use
  2. Tools
  3. Notes
Original SKILL.md headings · 50 lines, 297 words
SKILL.md preview
---
name: file-parser
description: Parse PDF and TXT files with streaming chunking and BM25 retrieval. Extracts text page-by-page (PDF) or line-by-line (TXT), never loading full document into memory. Use when working with PDF documents, text files, or when the user mentions PDF, TXT, reading files, document parsing, text extraction.
metadata:
  kind: skill
  loader: manifest.yaml
  tools: parse_pdf, parse_txt, search_chunks, summarize_document, pdf_info, merge_pdfs, split_pdf, extract_pages
  mcp_note: >
    Directory name is file_parser (underscore) for Python import compatibility.
    SKILL.md name uses file-parser (hyphen) per agentskills.io standard.
    A thin adapter layer (see MCP_ADAPTATION.md) will map these when
    publishing to the MCP ecosystem.
---

# File Parser Skill

## When to use
Use this skill when the user needs to read, search, or summarize PDF or TXT documents.
Supports Chinese and English content.

## Tools

### parse_pdf
Stream-parse a PDF file using PyMuPDF (fitz). Each page's text is extracted individually and
chunked into pieces of ≤1500 characters with page/position metadata. The full document text
is NEVER accumulated in memory.

### parse_txt
Stream-parse a TXT file. Lines are read one at a time (never `read()`), accumulated into
pseudo-pages (100 lines each), and chunked. Supports configurable encoding (default UTF-8).

### search_chunks
Search currently-loaded document chunks using BM25 keyword relevance with jieba Chinese
tokenization. Returns top-3 most relevant chunks. Accepts optional `file_path` to auto-parse
before searching.

### summarize_document
Generate a full-document summary via iterative chunk aggregation. Chunks are batch-summarized
in Round 1, then merged in groups of 3 recursively until one final summary remains.
Accepts optional `file_path` to auto-parse before summarizing.

### pdf_info
Extract PDF metadata and structure without parsing text content. Returns page count,
file size, title, author, creation date, encryption status, and table of contents
(bookmarks/outline). Use to decide whether a PDF needs parsing.

### merge_pdfs
Merge multiple PDF files into one. Files are combined in the order provided.
All inputs must be valid, accessible PDFs. Output saved to `workspace/`.

### split_pdf
Split a PDF into multiple files, each containing N pages (default: 1 page per file).
Output files named `{name}_part{n}.pdf`.

### extract_pages
Extract specific pages (1-indexed) from a PDF into a new file. Duplicate page
numbers allowed — each occurrence copies that page.

## Notes
- File path resolution: bare filenames are auto-resolved under `workspace/`
- All paths validated by SecurityGuard before any file is opened
- Chunked content is NEVER directly exposed to the LLM context — only via retrieval
Files in this package (5)
  • GUIDANCE.md 1 KB
  • SKILL.md 3 KB
  • __init__.py 1 KB
  • handler.py 111 KB
  • manifest.yaml 25 KB

Versions

The database has no other skills named file-parser.

Database snapshot: 13.11.2026 · package version a7eded7e1e9c (SHA-256 digest of the entire package)

Downloads in the last 30 days: 3 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100pdf-processing
    Extracts text and tables from PDF files, fills PDF forms, and merges multiple PDFs. Use when working with PDF documents or when the user mentions PDFs, forms, or document extraction.
  • 100pdf
    Process PDF files - extract text, create PDFs, merge documents. Use when user asks to read PDF, create PDF, or work with PDF files.
  • 95pdf-processing
    Extract text and tables from PDF files, fill forms, merge documents. Use when working with PDF files or when the user mentions PDFs, forms, or document extraction.
  • 100pdf-parser
    Configure and manage - Parse pdf parser operations. Auto-activating skill for Business Automation. Triggers on: pdf parser, pdf parser Part of the Business Automation skill category. Use when working with pdf parser functionality. Trigger with phrases like "pdf parser", "pdf parser", "pdf".
  • 100pdf-extractor
    This skill should be used when the user asks to "extract text from PDF", "convert PDF to text", "parse PDF", "read PDF contents", "extract data from documents", "batch PDF extraction", "PDF to markdown", "OCR PDF", "get text from PDF files", "I have a PDF", "can you read this…
  • 85office-parser
    Parse Microsoft Office documents — Word (.docx), PowerPoint (.pptx), and Excel (.xlsx) — with streaming extraction and chunking. Use when working with Office documents, spreadsheets, presentations, or when the user mentions docx, pptx, xlsx, Word, Excel, PowerPoint, Office files.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.