← 返回 Skills 市场
sycamore792

easydoc-parse

作者 Sycamore · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ✓ 安全检测通过
384
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install easydoc-parse
功能描述
Use when tasks need EasyDoc REST API to convert unstructured documents into structured JSON or markdown on either China EasyLink platform or global EasyDoc p...
使用说明 (SKILL.md)

EasyLink EasyDoc Parse

Overview

Use this skill to call EasyDoc async parsing APIs and return stable structured output. Always follow the same lifecycle: select platform, validate inputs, submit task, poll result, normalize output.

RAG Retrieval

If the parsed output is being used for RAG, do not load the entire JSON file into context by default.

  1. Use grep-style search first
  • If the host agent provides a text-search tool such as Grep, Search, or equivalent "search within file content" capability, use that tool first.
  • Prefer grep-style search to locate candidate passages, headings, node ids, table markers, or metadata fields inside parsed JSON.
  • Search for user query terms, entity names, date ranges, section headers, and node type values before opening any large file.
  • Do not introduce a custom in-skill Python search script for this retrieval path.
  • Do not shell out to grep or rg if the host agent already exposes an equivalent search tool.
  1. Read only local slices
  • After the search tool identifies relevant hits, read only the matching lines or a narrow surrounding window.
  • Extract only the needed nodes, sections, or pages for downstream summarization or embedding.
  1. Escalate to full-load only when necessary
  • Load the full JSON only when the task truly requires global document structure, full-tree reconstruction, or complete export.
  • If full-load is required, say why.

Onboarding

If user has no API key, guide first:

  1. cn platform key flow
  • Open https://platform.easylink-ai.com
  • Register or sign in
  • Enter API key management page and create a key
  • Store as EASYLINK_API_KEY
  1. global platform key flow
  • Open https://platform.easydoc.sh
  • Register or sign in
  • Enter API key management page and create a key
  • Store as EASYDOC_API_KEY

When user does not specify platform, ask whether they want cn or global first.

Platform Selection

Choose platform before calling any endpoint:

  1. cn platform
  • Base URL: https://api.easylink-ai.com
  • Submit: POST /v1/easydoc/parse
  • Poll: GET /v1/easydoc/parse/{task_id}
  • File form field: files
  • Recommended modes: easydoc-parse-flash, easydoc-parse-premium
  1. global platform
  • Base URL: https://api.easydoc.sh
  • Submit: POST /api/v1/parse
  • Poll: GET /api/v1/parse/{task_id}/result
  • File form field: file
  • Recommended mode: lite

Workflow

  1. Validate request inputs
  • Require api-key from user input or secure environment variable.
  • Require parse mode when needed; if omitted in script mode, use platform default (cn: easydoc-parse-premium, global: lite).
  • Validate file type and size (\x3C= 100MB) using platform-specific extension list.
  • If key is missing, return platform-specific onboarding steps and expected env var name.
  1. Submit async parse task
  • Use platform-specific submit URL and form-data file field.
  • Include mode.
  • Read task_id from response.
  1. Poll task status
  • Use platform-specific result endpoint.
  • Continue polling while task is pending or processing.
  • Stop on terminal status (SUCCESS, ERROR, FAILED, COMPLETED, DONE) or timeout.
  1. Normalize output
  • Keep raw response as raw.
  • Return stable envelope for downstream consumers: task_id, status, files.
  1. Handle failures predictably
  • Include task_id in error reports when available.
  • Report HTTP status and response body for API errors.
  • For parse failures, suggest mode switch or resubmission.
  1. Apply RAG-safe retrieval
  • When parsed JSON is large, use the host agent's text-search tool or equivalent grep-style retrieval before any full read.
  • Avoid pasting or loading entire parsed payloads into context unless the task depends on full-document traversal.

Quick Commands

China platform:

curl -X POST "https://api.easylink-ai.com/v1/easydoc/parse" \
  -H "api-key: $EASYLINK_API_KEY" \
  -F "[email protected]" \
  -F "mode=easydoc-parse-premium"

Global platform:

curl -X POST "https://api.easydoc.sh/api/v1/parse" \
  -H "api-key: $EASYDOC_API_KEY" \
  -F "file=@demo_document.pdf" \
  -F "mode=lite"

Bundled Python helper:

python3 scripts/easydoc_parse.py --platform cn --api-key "$EASYLINK_API_KEY" \
  --mode easydoc-parse-premium --file ./document.pdf --save ./result-cn.json

python3 scripts/easydoc_parse.py --platform global --api-key "$EASYDOC_API_KEY" \
  --mode lite --file ./document.pdf --save ./result-global.json

# key can come from environment if --api-key is omitted
export EASYLINK_API_KEY="your-cn-key"
python3 scripts/easydoc_parse.py --platform cn --file ./document.pdf --save ./result-cn.json

export EASYDOC_API_KEY="your-global-key"
python3 scripts/easydoc_parse.py --platform global --file ./document.pdf --save ./result-global.json

