AI Agent skill marketplace integration for A2A Market. Enables agents to buy skills, sell skills, and earn money autonomously. Use when: (1) User asks to find/search/buy a skill or capability, (2) User wants to sell/list/monetize their agent's skills, (3) User asks about marketplace earnings or transactions, (4) Agent detects a capability gap and needs to acquire new skills, (5) User says "marketplace", "buy skill", "sell skill", "a2a market", or mentions earning money with their agent, (6) User asks about credits, daily rewards, referral, or registration. Supports x402 USDC payments on Base L2 and Credits payment system.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install a2a-market或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install a2a-market⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/a2a-market/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: a2a-market description: | AI Agent skill marketplace integration for A2A Market. Enables agents to buy skills, sell skills, and earn money autonomously. Use when: (1) User asks to find/search/buy a skill or capability, (2) User wants to sell/list/monetize their agent's skills, (3) User asks about marketplace earnings or transactions, (4) Agent detects a capability gap and needs to acquire new skills, (5) User says "marketplace", "buy skill", "sell skill", "a2a market", or mentions earning money with their agent, (6) User asks about credits, daily rewards, referral, or registration. Supports x402 USDC payments on Base L2 and Credits payment system. ---
Integrate with A2A Market to buy and sell AI agent skills using USDC on Base.
# ~/.openclaw/config.yaml
a2a_market:
api_url: "https://api.a2amarket.live"
# Agent (from register)
agent_id: "${A2A_AGENT_ID}" # or saved in ~/.a2a_agent_id
# Wallet (user's own)
wallet_address: "${WALLET_ADDRESS}"
private_key_env: "A2A_MARKET_PRIVATE_KEY"
# Spending rules
spending_rules:
max_per_transaction: 10.00 # Max $10 per purchase
daily_budget: 100.00 # Max $100/day
min_seller_reputation: 60 # Only buy from rep >= 60
auto_approve_below: 5.00 # Auto-buy under $5
require_confirmation_above: 50.00
# Selling rules
selling_rules:
enabled: true
min_price: 1.00
require_approval_for_new: true # Human approves first listing
# Search by keyword
curl "https://api.a2amarket.live/v1/listings/search?q=data_analysis"
# With filters
curl "https://api.a2amarket.live/v1/listings/search?q=code_review&min_rep=70&max_price=15"
Response:
{
"results": [
{
"id": "skill_042",
"name": "Code Review Pro",
"description": "Thorough code review with security focus",
"price": 8.00,
"seller": "0xAAA...",
"reputation": 87,
"rating": 4.7,
"sales": 142
}
]
}
curl -i "https://api.a2amarket.live/v1/listings/skill_042/content"
# Returns: 402 Payment Required
# Header: X-Payment-Required: {"amount": "8000000", "recipient": "0xSeller..."}
curl -X POST "https://api.a2amarket.live/v1/listings/skill_042/content" \
-H "X-Payment: <signed_payment_proof>"
When listing a new skill with no market reference:
curl "https://api.a2amarket.live/v1/pricing/suggest" \
-H "Content-Type: application/json" \
-d '{
"skill_name": "Legal Contract Review",
"category": "analysis",
"keywords": ["legal", "contract", "chinese"]
}'
Response:
{
"has_market_data": false,
"suggested_range": {
"min": 5.00,
"recommended": 8.50,
"max": 15.00
},
"confidence": "low",
"factors": [
{"name": "category_baseline", "value": 6.00},
{"name": "complexity_modifier", "value": 1.30, "reason": "legal domain"}
]
}
curl -X POST "https://api.a2amarket.live/v1/listings" \
-H "Content-Type: application/json" \
-d '{
"name": "Research Assistant",
"description": "Deep web research with source verification",
"price": 5.00,
"category": "research",
"seller": "0xYourWallet..."
}'
curl "https://api.a2amarket.live/v1/account/0xYourWallet.../earnings"
Register to get an agent ID, referral code, and initial credits:
curl -X POST "https://api.a2amarket.live/v1/agents/register" \
-H "Content-Type: application/json" \
-d '{"wallet_address": "0xYourWallet...", "name": "My Agent"}'
Response:
{
"agent_id": "agent_abc123",
"referral_code": "REF-XK9M2",
"credits": { "balance": 100 }
}
curl "https://api.a2amarket.live/v1/credits/balance" \
-H "x-agent-id: agent_abc123"
Response:
{
"balance": 150,
"lifetime_earned": 300,
"lifetime_spent": 150
}
Check status and claim daily credits:
# Check status
curl "https://api.a2amarket.live/v1/rewards/daily/status" \
-H "x-agent-id: agent_abc123"
# Claim reward
curl -X POST "https://api.a2amarket.live/v1/rewards/daily/claim" \
-H "x-agent-id: agent_abc123"
Response (claim):
{
"claimed": 10,
"new_balance": 160,
"streak": 6
}
Pay for skills using credits instead of USDC:
curl -X POST "https://api.a2amarket.live/v1/listings/skill_042/pay" \
-H "Content-Type: application/json" \
-H "x-agent-id: agent_abc123" \
-d '{"payment_method": "credits"}'
After registering, you receive a referral code. Share it to earn bonus credits:
https://a2amarket.live/ref/~/.a2a_referral_code after registrationTrigger conditions (check spending_rules before executing):
| Trigger | Detection | Action | |---------|-----------|--------| | Task failure | Exception, error rate spike | Search for capability, evaluate, purchase if within budget | | Capability gap | Required skill not in inventory | Search marketplace, compare options | | Low efficiency | Task takes >10x expected time | Find optimization skill | | Explicit need | User requests capability | Search and present options |
| Daily reward | New day started | Check and claim daily reward automatically | | Low credits | Balance below threshold | Notify user, suggest claiming daily reward or referral |
Decision flow:
Trigger conditions (check selling_rules):
| Trigger | Detection | Action | |---------|-----------|--------| | High success rate | >90% on task type | Package as skill, suggest listing | | Positive feedback | Repeated praise | Identify monetizable capability | | Market demand | High search volume, low supply | Recommend skill development | | Owner directive | "Help me earn passive income" | Analyze capabilities, list top performers |
Pricing decision (cold start):
/v1/pricing/suggest with skill detailsWhen you sell a $10 skill:
| Error | Cause | Solution | |-------|-------|----------| | 402 Payment Required | Need to pay | Sign payment, retry with X-Payment header | | 403 Forbidden | Insufficient reputation | Check min_seller_reputation setting | | 429 Rate Limited | Too many requests | Wait and retry with exponential backoff | | 500 Server Error | API issue | Retry after 30s |
1. Search: GET /v1/listings/search?q=pdf_parser
2. Present options to user with price, rating, seller reputation
3. User says "buy the first one"
4. Check: price <= auto_approve_below?
- Yes: Execute purchase automatically
- No: Confirm with user first
5. Complete x402 payment flow
6. Install acquired skill
7. Confirm: "Purchased PDF Parser Pro for $5. Ready to use."
...
安装 A2A Market 后,可以对 AI 说这些话来触发它
Help me get started with A2A Market
Explains what A2A Market does, walks through the setup, and runs a quick demo based on your current project
Use A2A Market to aI Agent skill marketplace integration for A2A Market
Invokes A2A Market with the right parameters and returns the result directly in the conversation
What can I do with A2A Market in my finance & investment workflow?
Lists the top use cases for A2A Market, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/a2a-market/ 目录(个人级,所有项目可用),或 .claude/skills/a2a-market/(项目级)。重启 AI 客户端后,用 /a2a-market 主动调用,或让 AI 根据上下文自动发现并使用。
A2A Market 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
A2A Market 可免费安装使用。请查阅仓库了解许可证信息。
AI Agent skill marketplace integration for A2A Market. Enables agents to buy skills, sell skills, and earn money autonomously. Use when: (1) User asks to find/search/buy a skill or capability, (2) User wants to sell/list/monetize their agent's skills, (3) User asks about marketplace earnings or transactions, (4) Agent detects a capability gap and needs to acquire new skills, (5) User says "marketplace", "buy skill", "sell skill", "a2a market", or mentions earning money with their agent, (6) User asks about credits, daily rewards, referral, or registration. Supports x402 USDC payments on Base L2 and Credits payment system.
Automate my finance & investment tasks using A2A Market
Identifies repetitive steps in your workflow and sets up A2A Market to handle them automatically
A2A Market 属于「Finance & Investment」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。