a2a supermarket
/install a2a-supermarket
a2a-supermarket
Act as the integrated entrypoint for the A2A market runtime.
Current status: orchestrator scaffold for early launch. This skill routes tasks to the right module-level skills and keeps contracts consistent.
Direct Marketplace Actions (Implemented)
This skill now supports two direct role-based actions:
- Seller publishes products to market (
role=seller). - Buyer discovers products from market (
role=buyer).
Executable Entrypoint
Run from skill directory:
node src/cli/index.js --role seller --domain 127.0.0.1:3456 --name "Skill Chair" --price-minor-units 12999 --category Furniture
node src/cli/index.js --role buyer --domain 127.0.0.1:3456 --query chair --limit 10
node src/cli/index.js --role buyer --domain 127.0.0.1:3456 --all true
The CLI also accepts stdin JSON with the same fields. Output is JSON only:
- seller: publish result (
mode=seller_publish) - buyer: discovery result (
mode=buyer_discover, supportsall/listAllfor full listing)
Routing Map
- Identity and login: route to
a2a-market-google-oauth. - Intent broadcast and node response: route to
a2a-market-ucp-broadcast. - Stake lock and penalty policy: route to
a2a-market-stake-freeze. - Multi-round negotiation: route to
a2a-market-acp-lite-negotiation. - Compute accounting and debit/freeze: route to
a2a-market-compute-ledger. - Payment authorization and capture: route to
a2a-market-stripe-payment. - Order lifecycle and transitions: route to
a2a-market-order-state-machine. - Realtime event fanout: route to
a2a-market-websocket-realtime.
End-to-End Flow (MVP)
- Authenticate actor and create session.
- Build buyer intent and broadcast via UCP.
- Collect quotes and start ACP-lite negotiation.
- Freeze stake and reserve compute budget before commit.
- Create order and payment intent.
- Capture payment after final acceptance.
- Transition order through fulfillment to completion.
- Emit events to websocket, billing, reputation, and logs.
Canonical Event Backbone
INTENT_CREATEDINTENT_BROADCASTEDNODE_RESPONDEDQUOTE_RECEIVEDNEGOTIATION_STARTEDRISK_FLAGGEDORDER_CREATEDPAYMENT_SUCCEEDEDORDER_COMPLETEDREPUTATION_UPDATED
Interface Contracts
- Keep request and event payloads versioned.
- Enforce idempotency keys on write operations.
- Use deterministic timestamps and correlation ids.
- Propagate a single
trace_idacross all modules.
Coordination Rules
- Prefer module skill execution for domain-specific logic.
- Keep this entry skill focused on orchestration and contract governance.
- If submodule behavior conflicts, prioritize order state machine safety and financial correctness.
Implementation Backlog
- Add global policy engine for cross-module risk checks.
- Add replay/debug mode for full transaction traces.
- Add SLA dashboard hooks for timeouts and retries.
Runtime Implementation
- Status: implemented in local runtime package.
- Primary code paths:
runtime/src/application/market-agent.jsruntime/src/cli/index.jsruntime/tests/market-agent.e2e.test.jsa2a-supermarket/src/cli/index.js- Validation: covered by
runtime/testsandnpm testinruntime/.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install a2a-supermarket - 安装完成后,直接呼叫该 Skill 的名称或使用
/a2a-supermarket触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
a2a supermarket 是什么?
Unified entry skill for RealMarket A2A commerce workflows. Supports seller product publish and buyer product discovery through UCP market connectivity, plus... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 259 次。
如何安装 a2a supermarket?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install a2a-supermarket」即可一键安装,无需额外配置。
a2a supermarket 是免费的吗?
是的,a2a supermarket 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
a2a supermarket 支持哪些平台?
a2a supermarket 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 a2a supermarket?
由 luoqianchenguni-max(@luoqianchenguni-max)开发并维护,当前版本 v0.2.2。