From swarmesh
Removes a specified role from the running swarmesh swarm using swarm-leave.sh bash script with optional reason. Lists available and remaining roles. Triggers on phrases like 'remove role' or 'kick out backend'.
How this skill is triggered — by the user, by Claude, or both
Slash command
/swarmesh:swarm-leaveThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
从运行中的蜂群移除指定角色。
从运行中的蜂群移除指定角色。
# 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; }
无指定角色时列出供选:
"$SWARM_ROOT/scripts/swarm-msg.sh" list-roles
"$SWARM_ROOT/scripts/swarm-leave.sh" <角色名> --force --reason "<原因>"
无原因默认 "手动移除"。
"$SWARM_ROOT/scripts/swarm-msg.sh" list-roles
汇报剩余团队成员。
npx claudepluginhub soein/swarmesh --plugin swarmeshDynamically adds roles to running swarms in execute mode via bash scripts. Activates on phrases like 'add a role', '加 database engineer', or 'bring backend online'.
Coordinates two-specialist workflow to safely retire a team agent: Satchmo removes plugin/code references, Johnny tears down ClawNet bot infrastructure.
Lists available local roles in read-only mode for controller, worker, and human sessions. Use to browse roles without creating or managing repositories.