work-on-task
The work-on-task skill enables agents in a swarm to execute assigned tasks by retrieving task details, searching relevant memories, selecting an appropriate work strategy based on task type, and documenting progress through completion or failure. Use this skill when an agent needs to systematically work through a specific task while maintaining communication with a lead agent through progress updates and escalation when obstacles arise.
git clone --depth 1 https://github.com/desplega-ai/agent-swarm /tmp/work-on-task && cp -r /tmp/work-on-task/plugin/pi-skills/work-on-task ~/.claude/skills/work-on-taskSKILL.md
# Working on a Task If no `taskId` is provided, call `poll-task` to get a new task. ## Workflow 1. **Get task details**: Call `get-task-details` with the taskId. 2. **Recall relevant memories**: Use `memory-search` with the task description before starting any work. Past learnings, solutions, and gotchas are indexed here. 3. **Choose your approach** based on the task type: - **Research task** → use research - **Development task** → use plan creation first, then plan implementation - **Simple/direct task** (no plan needed) → implement directly 4. **Work on it**, calling `store-progress` at each meaningful milestone (not just start and end — the lead monitors this). 5. **Complete the task** — see Completion below. ## Completion Call `store-progress` with: - **Success**: `status: "completed"` + `output: "<what you did and the result>"`. Output should be specific enough for the lead to assess without re-reading your work. - **Failure**: `status: "failed"` + `failureReason: "<what went wrong and what you tried>"`. Then reply "DONE" to end the session. ## Interruptions If interrupted by the user, adapt to their instructions. When resuming, call `/skill:work-on-task <taskId>` again to pick up where you left off. ## When to escalate If you're stuck after genuine effort (not just first failure), use `/skill:swarm-chat` to ask the lead for help or clarification. Don't spin — escalate.
Code search agent for exploring any codebase. Use for finding code by intent, locating implementations, understanding how something works, or discovering related code. Prefer over Grep/Glob/Read for any semantic or exploratory question.
Guide for running local E2E tests with API server, Docker lead/worker containers, task creation, log verification, UI dashboard, and cleanup
Close a GitHub or GitLab issue with a summary comment
Create a pull request (GitHub) or merge request (GitLab) from the current branch
Implement a GitHub issue or GitLab issue and create a PR/MR
Investigate and triage a Sentry error issue
Respond to a GitHub issue/PR or GitLab issue/MR
Review a task that has been offered to you and decide whether to accept or reject it