with one click
delegate-task-tl
// Assign a task to a worker within the Team Leader's subordinate scope. Validates that the target worker's parentMemberId matches the TL's memberId before delegation. Includes auto-monitoring setup.
// Assign a task to a worker within the Team Leader's subordinate scope. Validates that the target worker's parentMemberId matches the TL's memberId before delegation. Includes auto-monitoring setup.
[HINT] Download the complete skill directory including SKILL.md and all related files
| name | Delegate Task (TL) |
| description | Assign a task to a worker within the Team Leader's subordinate scope. Validates that the target worker's parentMemberId matches the TL's memberId before delegation. Includes auto-monitoring setup. |
| version | 1.0.0 |
| category | management |
| skillType | claude-skill |
| assignableRoles | ["team-leader"] |
| triggers | ["delegate task","assign to worker","send task to worker","delegate to subordinate"] |
| tags | ["task","delegation","management","hierarchy"] |
| execution | {"type":"script","script":{"file":"execute.sh","interpreter":"bash","timeoutMs":30000}} |
Assigns a task to a worker within the Team Leader's subordinate scope. Validates hierarchy before delegation — the target worker's parentMemberId must match the TL's memberId.
decompose-goal creates sub-taskshandle-failure decides to reassign a task| Flag | JSON Field | Required | Description |
|---|---|---|---|
--to / -t | to | Yes | Target worker's PTY session name |
--task / -T | task | Yes | Task description (or pipe via stdin) |
--task-file | — | No | Read task description from a file path |
--priority / -P | priority | No | Priority: low, normal, high (default: normal) |
--context / -c | context | No | Additional context for the worker |
--project / -p | projectPath | No | Project path; creates task file in .crewly/tasks/ |
--team / -g | teamId | No | Team ID for hierarchy validation |
--tl-member | tlMemberId | No | TL's member ID for hierarchy validation |
--from | fromSession | No | Delegating TL's session name (for monitoring) |
# Basic delegation
bash execute.sh --to worker-session --task "Implement login form" --priority high --project /path/to/project
# With hierarchy validation
bash execute.sh --to worker-session --task "Implement login form" --priority high --team team-123 --tl-member tl-member-id --project /path/to/project
# Task from stdin (for long descriptions with special characters)
echo "Implement the OAuth2 flow — it's critical for launch" | bash execute.sh --to worker-session --priority high --project /path
# Task from file
bash execute.sh --to worker-session --task-file /tmp/task-description.txt --priority high --project /path
bash execute.sh '{"to":"worker-session","task":"Implement login form","priority":"high","teamId":"team-123","tlMemberId":"tl-member-id","projectPath":"/path/to/project"}'
When teamId and tlMemberId are provided, the script fetches team data and validates:
parentMemberId matches the TL's memberIdIf validation fails, delegation is rejected with a hierarchy violation error.
If the target worker is offline (delivery fails), the skill automatically:
memberId from team dataPOST /teams/:teamId/members/:memberId/start to boot the workerThis requires --team to be provided. Without team context, offline workers cannot be auto-started.
| Aspect | Orchestrator | Team Leader |
|---|---|---|
| Scope | Any agent in any team | Only subordinates |
| Message prefix | "New task from orchestrator" | "New task from Team Leader" |
| Hierarchy check | None | Validates parentMemberId |
| Monitoring subscriber | Orchestrator session | TL session |
JSON confirmation of task delivery, same format as orchestrator delegate-task.
decompose-goal — Create sub-tasks before delegatingverify-output — Verify completed task outputhandle-failure — Handle delegation failures