Command Palette

Search for a command to run...

Back to skills
skill № 41320

swarm-chat-msg

Post a message to the discuss roundtable with @-mentions to trigger replies. Use when user wants to "send message to discussion", "@mention a participant"…

FreeNo executable scripts
Soeinby Soein★ 46 GitHub stars

Install swarm-chat-msg in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

About this skill

Post message to discuss session

在 discuss session 里发消息。支持 @name 点名——被点名者收到"最近 N 轮对话 + 当前消息"并接话。

1. 定位 plugin root

# Locate swarmesh plugin root (优先 $SWARM_ROOT env)
if -z "${SWARM_ROOT:-}" || ! -d "$SWARM_ROOT/scripts"; then
    SWARM_ROOT=$(find "$HOME/.codex/plugins/cache" -type d -name scripts 2>/dev/null \
        | grep -E '/swarmesh/[^/]+/scripts$' | head -1 | sed 's|/scripts$||')
fi
-n "${SWARM_ROOT:-}" && -d "$SWARM_ROOT/scripts" || { echo "⚠ 未找到 swarmesh plugin root,请 export SWARM_ROOT=/path/to/swarmesh"; exit 1; }

2. 先列出当前参与者(告诉用户可 @ 谁)

echo "当前参与者(可 @点名):"
"$SWARM_ROOT/scripts/lib/discuss-relay.sh" list

3. 校验前提

MODE=$(jq -r '.mode' .swarm/runtime/state.json 2>/dev/null)
"$MODE" == "discuss" || { echo "⚠️ 当前不是 discuss 模式"; exit 1; }

4. 语法提示

用户输入即消息正文,含 @name 则触发该参与者接话:

  • 例:@codex @claude 设计 Redis 缓存方案
  • 无 @ → 仅落盘记录,不触发任何 CLI

5. 发送

"$SWARM_ROOT/scripts/lib/discuss-relay.sh" post \
    --from "user" \
    --content "<用户输入的消息正文>"

6. 查看进展(等 10–20 秒后)

"$SWARM_ROOT/scripts/lib/discuss-relay.sh" tail --last 20

7. 提示用户

  • 被 @ 的参与者正在生成回复,pane 里可见流式输出
  • 若参与者也 @ 了其他人,对方会继续接话
  • 达到最大轮次(默认 20)会暂停 — SWARM_DISCUSS_MAX_TURNS=40 调整

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

FAQ

What does the swarm-chat-msg skill do?

Post a message to the discuss roundtable with @-mentions to trigger replies. Use when user wants to "send message to discussion", "@mention a participant", "post to roundtable", "触发 CLI 接话", "发消息", or says "@xxx 讨论 X".

How do I install the swarm-chat-msg skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the swarm-chat-msg skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare swarm-chat-msg with