Broadcast to org

From stevehuang0115/crewly · View interactive version

Broadcast to org is an AI agent skill from the GitHub repository stevehuang0115/crewly. Send a message to all Team Leaders within a specific organization (parent team and its child teams).

How to use this skill

Skill file

Broadcast to Organization

Send a message to all Team Leaders within a specific organization. Given a parent team ID, this skill finds all child teams, identifies their leaders, and delivers the message to each leader's session.

Usage

bash config/skills/orchestrator/broadcast-to-org/execute.sh '{"parentTeamId":"org-team-id","message":"Please submit your weekly status reports by EOD"}'

Parameters

| Parameter | Required | Description |

|-----------|----------|-------------|

| parentTeamId | Yes | The ID of the parent/organization team |

| message | Yes | The message to send to all TLs in the organization |

How It Works

  1. Fetches all teams from the API
  2. Filters child teams whose parentTeamId matches the given ID
  3. For each child team, finds leaders using (in priority order):
  1. Delivers the message to each leader's session via /terminal/{session}/deliver

Output

JSON with delivery summary:

{
  "sent": 3,
  "failed": 0,
  "skipped": 1,
  "childTeams": 4,
  "details": [
    {"team": "Frontend", "session": "crewly-frontend-tl", "status": "sent"},
    {"team": "Backend", "session": "crewly-backend-tl", "status": "sent"},
    {"team": "QA", "status": "skipped", "reason": "no leader found"}
  ],
  "message": "Broadcast to organization complete"
}

Best Practices

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.