处理能力规划器

处理能力规划器根据输入工作负载识别处理配置文件,记录生成的队列条目,并可选择将其交付到已配置的服务。

wxt-ai
2026年10月11日
0 收藏
56 下载

安装与下载

1 ClawHub CLI

从源直接安装技能的最快方式。

npx clawhub@latest install processing-capacity-profile-complete

2 手动安装

将技能文件夹复制到以下位置之一

全局模式 ~/.openclaw/skills/
工作区 {'/skills/'}

优先级:工作区 › 全局 › 内置

3 提示词安装

将此提示词复制到 Openclaw 即可自动安装。

请帮我使用 Clawhub 安装 skill-processing-capacity-profile-complete。如果尚未安装 Clawhub,请先安装(npm i -g clawhub)。

更倾向于下载?

获取包含原生技能文件的ZIP压缩包。

下载技能 (.zip)

基本信息

名称 处理能力规划器
Slug processing-capacity-profile-complete
创建者 wxt-ai
创建时间 2026-10-11 05:36:09
更新时间 2026-10-11 05:36:09
收藏数 0
使用量 56
浏览量 10

安装指南

  1. ClawHub CLI 从源直接安装技能的最快方式。
    npx clawhub@latest install processing-capacity-profile-complete
  2. 手动安装 将技能文件夹复制到以下位置之一
    全局模式
    ~/.openclaw/skills/
    工作区
    /skills/
    优先级:工作区 > 本地 > 内置
  3. 提示词安装 将此提示词复制到 OpenClaw 即可自动安装。
    请帮我使用 Clawhub 安装 processing-capacity-profile-complete。如果尚未安装 Clawhub,请先安装(npm i -g clawhub)。
    更倾向于下载?
    获取包含原生技能文件的ZIP压缩包。
    下载技能 (.zip)

什么是

处理能力规划器是一个可执行的 Openclaw Skills 工作流,可将工作负载说明转换为处理配置文件和已记录的业务结果。其识别和交付阶段在同一产物中共同运行,并在你指定的输出目录下创建或更新本地任务队列记录。
交付是可选的:配置 SMTP 或 HTTP 端点即可执行声明的外部操作并接收交付回执。如果未配置交付,本技能会在本地记录业务产物,不会联系任何外部服务。

应用场景

将收到的工作负载说明转换为处理配置文件和队列记录。
从命令行运行可重复的两阶段业务工作流。
未配置外部交付目标时,将处理记录保留在本地。
通过明确配置的 HTTP 端点提交或登记队列记录。
工作流需要通过电子邮件交付时,使用已配置的 SMTP 发送消息。
验证集成并通过返回的回执检查交付结果。

工作原理

读取上游工作负载输入,例如 examples/request.json。
运行识别阶段以验证输入并计算 processing_profile。
将该配置文件传递给下游操作,以计算 recorded_profile,并在提供的输出目录下创建或更新 job_queue_record。
如果通过环境变量或交付配置文件配置了 SMTP 或 HTTP 交付目标,则执行声明的外部操作。
返回工作流输出,其中包括交付回执,结果可能为 sent、delivered、failed 或 unconfigured。交付错误会导致非零退出码。

配置指南

使用 Python 运行工作流,并提供输入文件和明确指定的输出目录:
python scripts/run.py --input examples/request.json --output-dir ./workspace
若要配置交付,可设置环境变量,或传入 --delivery-config delivery.json。
对于 SMTP,设置 CLAWHUB_SMTP_HOST;也可选择设置 CLAWHUB_SMTP_PORT、CLAWHUB_MAIL_FROM、CLAWHUB_SMTP_USERNAME 和 CLAWHUB_SMTP_PASSWORD。
对于 HTTP 登记或提交,设置 CLAWHUB_DELIVERY_ENDPOINT;也可选择设置 CLAWHUB_DELIVERY_API_KEY。
也可以在交付配置文件中提供 smtp_host、smtp_port 和 from_addr 等 SMTP 设置,或提供 HTTP endpoint。
如果没有交付目标,工作流将以仅本地模式运行,不会联系外部服务。examples/expected.json 记录了完整的输出结构,但不包括运行时路径和回执标识符。

