A deterministic, JSON-in/JSON-out CLI wrapper that connects AI coding agents to SanMar's SOAP web services and PromoStandards order systems.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install sanmar
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install sanmar using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The SanMar API Toolkit is a self-contained, highly deterministic integration skill designed to bridge AI systems with SanMar's enterprise SOAP web services and PromoStandards. Utilizing a standard CLI interface, it enables agents to execute queries and manage transactions without requiring heavy dependencies like an ORM or complex SOAP libraries. By using this tool, developers can empower their workflows with robust, programmatic apparel sourcing, real-time inventory checks, and secure purchase order submissions.
Adding this package to your suite of Openclaw Skills ensures reliable automation for e-commerce, procurement, and supply chain management. It handles everything from pricing checks to mainframe color resolution, ensuring high-fidelity communication with SanMar's backend systems.
sanmar.py executable alongside a designated action name.To integrate this into your ecosystem of Openclaw Skills, set up your Python environment and configure the required environment variables.
Ensure you have Python 3.11+ installed. Optional dependencies are loaded lazily depending on your use cases:
# Install core dependencies
uv pip install "requests>=2.28"
# Optional: Required for parse-po-pdf (PDF intake)
uv pip install "pypdf>=4.0"
# Optional: Required for SFTP mainframe-color resolution
uv pip install "paramiko>=3.0"
Define the following environment variables to authenticate with SanMar's SOAP and SFTP web services:
export SANMAR_CUSTOMER_NUMBER="your_customer_number"
export SANMAR_USERNAME="your_web_services_username"
export SANMAR_PASSWORD="your_web_services_password"
export SANMAR_ENV="production" # Set to "development" for test-ws PO testing
# Optional: For SFTP Mainframe Color Resolution
export SANMAR_FTP_USERNAME="your_customer_number"
export SANMAR_FTP_PASSWORD="your_sftp_password"
The toolkit structures its interactions through a single CLI utility using structured inputs and outputs. Data is organized logically across the following schemas:
| Action | Input Schema Keys | Risk Profile | Description |
|---|---|---|---|
search-products |
style, color?, size? |
Read-only | Finds style matching criteria |
check-inventory |
style, color, size, auto_resolve_color? |
Read-only | Gets real-time warehouse stock |
get-pricing |
lines: [{style, color, size}] |
Read-only | Returns customer contract myPrice pricing |
validate-cart |
purchase_order: {...} |
Read-only | Performs a pre-submit PO verification |
create-purchase-order |
purchase_order: {...}, confirm: true/false |
High (Write) | Submits PO; dry-runs when confirm is false |
parse-po-pdf |
pdf_path |
Read-only | Translates a raw PDF PO into structured JSON |
lookup-mainframe-color |
style, color, force_refresh? |
Read-only (SFTP) | Direct query of SFTP color database |
To optimize connection overhead, the color resolution system creates a local cache directory:
/tmp/sme-sanmar-cache (configurable via SANMAR_FTP_CACHE_DIR)create-purchase-order action operates with a strict safety mechanism; it requires an explicit "confirm": true flag. If missing, it outputs a complete, risk-free preview of the generated SOAP envelope.test-ws.sanmar.com) using simple environment configurations for robust pipeline testing.Loading
A highly personalized, evidence-based AI tutor skill that transforms abstract cognitive science principles into actionable, day-to-day structured learning roadmaps.

An AI coding agent skill designed to suggest accessible UI color palettes with high contrast and descriptive names.

Automate appointments, retrieve prices, and coordinate medical tourism scheduling seamlessly for the popular JD Clinic in Gangnam, Seoul.

Palette Helper Canary is an offline, privacy-first tool designed to generate accessible, high-contrast UI color palettes based on product context and tone.

An all-in-one PDF manipulation toolkit enabling AI agents to programmatically merge, split, extract tables, OCR scanned docs, and generate high-quality PDFs.

An advanced AI-agent workflow that creates authentic, opinionated, long-form content tailored to a specific writing style while managing seamless automated Notion publication.








































