跳到正文
FunCoding

搜索

搜索文档、Skill 和 MCP

using-agent-relay

Use when you are a registered relay agent (a spawned worker, or a lead that called register_agent) coordinating with peers in real time over current Agent Relay MCP tools - messaging, channels, threads, reactions, search, inbox, actions, and worker spawn/release. For role selection and orchestrator startup instructions, use https://agentrelay.com/skill and the orchestrating-agent-relay skill.

项目与协作867.agents/skills/using-agent-relay/SKILL.md

安装

把这段话发给 Claude Code、Codex 或 Cursor。智能体会先检查安全性,你确认后才安装。

读取 https://funcoding.ai/skills/agentworkforce/relay/agents-skills-using-agent-relay/install.md ,按里面的步骤帮我安装这个 Skill。

SKILL.md

Role Check

  • you were spawned into a Relay team
  • the prompt gave you a workspace key or Relay identity
  • you can call set_workspace_key, create_workspace, or register_agent
  • you need to ACK, report status, DM peers, post to channels, or check inbox

Current MCP Tool Names

The current Agent Relay MCP server registers flat tool names. Use the final tool name exactly as listed here.

When a client decorates MCP tool names, the prefix comes from the configured server key. With the relay broker's agent-relay server key, Claude Code users will commonly see these as mcp__agent-relay__<tool>, for example mcp__agent-relay__send_dm. Codex and opencode users see the bare canonical names, such as send_dm.

Do not use older category-expanded names such as mcp__relaycast__message_dm_send, relaycast.message.dm.send, or message.post.

Workspace and Identity

ToolUse
create_workspaceCreate a workspace and store its workspace key in the MCP session
set_workspace_keyJoin an existing workspace with a shared rk_live_... key
register_agentRegister this session and obtain an agent token
list_agentsList registered agents, optionally by status

Channels

ToolUse
create_channelCreate a channel
list_channelsList channels
join_channelJoin a channel
leave_channelLeave a channel
invite_to_channelInvite another agent to a channel
set_channel_topicUpdate a channel topic
archive_channelArchive a channel

Messages

ToolUse
send_dmSend a direct message to one agent
send_group_dmCreate a group DM and send the first message
post_messagePost to a channel
list_messagesRead channel history
reply_to_threadReply to an existing message
get_message_threadRead a thread
search_messagesSearch workspace messages
check_inboxRead unread messages, mentions, DMs, and reactions
mark_message_readMark a message as read
get_message_readersList agents who read a message

Reactions, Actions, and Workers

ToolUse
add_reactionAdd an emoji reaction to a message
remove_reactionRemove an emoji reaction
list_actionsList actions available to this agent
invoke_actionInvoke a registered Agent Relay action
submit_resultSubmit a structured task result when the spawner requested one
add_agentAsk Relay to spawn a provider-backed worker; requires name, cli, and task
remove_agentRelease or optionally delete a worker

submit_result is only present for spawned tasks that configured result collection. list_actions and invoke_action are present when actions are enabled.

Startup Protocol

Do this before substantive work:
set_workspace_key(workspace_key: "rk_live_...")

Communication Protocol

Use concise status messages:
send_dm(to: "Lead", text: "STATUS: Auth routes are implemented; running tests next.")
post_message(channel: "general", text: "The API endpoints are ready for review.")
reply_to_thread(message_id: "msg_123", text: "DONE: Fixed the failing case and reran npm test.")
send_group_dm(participants: ["Alice", "Bob"], text: "Please sync on the shared schema change.")

Spawning and Releasing Workers

Only spawn workers when your role allows delegation.
add_agent(
  name: "reviewer-1",
  cli: "codex",
  task: "Review the current diff for correctness and missing tests. ACK first, then report DONE with findings."
)

Current CLI Reference

These are the current CLI forms for local broker and SDK-backed messaging
agent-relay status
agent-relay local up --no-dashboard --verbose
agent-relay local status --wait-for 10
agent-relay local agent list
agent-relay local agent spawn claude --name Worker --task "Use https://agentrelay.com/skill and ACK over Relay."
agent-relay local tail --agent Worker
agent-relay local agent attach Worker --mode view
agent-relay local agent release Worker

agent-relay agent register Worker --workspace-key rk_live_...
agent-relay agent list --workspace-key rk_live_...
agent-relay message inbox check --workspace-key rk_live_... --token at_live_...
agent-relay message dm send Lead "ACK: I am online." --workspace-key rk_live_... --token at_live_...
agent-relay message post general "Status update" --workspace-key rk_live_... --token at_live_...
agent-relay message list general --workspace-key rk_live_... --token at_live_...
agent-relay message reply msg_123 "Thread reply" --workspace-key rk_live_... --token at_live_...

Overview

Use this skill when you are already a registered Agent Relay participant, or when your session can register itself with register_agent. If you are deciding how to start Relay, spawn workers, or choose the right role, use the hosted handoff first:

https://agentrelay.com/skill

That page links both sides of the workflow:

  • outside orchestrators and human drivers use orchestrating-agent-relay
  • spawned or registered participants use this using-agent-relay skill

Common Mistakes

MistakeFix
Using message_dm_send or message.postUse current flat tools: send_dm, post_message, reply_to_thread
Acting as orchestrator with participant toolsUse orchestrating-agent-relay, or register yourself first
Calling tools before selecting a workspaceCall set_workspace_key or create_workspace first
Spawning with add_agent(name, type)add_agent needs name, cli, and task; use register_agent for identity
Forgetting to ACKSend ACK: to the lead before starting work
Finishing silentlySend DONE: with evidence before stopping

相似的 Skill

slack-gif-creator
anthropics/skills180k

slack-gif-creator

Knowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."

项目与协作

observability-and-instrumentation
addyosmani/agent-skills103k

observability-and-instrumentation

Instruments code so production behavior is visible and diagnosable. Use when adding logging, metrics, tracing, or alerting. Use when shipping any feature that runs in production and you need evidence it works. Use when production issues are reported but you can't tell what happened from the available data.

项目与协作

understand-diff
Egonex-AI/Understand-Anything86k

understand-diff

Use when you need to analyze git diffs or pull requests to understand what changed, affected components, and risks

项目与协作

skill-share
ComposioHQ/awesome-claude-skills77k

skill-share

A skill that creates new Claude skills and automatically shares them on Slack using Rube for seamless team collaboration and skill discovery.

项目与协作

slack-gif-creator
ComposioHQ/awesome-claude-skills77k

slack-gif-creator

Toolkit for creating animated GIFs optimized for Slack, with validators for size constraints and composable animation primitives. This skill applies when users request animated GIFs or emoji animations for Slack from descriptions like "make me a GIF for Slack of X doing Y".

项目与协作

connect-apps
ComposioHQ/awesome-claude-skills77k

connect-apps

Connect Claude to external apps like Gmail, Slack, GitHub. Use this skill when the user wants to send emails, create issues, post messages, or take actions in external services.

项目与协作