AGENT SKILL

订单商品库存可用性校验

validate-order-product-availability

根据商品库存参考数据校验采购订单的履约能力。在商品身份解析之后使用,用于检查可用数量、聚合重复的 SKU、检测短缺,并报告受阻的库存检查。适用于单一仓库、即时履约,不涉及预留、延期交货或部分履约的情形。

License 许可
MIT
最近更新
2026-11-02
Stars
★ 1
Forks
1

01 前言 Front Matter

name
validate-order-product-availability
metadata
{ "version": "1.0" }
description
Validate purchase order fulfillment against product stock reference data. Use after product identity resolution to check available quantities, aggregate repeated SKUs, detect shortages, and report blocked stock checks. Single warehouse, immediate fulfillment, no reservations, backorders, or partial fulfillment.

03 SKILL.md 正文

Validate Order Product Availability

Inputs And Reference Data

Read inventory.json for product stock quantities, reservations, warehouse details, snapshot time, and fulfillment policy.

Procedure

  1. Require unique line IDs and positive integer quantities in EA. Missing or invalid quantity/UOM is blocked. No conversions, negative quantities, fractional units, or implicit default units are allowed.
  2. Use only identity-approved products. A line with unresolved SKU, conflicting barcode, or failed description has a blocked stock check; do not turn its apparent SKU into a trusted product.
  3. Group all resolved lines by product ID and sum their requested quantities before comparing with stock. If any line in a group has invalid quantity/UOM, block the entire group rather than passing the valid subset.
  4. If an unresolved line has a submitted SKU matching a resolved group, block that group because its total demand is uncertain. Other resolved groups may still be assessed, but the whole order cannot pass.
  5. Match exactly one inventory record for each product and the configured warehouse. Missing records, duplicate records, mismatched units, negative stock, or reserved quantity above on-hand quantity are blocked reference-data failures, not zero-stock assumptions.
  6. Compute available_quantity = on_hand - reserved; shortage_quantity = max(0, requested_quantity - available_quantity). Do not subtract the same requested quantity repeatedly or allocate stock by line order.
  7. If shortage is zero, pass the quantity check on every line in the group. Otherwise flag each affected line's quantity, explaining the aggregate request, available quantity, and group shortage. Do not claim that an individual line is allocated or partially fulfilled.
  8. Retain the assessed quantities, affected lines, warehouse, snapshot time, and inventory records as evidence. Explain any blocked groups without inventing stock quantities.

A stock snapshot is not a reservation, current inventory, or a delivery-date promise. Evaluate the supplied snapshot only; claims about current availability require an explicit freshness policy and warehouse selection.

Examples

  • For a product with 20 on hand and 4 reserved, 16 are available. A request for 24 has a group shortage of 8.
  • Two valid lines requesting 10 units each of that product require 20 total and flag a shortage of 4; they must not both pass against the same 16 units.
  • A missing inventory record blocks the check. A valid record with zero available stock flags any positive request.

Do not reduce the order quantity, reserve stock, suggest a delivery guarantee, or reprice only the available portion. Pricing is independently evaluated on the original requested quantities.

04 同仓库更多 Skills

microsoft
microsoft/copilot-agentic-business-process

SAP 销售订单导出 Excel

sap-order-excel

将 SAP 销售订单 JSON 数据渲染到固定的 Excel 工作簿模板中。当需要将 SAP 订单导出、转换或写入 Excel 或 xlsx 时使用。

销售运营专员订单处理与数据录入
★ 1
microsoft
microsoft/copilot-agentic-business-process

SAP 销售订单 JSON 生成

sap-order-json

从非结构化来源(电子邮件、PDF、订单表单或自由文本)生成 SAP 销售订单的 JSON。当用户要求创建、构建或映射 JSON 格式的 SAP 订单/销售订单负载时使用。

销售运营专员订单处理与数据录入
★ 1
microsoft
microsoft/copilot-agentic-business-process

订单折扣与促销评估

evaluate-order-discounts-promotions

使用提供的策略评估特定于商品、买方和供应商的采购订单促销。用于匹配供应商代码或名称、核验声称的折扣、资格、日期、货币、门槛、不可叠加规则,以及建议修订后的商品总额,而不更改已确认的订单。

供应链与采购经理订单处理与数据录入
★ 1
microsoft
microsoft/copilot-agentic-business-process

订单商品身份校验

validate-order-product-identity

根据参考目录数据校验采购订单行的 SKU、条形码和商品描述。用于商品身份核查、未知商品、标识符冲突、描述不匹配,以及在库存或促销检查之前的可选条形码校验。

供应链与采购经理订单处理与数据录入
★ 1
microsoft
microsoft/copilot-agentic-business-process

订单处理系统部署与检查

deploy-order-processing

部署 OrderProcessing 或检查现有安装。

SRE 工程师部署与发布管理
★ 1
microsoft
microsoft/copilot-agentic-business-process

BusinessProcessCore 部署验证

deploy-business-process-core

部署 BusinessProcessCore,或检查并验证现有安装,包括 OrderProcessing 所需的 Core 前置条件。

SRE 工程师部署与发布管理
★ 1