Skip to content

xmtplabs/xmtp-agent-examples / skills/managing-groups

managing-groups

Verified

Group 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.

FileKindSize
SKILL.mdskill md2.0 KB
rules/create-group.mdmarkdown1.3 KB
rules/members-add.mdmarkdown1.2 KB
rules/permissions-roles.mdmarkdown1.4 KB
rules/welcome-on-install.mdmarkdown2.2 KB

rules/create-group.md

View on GitHub
---
title: Create new group conversations
impact: CRITICAL
tags: groups, create, conversations
---

## Create new group conversations

Use `createGroupWithAddresses` to create groups with initial members.

**Basic group creation:**

```typescript
const group = await agent.createGroupWithAddresses(
  ["0x123...", "0x456..."],
  {
    groupName: "My Group",
    groupDescription: "A group for our project",
  }
);

await group.send("Welcome to the group!");
```

**With full options:**

```typescript
const group = await agent.createGroupWithAddresses(addresses, {
  groupName: "Project Discussion",
  groupDescription: "A group for our project collaboration",
  groupImageUrlSquare: "https://example.com/image.jpg",
});
```

**Update group metadata:**

```typescript
await group.updateName("New Group Name");
await group.updateDescription("Updated description");
await group.updateImageUrl("https://example.com/new-image.jpg");
```

**Create DM:**

```typescript
import { IdentifierKind } from "@xmtp/agent-sdk";

// By inbox ID
const dm = await client.conversations.newDm("inboxId123");

// By Ethereum address
const dmByAddress = await agent.createDmWithIdentifier({
  identifier: "0x7c40611372d354799d138542e77243c284e460b2",
  identifierKind: IdentifierKind.Ethereum,
});

await dm.send("Hello!");
```
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: 470kUpdated Claude CodeCodexVerifiedInstall
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: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 322kUpdated Claude CodeCodexVerifiedInstall