XMTP agents
Build event-driven messaging agents on the XMTP network. This skill is the entry point; use the sub-skills below for specific features.
When to apply
- Starting or configuring a new XMTP agent
- Adding behavior: commands, attachments, reactions, groups, payments, inline actions, or address/domain resolution
Sub-skills
| Sub-skill |
Use when |
| building-agents |
Setup, env vars, text/lifecycle events, middleware |
| handling-commands |
Slash commands, validators, message filters, type guards |
| handling-attachments |
Send/receive files, remote attachments, upload storage |
| sending-reactions |
Send or receive reactions, thinking/reply patterns |
| managing-groups |
Create groups, add members, roles, welcome-on-install |
| handling-transactions |
USDC transfers, balance checks, transaction references |
| creating-inline-actions |
Inline actions, confirmation/selection helpers, config menus |
| resolving-domains |
Resolve addresses, Farcaster profiles, extract mentions |
How to use
- Pick the sub-skill that matches the task (e.g. slash commands →
handling-commands).
- Read that sub-skill’s
SKILL.md and its rules/ for step-by-step guidance.
- For SDK or API details, use the xmtp-docs skill (index + specific page fetch).
Quick start
Install the Agent SDK, create an agent from env, handle text, then start:
npm install @xmtp/agent-sdk
Create the agent and handle messages using patterns from building-agents (setup, events, middleware). For commands, attachments, reactions, groups, transactions, inline actions, or resolution, use the corresponding sub-skill above.
1---
2name: xmtp-agents
3description: >
4 Building and extending XMTP agents with the Agent SDK.
5 Use when: (1) creating or configuring an XMTP agent, (2) implementing agent features (commands, attachments, reactions, groups, transactions, inline actions, or domain resolution).
6license: MIT
7metadata:
8 source: https://skillmd.com/skills/modbender/xmtp-agents
9 author: xmtp
10 version: "1.0.0"
11---
12
13# XMTP agents
14
15Build event-driven messaging agents on the XMTP network. This skill is the entry point; use the sub-skills below for specific features.
16
17## When to apply
18
19- Starting or configuring a new XMTP agent
20- Adding behavior: commands, attachments, reactions, groups, payments, inline actions, or address/domain resolution
21
22## Sub-skills
23
24| Sub-skill | Use when |
25|-----------|----------|
26| **building-agents** | Setup, env vars, text/lifecycle events, middleware |
27| **handling-commands** | Slash commands, validators, message filters, type guards |
28| **handling-attachments** | Send/receive files, remote attachments, upload storage |
29| **sending-reactions** | Send or receive reactions, thinking/reply patterns |
30| **managing-groups** | Create groups, add members, roles, welcome-on-install |
31| **handling-transactions** | USDC transfers, balance checks, transaction references |
32| **creating-inline-actions** | Inline actions, confirmation/selection helpers, config menus |
33| **resolving-domains** | Resolve addresses, Farcaster profiles, extract mentions |
34
35## How to use
36
371. Pick the sub-skill that matches the task (e.g. slash commands → `handling-commands`).
382. Read that sub-skill’s `SKILL.md` and its `rules/` for step-by-step guidance.
393. For SDK or API details, use the xmtp-docs skill (index + specific page fetch).
40
41## Quick start
42
43Install the Agent SDK, create an agent from env, handle text, then start:
44
45```bash
46npm install @xmtp/agent-sdk
47```
48
49Create the agent and handle messages using patterns from **building-agents** (setup, events, middleware). For commands, attachments, reactions, groups, transactions, inline actions, or resolution, use the corresponding sub-skill above.