Token导航 LogoToken导航

Agent Skill · 前端设计

qianfanocr-document-intelligence(千帆 OCR 文档智能)

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

qianfanocr-document-intelligence 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证信息还不明确,第三方扫描有未通过项,按安装量在前端设计类的 10,216 个 Skill 里排第 5,915。

总安装 582周安装 24GitHub Stars 17下载 190核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/baidubce/skills --skill qianfanocr-document-intelligence

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

用于处理 GitHub 仓库、Issue 和 Pull Request 信息。适合围绕代码变更和协作事项进行整理。使用时可结合来源仓库和原始 README 核验具体用法。安装前建议确认权限范围和是否会触发文件读写。注意维护状态和网络访问限制。

qianfanocr-document-intelligence 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/qianfanocr-document-intelligence

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/baidubce/skills --skill qianfanocr-document-in…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

qianfanocr-document-intelligence 怎么安装?

在终端执行 npx skills add https://github.com/baidubce/skills --skill qianfanocr-document-intelligence。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

qianfanocr-document-intelligence 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

qianfanocr-document-intelligence 需要什么权限?

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

qianfanocr-document-intelligence 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

qianfanocr-document-intelligence 用的人多吗?

公开数据是累计安装 582 次,近一周安装 24 次,下载 190 次,GitHub 17 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

qianfanocr-document-intelligence 安全吗?

第三方扫描有未通过项,风险较高。除非你确认过源码,否则不建议直接安装到常用环境。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
qianfanocr-document-intelligence

千帆 OCR 文档智能 · 本页

58217接触敏感数据未明确未通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Qianfan OCR Document Intelligence

This skill orchestrates visual understanding for images and PDFs. It does not implement a vision model itself. It selects the right analysis mode, prepares inputs, invokes the bundled CLI, and returns a structured result for the upstream agent.

Required Execution Order

Always follow this order:

  1. Check whether QIANFAN_TOKEN is already available.
  2. If the token is missing, stop immediately and ask the user for the API Key.
  3. If the user provides the API Key, write it to <skill-root>/.env as QIANFAN_TOKEN=....
  4. Only after the token is available, continue to mode selection, reference loading, and CLI calls.

This token preflight takes precedence over all later rules in this skill. Do not read references/*.md, do not select a mode, and do not call any bundled script until the token check has passed.

API Key Setup

Before first use, make sure QIANFAN_TOKEN is available either in the process environment or in <skill-root>/.env.

If the token is missing, ask the user in Chinese:

QIANFAN_TOKEN 环境变量未设置。请提供百度千帆 API Key。
如果您暂时没有 API Key,请到 https://cloud.baidu.com/product-s/qianfan_home 注册获取。

If the user provides the key, persist it to <skill-root>/.env before continuing. Do not rely on a temporary export QIANFAN_TOKEN=... as the only storage mechanism.

Do not assume a bundled default token exists.

Bundled Tools

  • scripts/qianfan_ocr_cli.py: send one or more images to the backend VLM.
  • scripts/pdf_to_images.py: convert one or more PDFs into per-page images before calling the VLM.
  • scripts/render_doc_markdown.py: replace document-parsing image placeholders with cropped image files.
  • scripts/run_document_parsing.py: run document parsing end-to-end and always render image placeholders.
  • scripts/run_pdf_document_parsing.py: run PDF document parsing end-to-end and export combined markdown, shared assets, and per-page markdown files.
  • scripts/run_document_parsing_with_layout.py: run document parsing with layout and export markdown, layout JSON, and a layout overlay image.
  • scripts/run_layout_analysis.py: run layout analysis and export _layout.json plus a layout overlay image.
  • scripts/run_element_recognition.py: run element recognition and save the result as a sibling markdown file.

Always call scripts by absolute path. In Codex, use the installed absolute skill path instead of a bare relative path.

Examples:

python3 "<skill-root>/scripts/qianfan_ocr_cli.py" "<prompt>" --image <path_or_url>
python3 "<skill-root>/scripts/pdf_to_images.py" <pdf_or_url> --output-dir <dir>
python3 "<skill-root>/scripts/render_doc_markdown.py" parsed.md --image <page_image> --output-dir <assets_dir> --output-markdown <rendered_md>
python3 "<skill-root>/scripts/run_document_parsing.py" <image_or_pdf>
python3 "<skill-root>/scripts/run_pdf_document_parsing.py" <pdf> --pages all
python3 "<skill-root>/scripts/run_document_parsing_with_layout.py" <image_or_pdf>
python3 "<skill-root>/scripts/run_layout_analysis.py" <image_or_pdf>
python3 "<skill-root>/scripts/run_element_recognition.py" <cropped_image_or_pdf> --element-type <text|formula|table>

Trigger Rules

Trigger this skill only when all of the following are true:

  • The task involves one or more image files or URLs, or one or more PDF files or URLs.
  • The agent must recognize, understand, extract, answer questions about, or locate content inside those images or PDFs.
  • The relevant information cannot be obtained from existing plain-text sources already available to the agent.

Do not trigger when:

  • The file is plain text, structured data, or source code that can be read directly.
  • The user is asking for image-processing or PDF-processing code rather than visual understanding.
  • The image/PDF path or URL is mentioned incidentally and no visual understanding is requested.
  • A previous invocation already answered the same question and repeating the call would be redundant.

Input Preparation

Image inputs

  • Pass local image paths or image URLs directly to qianfan_ocr_cli.py.
  • Use one call per unrelated image.
  • Use repeated --image flags only when cross-image reasoning is required.

PDF inputs

  • If the input is a PDF, convert it to page images first with scripts/pdf_to_images.py.
  • For single-page questions, analyze only the relevant page when known.
  • For multi-page PDFs, keep page order and label outputs with page numbers.
  • If the PDF already has reliable selectable text and the task is pure text retrieval, do not use this skill; read the text directly.

Recommended PDF flow:

python3 "<skill-root>/scripts/pdf_to_images.py" report.pdf --output-dir /tmp/report-pages
python3 "<skill-root>/scripts/qianfan_ocr_cli.py" "<prompt>" --image /tmp/report-pages/report-p001.png

Analysis Modes

Select exactly one primary mode per call. If needed, make a second, more specific call after an initial pass.

ModeUse WhenGoal
document parsingNeed document structure, text, formulas, tables, and image placeholders from an image/PDFOutput Markdown parsing result
layout analysisNeed all layout elements with positions and categoriesOutput layout elements with bbox and category
element recognitionNeed precise recognition on cropped elements such as text blocks, formulas, or tablesOutput exact recognition for the cropped element
document parsing with layoutNeed both structural parsing and layout detection in one workflowOutput Markdown parsing plus layout analysis
general ocrNeed all visible text without document structureExtract all visible text lines
key information extractionNeed key fields from cards, forms, receipts, invoices, contracts, or similar documentsExtract key information in structured form
chart understandingNeed chart captions, structured chart content, or chart QAUnderstand and structure chart content
doc vqaNeed answers to specific questions about a document image/PDFAnswer questions grounded in the document

Mode Selection Heuristics

  • Use document parsing for full-page document understanding where output should be Markdown and preserve hierarchy.
  • Use layout analysis when bounding boxes and categories are the main output.
  • Use element recognition only after cropping the target region or when the user provides a single focused element image.
  • Prefer scripts/run_element_recognition.py for element recognition so the result is written next to the source file as a single markdown file without any assets directory.
  • Use document parsing with layout when both Markdown reconstruction and layout boxes are needed.
  • Use general ocr for screenshots, signs, posters, and simple document text extraction where layout is not important.
  • Use key information extraction for forms, certificates, IDs, invoices, receipts, contracts, and other field-centric documents.
  • For key information extraction, if the user asks for all key-value information or all fields without naming a concrete field list, use the schema-free prompt path instead of inventing an explicit schema.
  • Use chart understanding for plots, dashboards, and chart-heavy report pages.
  • Use doc vqa for targeted questions such as totals, dates, clauses, page content, or whether a document contains a specific item.

Reference Loading Rule

Only after token preflight has passed and after selecting the mode, always read the corresponding file in references/ before composing the prompt or calling any script.

  • document parsing -> references/document-parsing.md
  • layout analysis -> references/layout-analysis.md
  • element recognition -> references/element-recognition.md
  • document parsing with layout -> references/document-parsing-with-layout.md
  • general ocr -> references/general-ocr.md
  • key information extraction -> references/key-information-extraction.md
  • chart understanding -> references/chart-understanding.md
  • doc vqa -> references/doc-vqa.md

Do not skip this step when a matching reference exists.

Prompt Sourcing Rule

When the selected reference contains a prompt template, prompt rule, fixed prompt, output format, or parameter recommendation, use that reference as the primary source of truth.

  • Prefer the prompt in the corresponding references/*.md file over ad-hoc prompt writing.
  • Reuse the reference prompt verbatim when it is marked as a fixed prompt or standard prompt.
  • Reuse the reference output format requirements instead of inventing a new format.
  • Only add task-specific details, such as the user question, selected keys, page number, or input scope, on top of the reference prompt.
  • If you intentionally deviate from the reference prompt, state why in the intermediate reasoning and keep the deviation minimal.

Parameter Mapping Rule

If the selected reference defines execution parameters, convert them into actual CLI flags or request fields. Do not leave them as documentation-only notes.

Examples:

  • min_dynamic_patch = 8 -> pass --min-dynamic-patch 8
  • max_dynamic_patch = 24 -> pass --max-dynamic-patch 24
  • thinking mode -> pass --thinking

Before running qianfan_ocr_cli.py, verify that the final command includes the parameter settings required by the selected mode.

Prompt Rules

  • Write the VLM prompt in Chinese when the user is communicating in Chinese; otherwise use English.
  • State the mode and output format explicitly in the prompt.
  • Tell the model to mark anything uncertain as unclear / unreadable instead of guessing.
  • For PDFs, mention page numbers in the prompt whenever multiple pages are analyzed.
  • For cropped inputs used in element recognition, specify the element type: text, formula, table, figure caption, seal, signature block, and so on.
  • For document parsing outputs that contain ![label](<box>[[...]]</box>) placeholders, run scripts/render_doc_markdown.py before presenting the Markdown to users who need renderable local images.
  • Prefer scripts/run_document_parsing.py over manually chaining qianfan_ocr_cli.py and render_doc_markdown.py when the task is standard document parsing.
  • Prefer scripts/run_pdf_document_parsing.py for PDF document parsing when the user wants one markdown for the whole PDF plus per-page markdown files and a shared assets directory. Use --request-mode joint when selected PDF pages are semantically related and should be sent as one multi-image request. Use --request-mode batch --concurrency <N> when pages can be parsed independently and should run concurrently.
  • Prefer scripts/run_document_parsing_with_layout.py for document parsing with layout so the final output includes markdown, _layout.json, and a rendered layout overlay image.

CLI Strategy

  • Default to one call per image or page.
  • Use repeated --image flags only for cross-page or cross-image reasoning that truly depends on joint context.
  • If multiple images should be processed independently rather than jointly, use scripts/qianfan_ocr_cli.py --batch --concurrency <N> or a dedicated runner instead of sending all images as one joint request.
  • Use --thinking only for difficult document understanding tasks with ambiguous reading order or dense field relationships.
  • Retry at most once per image/page, and only with a more specific prompt.

Read only the relevant reference file when needed, but do read that file before prompt construction:

  • references/document-parsing.md
  • references/layout-analysis.md
  • references/element-recognition.md
  • references/document-parsing-with-layout.md
  • references/general-ocr.md
  • references/key-information-extraction.md
  • references/chart-understanding.md
  • references/doc-vqa.md

Output Contract

Return a structured result instead of raw model prose:

=== VISUAL ANALYSIS RESULT ===
mode: <mode>
confidence: <high|medium|low>
input_type: <image|pdf>
image_count: <N>
page_count: <N or n/a>

answer:
<direct answer or summary>

evidence:
- <directly observed fact>

warnings:
- <uncertainty or limitation>

markdown:
<for document parsing modes>

layout:
- page: <n>
  category: <label>
  bbox: [x1, y1, x2, y2]

structured_data:
<for key information extraction / chart understanding>

recognized_elements:
<for element recognition>
=== END VISUAL ANALYSIS ===

Conservatism Rules

  • Separate observation from inference.
  • Never invent text, values, fields, or boxes.
  • Mark unreadable regions explicitly.
  • For charts, distinguish exact values from estimated values.
  • For PDFs, keep page attribution explicit: page_1, page_2, and so on.
  • If page conversion or image quality is poor, mention that in warnings.

平台分布

Codex

36.73%
按下载量换算70

Claude

29.46%
按下载量换算56

Cursor

20.57%
按下载量换算39

Gemini CLI

9.72%
按下载量换算18

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

未通过

权限和风险

接触敏感数据

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills