← 返回 Skills 市场
laiye-adp

agentic-doc-parse-and-extract

作者 Laiye-ADP · GitHub ↗ · v1.10.3 · MIT-0
cross-platform ✓ 安全检测通过
82
总下载
1
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install agentic-doc-parse-and-extract
功能描述
Enables AI-powered parsing and key information extraction from high-frequency documents including invoices, orders, receipts, long texts, and common Chinese...
使用说明 (SKILL.md)

\r

agentic-doc-parse-and-extract Skill\r

\r agentic-doc-parse-and-extract is an official command-line tool released by Laiye Technology's ADP (Agentic Document Processing) product, enabling both humans and AI agents to invoke ADP capabilities in the terminal for document parsing and extraction.\r \r

Quick Start Guide for AI Agents\r

\r

Core Workflow\r

  1. Install dependencies: On first execution, install the ADP CLI tool and dependencies by following the instructions in references/examples.md.\r
  2. Discover commands: Run adp schema to get the machine-readable JSON spec of all commands, parameters, types, and defaults.\r
  3. Authentication: On first execution, run adp config get to verify credentials. If no valid configuration exists, prompt the user to provide an API Key.\r
  4. Check Application: On first execution, retrieve the application list via adp app-id list. For subsequent executions, prioritize adp app-id cache (cached in context). If the cache is unavailable, refresh it by calling adp app-id list again.\r
  5. Execute: Run adp extract url \x3CURL> --app-id \x3CID> or adp parse url \x3CURL> --app-id \x3CID>.\r
  6. Query: Check results asynchronously with adp extract query \x3Ctask_id> or adp parse query \x3Ctask_id>.\r
  7. Error handling: When a command fails, parse the stderr JSON to determine error type and recovery action. See references/error-handling.md.\r \r

Common Scenarios → Command Mapping\r

| User Intent | Recommended Command | Handling Rules |\r | :---------- | :------------------ | :------------- |\r | - Read full document content\x3Cbr>- Parse layout & structure\x3Cbr>- Convert document to text\x3Cbr>- Process / analyze full document | adp parse | - Sync processing for small files\x3Cbr>- Async processing (--async parameter) for files >20MB or >200 pages |\r | - Extract key fields (amount, date, name, ID, etc.)\x3Cbr>- Output structured results (JSON/table) | adp extract | - Use Extract directly, no need to parse first\x3Cbr>- Use matched existing app\x3Cbr>- Create a custom extraction app if the document type is not in the known app list |\r | Batch processing of local files | adp extract local \x3Cfolder path> \x3Cbr> adp parse local \x3Cfolder path> | Batch processing can accept files from the local folder. |\r | Batch processing of URL files | adp extract url \x3CURL list file path> \x3Cbr> adp parse url \x3CURL list file path> | If you need to process multiple URLs in a batch, you can first save the list of URLs in a text file, and then input the corresponding URL of this text file to achieve batch processing at once. |\r \r Note:\r

  • The adp extract command has built-in document parsing capabilities. After ADP automatically parses the document, it performs structured extraction. Therefore, when users need to extract the structured content of the document, there is no need to use apd for parsing.\r
  • URL list file format: A plain text file where each line is a URL pointing to a document to be processed.\r \r \r

Quick Reference for Common Commands\r

\r

