agentscope-ai/agentteams/worker-internal-workflow
Claude Code and agent skill by agentscope-ai/agentteams
- community
Checking that the SKILL.md file is still in the repository.
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.
Install
npx vskill@latest install agentscope-ai/agentteams/worker-internal-workflowSKILL.md
The same SKILL.md was published earlier as agentscope-ai/agentteams/worker-internal-workflow.
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:
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.mdshould tell the temporary agent to begin analysis immediately.AGENTS.mdshould forbid greetings, self-introductions, and capability
summaries.
AGENTS.mdshould 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.mdshould require
the same fixed output shape.
Dynamic workflow lifecycle:
- Call
workflow_runwith the explicit current DM/conversationroomId,
title, source input, optional merge.instruction, and either subagents or DAG nodes.
- Each subagent or node must name a default-workspace template with
subagent
and a bounded task.
workflow_runstarts the Matrix card, createstmp-...subagents, creates the
run-level shared directory, stores workflow.json, and returns submitInstructions for nodes that are ready now.
- Send each returned
submitPromptto itsagentIdusing the available
QwenPaw agent communication tools.
- When a subagent finishes, call
workflow_updatewith astepsrow whose
id matches the node id, status is done, and summary contains the short result.
- For DAG
nodes, inspect everyworkflow_updateresponse. If it returns
readyInstructions, immediately send each returned submitPrompt to its agentId.
- Use
workflow_updateat meaningful phase changes: submitted, running,
retrying, merging, cleanup, done, or failed.
- Retry a timed-out subagent once when the task is still useful.
- Mark subagents that still fail as missing or failed in the merged result.
- Merge subagent results into the current Worker's own output.
- Delete every temporary agent with
delete_temp_agent. - Call
workflow_finishorworkflow_fail. - After merging, either keep the shared run directory as evidence or remove it
with cleanup_shared.
Example workflow_run input:
DAG nodes example:
For DAG workflows, workflow_run creates every node's temporary agent. Only dependency-free nodes appear in submitInstructions. Dependent nodes appear in waitingInstructions. The current Worker is the scheduler: submit ready nodes, wait for their replies, call workflow_update with done steps, then submit any downstream readyInstructions returned by that update. WorkerFlow uses the done step ids as the dependency-completion signal and appends upstream summaries to newly unblocked submit prompts.
File sharing:
- Native QwenPaw subagents share the current Worker's workspace.
- Temporary QwenPaw agents created through
/api/agentshave separate
workspaces. Do not point their workspaceDir at the default workspace.
workflow_runandcreate_temp_agentexpose a run-level shared directory:
<default-workspace>/shared/workerflow/<sharedRunId>/.
- Put input files under
shared/inputs/. - Each subagent writes only under
shared/outputs/<agent-id>/. - The subagent workspace contains
.workerflow/shared.jsonand ashared
symlink for discovery, but prompts should still include the absolute shared.path, shared.inputs, and shared.output returned by the tool.
- Do not place the shared directory inside a temporary agent workspace, because
cleanupWorkspace may delete that workspace.
Workflow visibility:
- The current Worker is the Matrix sender for WorkerFlow workflow cards.
- Temporary agents do not send Matrix status directly.
- Prefer
workflow_runfor visible multi-subagent work; it creates the first
Matrix m.notice card and records the returned eventId.
workflow_runandworkflow_startrequire an explicit current
DM/conversation roomId. WorkerFlow does not fallback to Team Room or personal room.
- Use
workflow_update,workflow_finish, andworkflow_failto edit the same
card through Matrix m.replace.
- The card state is also stored in
<default-workspace>/shared/workerflow/<run-id>/workflow.json.
- Show phase-level changes only: spawning subagents, running, retrying, merging,
cleanup, done, or failed.
- Do not expose full prompts, secrets, raw large inputs, or tool traces in the
card. Use shared paths and short summaries.
Fan-out rules:
- Send the full source input to each subagent unless there is a clear token,
privacy, or cost reason to narrow it.
- Let each subagent extract the subset relevant to its
AGENTS.md. - Request a fixed output shape for all subagents when the results need
programmatic or low-friction merging.
- Keep a small ledger of created temporary agent ids so cleanup can run even
when one subagent fails.
- Keep the shared run id in the same ledger when file sharing is used.
Rules:
- Temporary agents are implementation details of the current Worker.
- Always use
tmp-ids for temporary agents. - Do not store temporary agent ids as TeamHarness workers.
- Delete temporary agents after the bounded task completes or fails; treat this
as a finally step.
- If the work must survive the current Worker run, use a durable team workflow
instead.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/workerflow/skills/agent/worker-internal-workflow/SKILL.md
Popularity
- Repository stars
- 5,684
- Repository forks
- 704
- 7-day trend score
- 43
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 4 Oct 2026, a month ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/agentscope-ai/agentteams/worker-internal-workflow)