# Workerflow Internal Workflow

Use when a QwenPaw-backed Worker needs to decide whether to do work directly, use...

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

## Install

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

## Description

Use when a QwenPaw-backed Worker needs to decide whether to do work directly, use native subagents for internal parallelism, or create a temporary QwenPaw agent with a custom AGENTS.md and skills.

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

# Worker Internal Workflow

Use this skill before splitting work inside a single Worker. WorkerFlow is not
TeamHarness delegation.

## Decision

| Need | Path |
| --- | --- |
| Current Worker can do it directly | No subagent |
| Same Worker needs short parallel inspection | QwenPaw native subagent |
| Same Worker needs visible fan-out to custom roles, workspaces, `AGENTS.md`, or skills | Dynamic workflow via `worker_agentflow` `workflow_run` |
| Same Worker needs one manually controlled temporary subagent | `create_temp_agent` directly |
| Work needs a persistent team member or Leader acceptance | Do not use WorkerFlow; use the team workflow |

## Native Subagent

Use QwenPaw native subagents for short internal parallelism. The current Worker
still owns the final result.

Do not create a temporary agent when no custom prompt, workspace, or skill set
is required.

## Temporary QwenPaw Agent

Use `worker_agentflow` with `workflow_run` when a custom AgentSpec-style
template has already been placed in the default QwenPaw workspace:

```text
<QWENPAW_WORKING_DIR>/workspaces/default/subagents/<role>/
  AGENTS.md
  PROFILE.md        # optional
  SOUL.md           # optional
  skills/
    <skill-id>/
      SKILL.md
```

Use `list_subagents` first when you need to discover the templates available in
the default workspace. Use `create_temp_agent` directly only when you need
manual control outside a dynamic workflow.

Subagent template rules:

- `AGENTS.md` should tell the temporary agent to begin analysis immediately.
- `AGENTS.md` should forbid greetings, self-introductions, and capability
  summaries.
- `AGENTS.md` should define the subagent's focus area so the Worker can send the
  complete source input instead of manually slicing the input.
- When multiple subagent results will be merged, each `AGENTS.md` should require
  the same fixed output shape.

Dynamic workflow lifecycle:

The rest: https://github.com/agentscope-ai/AgentTeams/blob/HEAD/plugins/workerflow/skills/agent/worker-internal-workflow/SKILL.md
