inventory.consume

Consume inventory for an order reference with explicit confirmation and audit logging.

Updated Mar 6, 2026
One-click install
npx skills add https://github.com/victorp1leon/openclaw-bakery --skill inventory-consume
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: inventory.consume
Source: https://github.com/victorp1leon/openclaw-bakery/tree/main/skills/inventory.consume
Command: npx skills add https://github.com/victorp1leon/openclaw-bakery --skill inventory-consume

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Consume inventory for an existing order reference by folio or operation_id_ref. It ensures explicit confirmation before mutating stock, and records audit trails for traceability.

Core Features & Use Cases

  • Consume inventory for an existing order reference with an explicit confirmation step.
  • Maintain idempotency via operation_id and log movements in MovimientosInventario for auditability.
  • Validate references and preconditions, handle stock insufficiency, and provide deterministic error reporting.

Quick Start

Provide an explicit confirm flow to consume inventory for a given order reference.

Frequently Asked Questions about inventory.consume

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I consume inventory for an existing order with an explicit confirmation step?

To consume inventory for an existing order, provide the order reference by folio or operation_id_ref and trigger the explicit confirmation step to execute the stock mutation safely.

How does idempotent inventory consumption prevent duplicate stock mutations?

Idempotent inventory consumption uses the operation_id to identify repeat requests, ensuring that stock mutations only execute once and preventing duplicate deductions for the same order.

What happens when I try to consume stock but the inventory is insufficient for the order?

When inventory is insufficient, the stock consumption operation fails and provides deterministic error reporting, ensuring no partial mutations occur and maintaining stock integrity.

Can I track inventory movements and generate audit trails for order consumption?

Yes, you can track inventory movements because the process logs all stock mutations in MovimientosInventario, providing a complete audit trail for traceability and compliance.

Does inventory consumption support unit conversions and reference validation by folio?

Yes, inventory consumption validates references by folio or operation_id_ref, enforces preconditions, and handles unit conversions automatically before applying the stock mutation.

Why does my inventory consume operation fail with an invalid order reference?

Inventory consume operations fail deterministically with invalid order references because the system enforces strict preconditions and validates the folio or operation_id_ref before proceeding.