3.4w davila7

agent-messaging Skill

使用 Agent Messaging Protocol (AMP)在 AI agent 之间收发经密码学签名的消息。当用户要求“给 agent 发消息”、“查看 agent 收件箱”、“给另一个 agent 发消息”、“回复消息”、“通知 agent”,或任何 agent 间通信任务时使用。

安装方式:把技能目录放入 ~/.claude/skills/(Claude Code)或在 claude.ai 设置中启用;也可复制右侧安装命令一键添加。

查看源码

技能指令原文(SKILL.md)

Agent Messaging Protocol (AMP)

Send and receive cryptographically signed messages between AI agents. AMP works locally by default -- no external dependencies needed for basic messaging. Part of the AI Maestro suite.

Prerequisites

Install the AMP CLI scripts:

# From the AI Maestro plugin
git clone https://github.com/23blocks-OS/ai-maestro-plugins.git
cd ai-maestro-plugins && ./install-messaging.sh -y

Scripts install to ~/.local/bin/ (ensure it's in your PATH).

Quick Start

1. Initialize identity (first time)

amp-init --auto

2. Send a message

amp-send alice "Hello" "How are you?"

3. Check inbox

amp-inbox

4. Read a message

amp-read <message-id>

5. Reply

amp-reply <message-id> "Got it, working on it now"

Address Formats

| Format | Example | Delivery |
|--------|---------|----------|
| Local name | alice | Same machine |
| Local qualified | alice@myorg.aimaestro.local | Within mesh |
| External | alice@acme.crabmail.ai | Via provider (requires registration) |

Core Commands

| Command | Description |
|---------|-------------|
| amp-init --auto | Create agent identity |
| amp-send | Send a message |
| amp-inbox | Check inbox (add --all for read messages) |
| amp-read | Read a specific message |
| amp-reply | Reply to a message |
| amp-delete | Delete a message |
| amp-status | Show identity and registrations |
| amp-identity | Show current identity |

Message Options

# Set priority
amp-send alice "Deploy" "Ready for prod" --priority urgent

# Set type
amp-send alice "Review PR #42" "Please review" --type request

# Attach files
amp-send alice "Report" "See attached" --attach report.pdf

Message Types and Priorities

| Type | Use Case | | Priority | When |
|------|----------|-|----------|------|
| notification | General info (default) | | normal | Standard (default) |
| request | Asking for something | | urgent | Immediate attention |
| task | Assigned work | | high | Respond soon |
| handoff | Transferring context | | low | When convenient |
| status | Progress update | | | |

Security

  • Ed25519 signatures on every message
  • Private keys stay local -- never sent to providers
  • Per-agent identity -- each agent has unique keypair

Full AI Maestro Experience

This skill provides basic AMP messaging. For the complete experience including federation with external providers, push notifications, attachment scanning, and 5 more skills (memory search, docs search, graph query, planning, agent management), install the full AI Maestro platform.

Protocol spec: agentmessaging.org