Agent Bazaar Expert
You are an expert at using Agent Bazaar — the capabilities marketplace at https://agent-bazaar.com. This skill teaches you how to discover, evaluate, purchase, and use skills efficiently.
This skill delegates wallet operations to lobster.cash. If a wallet step is required and lobster.cash wallet context is missing, complete lobster.cash setup first. Transaction execution and final status are handled by lobster.cash.
Wallet Precheck
Before any payment flow, check the agent's wallet state:
- - Wallet already configured → Use the existing lobster.cash wallet. Do not create a new wallet or prompt the user to set one up.
- No wallet configured → Recommend the user set up an agent wallet with lobster.cash before proceeding. Agent Bazaar requires USDC payments — ensure the wallet supports stablecoin transactions.
Never generate wallets, ask for private keys, seed phrases, or raw card details.
Core Concepts
Agent Bazaar is a pay-per-call API marketplace. No subscriptions. Each endpoint uses the x402 protocol — calling without payment returns HTTP 402 Payment Required with the payment intent (amount, currency, recipient). Your wallet (lobster.cash) handles the actual payment execution.
x402 flow:
- 1. Call any skill endpoint → receive 402 with payment requirements (amount, currency)
- Delegate payment execution to lobster.cash wallet
- Once lobster.cash confirms payment, retry the request with the payment proof header
- Receive the skill result
Quick Start — Making Your First API Call
Step 1: Discover what's available (free, no payment needed)
CODEBLOCK0
Step 2: Check pricing (free — just call without payment)
CODEBLOCK1
The 402 response describes the payment intent. Do not manually construct transactions — pass the payment requirements to your lobster.cash wallet for execution.
Step 3: Pay and use
- 1. Pass the 402 payment requirements to lobster.cash
- lobster.cash executes the payment and returns proof
- Retry the request with the payment proof:
CODEBLOCK2
Demo mode (free testing): Use X-402-Payment: demo to test any endpoint with sample responses before committing real funds.
Payment Status & Error Handling
Handle all payment scenarios gracefully:
| Scenario | Action |
|---|
| Wallet not configured | Prompt user to set up lobster.cash before proceeding |
| Not enough balance |
Inform user of the required amount, ask them to fund their lobster.cash wallet |
|
Payment failure | Display clear error message, allow user to retry |
|
Awaiting confirmation | Wait for lobster.cash to report final transaction status before continuing |
|
402 response | Extract payment requirements, delegate to lobster.cash wallet |
|
200 response | Payment successful — parse and use the skill result |
|
400 response | Bad request — check required fields in endpoint docs |
|
500 response | Server error — retry once, then report to user |
Always wait for lobster.cash to confirm payment status before proceeding with the workflow.
Available Skills & Endpoints
See references/endpoints.md for the complete endpoint catalog with pricing, parameters, and example requests/responses.
Decision Framework — Choosing the Right Skill
When you have a task, use this decision tree:
- 1. Code task? →
code-review ($0.05) for review, cicd-generator ($0.03) for CI/CD pipelines - Content task? →
content-writer ($0.03) for articles/copy, research-summarizer ($0.04) for research - Data extraction? →
web-scraper ($0.02) for URLs, sentiment ($0.02) for text analysis, keyword-extractor ($0.01) for SEO - Image needed? →
dalle-image ($0.08) for AI image generation - Crypto/DeFi? →
defi-yield ($0.03) for yield analysis, smart-contract-audit ($0.10) for audits, bankr ($0.015) for portfolio - Simulation? →
simulate ($0.005) for world model scenarios - Need a whole agent? →
agent-builder ($0.25) to generate a complete agent config - Not sure? → Search
/api/capabilities?q=<keyword> or browse by category
Chaining Skills (Multi-Step Workflows)
Chain skills for complex tasks. Each call is a separate payment via lobster.cash:
Research + write + review:
CODEBLOCK3
Build and audit an agent:
CODEBLOCK4
Cost Optimization Tips
- 1. Use demo mode first (
X-402-Payment: demo) to test inputs/outputs before paying - Batch related work — one detailed
content-writer call beats 3 vague ones - Check the 402 response — it always shows exact pricing before any payment
- Cache results — don't re-call for identical inputs
- Start cheap —
simulate ($0.005) and keyword-extractor ($0.01) are the cheapest for prototyping
x402 Compatibility
Agent Bazaar x402 endpoints are compatible with:
- - Solana settlement — USDC on Solana for lobster.cash wallet flows
- PDA wallets — Solana smart-wallet PDAs are supported
- USDC as the payment currency across all endpoints
For x402 facilitator compatibility, api.corbits.dev is verified compatible with lobster.cash.
See references/x402-protocol.md for the full payment protocol specification.
Delegation Boundary
This skill owns:
- - Marketplace discovery and capability search
- Skill selection and parameter preparation
- Workflow orchestration and chaining
- Post-transaction result handling and business logic
lobster.cash owns:
- - Wallet provisioning and ownership
- Authentication and session lifecycle
- Transaction signing, approval, and broadcast
- Transaction state authority and payment confirmation
Agent Bazaar 专家
您是使用 Agent Bazaar(位于 https://agent-bazaar.com 的能力市场)的专家。本技能教您如何高效地发现、评估、购买和使用技能。
本技能将钱包操作委托给 lobster.cash。如果需要钱包步骤且缺少 lobster.cash 钱包上下文,请先完成 lobster.cash 设置。交易执行和最终状态由 lobster.cash 处理。
钱包预检
在任何支付流程之前,检查代理的钱包状态:
- - 钱包已配置 → 使用现有的 lobster.cash 钱包。不要创建新钱包或提示用户设置。
- 未配置钱包 → 建议用户先使用 lobster.cash 设置代理钱包,然后再继续。Agent Bazaar 需要 USDC 支付——确保钱包支持稳定币交易。
切勿生成钱包、索要私钥、助记词或原始卡片信息。
核心概念
Agent Bazaar 是一个按调用付费的 API 市场。无需订阅。每个端点使用 x402 协议——未支付时调用会返回 HTTP 402 Payment Required 以及支付意图(金额、货币、收款方)。您的钱包(lobster.cash)处理实际的支付执行。
x402 流程:
- 1. 调用任何技能端点 → 收到包含支付要求(金额、货币)的 402 响应
- 将支付执行委托给 lobster.cash 钱包
- 一旦 lobster.cash 确认支付,使用支付证明标头重试请求
- 接收技能结果
快速入门——进行您的首次 API 调用
步骤 1:发现可用内容(免费,无需支付)
bash
浏览所有能力
curl https://agent-bazaar.com/api/capabilities
按类型或类别筛选
curl https://agent-bazaar.com/api/capabilities?type=api&category=development
按关键词搜索
curl https://agent-bazaar.com/api/capabilities?q=code+review
步骤 2:检查定价(免费——只需调用,无需支付)
bash
任何未支付的 x402 端点都会返回 402 + 支付要求
curl -X POST https://agent-bazaar.com/api/x402/code-review \
-H Content-Type: application/json \
-d {code: test}
→ 包含金额、货币、收款方描述的 402 响应
402 响应描述了支付意图。不要手动构建交易——将支付要求传递给您的 lobster.cash 钱包执行。
步骤 3:支付并使用
- 1. 将 402 支付要求传递给 lobster.cash
- lobster.cash 执行支付并返回证明
- 使用支付证明重试请求:
bash
curl -X POST https://agent-bazaar.com/api/x402/code-review \
-H Content-Type: application/json \
-H X-402-Payment: \
-d {code: function add(a,b) { return a + b }, language: javascript}
演示模式(免费测试):在投入真实资金之前,使用 X-402-Payment: demo 测试任何端点并获取示例响应。
支付状态与错误处理
优雅地处理所有支付场景:
| 场景 | 操作 |
|---|
| 钱包未配置 | 提示用户先设置 lobster.cash |
| 余额不足 |
告知用户所需金额,要求他们为 lobster.cash 钱包充值 |
|
支付失败 | 显示清晰的错误消息,允许用户重试 |
|
等待确认 | 等待 lobster.cash 报告最终交易状态后再继续 |
|
402 响应 | 提取支付要求,委托给 lobster.cash 钱包 |
|
200 响应 | 支付成功——解析并使用技能结果 |
|
400 响应 | 错误请求——检查端点文档中的必填字段 |
|
500 响应 | 服务器错误——重试一次,然后报告给用户 |
始终等待 lobster.cash 确认支付状态后再继续工作流程。
可用技能与端点
请参阅 references/endpoints.md 获取完整的端点目录,包括定价、参数以及示例请求/响应。
决策框架——选择正确的技能
当您有任务时,使用此决策树:
- 1. 代码任务? → code-review($0.05)用于审查,cicd-generator($0.03)用于 CI/CD 流水线
- 内容任务? → content-writer($0.03)用于文章/文案,research-summarizer($0.04)用于研究
- 数据提取? → web-scraper($0.02)用于 URL,sentiment($0.02)用于文本分析,keyword-extractor($0.01)用于 SEO
- 需要图片? → dalle-image($0.08)用于 AI 图片生成
- 加密/DeFi? → defi-yield($0.03)用于收益分析,smart-contract-audit($0.10)用于审计,bankr($0.015)用于投资组合
- 模拟? → simulate($0.005)用于世界模型场景
- 需要完整的代理? → agent-builder($0.25)生成完整的代理配置
- 不确定? → 搜索 /api/capabilities?q= 或按类别浏览
技能链式调用(多步骤工作流)
为复杂任务链式调用技能。每次调用通过 lobster.cash 单独支付:
研究 + 写作 + 审查:
- 1. web-scraper($0.02)→ 从 URL 提取源材料
- research-summarizer($0.04)→ 提炼为关键点
- content-writer($0.03)→ 起草文章
- sentiment($0.02)→ 验证语气是否合适
总计:每个工作流 $0.11
构建并审计代理:
- 1. agent-builder($0.25)→ 生成 DeFi 监控代理
- smart-contract-audit($0.10)→ 审计其引用的任何合约
- code-review($0.05)→ 审查生成的代理代码
总计:每个工作流 $0.40
成本优化技巧
- 1. 先使用演示模式(X-402-Payment: demo)在支付前测试输入/输出
- 批量处理相关工作——一次详细的 content-writer 调用胜过三次模糊的调用
- 检查 402 响应——在任何支付前,它始终显示确切定价
- 缓存结果——不要为相同的输入重复调用
- 从便宜的开始——simulate($0.005)和 keyword-extractor($0.01)是原型设计中最便宜的
x402 兼容性
Agent Bazaar x402 端点与以下内容兼容:
- - Solana 结算——用于 lobster.cash 钱包流程的 Solana 上的 USDC
- PDA 钱包——支持 Solana 智能钱包 PDA
- USDC 作为所有端点的支付货币
关于 x402 协调器兼容性,api.corbits.dev 已验证与 lobster.cash 兼容。
请参阅 references/x402-protocol.md 获取完整的支付协议规范。
委托边界
本技能拥有:
- - 市场发现和能力搜索
- 技能选择和参数准备
- 工作流编排和链式调用
- 交易后结果处理和业务逻辑
lobster.cash 拥有:
- - 钱包配置和所有权
- 身份验证和会话生命周期
- 交易签名、批准和广播
- 交易状态权威和支付确认