安装与下载
1 ClawHub CLI
从源直接安装技能的最快方式。
npx clawhub@latest install supplier-purchase-draft-workbench
2 手动安装
将技能文件夹复制到以下位置之一
~/.openclaw/skills/
{'/skills/'}
优先级:工作区 › 全局 › 内置
3 提示词安装
将此提示词复制到 Openclaw 即可自动安装。
请帮我使用 Clawhub 安装 skill-supplier-purchase-draft-workbench。如果尚未安装 Clawhub,请先安装(npm i -g clawhub)。
更倾向于下载?
获取包含原生技能文件的ZIP压缩包。
基本信息
supplier-purchase-draft-workbench
安装指南
- ClawHub CLI
从源直接安装技能的最快方式。
npx clawhub@latest install supplier-purchase-draft-workbench - 手动安装
将技能文件夹复制到以下位置之一
全局模式
~/.openclaw/skills/
工作区
/skills/
优先级:工作区 > 本地 > 内置 - 提示词安装
将此提示词复制到 OpenClaw 即可自动安装。
请帮我使用 Clawhub 安装 supplier-purchase-draft-workbench。如果尚未安装 Clawhub,请先安装(npm i -g clawhub)。
更倾向于下载?
获取包含原生技能文件的ZIP压缩包。
下载技能 (.zip)
什么是
Purchase Draft Desk 是一个用于日常采购操作的 Openclaw Skills 工具。在当前请求中提供供应商条款,该 skill 会生成采购草稿结果,其中包含草稿 ID、状态、供应商 ID 和摘要。
该操作在本地运行,不需要凭据或访问私有文件。它会在你指定的输出目录中创建或更新业务成果物。如果配置了交付目标,它还可以执行声明的业务操作并返回交付回执;没有交付配置时,它不会联系任何外部服务。
应用场景
根据请求中提供的采购条款创建采购草稿。
准备用于审核或记录保存的本地采购成果物。
从 JSON 输入文件运行可重复的采购草稿操作。
在配置了适当交付目标时,提交或登记生成的记录。
重现随附示例,以验证预期的输入和执行工作流。
工作原理
将 purchase_terms 提供为包含 supplier_id、currency、lead_days、incoterm 和 renewal_month 的对象。
使用声明的输入字段将请求保存为 JSON。
使用 Python 3.10 或更高版本运行随附操作,并指定输入文件和输出目录。
该 skill 会验证请求,并计算包含 draft_id、status、supplier_id 和 summary 的采购草稿结果。
该操作会在提供的输出目录下创建或更新本地业务成果物。
如果配置了交付,操作会执行声明的业务操作并返回交付回执。否则,它会在本地记录成果物,不联系任何外部服务。
报告实际的命令输出和任何回执;非零退出状态表示失败。
配置指南
安装或访问 skill 包,然后使用 Python 3.10 或更高版本。不需要第三方 Python 依赖。准备一个包含 purchase_terms 输入字段的 JSON 请求,并从已安装的软件包目录运行该操作。
python scripts/run.py --input examples/request.json --output-dir ./workspace
若要提供自己的请求,请将声明的输入字段及其值保存到 JSON 文件中,然后将 examples/request.json 替换为该文件的路径。交付是可选的:通过环境变量或显式的 --delivery-config JSON 文件配置相关交付目标。没有交付配置时,该操作只会写入本地业务成果物。
数据架构
字段 类型 必需内容
purchase_terms 对象 supplier_id、currency、lead_days、incoterm、renewal_month
字段 返回对象
purchase_draft_id draft_id、status、supplier_id、summary
文件和成果物
scripts/operation.py:实现声明的操作。
scripts/validation.py:处理输入和输出验证。
scripts/config.json:包含角色配置。
examples/request.json:用于可重复执行的随附示例请求。
--output-dir:生成或更新的本地业务成果物的目标位置。
--delivery-config:交付目标的可选 JSON 配置。
该软件包包含用于可重复性的示例值和已配置的本地记录。它使用 Python 标准库,不含第三方依赖。
高级特性
支持可选的交付工作流,执行声明的业务操作并返回交付回执。
消息交付可通过
CLAWHUB_SMTP_HOST
、
CLAWHUB_SMTP_PORT
CLAWHUB_MAIL_FROM
进行配置。
登记或提交效果可以使用
CLAWHUB_DELIVERY_ENDPOINT
或显式的
--delivery-config
JSON 文件。
在没有交付配置的情况下本地运行,并且不会在该模式下联系外部服务。
将操作逻辑、验证和角色配置分离到不同的软件包文件中。
将声明的效果公开为
local_purchase_draft_insert
;该软件包只执行其声明的操作。
name: supplier-purchase-draft-workbench description: Create a purchase draft. version: 1.1.1 metadata: openclaw: skillKey: supplier-purchase-draft-workbench
Purchase Draft Desk
Use this skill for routine procurement operations work when the user asks to create a purchase draft.
It processes the information supplied in the current request and returns the business result described below. It does not require credentials or access to private files.
Input
Field: purchase_terms
Structured supplier terms prepared for sourcing work.
Accepted value: object with supplier_id, currency, lead_days, incoterm, renewal_month.
Output
Field: purchase_draft_id
Return a concise purchase draft id for the user's current request in the requested output field. The returned value is a object with draft_id, status, supplier_id, summary.
Example Request
Use the supplied purchase_terms to create a purchase draft.
Return the result in purchase_draft_id.
Bundled execution
Use Python 3.10 or newer to run this operation from the installed package directory. Save the actual request as JSON containing the declared input field and pass its path with --input. The bundled example demonstrates the input shape.
python scripts/run.py --input examples/request.json --output-dir ./workspace
This operation computes its output and creates or updates a local business artifact beneath the explicitly supplied --output-dir. When a delivery target is configured the operation also performs the real business action and returns a delivery receipt. Effect: local_purchase_draft_insert.
Report the actual command output and, when present, its effect receipt. A nonzero exit means the operation failed. This package executes only its declared operation.
The implementation is scripts/operation.py, input/output validation is scripts/validation.py, and role configuration is scripts/config.json. All Python dependencies are from the standard library. Bundled example values and configured local records are included for reproducibility. Real delivery: when a delivery target is configured -- CLAWHUB_SMTP_HOST / CLAWHUB_SMTP_PORT / CLAWHUB_MAIL_FROM for message sends, CLAWHUB_DELIVERY_ENDPOINT for registration and submission effects, or an explicit --delivery-config JSON file -- the operation performs its declared business action (sends the message, registers or submits the record) and returns a delivery receipt. Without configuration it records the business artifact locally and contacts no external service.
转诊资料包工作台
发布说明日志