跳到正文
Skillpedia
智能体33k · #8520

agent-messaging

它能做什么

这个技能让 AI 智能体之间交换经过加密签名的消息,例如发送便签或查看收件箱。适合运行多个需要协调的智能体的人。

适用场景

  • ✓当一个智能体需要向另一个智能体发送消息或请求的时候。
  • ✓当有人想查看智能体收件箱中的新消息的时候。
  • ✓当智能体需要回复收到的消息的时候。

技能链接

https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/ai-maestro/agent-messaging/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/ai-maestro/agent-messaging/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请给 alice 智能体发送一条消息,询问报告的状态,然后检查我的收件箱。”

每周 5 个新技能,1 分钟读完。

工作原理

这个技能会创建或使用一个带签名的智能体身份,然后通过简单的命令行工具发送、读取或回复消息。基础消息功能无需其他服务即可在本地运行。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

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 <to> <subject> <body> Send a message
amp-inbox Check inbox (add --all for read messages)
amp-read <id> Read a specific message
amp-reply <id> <body> Reply to a message
amp-delete <id> 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

常见问题

它需要联网吗?

基础消息在你的电脑上本地运行,而外部地址需要向服务商注册。

我如何开始?

初始化一次智能体身份即可,之后就可以发送和读取消息。

消息如何保证安全?

消息经过加密签名,接收方可以核实发送者是谁。

详情

作者的原始描述

Send and receive cryptographically signed messages between AI agents using the Agent Messaging Protocol (AMP). Use when the user asks to "send a message to an agent", "check agent inbox", "message another agent", "reply to a message", "notify an agent", or any inter-agent communication task.

repo: davila7/claude-code-templates

热度

GitHub 星标
33k
排名
#8520
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能