Stock Replenishment Planner for Openclaw

Calculate a replenishment quantity, record the inventory planning result, and optionally deliver it to a configured business endpoint.

wxt-ai
v1.2.0
Oct 7, 2026
0
58
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install inventory-reorder-quantity-complete

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install inventory-reorder-quantity-complete using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Stock Replenishment Planner?

Stock Replenishment Planner is an executable Openclaw Skills workflow for turning an inventory_note into a replenishment quantity and a recorded inventory planning result. It combines identification, business-result calculation, and local artifact creation in one run, producing an inventory_planning_record beneath the explicitly supplied output directory.

When delivery is configured, the skill can also perform the declared downstream action through SMTP or an HTTP endpoint and return a receipt indicating the outcome. Without delivery configuration, it operates locally and contacts no external service.

Stock Replenishment Planner Use Cases

  • Convert an upstream inventory note into a replenishment quantity and planning record.
  • Create or update a local inventory planning artifact as part of a repeatable workflow.
  • Send or submit the resulting record when an authorized SMTP or HTTP delivery target is configured.
  • Run the workflow locally when external delivery is unavailable or not desired.
  • Check the complete output shape against the bundled expected example.

How Stock Replenishment Planner Works

  1. Read the upstream input JSON, typically examples/request.json, containing the inventory_note.
  2. Run the upstream identification stage to compute the quantity.
  3. Pass that result to the downstream stage, which calculates recorded_quantity and creates or updates an inventory_planning_record in the specified output directory.
  4. If delivery configuration is present, perform the configured business action using SMTP or HTTP; otherwise, retain the record locally without contacting an external service.
  5. Return the workflow output, including a delivery receipt when applicable. Delivery outcomes include sent, delivered, failed, or unconfigured; errors produce a nonzero exit.

Stock Replenishment Planner Setup

Run the workflow with Python and provide an input file and output directory:

python scripts/run.py --input examples/request.json --output-dir ./workspace

To enable delivery, optionally add a delivery configuration file:

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

Alternatively, configure delivery through environment variables. For SMTP, set CLAWHUB_SMTP_HOST; optionally provide CLAWHUB_SMTP_PORT, CLAWHUB_MAIL_FROM, CLAWHUB_SMTP_USERNAME, and CLAWHUB_SMTP_PASSWORD. For HTTP registration or submission, set CLAWHUB_DELIVERY_ENDPOINT; optionally provide CLAWHUB_DELIVERY_API_KEY. A delivery target, credentials, and recipient must be supplied explicitly at runtime. With no delivery configuration, the workflow remains local-only.

Stock Replenishment Planner Data Schema & Taxonomy

The workflow uses JSON input and produces a local business artifact plus workflow results.

Data or file Purpose
examples/request.json Bundled upstream input for the identification stage.
examples/expected.json Example of the complete two-stage output shape; runtime paths and receipt identifiers are excluded.
inventory_note Upstream input read by the identify stage.
quantity Quantity computed by the identify stage and passed downstream.
recorded_quantity Business result calculated by the downstream operation.
inventory_planning_record Local business artifact created or updated beneath the supplied --output-dir.
delivery Receipt describing the real delivery outcome when configured, including sent, delivered, failed, or unconfigured.
scripts/upstream/ Identify-stage implementation: operation.py, validation.py, and config.json.
scripts/downstream/ Delivery-stage implementation, including deliver_effect.
scripts/run.py Runner for the complete workflow.
source-map.json Provenance information for both extracted stages.

Stock Replenishment Planner Advanced Features

  • Single-artifact workflow combines input identification and downstream inventory planning operations.
  • Optional SMTP message delivery or HTTP registration/submission, configured at runtime through environment variables or --delivery-config.
  • Local-only behavior is the default when no delivery target is configured; no external service is contacted in that mode.
  • Delivery results are surfaced through a receipt, and failures are reported with a nonzero process exit.
  • Separate upstream and downstream implementations, validation, configuration, and source provenance support inspection of the workflow stages.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*