# Command Discovery (for Agent introspection)\r
adp schema\r
\r
# Configuration Check\r
adp config get\r
\r
# Query Applications (First Use)\r
adp app-id list\r
\r
# Document Extraction (Invoice/Receipt)\r
adp extract url \x3Cfile URL> --app-id \x3Capp_id>\r
\r
# Document Parsing (Long Document)\r
adp parse url \x3Cfile URL> --app-id \x3Capp_id>\r
\r
# Base64 Input\r
adp extract base64 \x3Cbase64_string> --app-id \x3Capp_id> --file-name invoice.pdf\r
adp parse base64 \x3Cbase64_string> --app-id \x3Capp_id> --file-name document.pdf\r
\r
# Asynchronous Query\r
adp extract query \x3Ctask_id>\r
adp parse query \x3Ctask_id>\r
adp parse query \x3Ctask_id1> \x3Ctask_id2> --watch  # batch query with auto-poll\r
\r
# Batch Processing\r
adp extract local \x3Cfolder path> --app-id \x3Capp_id> --export \x3Cfolder path> --concurrency 2\r
adp parse local \x3Cfolder path> --app-id \x3Capp_id> --export \x3Cfolder path> --concurrency 2\r
```\r
\r
## Performance Optimization Suggestions\r
- **Reuse APP_ID**: Cache it in the context after one query to avoid calling `app-id list` every time.\r
- **Sync First**: For small files (\x3C20MB), prioritize using synchronous calls to avoid asynchronous polling.\r
- **Batch Processing**: Processes multiple documents via `url \x3CURL list file path>` or `local \x3Cfolder path>` in a single run, without looped invocations. Default `--concurrency 2`.\r
- **Local Cache**: Store commonly used APP_IDs in environment variables or configuration files.\r
- **Priority Extraction**: If only key information needs to be extracted, use `extract` instead of `parse` (faster).\r
- **Use --retry for batch**: Set `--retry 2` for batch processing to auto-recover from transient failures.\r
- **Use --timeout for large files**: Increase `--timeout` for files >20MB. Default is 900s.\r
\r
---\r
\r
## Detailed Product Introduction\r
\r
### Core Function Definition\r
- **parse**: Parses the entire document to retrieve full text, layout, structure, and content.\r
- **extract**: Extracts specific structured fields from the document, such as amount, date, company name, and order number.\r
\r
### Application Scenarios\r
- **Long Document Parsing**: Efficiently process long documents with fast parsing speed, accurately extract multiple elements such as text, tables and images, replace manual extraction, and improve efficiency.\r
- **Structured Extraction for Scanned/Photographed Documents**: For scanned documents and photos, complete structured extraction in reading order, generate clear and editable electronic documents, and eliminate manual entry errors.\r
- **Intelligent Invoice Extraction**: After uploading invoice images/documents, AI automatically invokes preset applications to accurately extract 10+ key fields such as invoice number and amount, suitable for financial filing scenarios.\r
- **Intelligent Order Extraction**: Support batch upload of orders from multiple distributors, AI extracts 10+ key fields such as order number and buyer-seller information, automatically identifies currencies, and reduces manual verification costs.\r
- **Domestic ID Document Extraction**: Process in seconds, supporting the identification and extraction of more than 10 common types of documents in China; for example, core information such as name and ID number can be quickly extracted from ID card scans.\r
- **Automatic Splitting and Extraction of Mixed Documents**: Batch upload mixed documents such as contracts and invoices, AI automatically classifies, splits and completes structured extraction to improve processing efficiency.\r
- **Batch Document Processing**: Support batch upload of various business documents, extract information and output standardized structured data, reducing repetitive manual operations.\r
\r
## Detailed Usage Steps\r
\r
### Step 1: Obtain the Installation Package\r
For details, see [references/examples.md](references/examples.md)\r
\r
### Step 2: Obtain and Configure API Key\r
\r
   #### 1. Access the ADP Portal to Obtain Credentials\r
\r
   We provide independent Public Cloud access addresses for domestic and international users, which need to be configured separately by region. Accessing nearby can better ensure high-speed and stable calls across the network.\r
\r
   | Region | Login Address | API Base URL |\r
   |-----|----------|--------------|\r
   | Chinese Mainland | [https://adp.laiye.com/](https://adp.laiye.com/?utm_source=clawhub) | `https://adp.laiye.com/` |\r
   | Overseas Region | [https://adp-global.laiye.com/](https://adp-global.laiye.com/?utm_source=clawhub) | `https://adp-global.laiye.com/` |\r
\r
   #### 2. Get API Key after registration/login\r
   New users need to register an ADP account first, and after registration, they can get 100 free credits/month\r
   - After logging in, click on the personal avatar, and you can directly access the `API_Key` entry.\r
   \r
   #### 3. Complete the authentication configuration\r
   For details, see [references/examples.md](references/examples.md)\r
   \r
   #### 4. Verify the configuration\r
   For details, see [references/examples.md](references/examples.md)\r
   \r
   **Notes**:\r
   1. If API Key and API Base URL have been configured, the configuration information needs to be stored in environment variables to avoid uploading configuration items every time they are used.\r
   2. If API Key and API Base URL have not been configured yet, they need to be configured according to the above steps.\r
\r
### Step 3: Upload Documents\r
After completing the authentication of the API Key, guide the user to upload local files or specify the file URL. After the user uploads the document, they can query the supported application scope of ADP and select the appropriate application for document parsing and extraction. If no suitable application is found, they can choose to create a custom extraction application, configure exclusive fields and parsing modes to meet the personalized document processing requirements.\r
\r
### Step 4: Query Available Applications \r
This function is used to query the built-in applications under the user's account (such as invoices/receipts, orders, common cards and certificates in China region, etc. which are standardized documents). Based on the `app-label`, you can assist in filtering the suitable application IDs. If no suitable application is found, you can choose to create a custom extraction application, configure specific fields and parsing modes to meet the personalized document processing requirements.\r
\r
**Notes**:\r
1. For the first execution, use `adp app-id list`. For subsequent executions, prefer to use `adp app-id cache` (cache the application ID in the context). If the cache becomes invalid or there are no suitable applications in the cache, call `adp app-id list` again to update the cache.\r
\r
For detailed examples of commands and responses, see [references/examples.md](references/examples.md).\r
\r
\r
### Step 5: Add custom extraction application\r
\r
Support creating custom extraction applications, and independently add business-specific extraction fields as needed, and improve the detailed description of each field; the system will accurately identify the document content based on the configured fields and definitions, and complete customized information extraction for personalized documents and non-standard forms.\r
\r
For example commands, responses, and detailed parameter descriptions, please refer to [references/examples.md](references/examples.md) \r
\r
### Step 6: Execute Document Processing\r
\r
### Single Document Parsing\r
\r
Perform document parsing based on the selected application ID, which will return a formatted JSON result containing information such as document content, element position coordinates, OCR Confidence Level, etc.\r
\r
For examples of commands and responses, please refer to [references/examples.md](references/examples.md)\r
\r
### Single Document Extraction\r
\r
Perform document extraction based on the selected application ID, which will return a formatted JSON result containing information such as extraction fields, extraction results, and Confidence Level.\r
\r
For examples of commands and responses, please refer to [references/examples.md](references/examples.md)\r
\r
\r
### Batch Document Processing\r
\r
ADP supports batch processing capabilities. Users can upload multiple file URLs or local folder paths at once, and the system will automatically identify each document type and match the most suitable application for processing, greatly improving the efficiency of batch document processing.\r
\r
For detailed command examples, see [references/examples.md](references/examples.md)\r
\r
**Note**: The number of concurrent requests is limited to 1 for free users, while enterprise users can adjust it according to their needs, with a maximum support of 2.\r
\r
### Asynchronous Processing (Suitable for Large Documents)\r
\r
ADP provides asynchronous processing capabilities, allowing users to choose asynchronous mode to perform document parsing and extraction. The system will return a task ID, and users can periodically query the task status and results through the query interface, which is suitable for processing complex documents or batch documents with long processing times. If the document uploaded by the user is larger than 20MB or contains more than 200 pages, it is recommended to use the asynchronous processing mode.\r
\r
For examples of commands and responses, see [references/examples.md](references/examples.md)\r
\r
---\r
\r
## Complete Command List\r
\r
For a complete list of all available commands with full parameter specs, see [references/commands.md](references/commands.md)\r
\r
## Response Schema Reference\r
\r
For the output structure of each command (including batch processing output mechanism), see [references/response-schema.md](references/response-schema.md)\r
\r
## Error Handling Guide\r
\r
For error codes, types, and Agent auto-recovery strategies, see [references/error-handling.md](references/error-handling.md)\r
\r
---\r
\r
## Precautions\r
\r
When using ADP output, always present the returned data as-is. Do not modify, add, or remove any fields during extraction or parsing to ensure data integrity.\r
\r
1. **API Key Security**: Please keep your API Key secure and avoid disclosing it to unauthorized third parties.\r
2. **API Base URL Configuration**: Select the corresponding address based on the region. For Chinese Mainland, use `https://adp.laiye.com/`, and for overseas regions, use `https://adp-global.laiye.com/`\r
3. **File Size Limit**: The maximum size of a single file is 50MB\r
4. **Supported Formats**: .jpg, .jpeg, .png, .bmp, .tiff, .tif, .pdf, .doc, .docx, .xls, .xlsx\r
5. **Free Quota**: New users receive 100 free credits per month, which are reset at the beginning of each month. Credits can be used for document parsing and extraction processing.\r
6. **Check Balance**: Run `adp credit` to check the current account's credit balance.\r
7. **Billing Rules**:\r
   - Document parsing: 0.5 credits per page\r
   - Invoice/receipt extraction: 1.5 credits per page\r
   - Order extraction: 1.5 credits per page\r
   - Custom extraction: 1 credit per page\r
8. **App ID Reuse**: The app ID used by the user can be remembered for direct use next time, eliminating the need to enter the app_id after each query. The app ID under each user is unique and fixed; unless the user deletes the app, the app_id will not change, and the previously queried app_id can be directly used for document processing calls.\r
\r
---\r
\r
## Related Resources\r
- **CLI Documentation**: [ADP CLI User Guide](https://laiye-tech.feishu.cn/wiki/YIaawiK2DimisZk5KfDc8a8cnLh)\r
- **API Documentation**: [OpenAPI User Guide](https://laiye-tech.feishu.cn/wiki/S1t2wYR04ivndKkMDxxcp2SFnKd)\r
- **User Guide**: [Public Cloud Operation Manual](https://laiye-tech.feishu.cn/wiki/OfexwgVUQiOpEek4kO7c7NEJnAe)\r
- **Problem Feedback**: [GitHub Issues](https://github.com/laiye-ai/adp-cli/issues) | [email protected]\r
- **Official Website**: [Laiye Technology](https://laiye.com)\r
\r
---\r
\r
Copyright © 2026 [Laiye Technology (Beijing) Co., Ltd.] All rights reserved.\r
安全使用建议
This skill appears coherent for its stated purpose (a CLI that talks to Laiye's ADP service). Before installing or running it: prefer installing the published npm package (verify package name and publisher on npm) instead of piping a remote shell script; if you must review the script, open the raw URL in a browser and inspect it rather than running it blindly. Only provide an API Key you control and be aware that documents sent to the ADP cloud will leave your environment — do not upload sensitive personal or regulated data unless you trust the service and have a policy agreement. Note the CLI will create export directories and a permanent app-id cache; clear stored credentials/config if you uninstall. If you need stronger guarantees, verify the GitHub repo and npm package authorship and consider contacting the vendor ([email protected]) or using an on-prem/private deployment option if available.
功能分析
Type: OpenClaw Skill Name: agentic-doc-parse-and-extract Version: 1.10.3 The agentic-doc-parse-and-extract skill is an official integration for Laiye Technology's Agentic Document Processing (ADP) service, providing AI-powered document parsing and structured data extraction. The bundle includes comprehensive documentation (SKILL.md, README.md) and technical references (commands.md, examples.md) that guide an AI agent through installing the 'adp' CLI tool, authenticating with an API key, and executing document processing tasks. While the skill utilizes high-risk capabilities such as shell execution, network access to external APIs (adp.laiye.com), and file system access, these behaviors are strictly aligned with its stated purpose and are standard for professional document processing tools. No evidence of malicious intent, unauthorized data exfiltration, or prompt injection was found.
能力标签
cryptocan-make-purchasesrequires-sensitive-credentials
能力评估
Purpose & Capability
Name/description (document parsing & extraction) matches the SKILL.md and reference docs. All runtime instructions call an 'adp' CLI with parse/extract/app-id/config/credit commands that align with the described functionality; no unrelated services, credentials, or binaries are requested.
Instruction Scope
SKILL.md instructs an agent to install and invoke the ADP CLI, discover commands, configure API key, list apps, run parse/extract operations, and read/write local output files. These actions are in-scope for a CLI-based document processing skill. It does instruct reading/writing local folders (export directories and caching app_id) and to prompt the user for an API key — normal for this workflow, but agents should not try to guess or scrape credentials automatically.
Install Mechanism
No built-in install spec in the skill bundle, but the docs recommend installing via npm (official package name) or running remote install scripts fetched from raw.githubusercontent.com. npm is a standard registry install; curl | bash of a GitHub raw script is a common but higher-risk pattern — review the script contents before executing and prefer verified npm package or curated release artifacts.
Credentials
The skill does not declare required environment variables or credentials in the registry metadata. The only credential the CLI expects is an API Key for the ADP service (documented in examples and config commands), which is proportionate to a cloud document-extraction service. There are no requests for unrelated secrets or system-level credentials.
Persistence & Privilege
always:false (normal). The CLI and docs state that an application list cache and local export directories are written to disk (app-id cache described as 'permanent' and output_dir is an absolute path). This is expected for a CLI, but users/agents should be aware that results and cached IDs may persist locally and that the CLI stores API keys/configuration via `adp config set`.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install agentic-doc-parse-and-extract
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /agentic-doc-parse-and-extract 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.10.3
Align the product version numbers on all platforms
v1.10.0
Version 1.10.0 - Added extensive documentation to SKILL.md, detailing command usage, scenarios, and performance tips. - Clarified the distinction between "parse" and "extract" commands and their recommended usage patterns. - Expanded examples and templates for batch and concurrent document processing. - Included error handling guidance and suggestions for optimizing performance. - Provided region-specific configuration instructions and common command references.
元数据
Slug agentic-doc-parse-and-extract
版本 1.10.3
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

agentic-doc-parse-and-extract 是什么?

Enables AI-powered parsing and key information extraction from high-frequency documents including invoices, orders, receipts, long texts, and common Chinese... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 82 次。

如何安装 agentic-doc-parse-and-extract?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install agentic-doc-parse-and-extract」即可一键安装,无需额外配置。

agentic-doc-parse-and-extract 是免费的吗?

是的,agentic-doc-parse-and-extract 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

agentic-doc-parse-and-extract 支持哪些平台?

agentic-doc-parse-and-extract 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 agentic-doc-parse-and-extract?

由 Laiye-ADP(@laiye-adp)开发并维护,当前版本 v1.10.3。

💬 留言讨论