Token导航 LogoToken导航TokenDH.com
前端设计敏感数据github未标认证来源可访问许可证需确认审计异常

llamaparsellamaparse 文档

Agent Skill

llamaparse 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

5,333

周安装

220

GitHub Stars

43

下载量

1,742
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:llamaparse(llamaparse 文档)
来源仓库:https://github.com/run-llama/llamaparse-agent-skills
仓库路径:skills/llamaparse
安装命令:
npx skills add https://github.com/run-llama/llamaparse-agent-skills --skill llamaparse
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/run-llama/llamaparse-agent-skills --skill llamaparse

简介

用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态、代码变更或协作事项进行整理。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装使用。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。
  • llamaparse 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

LlamaParse Skill

Parse unstructured documents (such as PDF, DOCX, PPTX, XLSX) with LlamaParse and extract their contents (text, markdown, images...).

Initial Setup

When this skill is invoked, respond with:

I'm ready to use LlamaParse to parse files. Before we begin, please confirm that:

- `LLAMA_CLOUD_API_KEY` is set as environment variable within the current environment
- `@llamaindex/llama-cloud@latest` is installed and available within the current Node environment

If both of them are set, please provide:

1. One or more files to be parsed
2. Specific parsing options, such as tier, API version, custom prompt, processing options...
3. Any requests you might have regarding the parsed content of the file.

I will produce a Typescript script to run the parsing job and, once you approved its execution, I will report the results back to you based on your request.

Then wait for the user's input.


Step 0 — Install llama-cloud (optional)

If the user does not have the @llamaindex/llama-cloud package installed, add it to the current environment by running:

npm install @llamaindex/llama-cloud@latest

Step 1 — Produce a Typescript Script

Once the user confirms the environment variables are set and provides the necessary details for the parsing job, produce a typescript script.

As a source of truth for the TS script, you can:

  • Refer to the example.ts script, which covers most of the necessary configurations for LlamaParse
  • Refer to the complete LlamaParse Documentation, fetching the https://developers.llamaindex.ai/python/cloud/llamaparse/api-v2-guide/ page.

Scripting Best Practices

Follow these guidelines when generating scripts:

1. Always Use the Top-Level LlamaCloud Client

Use LlamaCloud (the API client) for all parsing operations:

import LlamaCloud from "@llamaindex/llama-cloud";

// Define a client
const client = new LlamaCloud({
  apiKey: process.env["LLAMA_CLOUD_API_KEY"], // This is the default and can be omitted
});

2. Two-Step Upload → Parse Pattern

Always upload first to get a file ID, then parse using the file ID. Never pass raw file bytes directly to parse().

import { readFile, writeFile } from "fs/promises";
import { basename } from "path";

// 1. Convert the file path into a File object
const buffer = await readFile(filePath);
const fileName = basename(filePath);
const file = new File([buffer], fileName);
// 2. Upload the file to the cloud
const fileObj = await client.files.create({
  file: file,
  purpose: "parse",
});
// 3. Get the file ID
const fileId = fileObj.id;
// 4. Use the file ID to parse the file
const result = await client.parsing.parse({
  tier: "agentic",
  version: "latest",
  file_id: fileId,
  ...
});

If the user already has a file ID (e.g. from a prior upload), skip the upload step and use it directly.

3. Choose the Right Tier

TierWhen to Use
fastSpeed is the priority; simple documents
cost_effectiveBudget-conscious; straightforward text extraction
agenticComplex layouts, tables, mixed content (default recommendation)
agentic_plusAdvanced analysis, highest accuracy

Default to agentic unless the user specifies otherwise or the document is simple.

4. Always Include the expand Parameter

The expand parameter controls what content is returned. Omitting it returns minimal data. Always specify exactly what you need:

ValueReturns
text_fullPlain text via result.text_full
markdown_fullMarkdown via result.markdown_full
itemsPage-level JSON via result.items.pages
text_content_metadataPer-page text metadata
markdown_content_metadataPer-page markdown metadata
items_content_metadataPer-page items metadata
images_content_metadataImage list with presigned URLs
output_pdf_content_metadataOutput PDF metadata
xlsx_content_metadataExcel-specific metadata

Only request metadata *_content_metadata variants when you need presigned URLs or per-page detail — they increase payload size.

5. Handle None Results Defensively

result.text_full, result.markdown_full, and result.items may be undefined on failure. Always guard against this:

const text = result.text_full ?? "";
const markdown = result.markdown_full ?? "";

6. Use Structured Options for Advanced Configuration

Group options using the correct nested keys:

const result = await client.parsing.parse({
  tier: "agentic",
  version: "latest",
  file_id: fileId,
  input_options: {
    presentation: {
      skip_embedded_data: false,
    },
  },
  output_options: {
    images_to_save: ["screenshot"],
    markdown: {
      tables: { output_tables_as_markdown: true },
      annotate_links: true,
    },
  },
  processing_options: {
    specialized_chart_parsing: "agentic",
    ocr_parameters: { languages: ["de", "en"] },
  },
  agentic_options: {
    custom_prompt:
      "Extract text from the provided file and translate it from German to English.",
  },
  expand: [
    "markdown_full",
    "images_content_metadata",
    "markdown_content_metadata",
  ],
});

Use agentic_options.custom_prompt whenever the user wants to guide extraction (translation, summarization, structured extraction, etc.).

7. Downloading Images Requires httpx and Auth

When images_content_metadata is in expand, download images via presigned URLs with Bearer auth:

if (result.images_content_metadata) {
  for (const image of result.images_content_metadata.images) {
    if (image.presigned_url) {
      const response = await fetch(image.presigned_url, {
        headers: {
          Authorization: `Bearer ${process.env["LLAMA_CLOUD_API_KEY"]}`,
        },
      });
      if (response.ok) {
        const content = await response.bytes();
        await writeFile(image.filename, content);
      }
    }
  }
}

8. Use the Node shebang

Every generated script should include the node shebang:

#!/usr/bin/env node

Step 2 — Execute the Typescript Script

Once the typescript script has been produced, you should:

  1. Present the script to the user and ask for permissions to run it (depending on the current permissions settings)
  2. Once you obtained permission to run, execute the script
  3. Explore the results based on the user's requests
In order to run typescript scripts, it is highly recommended to use: npx tsx script.ts.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.9%
按下载量换算625

Claude

31.83%
按下载量换算554

Cursor

18.57%
按下载量换算323

Gemini CLI

9.6%
按下载量换算167

安全审计

Gen Agent Trust Hub

通过

Socket

未通过

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills