Stop agent

From stevehuang0115/crewly · View interactive version

Stop agent is an AI agent skill from the GitHub repository stevehuang0115/crewly. Stop a worker agent within the Team Leader's scope: a member whose parentMemberId is the TL, or a parentless member of a team the TL leads.

How to use this skill

Skill file

Stop Agent (TL Version)

Stops a worker agent within the Team Leader's subordinate scope. Validates hierarchy before stopping — the target worker's parentMemberId must match the TL's memberId.

When to Use

Usage

bash {{TL_SKILLS_PATH}}/stop-agent/execute.sh '{"teamId":"{{TEAM_ID}}","memberId":"worker-member-uuid","tlMemberId":"{{MEMBER_ID}}"}'

Parameters

| Parameter | Required | Description |

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

| teamId | Yes | The team's UUID |

| memberId | Yes | The target worker's member UUID |

| tlMemberId | Yes | The TL's own member ID for hierarchy validation |

Hierarchy Validation

The script fetches team data and allows the stop when:

It refuses members of other teams, members whose parent is someone else, and parentless members of a team the TL does not lead.

Differences from Orchestrator stop-agent

| Aspect | Orchestrator | Team Leader |

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

| Scope | Any agent in any team | Only subordinates |

| Hierarchy check | None | Subordinates, or parentless members of the TL's own team |

| Extra parameter | None | tlMemberId required |

Output

JSON confirmation with agent shutdown status, same format as orchestrator stop-agent.

Related Skills

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.