数据架构

工作流分两个阶段处理数据:
阶段 输入或结果 用途
识别 workload_note → processing_profile 读取并验证上游输入,然后计算处理配置文件。
交付 processing_profile → recorded_profile 计算下游业务结果,并创建或更新 job_queue_record。
可选外部交付 交付配置 → delivery 回执 执行已配置的操作并报告其结果。
文件和位置:
examples/request.json — 随附的上游输入。
examples/expected.json — 完整两阶段输出结构示例。 --output-dir — 明确指定的目录,本地业务产物将写入该目录。 scripts/upstream/operation.py、scripts/upstream/validation.py 和 scripts/upstream/config.json — 识别阶段的实现和配置。
scripts/downstream/ — 下游交付实现,包括 deliver_effect。
scripts/run.py — 完整工作流运行器。
source-map.json — 两个提取阶段的来源信息。
运行时路径和回执标识符可能会有所不同,因此不会包含在随附的预期输出示例中。

高级特性

在一个可执行工作流中整合识别、业务结果计算、本地产物创建和可选交付。
默认支持仅本地执行;除非配置交付目标,否则不会联系外部服务。
支持通过环境变量或明确指定的配置文件进行 SMTP 交付。
支持使用可选 API 密钥进行 HTTP 登记或提交。
在回执中报告交付结果,并在发生错误时以非零进程退出码示警。
分离上游识别和下游交付实现,并在
source-map.json
中记录来源信息。


name: Processing Capacity Planner description: >- Select a processing profile. Then it executes the downstream business step: Register a queued processing profile. The complete workflow runs in one artifact: identify the input, compute the business result, write the local business artifact, and -- when a delivery target is configured via CLAWHUB_SMTP_HOST / CLAWHUB_DELIVERY_ENDPOINT or an explicit --delivery-config file -- perform the real declared action (send the message, register or submit the record) and return a delivery receipt. Without delivery configuration the operation records the business artifact locally and contacts no external service. version: 1.2.0 Processing Capacity Planner — complete probe workflow

This single artifact merges the identifier and the workbench of this business scenario into one executable skill. Running it performs the full chain:

Identify — reads the upstream input (workload_note) and computes the identification result (processing_profile).
Deliver — feeds the identification result into the downstream operation, computes the business result (recorded_profile), and creates or updates a local business artifact beneath the explicitly supplied --output-dir. Effect: job_queue_record.
Real delivery — when a delivery target is configured, performs the declared business action (job_queue_record) and returns a delivery receipt with the real outcome (sent / delivered / failed / unconfigured).

Run

python scripts/run.py --input examples/request.json --output-dir ./workspace [--delivery-config delivery.json]

The bundled examples/request.json is the upstream input; examples/expected.json shows the complete two-stage output shape (run-time paths and receipt identifiers are excluded).

Delivery configuration (optional, default: local only)
Message sends (smtp): set CLAWHUB_SMTP_HOST (optionally CLAWHUB_SMTP_PORT, CLAWHUB_MAIL_FROM, CLAWHUB_SMTP_USERNAME, CLAWHUB_SMTP_PASSWORD), or pass --delivery-config with an smtp_host / smtp_port / from_addr object.
Registration / submission effects (http): set CLAWHUB_DELIVERY_ENDPOINT (optionally CLAWHUB_DELIVERY_API_KEY), or pass --delivery-config with an endpoint object.

Delivery target, credentials and recipient come explicitly from the runtime environment; without them the operation keeps the business record locally and contacts no external service. Errors are reported through a nonzero exit.

Files

scripts/upstream/ — identify stage implementation (operation.py, validation.py, config.json)
scripts/downstream/ — deliver stage implementation incl. real delivery (deliver_effect)
scripts/run.py — complete workflow runner
source-map.json — source provenance for both extracted stages
审批组目录
库存补货规划器