# Teamharness Task Delegation

Use when you act as Leader to turn ready Quick Task or Project Work state into Worker...

- Repository: https://github.com/agentscope-ai/AgentTeams (5913 stars)
- Category: Engineering
- License: Apache-2.0
- Last updated: 2026-11-01
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add agentscope-ai/AgentTeams --skill teamharness-task-delegation -g -a claude-code -y`
Codex: `npx skills add agentscope-ai/AgentTeams --skill teamharness-task-delegation -g -a codex -y`
Cursor: `npx skills add agentscope-ai/AgentTeams --skill teamharness-task-delegation -g -a cursor -y`
Gemini CLI: `npx skills add agentscope-ai/AgentTeams --skill teamharness-task-delegation -g -a gemini-cli -y`

## Description

Use when you act as Leader to turn ready Quick Task or Project Work state into Worker task instructions, send assignment messages, check submitted results, and define completion/blocker report contracts. Do not use to create projects, create rooms, or execute Worker tasks.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# Task Delegation

Use this skill when acting as Leader to create Project Work task specs, send
assignment messages, and check submitted Worker results.

Each delegated task should have a task id, owner, scope, expected deliverables,
acceptance criteria, and blocker reporting path. Write task instructions to the
shared task directory before asking the owner to execute.

A submitted result is only a candidate result until accepted by the Leader.
Do not use this skill to turn ordinary conversation into tasks.

## Scope

Use this skill for:

- `taskflow` calls as Leader
- converting a ready project node into a Worker task spec
- checking a submitted Worker result
- routing task assignment and completion messages

Use `teamharness-project-management` to create projects, plan DAG or Loop work,
resolve ready nodes, record Loop iteration decisions, and accept results into
project progress.

## Delegate Only Ready Nodes

Use `delegate_task` only for Project Work nodes that are ready in project
state. Do not create bare tasks directly from a user request. First create or
update a project DAG, then delegate a ready project node returned by
`projectflow` `readyNodes`, or create/update a Loop and delegate a ready
project node returned by `readyLoopNodes`.

For Quick Task, `projectflow` `create_quick_project` is used instead. It
already writes `shared/tasks/{task-id}/meta.json`,
`shared/tasks/{task-id}/spec.md`, and marks the task `assigned`; do not call
`delegate_task` again for that task. `create_quick_project` does not
auto-notify, so after it returns `ok: true`, send the assignment message
described in the Assignment Message section below.

Before delegation:

The rest: https://github.com/agentscope-ai/AgentTeams/blob/HEAD/plugins/agentteams-teamharness/skills/team/task-delegation/SKILL.md
