skills$openclaw/handling-attachments
humanagent3.7k

by humanagent

handling-attachments – OpenClaw Skill

handling-attachments is an OpenClaw Skills integration for coding workflows. 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.

3.7k stars5.0k forksSecurity L1
Updated Feb 7, 2026Created Feb 7, 2026coding

Skill Snapshot

namehandling-attachments
descriptionFile 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. OpenClaw Skills integration.
ownerhumanagent
repositoryhumanagent/xmtp-agentpath: handling-attachments
languageMarkdown
licenseMIT
topics
securityL1
installopenclaw add @humanagent/xmtp-agent:handling-attachments
last updatedFeb 7, 2026

Maintainer

humanagent

humanagent

Maintains handling-attachments in the OpenClaw Skills directory.

View GitHub profile
File Explorer
5 files
handling-attachments
rules
receive-attachment.md
1.2 KB
send-remote-attachment.md
1.1 KB
upload-callback.md
1.6 KB
SKILL.md
1.8 KB
SKILL.md

name: handling-attachments description: 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. license: MIT metadata: author: xmtp version: "1.0.0"

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 } from "@xmtp/agent-sdk/util";

// 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, agent);
  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
README.md

No README available.

Permissions & Security

Security level L1: Low-risk skills with minimal permissions. Review inputs and outputs before running in production.

Requirements

  • OpenClaw CLI installed and configured.
  • Language: Markdown
  • License: MIT
  • Topics:

FAQ

How do I install handling-attachments?

Run openclaw add @humanagent/xmtp-agent:handling-attachments in your terminal. This installs handling-attachments into your OpenClaw Skills catalog.

Does this skill run locally or in the cloud?

OpenClaw Skills execute locally by default. Review the SKILL.md and permissions before running any skill.

Where can I verify the source code?

The source repository is available at https://github.com/openclaw/skills/tree/main/skills/humanagent/xmtp-agent. Review commits and README documentation before installing.