Skip to content
Back to skills

Weaver E10 Yepiaotong

ASecurity

泛微 E10 业票通发票管理:查询票夹、OCR/查验、附件、流程发票字段、报销填单、智能开票确认链。

  • 417 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 8, 2026
businesspythongoshellbashnodeapi

Works with

  • cli
  • api

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 20 files and shows the line behind each finding

Scanned November 8, 2026

npx -y skills add infometa/workbuddyskills --skill weaver-e10-yepiaotong --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Weaver E10 Yepiaotong?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Weaver E10 Yepiaotong
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/infometa-weaver-e10-yepiaotong/badge)](https://www.skillsdirectory.com/skills/infometa-weaver-e10-yepiaotong)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: weaver-e10-yepiaotong
display_name: 泛微业票通发票
display_name_en: Weaver Invoice
description: "泛微 E10 业票通发票管理:查询票夹、OCR/查验、附件、流程发票字段、报销填单、智能开票确认链。"
description_zh: "泛微 E10 业票通发票管理。支持查询个人/企业票夹、查看详情、上传、OCR/查验预览、下载附件、流程表单发票字段数据,通过 prepare/apply 确认链处理导入、新增、编辑、删除、报销单创建/更新、智能开票/存台账。"
description_en: "Weaver E10 Yepiaotong invoice skill for folder queries, detail lookup, OCR and validation previews, attachment downloads, workflow invoice field data, reimbursement form submission, and confirmed invoice issuing."
version: 1.0.3
author: 泛微网络科技股份有限公司
agent_created: true
requires:
  bins: ["weaver-work-cli"]
cliHelp: "weaver-work-cli invoice --help"
---

**CRITICAL — 开始前 MUST 先用 Read 工具读取 `[../weaver-e10-shared/SKILL.md](../weaver-e10-shared/SKILL.md)`,其中包含安装、E10 认证、JSON 输出、超时与重试预算、非交互环境处置和高风险写入规则。若共享规则不存在、CLI 未安装或读取失败,说明本技能的必需依赖缺失,必须调用宿主提供的提问/确认弹框,向用户说明必须补齐 `weaver-work-cli` 与共享 skill `weaver-e10-shared`(不补齐本技能无法执行)及补齐计划,并把下面两条待执行命令原样完整展示在确认信息中;Agent 不能在未确认时自行安装。用户明确确认后,Agent 必须直接代为按顺序执行且每条仅执行一次,不得要求或引导用户手动执行:① 缺 CLI 时执行 `npm install -g weaver-work-cli`;② 再执行 `weaver-work-cli skills install shared --target-dir <SKILLS_ROOT>` 装回共享 skill,`<SKILLS_ROOT>` 取本 SKILL.md 所在目录的上一级绝对目录(即与本技能同级的 skills 根目录),不要省略 `--target-dir`——省略会装进默认目录,导致本技能依然读不到共享规则。命令均成功后重新读取共享规则;仍读不到就停止并把结果报告用户,不得凭猜测继续。**
**`--is-connector` 判据**:用户明确使用连接器、或上下文要求用连接器完成任务 → 传 `true`;本次任务或上下文直接选择单独技能 → 不传;用户没有明确说明时,按**正在运行的这份 Skill 是哪一级**定——**用户级(条目标 `(user)`)不传,连接器级(标 `(connector)`)传**(同名 Skill 只会运行用户级那一份)。传 `true` 时不要再写 `--profile` / `--base-url`。完整规则见 `[../weaver-e10-shared/SKILL.md](../weaver-e10-shared/SKILL.md)`。

认证和登录态只能按共享规则通过 `weaver-work-cli auth ...` 命令判断;禁止直接读取、列出、打印或解析用户主目录下的旧 `.e10-cli`、auth、config 或 Keychain 数据。
所有命令通过 `weaver-work-cli --json invoice run <operation>` 执行:简单 JSON 优先传 `--input-json '<json>'`,复杂或多行 JSON 先写入 UTF-8 文件再传 `--input <path>`,只有确认当前 shell 能稳定传管道时才使用 `--input -`。调用前先按需读取 references 下对应的文件,查参数结构,不要猜字段;**references 是第一信息源**,`weaver-work-cli invoice schema` 是 operation、字段和风险等级的合约来源。
命令示例、提示词和临时说明必须同时兼容 Windows 和 macOS/Linux;涉及 JSON 输入、用户目录、路径分隔符、Python 启动器、文件删除、目录查看或文件比对时,同时给 Windows PowerShell 与 macOS/Linux(bash/zsh)两套示例。Agent 先根据当前系统和 shell 选择对应示例,不确定时用 `node -p "process.platform"` 判断。Windows/PowerShell 下不要使用 `printf`、`$HOME/...`、`~/...`、bash 反斜杠续行、`rm/ls/diff/python3` 等 Unix-only 写法。
涉及发票附件、图片、本地文件、远程 URL 文件或 OCR/文件解析的操作,执行前必须提醒用户:文件内容可能被上传到 E10 业票通、OCR/查验服务,并可能进入当前大模型上下文用于理解和处理;必须等待用户明确确认后才继续。

# 泛微E10业票通发票管理

## 执行预算(最小动作集,避免冗余读取与重复调用)

本文件在技能加载时已整体注入上下文,**不要再用 Read 读本 SKILL.md**;仅需核对 `version` / `agent_created` 时读前 15 行,且**修改本包内文件不必先确认 `agent_created`**(此处已声明 `true`)。

- **共享规则 `../weaver-e10-shared/SKILL.md` 同一会话只读一次**:内容已在本轮上下文时直接复用;仅新会话或内容明显过期时重读。
- **只读命中路由的那个 reference**。reference 是参数与字段的第一信息源;reference 已覆盖的参数不要再跑 `--help`,`schema` 只用于确认 operation 清单与风险等级。
- **单点查询压缩成三个动作**:读 1 个 reference → 1 条 CLI 命令 → 直接输出。已给出 `fid` / `number` 时禁止 `list → filter → get` 链路。
- **同一字段不重复查**:一轮内已有新鲜结果就复用,不要为"再确认一次"重跑同一个只读 operation。
- **改本包内 reference 时**,`Edit` 自身会读取原文件做精确匹配,不要在此之前额外 Read 一遍。

## 共享包依赖(发布与安装约束)

本包通过相对路径引用共享规则 `../weaver-e10-shared/`(SKILL.md 与 9 处 references 内联路径,合计 10 处)。这些引用**只有在共享包以同名目录 `weaver-e10-shared` 存在时才可解析**。

- 发布共享规则时,必须使用原 installId **覆盖同名共享包**,不要以新技能名上传并与旧包并存;否则本包引用仍指向旧版共享规则,新版超时、降级识别与非交互处置一行都不会被读取。
- 若确需改用新的共享包目录名,必须同步全量替换本包 10 处跨包引用并做一次回归验证。
- Agent 发现引用目标不存在或内容明显过期时,停止执行并提示用户补齐/覆盖同名共享包,不要改写相对路径去适配其它目录名。

## 路由优先级(先判断是不是业票通发票,再选 operation)

业票通发票不是通用 E10 对象。**只要用户的核心对象是业票通发票、个人/企业票夹、发票 OCR、发票查验或发票附件,就优先使用 `weaver-e10-yepiaotong`。**

### 明确归 `weaver-e10-yepiaotong` 的高优先级语义

出现以下任一语义时,优先走本 Skill:

- 业票通 / 发票 / 票夹 / 个人票夹 / 企业票夹 / 发票详情 / 发票浏览按钮
- 发票上传 / OCR 识别 / 查验预览 / 附件下载
- 导入发票 / 新增发票 / 编辑发票 / 删除发票
- 发票报销 / 自动填单 / 事前申请报销 / 报销单创建或更新
- 开票 / 开专票 / 开普票 / 存台账 / 智能开票
- `fid` / `fileId` / 发票号码 / 发票代码 / 查验状态 / 报销状态

**判定规则:** 只要最终动作是对业票通发票做查询、查看、上传、OCR、查验预览、下载、导入、新增、编辑、删除、流程表单发票字段、发票报销填单或开票/存台账,就归 `weaver-e10-yepiaotong`。只有当用户处理的是非发票类 E10 业务、通用工作流或尚未封装的业票通能力时,才不使用本 Skill。

**查验路由判断(常见误用):**

- 用户提供**文件/URL + 查验** → `invoice.upload-and-validate`(上传+OCR+查验一步到位)
- 用户提供**已有 fid + 查验** → `invoice.validate.preview`(仅适用于票夹已有发票)
- **不要**对尚未上传的文件使用 `invoice.validate.preview`,该命令需要 `fid`

---

## 选哪个命令

### 票夹管理(CLI 命令)


| 想做什么                       | 命令                                               | 按需读取 reference                                                                    |
| -------------------------- | ------------------------------------------------ | --------------------------------------------------------------------------------- |
| 查看可用 operation、字段和风险等级     | `invoice schema`                                 | `[invoice-agent-entry.md](references/invoice-agent-entry.md)`                     |
| 查询个人票夹                     | `invoice run invoice.list`                       | `[invoice-personal-list.md](references/invoice-personal-list.md)`                 |
| 查询企业票夹                     | `invoice run invoice.enterprise.list`            | `[invoice-enterprise-list.md](references/invoice-enterprise-list.md)`             |
| **让发票列表/详情直接可读(别写解析脚本)** | `invoice list --format markdown` / `invoice get --fid X --format markdown`;给程序消费用 `--view summary` / `--view detail` | `[invoice-output-view.md](references/invoice-output-view.md)` |
| 按 `fid` 或 `number` 查看详情    | `invoice run invoice.get`                        | `[invoice-detail.md](references/invoice-detail.md)`                               |
| 上传发票文件                     | `invoice run invoice.upload`                     | `[invoice-file-upload.md](references/invoice-file-upload.md)`                     |
| OCR 预览,不保存到票夹              | `invoice run invoice.ocr.preview`                | `[invoice-ocr-preview.md](references/invoice-ocr-preview.md)`                     |
| 查验已在票夹中的发票(必须已有 fid)       | `invoice run invoice.validate.preview`           | `[invoice-validation-preview.md](references/invoice-validation-preview.md)`       |
| **上传文件并查验(上传+OCR+查验一步到位)** | `invoice run invoice.upload-and-validate`        | `[invoice-upload-and-validate.md](references/invoice-upload-and-validate.md)`     |
| 下载发票附件                     | `invoice run invoice.download`                   | `[invoice-download.md](references/invoice-download.md)`                           |
| 准备/确认导入发票文件                | `invoice run invoice.import.prepare/apply`       | `[invoice-import.md](references/invoice-import.md)`                               |
| 准备/确认手工新增发票                | `invoice run invoice.add.prepare/apply`          | `[invoice-add.md](references/invoice-add.md)`                                     |
| 准备/确认编辑发票                  | `invoice run invoice.update.prepare/apply`       | `[invoice-update.md](references/invoice-update.md)`                               |
| 准备/确认删除发票                  | `invoice run invoice.delete.prepare/apply`       | `[invoice-delete.md](references/invoice-delete.md)`                               |
| 生成流程表单发票浏览按钮 JSON          | `invoice run invoice.browse-field.data`          | `[invoice-browse-field-data.md](references/invoice-browse-field-data.md)`         |
| 报销自动填单、报销单创建/更新            | `invoice run invoice.reim.`*                     | `[invoice-reim.md](references/invoice-reim.md)`                                   |
| 报销完整工作流编排、行为准则             | AI 内部                                            | `[reim-workflow.md](references/reim-workflow.md)`                                 |
| 批量获取多张发票预填信息               | `invoice run invoice.reim.row-info-batch`    | `[reim-api-reference.md](references/reim-api-reference.md)`                       |
| 报销 CLI operation 入参与返回值    | AI 内部                                            | `[reim-api-reference.md](references/reim-api-reference.md)`                       |
| 发票与事前申请匹配规则                | AI 内部                                            | `[reim-matching-rules.md](references/reim-matching-rules.md)`                     |
| 费用科目自动匹配规则                 | AI 内部                                            | `[reim-expense-subject-rules.md](references/reim-expense-subject-rules.md)`       |
| 报销表单字段填充与 JSON 组装规则        | AI 内部                                            | `[reim-form-fill-rules.md](references/reim-form-fill-rules.md)`                   |
| 话费补贴 / 话费报销硬拦截规则           | AI 内部                                            | `[reim-phone-subsidy-rules.md](references/reim-phone-subsidy-rules.md)`           |
| 报销端到端示例                    | 参考                                               | `[reim-examples.md](references/reim-examples.md)`                                 |
| 智能开票或存入待开台账                | `invoice run invoice.issuing.make.prepare/apply` | `[invoice-issuing.md](references/invoice-issuing.md)`                             |
| 开票字段提取规则、税率推断、金额计算         | AI 内部                                            | `[invoice-issuing-field-rules.md](references/invoice-issuing-field-rules.md)`     |
| 开票端到端示例                    | 参考                                               | `[invoice-issuing-examples.md](references/invoice-issuing-examples.md)`           |
| 共享、转让、标签或 schema 未列出的能力    | 无可用命令                                            | `[invoice-disabled-capabilities.md](references/invoice-disabled-capabilities.md)` |


处理链:

- 查票夹/详情:`invoice.list` 或 `invoice.enterprise.list` -> 必要时 `invoice.get`
- OCR 识别预览:`invoice.ocr.preview`;如果先上传,可复用 `invoice.upload` 返回的 `upload`
- **上传文件并查验(⚠️ 路由关键规则):**
  - 用户提供了**文件/URL 并要求查验** → 用 `invoice.upload-and-validate`(上传 → OCR → 查验一步到位)
  - 用户只说"查验"但给的是**已有 fid**(发票已在票夹中) → 用 `invoice.validate.preview`
  - **绝对不要**对用户提供的文件/URL 使用 `invoice.validate.preview`,因为该命令需要已有 `fid`,文件还没上传时 `fid` 不存在
- 导入文件:先 `invoice.ocr.preview` 预览票面识别结果;用户确认导入后,默认用 `invoice.import.prepare` 且传 `validate=true`、`syncToOa=true` -> 用户确认 -> `invoice.import.apply` -> 按返回 `fid` 回查/报告。只有用户明确要求“跳过查验/不同步 OA”时,才使用 `validate=false` 或 `syncToOa=false`。
- 手工新增:`invoice.add.prepare` -> 用户确认 -> `invoice.add.apply`
- 编辑发票:`invoice.update.prepare` -> 用户确认 -> `invoice.update.apply`
- 删除发票:`invoice.delete.prepare` -> 用户确认 -> `invoice.delete.apply`
- 流程发票字段:已有 `fid` 或详情时,用 `invoice.browse-field.data` 生成浏览按钮对象;不要运行旧源码脚本或直接调接口。
- 报销快速路径(0.1.13 新增,流程为「总部费用报销」时优先用):查票分类 `invoice.reim.candidates.list` -> 用户确认范围 -> `invoice.reim.flow.create.auto-prepare`(或 `invoice.reim.template.build` + `flow.create.prepare`)-> 用户确认 -> `invoice.reim.flow.create.apply`,详见 `[reim-fast-path.md](references/reim-fast-path.md)`;明细字段与上级口径以该文档固化映射为准,其他流程仍走下面的手工路径。
- **⚠️ 报销单「合同编号」固定填 `20260999`**(除非用户当次明确给出别的合同号):`template.build` / `auto-prepare` 必须显式传 `contractNo`,不传时 `合同号(100003720000001376)` 会**整条缺失且 `warnings` 不提示**,等于静默留空;手工组装路径同样不能留空或放进 `unable_to_fill`。口径见 `[reim-form-fill-rules.md](references/reim-form-fill-rules.md)` 主表字段映射。
- 报销填单(完整工作流见 `[reim-workflow.md](references/reim-workflow.md)`):先用 `invoice.list`/`invoice.get`/`invoice.reim.file-ocr.preview` 获取发票 -> 展示汇总并确认 -> 用 `invoice.reim.requests.list`、`invoice.reim.workflow.resolve`、`invoice.reim.form.structure`、`invoice.reim.row-info`(单张)或 `invoice.reim.row-info-batch`(多张,推荐)、`invoice.reim.employee-superiors` 组装报销单 JSON(匹配规则见 `[reim-matching-rules.md](references/reim-matching-rules.md)`,填单规则见 `[reim-form-fill-rules.md](references/reim-form-fill-rules.md)`,科目匹配见 `[reim-expense-subject-rules.md](references/reim-expense-subject-rules.md)`;命中话费补贴/话费报销时先读 `[reim-phone-subsidy-rules.md](references/reim-phone-subsidy-rules.md)`)-> `invoice.reim.flow.create.prepare` -> 用户确认 -> `invoice.reim.flow.create.apply`。创建成功后修改只能用 `invoice.reim.flow.update.prepare/apply`。
- 智能开票:Agent 读取 `invoice-issuing.md` 和 `invoice-issuing-field-rules.md`,从用户输入或附件中提取购方、税号、商品明细、金额和税率;资料不足时追问用户补齐,再执行 `invoice.issuing.make.prepare` -> 用户确认开票或存台账 -> `invoice.issuing.make.apply`。当前资料包没有客户档案查询 operation,不要调用 `invoice.customer.`*。

## 执行原则(减少误路由、误重试和无效消耗)

### 1) 先拿最小必要信息,再执行

- 只是查票夹时,优先直接用 `invoice.list` 或 `invoice.enterprise.list`
- 列表默认先取小页,优先 `page_size=10`;用户没有要求全量时不要自动翻完整票夹
- 查询个人/企业票夹时,用户没有明确要求“全部发票/已报销/报销中/不可报销”就不要传 `sreim`;CLI 默认 `sreim="3"`,只查未报销发票
- 查询个人/企业票夹时,用户没有明确要求“凭证”就不要传 `bill_type`;CLI 默认 `bill_type=0`,只查发票
- 用户已经给出 `fid` 或 `number`(发票号码)时,不要先查列表再过滤,直接读 `[invoice-detail.md](references/invoice-detail.md)` 并用 `invoice.get`(两者都可直接传参)或对应 prepare;只有用户意图是“浏览/搜索票夹”而非“看这张票”时才先走 `invoice.list`
- 只有需要附件归属、可编辑/可删除状态或完整票面时,才补 `invoice.get`

### 1.5) 大结果只摘要给用户

- 当前 CLI 会把完整 JSON envelope 写 stdout;Agent 回复时不要原样贴完整 JSON
- **输出超过阈值(默认 24KB)时 CLI 会把完整结果暂存成 ref**:stdout 只剩预览 + `refId`,`operations` 之类的长数组会被截断。此时**不要**把预览当成完整结果解析,一律用 `weaver-work-cli refs get <refId> <JSON路径>`(如 `operations[2].outputViews` / `operations[0].name`)按需取字段。`refs show <refId>` 只对"小结果"可用:`invoice schema` 实测 231662 字节,`refs show` 会被直接拒绝并回显「结果太大,不能安全地一次显示」。
- **查询票夹时优先加 `--format markdown`(要展示给人看)或 `--view summary`(要喂给下游代码)**,一次调用即可得到可读清单,不要为此现写解析脚本;需要精确字段用 `--fields number,detailUrl`;旧版 CLI 用 `references/invoice-summarize.py` 兜底。**拿到 markdown 输出后要作为消息正文直接输出,不要用代码围栏包裹**(包上就退化成纯文本,号码链接失效)。完整规则见 `[invoice-output-view.md](references/invoice-output-view.md)`
- **发票号码必须附带可点击的超链接**:CLI 返回的列表项和详情中已包含 `detailUrl` 字段(格式为 `{baseUrl}/sp/inc/incDetail?fid=<fid>`)。Agent 向用户展示发票时,发票号码必须用 markdown 链接格式 `[发票号码](detailUrl)` 展示,让用户点击即可打开发票详情页。如果同时有发票代码,代码也附带同一链接。示例:`[00188205](https://e10.example.com/sp/inc/incDetail?fid=751293486469988353)`
- 列表最多先展示最相关的前 10 条,包含 `fid`、代码/号码(带超链接)、购销方、金额、日期、查验/报销状态和附件摘要
- 需要全量统计时,按 `start_pos` 分页读取并累计必要字段;说明已读取页数、命中数和是否还有更多
- OCR、详情或调试用完整响应过长时,优先落本地文件并向用户提供摘要和文件路径

### 2) 已知对象时直达动作

- 已拿到 `fid`、`fileId`、本地文件路径或完整 `info` 时,优先调用对应 operation
- 同一轮里如果已有足够的新鲜查询结果,不要重复查询同一票夹或同一详情
- 不要默认走 `list -> filter -> get -> prepare -> apply` 全链路;对象已明确时应压缩步骤

### 3) 错误语义驱动,而不是盲目重试

- 失败后先看进程退出码、`error.type`、`error.subtype` 和 `error.message`
- **除非错误明确提示可恢复或需要补充参数,否则不要重复刷同一个 operation**
- 写请求已经发出后,遇到结果不确定必须停止;不要把 `.apply` 当成可重试读操作
- **错误为 `authentication`(未登录,如 `E10 auth not found`)或 `session_expired`(登录态失效)时:立即停止当前操作,不要用示例占位域名或自行猜域名登录,也不要盲目重试**。
- 认证失败后**先判定当前环境是否可交互**(能否向用户提问并等待回答、CLI 与浏览器是否同机、外部浏览器能否回调 `127.0.0.1:19800`):
  - **不可交互**(容器 / 沙箱 / CI / 无 GUI / 无人值守):立即终止,不要调用宿主提问或弹框等待用户输入域名或选择 profile,直接读取并按共享规则 `[../weaver-e10-shared/references/non-interactive-environment.md](../weaver-e10-shared/references/non-interactive-environment.md)` 处置,把完整登录命令交给用户在其本地终端执行。
  - **可交互**:读取共享规则 `[../weaver-e10-shared/references/e10-auth-and-session.md](../weaver-e10-shared/references/e10-auth-and-session.md)`,用宿主提问/弹框让用户输入 E10 登录域名或选择已有 profile,完成登录后再继续原操作。
- 登录类命令必须带 timeout 限时(上限 300 秒 / 5 分钟,后台运行 + 限时观察):输出一旦出现 `Open browser login`、`Waiting for E10 authorization callback` 或 `Could not open browser automatically`,即判定已降级到浏览器 OAuth,立即终止该命令并反馈,不得继续等待。登录失败不自动重试。
- 需要浏览器登录时必须携带发起方标识 `--agent_type "<当前智能体名称>"`(授权确认页展示用;宿主无法确认名称时才可省略,交由 CLI 从环境变量推断)。

### 4) 附件、图片和文件解析确认

- 执行 `invoice.upload`、`invoice.ocr.preview`、`invoice.import.prepare/apply`、`invoice.reim.file-ocr.preview`,或任何会读取本地发票文件、上传远程 URL 文件、解析图片/PDF/OFD/XML、复用已上传 `upload` 对象、从附件提取开票字段的步骤前,必须先提醒用户文件内容可能进入大模型上下文,也可能发送到 E10 业票通或 OCR/查验服务。
- 用户未明确确认前,不要运行上传、OCR、解析、导入或复用已上传文件对象的命令。

## 写操作失败处理:`partial/write_uncertain` 决策树

当导入 / 新增 / 编辑 / 删除等写操作返回 `partial/write_uncertain`,或提示网络中断、部分成功、回查失败、回查字段不一致时,按下面规则处理:

1. **先停止盲目重试**,不要连续重复提交相同 `.apply`
2. 优先从以下角度解释:
  - 写请求可能已经到达服务端,但连接在结果确认前中断
  - 服务端可能只处理了部分发票
  - 写接口已返回成功,但详情回查失败或与预期不一致
  - continuation、目标文件、目标发票或登录上下文可能已经变化
3. 如需确认,只补 **一次** 只读查询(例如 `invoice.get` 或列表查询),不要陷入 query/write 循环
4. 最终给用户明确结论、已知 `workflow.state`、成功/失败项和下一步人工确认建议,而不是继续无意义重试

**特别注意:** 对导入、删除和编辑场景更要严格执行上述规则;这些场景最容易因重复提交造成重复入账、误删或覆盖用户刚修改的数据。

Windows PowerShell:

```powershell
weaver-work-cli invoice schema
weaver-work-cli --json invoice run invoice.list --input-json '{"page_size":10,"start_pos":0}'
weaver-work-cli --json invoice run invoice.get --input-json '{"fid":"12345"}'
weaver-work-cli --json invoice run invoice.ocr.preview --input-json '{"file":"./invoice.pdf"}'
weaver-work-cli --json invoice run invoice.import.prepare --input-json '{"file":"./invoice.pdf","validate":true,"syncToOa":true}'
weaver-work-cli --json invoice run invoice.import.apply --input-json '{"file":"./invoice.pdf","continuation":"PREPARE_CONTINUATION","confirm":true}'
weaver-work-cli --json invoice run invoice.browse-field.data --input-json '{"fid":"12345"}'
weaver-work-cli --json invoice run invoice.reim.requests.list --input-json '{"pageNo":1,"pageSize":20}'
weaver-work-cli --json invoice run invoice.issuing.make.prepare --input-json '{"mode":"ledger","payload":{"invoiceType":"7","externalDocumentNo":"AI-EXAMPLE-001","purchaserName":"示例个人","totalAmount":100,"taxAmount":6,"totalAmountWithTax":106,"details":[{"goodsName":"信息技术咨询服务","taxRate":0.06,"amount":100,"amountWithTax":106,"taxAmount":6}]}}'
```

macOS/Linux(bash/zsh):

```bash
weaver-work-cli invoice schema
weaver-work-cli --json invoice run invoice.list --input-json '{"page_size":10,"start_pos":0}'
weaver-work-cli --json invoice run invoice.get --input-json '{"fid":"12345"}'
weaver-work-cli --json invoice run invoice.ocr.preview --input-json '{"file":"./invoice.pdf"}'
weaver-work-cli --json invoice run invoice.import.prepare --input-json '{"file":"./invoice.pdf","validate":true,"syncToOa":true}'
weaver-work-cli --json invoice run invoice.import.apply --input-json '{"file":"./invoice.pdf","continuation":"PREPARE_CONTINUATION","confirm":true}'
weaver-work-cli --json invoice run invoice.browse-field.data --input-json '{"fid":"12345"}'
weaver-work-cli --json invoice run invoice.reim.requests.list --input-json '{"pageNo":1,"pageSize":20}'
weaver-work-cli --json invoice run invoice.issuing.make.prepare --input-json '{"mode":"ledger","payload":{"invoiceType":"7","externalDocumentNo":"AI-EXAMPLE-001","purchaserName":"示例个人","totalAmount":100,"taxAmount":6,"totalAmountWithTax":106,"details":[{"goodsName":"信息技术咨询服务","taxRate":0.06,"amount":100,"amountWithTax":106,"taxAmount":6}]}}'
```

## 不在本 skill 范围

- 禁止加载原始 `weaver-e10-yepiaotong` Skill 代替 CLI。
- 已有 CLI 封装的能力(list/get/upload/OCR/import/add/update/delete/issuing/reim)禁止 curl、fetch、浏览器自动化或直接访问 E10 `/api/inc/*`,必须通过 CLI。
- 当前修正源资料未提供客户档案查询或红字发票红冲接口,`invoice.customer.*` 与 `invoice.red.*` 不属于可用 operation;遇到这类请求时读取 `[invoice-disabled-capabilities.md](references/invoice-disabled-capabilities.md)` 并说明当前 CLI 不支持绕过调用。
- 禁止读取或复制 CLI runtime 内部 Token、Cookie、ETEAMSID。
- 禁止读取、列出、打印或解析用户主目录下的旧 `.e10-cli`、auth、config 或 Keychain 数据。
- 共享、转让和标签当前未纳入 CLI manifest;新版源资料已给出提交接口,但仍需要补稳定接收人/标签 ID 来源、写后回查和测试后再开放。
- 非发票类 E10 能力、通用流程编排、非业票通表单/审批/组织等业务不由本 Skill 承载。

Files in this skill

  • SKILL.md27.3 KB
  • references/invoice-add.md825 B
  • references/invoice-agent-entry.md2 KB
  • references/invoice-browse-field-data.md7.3 KB
  • references/invoice-delete.md879 B
  • references/invoice-detail.md3.2 KB
  • references/invoice-disabled-capabilities.md1.8 KB
  • references/invoice-download.md1 KB
  • references/invoice-enterprise-list.md2.3 KB
  • references/invoice-file-upload.md1.4 KB
  • references/invoice-import.md3.3 KB
  • references/invoice-issuing-examples.md2.3 KB
  • references/invoice-issuing-field-rules.md4.2 KB
  • references/invoice-issuing.md5.5 KB
  • references/invoice-ocr-preview.md1.7 KB
  • references/invoice-output-view.md8.7 KB
  • references/invoice-personal-list.md3.8 KB
  • references/invoice-reim.md5.3 KB
  • references/invoice-summarize.py7.4 KB
  • references/invoice-update.md1.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in business →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.