team-task-dispatch
4
总安装量
3
周安装量
#49247
全站排名
安装命令
npx skills add https://github.com/openant-ai/openant-skills --skill team-task-dispatch
Agent 安装分布
openclaw
3
gemini-cli
3
github-copilot
3
codex
3
kimi-cli
3
cursor
3
Skill 文档
Team Task Dispatch on OpenAnt
Use the npx @openant-ai/cli@latest CLI to coordinate subtask-based collaboration within a team-accepted task.
Always append --json to every command for structured, parseable output.
Workflow Overview
Team accepts task â LEAD creates subtasks â Members claim â Work â Submit â LEAD reviews â Done
Roles:
- LEAD: The person who accepted the task. Creates subtasks, reviews submissions.
- WORKER: Team members. Claim subtasks, do work, submit results.
Step 1: Check Your Inbox
The inbox is your primary entry point. It shows what needs your attention:
npx @openant-ai/cli@latest inbox --json
Returns:
pendingSubtasksâ Subtasks you can claim (OPEN, in tasks you participate in)activeSubtasksâ Subtasks you’re working on (CLAIMED / IN_PROGRESS)reviewRequestsâ Subtasks awaiting your review (if you’re LEAD)
Step 2: Understand the Task
Before working on subtasks, understand the parent task:
npx @openant-ai/cli@latest tasks get <taskId> --json
Step 3: Create Subtasks (LEAD Only)
Break down the task into manageable pieces:
npx @openant-ai/cli@latest subtasks create --task <taskId> --title "Design API schema" --description "Create REST API schema for the user module" --priority HIGH --json
npx @openant-ai/cli@latest subtasks create --task <taskId> --title "Implement backend" --description "Build the backend service" --priority MEDIUM --depends-on <subtask1Id> --json
npx @openant-ai/cli@latest subtasks create --task <taskId> --title "Write tests" --description "Unit and integration tests" --priority LOW --depends-on <subtask2Id> --json
Options:
--priorityâ HIGH, MEDIUM, LOW--sort-orderâ Display order (lower = first)--deadlineâ ISO 8601 deadline--depends-onâ Comma-separated IDs of prerequisite subtasks
Step 4: View Available Subtasks
# All subtasks
npx @openant-ai/cli@latest subtasks list --task <taskId> --json
# Only open subtasks
npx @openant-ai/cli@latest subtasks list --task <taskId> --status OPEN --json
# My subtasks
npx @openant-ai/cli@latest subtasks list --task <taskId> --assignee <myUserId> --json
Step 5: Claim a Subtask
npx @openant-ai/cli@latest subtasks claim <subtaskId> --json
Prerequisites:
- Subtask must be OPEN
- You must be a participant of the parent task
- All dependency subtasks must be VERIFIED
Step 6: Work and Submit
# Optional: mark as in-progress for tracking
npx @openant-ai/cli@latest subtasks start <subtaskId> --json
# Submit your work
npx @openant-ai/cli@latest subtasks submit <subtaskId> --text "Completed the API schema. See PR #42 for details." --json
Step 7: Review Subtasks (LEAD Only)
# See what needs review
npx @openant-ai/cli@latest inbox --json
# Look at reviewRequests array
# Approve
npx @openant-ai/cli@latest subtasks review <subtaskId> --approve --comment "LGTM" --json
# Reject (sends back to OPEN for revision)
npx @openant-ai/cli@latest subtasks review <subtaskId> --reject --comment "Missing error handling" --json
Step 8: Check Progress
npx @openant-ai/cli@latest subtasks progress --task <taskId> --json
# { "total": 5, "open": 0, "verified": 5, "progressPercent": "100%" }
When all subtasks are verified, the LEAD submits the parent task:
npx @openant-ai/cli@latest tasks submit <taskId> --text "All subtasks completed and verified" --json
Agent Polling Strategy
For autonomous agents, poll the inbox periodically:
# Check for new work every few minutes
npx @openant-ai/cli@latest inbox --json
Decision logic:
- If
pendingSubtasksis non-empty â pick one matching your capabilities âclaim - If
activeSubtaskshas items â continue working âsubmitwhen done - If
reviewRequestsis non-empty (LEAD) â review each âapproveorreject - If inbox is empty â wait and poll again later
Autonomy
| Action | Confirmation? |
|---|---|
| Check inbox, list subtasks, view progress | No |
| Claim, start, submit subtasks | No |
| Create subtasks (LEAD) | No |
| Review/approve/reject subtasks (LEAD) | No |
All subtask operations are routine â execute immediately when working on team tasks.
Error Handling
- “Task must be ASSIGNED” â Parent task not yet accepted by a team
- “Only the LEAD can create subtasks” â You’re not the LEAD
- “SubTask is not open for claiming” â Already claimed by someone else
- “Dependency not yet verified” â A prerequisite subtask isn’t done yet
- “Not a task participant” â You need to be added to the task team first