开发者 · Agent

让 agent 先构建一次调用路径。

The best agent path is short: load the skill, call offramp(walletClient, params), verify delegation, then add Peerlytics route data or explorer reads only if the product needs them.

01

Agent 上下文包

资源用途
skills/usdctofiat.mdDrop-in skill with SDK rules, platforms, OTC, and examples
llms.txt简短的机器可读产品与路径摘要
llms-full.txt完整的机器参考,含合约、定价、指南和解答
OFFRAMP_DEVELOPER_RESOURCES类型化 SDK 导出,含链接、委托配置、upstreamSourceTruths 和 playbooks
OFFRAMP_INTEGRATION_CHECKLISTTyped integration-doctor checks for delegation, duplicate prevention, and extension recovery
getOfframpAgentPrompt(profile)面向 agent 构建集成的可复制 prompt 生成器
Starters 仓库Working Next.js, Vite, Telegram-bot, and script examples
02

Prompt 序列

  1. 01让 agent 在规划前阅读 skill 和 llms.txt。
  2. 02让它在加入数据面功能前先交付一次调用的 offramp(walletClient, params) 路径。
  3. 03Pick a profile: app, bot, agent, private-otc, or peerlytics.
  4. 04尽可能让它从 create-offramp-app 或 starters 仓库脚手架起步。
  5. 05要求它验证每一笔创建的存款都委托给 Delegate 汇率管理器。
  6. 06如果它加入 Peerlytics,要求在进行原始 orderbook 读取前先调用 planRoutes()。
03

Agent 绝不能臆造的内容

  • 不要臆造沙盒;SDK 面向 Base 主网。
  • 不要移除委托;SDK 的存款路径必须委托给 Delegate 金库。
  • 不要把法币当作 SDK 控制的。法币在买卖双方之间直接流转。
  • 不要编造证明负载、凭证字段或支付方式哈希;先查 upstreamSourceTruths。

常见问题

agent 应该先读什么?

从 https://usdctofiat.xyz/skills/usdctofiat.md 开始,然后根据模型能容纳多少上下文选择 llms.txt 或 llms-full.txt。

agent 能从这个包里发现这些吗?

可以。从 @usdctofiat/offramp 引入 OFFRAMP_DEVELOPER_RESOURCES、OFFRAMP_INTEGRATION_CHECKLIST,读取 OFFRAMP_DEVELOPER_RESOURCES.upstreamSourceTruths,调用 getOfframpDeveloperResources(profile),或调用 getOfframpAgentPrompt(profile)。