References And Scripts

  • Read references/easydoc-rest-api.md for endpoint-level differences between cn and global.
  • Use scripts/easydoc_parse.py for deterministic submit and polling.
  • Script default output is normalized; use --output-format raw for raw payload only.
  • In RAG workflows, prefer the host agent's built-in content search tool on saved JSON results before opening large file sections.

Output Contract

{
  "task_id": "string",
  "status": "SUCCESS|ERROR|PENDING|PROCESSING|FAILED|COMPLETED|DONE",
  "files": [
    {
      "file_name": "string",
      "markdown": "string or null",
      "nodes": []
    }
  ],
  "raw": {}
}
安全使用建议
This skill appears to do what it says: it reads local files and sends them to the EasyLink/EasyDoc REST APIs and polls for results. Before installing, consider: (1) Only one API key is needed per platform — you don't need to provide both unless you will use both platforms; (2) Uploaded documents will be transmitted to the listed domains (https://api.easylink-ai.com or https://api.easydoc.sh) — do not send sensitive or regulated documents unless you trust those services and their privacy terms; (3) Store API keys securely (environment variables or a secret manager) and avoid pasting them into public logs; (4) The bundled script reads files into memory and constructs a multipart payload (up to the 100 MB per-file limit), so watch local memory if uploading large files; (5) The agent can invoke this skill autonomously by default — if you are concerned about autonomous network uploads, disable automatic invocation or review access controls before enabling. Overall the skill is internally consistent but you should validate the legitimacy and data-handling policies of the external EasyDoc/EasyLink services before sending private documents.
功能分析
Type: OpenClaw Skill Name: easydoc-parse Version: 1.0.1 The skill bundle provides a legitimate interface for interacting with the EasyDoc document parsing REST APIs (China and Global platforms). The included Python script (scripts/easydoc_parse.py) is well-structured, uses standard libraries (urllib) instead of external dependencies, and performs expected tasks like file validation, multipart form encoding, and status polling. There is no evidence of data exfiltration, malicious execution, or prompt injection; the instructions in SKILL.md actually promote security and performance best practices by advising the agent to use targeted search tools rather than loading full document payloads into the LLM context.
能力评估
Purpose & Capability
Name/description match the included SKILL.md, reference doc, and bundled Python helper. Required binaries (python3, curl) and the env vars (API keys) are consistent with calling REST endpoints and providing command examples. The included script submits files and polls results for the two named platforms, which is coherent with the stated purpose.
Instruction Scope
The SKILL.md confines runtime behavior to: choose platform, validate inputs, submit files to the stated endpoints, poll status, normalize results, and prefer host-agent text-search for RAG. It explicitly avoids reading unrelated system files or shelling out to grep when an agent search tool exists. The instructions only reference the declared API endpoints and local files provided for upload.
Install Mechanism
There is no install spec (instruction-only) and the package only includes a Python script; nothing is downloaded or installed from external/untrusted URLs. This is the lowest-risk install model for a skill.
Credentials
The skill declares two API key env vars (EASYLINK_API_KEY, EASYDOC_API_KEY) and marks EASYLINK_API_KEY as primary. In practice only one platform key is needed per run and the bundled script accepts either key as a fallback. Listing both as required is slightly overbroad but not malicious; users should understand that you only need to provide the key for the platform you intend to use.
Persistence & Privilege
The skill does not request persistent/always-on privileges, does not modify other skills or system settings, and has no install actions that would persist. The agent may invoke it autonomously (platform default), which is expected for a skill of this type.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install easydoc-parse
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /easydoc-parse 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
**Added retrieval guidance for RAG workflows and metadata.** - Added detailed instructions for safe Retrieval-Augmented Generation (RAG) using grep-style or host agent text search tools before loading full parsed JSON files. - Updated workflow to apply RAG-safe retrieval practices, minimizing unnecessary full-file loading in downstream tasks. - Clarified not to introduce custom search scripts or shell out if the host agent provides text-search capabilities. - Introduced new metadata for environment variables and system requirements. - No changes to API endpoint usage or core document parsing logic.
v1.0.0
Initial release of the easylink-easydoc-parse skill. - Provides unified workflows to call EasyDoc REST APIs on both China EasyLink and global EasyDoc platforms. - Guides users through API key onboarding for each platform. - Handles async document parse task submission, polling, and output normalization for LLM pipelines. - Supports multiple parse modes and enforces input validation (file type, size, env vars). - Standardizes parsing output for downstream tools; exposes errors and task status clearly. - Includes sample curl and Python usage for both platforms.
元数据
Slug easydoc-parse
版本 1.0.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

easydoc-parse 是什么?

Use when tasks need EasyDoc REST API to convert unstructured documents into structured JSON or markdown on either China EasyLink platform or global EasyDoc p... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 384 次。

如何安装 easydoc-parse?

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

easydoc-parse 是免费的吗?

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

easydoc-parse 支持哪些平台?

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

谁开发了 easydoc-parse?

由 Sycamore(@sycamore792)开发并维护,当前版本 v1.0.1。

💬 留言讨论