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…
от modbender★ 21 звезда на GitHubОб этом скилле
Standard 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
Quick Start: Out-of-the-Box Backend Setup
The agent-commerce-engine provides a standard specification (SERVER_SPEC.md) designed to instantly render any existing website "Agent-Ready". By reviewing and reproducing the provided minimum viable Python/FastAPI server template, developers can establish a compliant Agent-Native backend interface in a matter of minutes.
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.
🔒 Security & Privacy
To ensure transparency and protect user data, the Standard Agentic Commerce Engine follows these security protocols:
1. Local Credential Persistence
- Storage Location:
~/.clawdbot/credentials/agent-commerce-engine/ - Mechanism: Account and session Token information is stored locally in JSON format with
0600(user-only) permissions. - Security Upgrade: Since version 1.4.0, raw passwords are never stored after the initial login. The engine exchanges the password for a signed cryptographic token.
- Scope: Data is only accessible to the local system user and the running agent instance.
- Lifecycle: Credentials can be purged at any time by running the
logoutcommand.
2. Secure Transmission
- Token-based Auth: Uses
x-api-tokenheaders for authentication. Raw passwords are only transmitted once during theloginorregisterphase to exchange for a token. - HTTPS Enforcement: As of v1.4.7, the engine strictly enforces HTTPS for all remote communication to prevent credential interception.
- Encrypted Transport: All communication with the backend MUST be over HTTPS to ensure tokens are protected in transit.
3. Anonymous Tracking (Visitor ID)
- To support shopping carts for unauthenticated users, a unique, non-identifiable
Visitor ID(UUID v4) is generated and stored locally. This ID contains no personal information.
🛠 Tool Priority & Fallback Strategy
To provide the most accurate and efficient experience, follow this priority sequence:
- API First (Primary): Always attempt to use the
commerce.pyscript first. It provides structured, high-precision data. Configure it via environment variables (COMMERCE_URL). - Stateless Headers: Rely on the engine's built-in header management (
x-user-account,x-visitor-id) to maintain session integrity without cookies. - Self-Correction: If the API returns a 404 for a specific slug discovered via browser, prioritize the API's
searchresults as the source of truth for the backend.
🧠 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
searchorlistbefore adding to cart. - Logic: Use the API to discover the correct
slugand validvariantspecs. - 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
401 Unauthorizedif credentials aren't saved. - Commands:
- View profile:
python3 scripts/commerce.py get-profile - Update details:
python3 scripts/commerce.py update-profile --name "Name" --address "..." --phone "..." --email "..."
- 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> --variant <V> --quantity <Q> - Update:
python3 scripts/commerce.py update-cart <slug> --variant <V> --quantity <Q> - Remove:
python3 scripts/commerce.py remove-cart <slug> --variant <V> - Clear:
python3 scripts/commerce.py clear-cart - Checkout / Create Order (Handoff): `python3 scripts/commerce.py create-order --name
--phone --province --city --
- Add:
Установить standard-agentic-commerce-engine в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл 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.
Как установить скилл standard-agentic-commerce-engine?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл standard-agentic-commerce-engine запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic