A fast, helpful, and open-source document parser
docs: make the agent skill guide canonical and link it from the index
Logan Markewich29177bdaf9ad
diff --git a/README.md b/README.mdindex 1016500..4f53e23 100644--- a/README.md+++ b/README.md@@ -137,6 +137,8 @@ npx skills add run-llama/llamaparse-agent-skills --skill liteparseOr copy-pasting the [`SKILL.md`](https://github.com/run-llama/llamaparse-agent-skills/blob/main/skills/liteparse/SKILL.md) file to your own skills setup.+See the [Agent Skill guide](https://developers.llamaindex.ai/liteparse/guides/agent-skill/?utm_source=github&utm_medium=liteparse) for requirements and usage patterns.+## CLI UsageThe CLI is the same across all installations (`npm`, `pip`, `cargo install`).diff --git a/docs/src/content/docs/liteparse/guides/agent-skill.md b/docs/src/content/docs/liteparse/guides/agent-skill.mdindex 7a79909..59b8655 100644--- a/docs/src/content/docs/liteparse/guides/agent-skill.md+++ b/docs/src/content/docs/liteparse/guides/agent-skill.md@@ -5,19 +5,51 @@ sidebar:order: 11----LiteParse can be installed as a **coding agent skill** using Vercel's [skills](https://github.com/vercel-labs/skills) utility. This gives your coding agent the ability to process documents, generate screenshots, and parse text from files, all locally.+LiteParse ships as a **coding agent skill** — a self-contained capability that Claude Code, Cursor,+Codex, and other compatible agents load on demand. Installing it gives your agent the ability to+parse documents, extract text and bounding boxes, and generate screenshots, all locally and with no+API key.## Installation-Add the LiteParse skill to your project:+Add the LiteParse skill to your project with the [`skills`](https://github.com/vercel-labs/skills)+CLI:```bashnpx skills add run-llama/llamaparse-agent-skills --skill liteparse```-This downloads a skill file that compatible coding agents (Claude Code, Cursor, etc.) will automatically pick up.+This downloads a skill file that compatible coding agents pick up automatically.-Once configured, your agent will be able to call the LiteParse CLI commands directly from its code execution environment. This means you can have your agent parse PDFs, pull out the text, and generate screenshots on the fly as part of its reasoning process.+You can also copy [`SKILL.md`](https://github.com/run-llama/llamaparse-agent-skills/blob/main/skills/liteparse/SKILL.md)+into your own skills setup by hand, or install the `liteparse` plugin from the+[agent plugins marketplace](https://github.com/run-llama/llamaparse-agent-plugins) to enable it from+inside Claude Code or Codex.++### Requirements++| Requirement | Needed for |+| --- | --- |+| Node 18+ and `npm i -g @llamaindex/liteparse` | The `lit` CLI the skill drives — verify with `lit --version` |+| [LibreOffice](https://www.libreoffice.org/) | Parsing Office files (DOCX, XLSX, PPTX) |+| [ImageMagick](https://imagemagick.org/) | Parsing image files |+| [`uv`](https://docs.astral.sh/uv/) | The bundled ranked-search helper |++No API key is required — everything runs on your machine.++## What the skill teaches++The skill is more than an install: it encodes the extraction patterns that keep an agent's context+small and its runs cheap. Without it, agents commonly re-parse the same document on every search and+dump entire pages into the conversation.++- **Parse once to a file, then search that file.** Each `lit parse` re-extracts the whole document,+ so the skill has the agent parse to a temp file and run all subsequent searches against it.+- **Minimize round-trips.** Fetch a match and its surrounding context in a single command, and batch+ independent lookups together rather than spending a turn per search term.+- **Bound every output.** Results are capped so a single lookup can't flood the context window.+- **Escalate to ranked search** when keyword matching stalls, instead of firing off keyword variants+ one turn at a time.## Example prompts@@ -28,3 +60,9 @@ Once the skill is installed, you can ask your coding agent things like:- "Screenshot pages 1-5 of this PDF at 300 DPI"- "Parse this scanned document using the PaddleOCR server on localhost:8828"- "Get the bounding boxes for all text on page 3"++## Related++LiteParse is one of several ways to give an agent document-processing capabilities. For cloud parsing+of complex documents, MCP servers, and workflow nodes, see+[Using LlamaIndex with AI Agents](/for-agents/).diff --git a/docs/src/content/docs/liteparse/index.md b/docs/src/content/docs/liteparse/index.mdindex 4047bfa..59220b0 100644--- a/docs/src/content/docs/liteparse/index.md+++ b/docs/src/content/docs/liteparse/index.md@@ -31,5 +31,6 @@ LiteParse is designed specifically for use cases that require fast, accurate tex- [Document complexity](/liteparse/guides/complexity/): Detect scanned, multi-column, and table-heavy pages up front.- [Library usage](/liteparse/guides/library-usage/): Use LiteParse from TypeScript or Python code.- [Browser usage (WASM)](/liteparse/guides/browser-usage/): Run LiteParse in the browser with zero server dependencies.+- [Agent skill](/liteparse/guides/agent-skill/): Give Claude Code, Cursor, or Codex the ability to parse documents locally.- [CLI reference](/liteparse/cli-reference/): Complete command and option reference.- [API reference](/liteparse/api/): Detailed API documentation (rust) for all public types and functions. The same types apply across all language bindings.