本文へ移動
cccskills
無料GitHub で公開

handling-attachments

File attachment handling for XMTP agents. Use when sending or receiving images, files, or any encrypted remote attachments. Triggers on file upload, image sending, or remote attachment handling.

インストール方法を見る

含まれるファイル(4)

  • SKILL.md1.8 KB
  • rules/receive-attachment.md1.2 KB
  • rules/send-remote-attachment.md1.1 KB
  • rules/upload-callback.md1.6 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

XMTP attachments

Handle file attachments using encrypted remote attachments. Files are encrypted locally, uploaded to your storage provider, and sent as a remote attachment message.

When to apply

Reference these guidelines when:

  • Sending files or images from an agent
  • Receiving and downloading attachments
  • Implementing custom upload storage
  • Working with encrypted file transfers

Rule categories by priority

PriorityCategoryImpactPrefix
1SendCRITICALsend-
2ReceiveCRITICALreceive-
3UploadHIGHupload-

Quick reference

Send (CRITICAL)

  • send-remote-attachment - Send encrypted file attachments

Receive (CRITICAL)

  • receive-attachment - Download and decrypt attachments

Upload (HIGH)

  • upload-callback - Implement custom upload storage (Pinata, S3, etc.)

Quick start

import {
  type AttachmentUploadCallback,
  downloadRemoteAttachment,
} from "@xmtp/agent-sdk";

// Send an attachment
const file = new File(["Hello, World!"], "hello.txt", { type: "text/plain" });
await ctx.conversation.sendRemoteAttachment(file, uploadCallback);

// Receive an attachment
agent.on("attachment", async (ctx) => {
  const attachment = await downloadRemoteAttachment(ctx.message.content);
  console.log(`Received: ${attachment.filename}`);
});

How to use

Read individual rule files for detailed explanations:

rules/send-remote-attachment.md
rules/receive-attachment.md
rules/upload-callback.md

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Core XMTP Agent SDK setup and patterns. Use when creating new agents, handling messages, setting up middleware, or configuring environment variables. Triggers on agent setup, XMTP configuration, message handling, or middleware implementation.

日本語の概要は準備中です。原文の説明を表示しています。

xmtplabs/xmtp-agent-examples532026年2月21日 更新

Interactive button-based UI for XMTP agents following XIP-67. Use when creating menus, confirmation dialogs, selection options, or any button-based interaction. Triggers on inline actions, buttons, menus, or ActionBuilder.

日本語の概要は準備中です。原文の説明を表示しています。

xmtplabs/xmtp-agent-examples532026年2月21日 更新

Patterns for handling commands, validating input, and filtering messages in XMTP agents. Use when implementing slash commands, validators, or message filters. Triggers on command handling, input validation, or type guards.

日本語の概要は準備中です。原文の説明を表示しています。

xmtplabs/xmtp-agent-examples532026年2月21日 更新

Token transactions and wallet integration for XMTP agents. Use when sending USDC, creating transaction requests, or handling transaction confirmations. Triggers on USDC transfer, wallet calls, or transaction reference.

日本語の概要は準備中です。原文の説明を表示しています。

xmtplabs/xmtp-agent-examples532026年2月21日 更新

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.

日本語の概要は準備中です。原文の説明を表示しています。

xmtplabs/xmtp-agent-examples532026年2月21日 更新

ENS and Web3 identity resolution for XMTP agents. Use when resolving domain names, extracting mentions, or fetching Farcaster profiles. Triggers on ENS resolution, Farcaster lookup, or mention extraction.

日本語の概要は準備中です。原文の説明を表示しています。

xmtplabs/xmtp-agent-examples532026年2月21日 更新

xmtplabs のスキルをすべて見る

このスキルの問題を報告する