360 Secure SkillHub
360 安全技能中心

XMTP CLI

该 Skill 是 XMTP CLI 的入口说明,指导通过 xmtp 命令完成初始化与环境配置、发送消息、创建与管理群组、列出和查找会话/成员/消息、同步、群组权限管理、获取调试信息和演示内容类型,并指向各子 Skill 的 SKILL.md 与 rules/ 获取分步指引。

humanagent
humanagent
热度 88.11
最近更新 2026-05-11 15:53:07
分类:协作依赖:代码执行 / 第三方 API应用场景:调试排错 / 工作流 / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add xmtp-cli
Metadata
name
xmtp-cli
description
Run and script the XMTP CLI for testing, debugging, and interacting with XMTP conversations, groups, and messages. Use when the user needs init, send, list, groups, debug, sync, permissions, or content commands from the CLI.
license
MIT
metadata
{"author":"xmtp","version":"1.0.0"}

XMTP CLI

Use the xmtp command to test, debug, and interact with XMTP conversations, groups, and messages from the command line. This skill is the entry point; use the sub-skills below for specific CLI tasks.

When to apply

  • Testing or debugging XMTP from the command line
  • Sending messages or creating and managing groups
  • Listing or finding conversations, members, and messages
  • Syncing conversations and messages
  • Managing group permissions
  • Demonstrating content types (text, markdown, attachment, transaction, deeplink, miniapp)

Sub-skills

Sub-skill Use when
setup Initialize CLI and configure env (init, env variables)
groups Create DM or group, update group metadata
send Send messages to address or group
list List conversations, members, messages; find by address or inbox
debug Get info, resolve address, inspect inbox
sync Sync conversations or sync all
permissions List/info group permissions, update permissions
content Demo text, markdown, attachment, transaction, deeplink, miniapp
debugging Enable CLI debug logging (XMTP_FORCE_DEBUG env)

How to use

  1. Pick the sub-skill that matches the task (e.g. send message → send).
  2. Read that sub-skill’s SKILL.md and its rules/ for step-by-step guidance.

Install

npm install -g @xmtp/cli
# or
pnpm add -g @xmtp/cli
# or
yarn global add @xmtp/cli

Run without install

npx @xmtp/cli <command> <arguments>
# or pnpx / yarn dlx

Help

xmtp --help
xmtp <command> --help

Full documentation: docs.xmtp.org