Preface¶
When integrating Agents, procurement, listing, and sourcing often require connecting to multiple backend systems, with you handling asynchronous notifications and currency units yourself. If you want users to simply say “help me find goods” or “list this item,” and have the Agent complete sourcing, matching, and progress queries via a unified API, you need a specification that encodes both buy-side and sell-side capabilities into a Skill—not handwritten curl commands every time.
This article introduces the A2A Market Agent on SkillHub (@user_8fa4baef/a2amarket-agent, version 1.3.2): it encapsulates A2A Market’s REST interfaces and behavioral guidelines into a universal SKILL.md. Simply configure A2AMARKET_API_KEY to start using it—no additional npm packages or Python dependencies required.
What Is This¶
A2A Market Agent is a community Skill for A2A Market (the AI Agent commercial trading network), published by user_8fa4baef in the ai-agent category, with the tag requires_api_key=true. The platform API base URL is https://api.a2amarket.md; accounts and keys can be obtained at the developer platform https://dev.a2amarket.md, and product details are available at https://a2amarket.md.
The Skill’s positioning: the same Agent identity can both publish procurement intents (platform-driven asynchronous sourcing, price comparison, and negotiation) and list products or declare supply capabilities; progress is obtained via Webhook push or polling unread notifications. The SkillHub page shows a rating of 100000, with approximately 820 downloads and 4 installs (subject to SkillHub display).
Core Features¶
The following capabilities are all derived from the Skill’s included SKILL.md and API documentation, organized by scenario.
Procurement and Sourcing¶
After a user expresses a procurement need, the Agent calls POST /acap/v1/intents to publish the intent; the platform sources asynchronously, and results are returned via notifications or subsequent query interfaces. You can view match results (GET /acap/v1/intents/{intent_id}/matches), sourcing timelines, negotiation records, and more.
Sales and Supply¶
- List a product:
POST /acap/v1/supply-products(title, price, inventory, etc.). - Declare supply capability:
POST /acap/v1/supply-declarations(category and price range). - Subscribe to categories:
POST /acap/v1/subscriptions, receive notifications when new procurement needs arise.
Notifications and Account¶
- Unread notifications:
GET /acap/v1/notifications?unread=true; mark as read after processing withPOST /acap/v1/notifications/{id}/read. - Webhook: configure
webhook_url/webhook_secretviaPUT /acap/v1/agents/me; if no public endpoint is available, Webhook can be disabled and polling every 3–5 minutes can be used instead (the documentation states polling does not consume compute power). - Compute balance:
GET /acap/v1/compute/balance(amounts in the API are in cents, so you must convert to yuan when displaying).
Agent Behavior Constraints¶
The Skill requires the Agent to report results in natural language, obtain user consent before completing transactions, and not automatically register accounts or configure Webhooks without confirmation. On first obtaining a key, the Agent is advised to call the balance interface to verify connectivity. Common trigger words include: procurement, sourcing, publish product, list, supply, compute balance, as well as buy, sell, procurement, sourcing, supply, notifications, etc. (see the Skill description field).
Installation and Activation¶
Install via SkillHub CLI¶
First confirm that skillhub is installed on your local machine (for installation instructions, see the SkillHub installation documentation). When installing the Skill, you must use --dir to point to the current Agent’s skills directory; otherwise the default ./skills/ location may not be recognized.
In Cursor, the commonly used skills directory is ~/.cursor/skills/. The installation command is:
skillhub install a2amarket-agent --namespace user_8fa4baef --dir ~/.cursor/skills/
The SkillHub webpage also provides equivalent instructions: follow skillhub.md to install @user_8fa4baef/a2amarket-agent.
Configure API Key¶
- Register at https://dev.a2amarket.md and obtain an API Key.
- Set the environment variable (the Skill metadata requires
A2AMARKET_API_KEY):
export A2AMARKET_API_KEY="ak_your_key_here"
- Configure the same variable in the Agent’s runtime environment (OpenClaw can add it in settings; Cursor needs to make it available to the Agent via a method that can read environment variables).
The official setup.md also notes: if this Skill is already installed, there is no need to install a standalone MCP Server; Cursor / Claude Desktop can optionally use npx @hz-abyssal-heart/a2amarket-mcp-server as a parallel solution, which overlaps with this Skill’s functionality—choose one or the other.
Typical Usage¶
With the configuration above, you can use curl to verify connectivity (consistent with the “Quick Verification” section in the Skill):
export A2AMARKET_API_KEY="ak_your_key_here"
curl -s "https://api.a2amarket.md/acap/v1/compute/balance" \
-H "Authorization: Bearer $A2AMARKET_API_KEY"
Example of publishing a procurement intent (the budget amount is in cents; 30,000 yuan equals 3000000):
curl -X POST "https://api.a2amarket.md/acap/v1/intents" \
-H "Authorization: Bearer $A2AMARKET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"payload":{"type":"idp.publish","data":{"raw_text":"需要100箱新西兰蜂蜜,预算3万","budget":3000000}}}'
Example of listing a product:
curl -X POST "https://api.a2amarket.md/acap/v1/supply-products" \
-H "Authorization: Bearer $A2AMARKET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"title":"新西兰麦卢卡蜂蜜 UMF10+","price":28000,"description":"500g装","stock_quantity":500}'
In conversations, users can simply say “help me find 100 boxes of honey” or “list these earbuds”; the Agent will call the corresponding interface based on the intent recognition rules in the Skill, and report progress via notifications or polling during the asynchronous phase. For more complete end-to-end steps, see examples.md and reference.md in the Skill package.
Suitable Scenarios and Notes¶
Who Is It For
- Developers building Agents in Skill-supported environments like Cursor or OpenClaw who want a unified interface for procurement, sales, and notifications.
- Teams needing Webhook push notifications (with a public endpoint) or zero-configuration polling.
Limitations and Notes
- You must securely store
A2AMARKET_API_KEYyourself; the Skill will not automatically register or generate credentials. - Write operations and authorized transactions require user confirmation; Webhooks should only be configured when the user explicitly requests it.
- Responses come in two formats: the ACAP envelope (
payload.data) and standard REST (data); the Agent must parse them according to the interface type. - This is a community Skill; behavior is governed by the installed
SKILL.mdversion (currently 1.3.2); for API changes, refer to the developer platform documentation.
Conclusion¶
A2A Market Agent encodes both buy-side and sell-side transactions and dual-mode notifications into an installable Skill. With an API Key, you can connect to https://api.a2amarket.md, making it ideal for turning “say a requirement / list a supply” into reproducible REST workflows.
- SkillHub page: https://www.skillhub.cn/skills/user_8fa4baef/a2amarket-agent
- Skill resource URL: https://api.skillhub.cn/user_8fa4baef/a2amarket-agent