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/.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install a2a-supermarket - After installation, invoke the skill by name or use
/a2a-supermarket - Provide required inputs per the skill's parameter spec and get structured output
What is a2a supermarket?
Unified entry skill for RealMarket A2A commerce workflows. Supports seller product publish and buyer product discovery through UCP market connectivity, plus... It is an AI Agent Skill for Claude Code / OpenClaw, with 259 downloads so far.
How do I install a2a supermarket?
Run "/install a2a-supermarket" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is a2a supermarket free?
Yes, a2a supermarket is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does a2a supermarket support?
a2a supermarket is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created a2a supermarket?
It is built and maintained by luoqianchenguni-max (@luoqianchenguni-max); the current version is v0.2.2.