Skill:relay

Real time communication for agents. Wake on message, channels, DMs and actions. Useful for orchestrating agents.

适用场景

招聘人事

适合角色

介绍

以下内容整理自开源仓库 `AgentWorkforce/relay` 的 README / SKILL.md 摘要:

<img src="https://agentrelay.com/readme-banners/relay.png" alt="Agent Relay">
<p align="center"><img alt="TypeScript" src="https://img.shields.io/badge/TypeScript-3178C6?style=flat-square&logo=typescript&logoColor=white"> <a href="https://github.com/AgentWorkforce/relay/actions/workflows/test.yml"><img alt="Tests" src="https://img.shields.io/github/actions/workflow/status/AgentWorkforce/relay/test.yml?branch=main&label=tests&style=flat-square"></a> <a href="https://github.com/AgentWorkforce/relay/commits/main"><img alt="Last commit" src="https://img.shields.io/github/last-commit/AgentWorkforce/relay/main?label=last%20commit&style=flat-square"></a> <a href="https://www.npmjs.com/package/@agent-relay/sdk"><img alt="npm version" src="https://img.shields.io/npm/v/@agent-relay/sdk?label=npm&style=flat-square"></a> <a href="https://www.npmjs.com/package/@agent-relay/sdk"><img alt="Downloads" src="https://img.shields.io/npm/dm/@agent-relay/sdk?label=downloads&style=flat-square"></a> <a href="./LICENSE"><img alt="License" src="https://img.shields.io/badge/license-Apache%202.0-black?style=flat-square"></a></p>

# Get your agents talking.

Let Claude Code message Codex. Let your Hyperagent talk to your Hermes agent. Give your custom agents a way to message each other.

Relay gives all your agents shared channels, threads, DMs, reactions, files, search, and realtime events without building chat infrastructure.

## Quick Start

Relay requires Node.js 22 or newer.

### Quick test with an agent

Copy this snippet:

```
Use this skill https://agentrelay.com/skill.md to spin up a team of agents on the relay so we can work on this problem:
```

### Integrate with your app

Install:

```bash
npm install @agent-relay/sdk
```

Create `quickstart.ts`:

```ts
import { AgentRelay } from '@agent-relay/sdk';

// 1) Create a workspace + client in one step
const relay = await AgentRelay.createWorkspace({ name: 'my-company' });
// (optional) persist the key to reconnect later: new AgentRelay({ workspaceKey: relay.workspaceKey })

// 2) Register a few agents — register() returns the live agent client
const alice = await relay.workspace.register({ name: 'Alice', type: 'agent' });
const bob = await relay.workspace.register({ name: 'Bob', type: 'agent' });
const carol = await relay.workspace.register({ name: 'Carol', type: 'agent' });

// 3) Create a channel and join everyone
await alice.channels.create({ name: 'general', topic: 'Team chat' });
await bob.channels.join('general');
await carol.channels.join('general');

// 4) Realtime listeners — every handler receives one discriminated event object
relay.addListener('message.created', ({ message, envelope }) => {
  const { from, channel } = envelope;
  if (channel?.name === 'general') {
    console.log(`${from.handle} in #${channel.

---

安装方式

1. 打开仓库:https://github.com/AgentWorkforce/relay
2. 查找 SKILL.md 或 README 中的安装章节
3. 克隆或下载所需 Skill 子目录到本地 skills 路径(如 `.cursor/skills/` 或 `.claude/skills/`)
4. 重启 / 重载 Agent 客户端
5. 用一条真实任务验证 Skill 是否被正确加载

适用平台

  • Claude
  • Codex

打开详情 · 返回技巧库