xmtplabs/xmtp-agent-examples / skills/managing-groups
managing-groups
VerifiedGroup conversation management for XMTP agents. Use when creating groups, managing members, setting permissions, or sending welcome messages. Triggers on group creation, member management, or permissions.
XMTP groups
Manage group conversations, permissions, and members.
When to apply
Reference these guidelines when:
- Creating new group conversations
- Managing group members (add/remove)
- Setting group permissions
- Sending welcome messages
- Gating group access
Rule categories by priority
| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | Create | CRITICAL | create- |
| 2 | Members | HIGH | members- |
| 3 | Permissions | HIGH | permissions- |
| 4 | Welcome | MEDIUM | welcome- |
Quick reference
Create (CRITICAL)
create-group- Create new group conversationscreate-dm- Create direct messages
Members (HIGH)
members-add- Add members to groupsmembers-remove- Remove members from groupsmembers-get-address- Get member Ethereum addresses
Permissions (HIGH)
permissions-roles- Understand member, admin, super admin rolespermissions-custom- Set custom permission policies
Welcome (MEDIUM)
welcome-on-install- Send welcome on agent installationwelcome-new-members- Welcome new group members
Quick start
// Create a group
const group = await agent.createGroupWithAddresses(addresses, {
groupName: "My Group",
groupDescription: "A cool group",
});
// Welcome on new conversations
agent.on("group", async (ctx) => {
await ctx.conversation.sendText("Hello group!");
});
agent.on("dm", async (ctx) => {
await ctx.conversation.sendText("Hello! How can I help?");
});
How to use
Read individual rule files for detailed explanations:
rules/create-group.md
rules/members-add.md
rules/permissions-roles.md
rules/welcome-on-install.md
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 465k | Updated | Claude CodeCodex | Verified | Install |
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 465k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 318k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 318k | Updated | Claude CodeCodex | Verified | Install |