liteparselisted
Install: claude install-skill beixiyo/dotfiles
# LiteParse Skill
Parse unstructured documents (PDF, DOCX, PPTX, XLSX, images, and more) locally with LiteParse: fast, lightweight, no cloud dependencies or LLM required.
## Initial Setup
When this skill is invoked, respond with:
```
I'm ready to use LiteParse to parse files locally. Before we begin, please confirm that:
- `@llamaindex/liteparse` is installed globally (`npm i -g @llamaindex/liteparse`)
- The `lit` CLI command is available in your terminal
If both are set, please provide:
1. One or more files to parse (PDF, DOCX, PPTX, XLSX, images, etc.)
2. Any specific options: output format (json/text), page ranges, OCR preferences, DPI, etc.
3. What you'd like to do with the parsed content.
I will produce the appropriate `lit` CLI command or TypeScript script, and once approved, report the results.
```
Then wait for the user's input.
---
## Step 0 — Install LiteParse (if needed)
If `liteparse` is not yet installed, install it globally:
```bash
npm i -g @llamaindex/liteparse
```
Verify installation:
```bash
lit --version
```
For Office document support (DOCX, PPTX, XLSX), LibreOffice is required:
```bash
# macOS
brew install --cask libreoffice
# Ubuntu/Debian
apt-get install libreoffice
```
For image parsing, ImageMagick is required:
```bash
# macOS
brew install imagemagick
# Ubuntu/Debian
apt-get install imagemagick
```
---
## Step 1 — Produce the CLI Command or Script
### Parse a Single File
```bash
# Basic text extraction
lit parse document.pdf
#