file-parser

Parse PDFs, text, and JSON files via the file-parser CLI.

2|Updated Mar 16, 2026
One-click install
npx skills add https://github.com/hamzaPixl/pixl-ai --skill file-parser
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: file-parser
Source: https://github.com/hamzaPixl/pixl-ai/tree/main/packages/crew/skills/file-parser
Command: npx skills add https://github.com/hamzaPixl/pixl-ai --skill file-parser

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a wrapper around the file-parser CLI to extract and process content from PDFs, text, and JSON files, enabling agents to read and analyze documents without manual parsing. It automatically detects file types based on extension and routes them to the appropriate parser, with PDF page selection and OCR options available.

Core Features & Use Cases

  • Auto-detects file type from extension and routes to the correct parser.
  • Supports PDF page ranges and optional OCR for scanned documents.
  • Enables agents to read, extract, and transform document content for downstream tasks.

Quick Start

Install the file-parser CLI and use the wrapper on a target file to begin extraction.

Frequently Asked Questions about file-parser

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract text from a scanned PDF using OCR?

To extract text from a scanned PDF using OCR, this Skill routes the file to an OCR-enabled parser based on its file extension. It requires the file-parser CLI to be installed and supports configurable OCR modes for scanned documents.

How do I parse specific pages from a PDF document?

To parse specific pages from a PDF document, the extraction wrapper supports defining PDF page ranges. You pass the desired page range parameters to the CLI wrapper to isolate and extract the target content.

Can I automatically detect and parse JSON and text files without specifying the format?

Yes, you can automatically extract content from JSON, text, and PDF files without manually specifying the format. The wrapper auto-detects the file type from its extension and routes it to the correct parser.

Do I need to install any dependencies to parse files with an agent?

Yes, you need to install the file-parser CLI as a prerequisite to parse files with an agent. The Skill functions as a wrapper around this CLI, enabling agents to consume and transform the extracted document data.

What is the best way to automate invoice text extraction for downstream tasks?

The best way to automate invoice text extraction is using a CLI wrapper that detects the file type and applies OCR if needed. This enables agents to read and transform the extracted invoice content for downstream processing.

Are there limitations when parsing PDF files with OCR for agent consumption?

Limitations when parsing PDF files with OCR include the prerequisite of having the file-parser CLI installed and properly configured. Extraction quality depends on the document's scan clarity and the selected OCR modes.