跳到正文
TakoAPI
返回技能列表

xmtp-agent

由 humanagent 提供

Web & Frontend Development
1.5k下载量由 clawskills.sh 提供
2星标
1浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Building and extending XMTP agents with the Agent SDK.

描述

该技能的功能

A skill for building event-driven messaging agents on the XMTP decentralized network. Covers agent setup and a set of sub-skills for specific features: slash commands, file attachments, reactions, group management, USDC payments, inline actions, and address/domain resolution. Entry point for the full xmtp-agents skill tree.

Organizes agent development into focused sub-skills so you can go directly to the relevant guidance instead of scanning broad SDK docs.

何时使用

  • Building a chatbot that responds to slash commands in XMTP chats
  • Sending and receiving file attachments through a messaging agent
  • Managing group conversations with role-based member control
  • Processing USDC transfers triggered by agent interactions
  • Resolving Farcaster profiles and ENS addresses from message mentions

示例工作流

输入

User asks: Create an XMTP agent that replies to a /ping command

智能体
  1. 1

    Install @xmtp/agent-sdk via npm

  2. 2

    Initialize the agent using env vars (private key, network env)

  3. 3

    Register a command handler that matches '/ping'

  4. 4

    Send a text reply back to the sender

  5. 5

    Start the agent and listen for incoming messages

输出

A running XMTP agent on the configured network that responds with a reply whenever a user sends /ping

前置要求

  • Private key for the agent wallet (XMTP_PRIVATE_KEY or equivalent env var)

安装

clawhub install humanagent/xmtp-agent

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接