Awesome-openclaw-skills standard-agentic-commerce-engine
A production-ready universal engine for Agentic Commerce. This tool enables autonomous agents to interact with any compatible headless e-commerce backend through a standardized protocol. It provides out-of-the-box support for discovery, cart operations, and secure user management.
git clone https://github.com/sundial-org/awesome-openclaw-skills
T=$(mktemp -d) && git clone --depth=1 https://github.com/sundial-org/awesome-openclaw-skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/standard-agentic-commerce-engine" ~/.claude/skills/sundial-org-awesome-openclaw-skills-standard-agentic-commerce-engine && rm -rf "$T"
T=$(mktemp -d) && git clone --depth=1 https://github.com/sundial-org/awesome-openclaw-skills "$T" && mkdir -p ~/.openclaw/skills && cp -r "$T/skills/standard-agentic-commerce-engine" ~/.openclaw/skills/sundial-org-awesome-openclaw-skills-standard-agentic-commerce-engine && rm -rf "$T"
skills/standard-agentic-commerce-engine/SKILL.mdStandard Agentic Commerce Engine
The Standard Agentic Commerce Engine is a production-ready bridge connecting autonomous agents with modern e-commerce backends. By providing a unified, high-precision interface, it allows any digital storefront to become "Agent-Native" instantly.
GitHub Repository: https://github.com/NowLoadY/agent-commerce-engine
Reference Case: Lafeitu
For a production-grade implementation example using this engine, see the Lafeitu Gourmet Skill. It demonstrates the engine specialized for a real-world artisanal food brand.
🛠 Tool Priority & Fallback Strategy
To provide the most accurate and efficient experience, follow this priority sequence:
- API First (Primary): Always attempt to use the
script first. It provides structured, high-precision data. Configure it via environment variables (commerce.py
).COMMERCE_URL - Stateless Headers: Rely on the engine's built-in header management (
,x-user-account
) to maintain session integrity without cookies.x-visitor-id - Self-Correction: If the API returns a 404 for a specific slug discovered via browser, prioritize the API's
results as the source of truth for the backend.search
🧠 Agent Operational Logic
Follow these logical flows to ensure a high-quality user experience:
1. Product Discovery & Validation
Goal: Ensure the item exists and find the correct specifications before taking action.
- Action: Always run
orsearch
before adding to cart.list - Logic: Use the API to discover the correct
and validslug
/variant values.gram - Refinement: If multiple results are found, ask the user to specify based on the returned attributes.
2. Authentication & Profile Flow
Goal: Manage user privacy and session data.
- Logic: The API is stateless. Actions requiring identity will return
if credentials aren't saved.401 Unauthorized - Commands:
- View profile:
python3 scripts/commerce.py get-profile - Update details:
python3 scripts/commerce.py update-profile --name "Name" --address "..."
- View profile:
- Required Data: Respect the schema of the specific brand's backend.
3. Registration Flow
Goal: Handle new users.
- Trigger: When an action returns "User Not Found".
- Instruction: Guide the user to the store's registration URL (often found in brand metadata).
4. Shopping Cart Management
Goal: Precise modification of the user's shopping session.
- Logic: The engine supports incrementing quantities or setting absolute values.
- Commands:
- Add:
python3 scripts/commerce.py add-cart <slug> --gram <G> --quantity <Q> - Update:
python3 scripts/commerce.py update-cart <slug> --gram <G> --quantity <Q> - Remove:
python3 scripts/commerce.py remove-cart <slug> --gram <G>
- Add:
- Validation: Gram/variant values must be strictly chosen from the product's available options list.
5. Brand Information & Storytelling
Goal: Access brand identity and support data.
- Logic: Use the
interface to retrieve narrative content.brand-info - Tooling:
: Get the narrative/mission.python3 scripts/commerce.py brand-story
: Get formal details.python3 scripts/commerce.py company-info
: Get customer support channels.python3 scripts/commerce.py contact-info
🚀 Capabilities Summary
/search
: Product discovery and inventory scan.list
: Deep dive into product specifications, variants, and pricing.get
: Current business rules, shipping thresholds, and active offers.promotions
: Complete session summary including VIP discounts and tax/shipping estimates.cart
/add-cart
/update-cart
: Atomic cart control.remove-cart
/get-profile
: Personalization and fulfillment data.update-profile
/brand-story
/company-info
: Brand context and support.contact-info
: Real-time tracking and purchase history.orders
💻 CLI Configuration & Examples
# Setup export COMMERCE_URL="https://api.yourbrand.com/v1" export COMMERCE_BRAND_ID="brand_slug" # Actions python3 scripts/commerce.py list python3 scripts/commerce.py search "item" python3 scripts/commerce.py get <slug> python3 scripts/commerce.py add-cart <slug> --gram <variant>
🤖 Troubleshooting & Debugging
- Status Code 401: Credentials missing or expired. Recommend
.login - Status Code 404: Resource not found. Verify
viaslug
.search - Connection Error: Verify
environment variable is correct and the endpoint is reachable.COMMERCE_URL