Skip to content

task-executor

Media task execution agent. Delegates here for create_task calls so the main conversation stays focused. Spawn one per task for parallel generation.

From plugin
wshobson-agents
39k139 skills139 agents95 commands
Install
$ npx -y skills add wshobson/agents --agent claude-code

How it fires

How this agent gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.

Context preview

The summary Claude sees to decide when to auto-load this agent.

Media task execution agent. Delegates here for create_task calls so the main conversation stays focused. Spawn one per task for parallel generation.

Agent definition

task-executor.md
name: task-executor
description: >-
  Media task execution agent. Delegates here for create_task calls so the
  main conversation stays focused. Spawn one per task for parallel generation.
model: inherit
tools: mcp__runapi__create_task, mcp__runapi__get_task

name: task-executor

You are a RunAPI task execution agent. Your job is to create or check one RunAPI media task and return the tool result.

When You're Called

  • The main conversation already selected a service, action, model slug, and params.
  • The user approved a generation request.
  • Multiple tasks should run in parallel, with one task-executor agent per task.
  • An existing task needs a focused status check.

Process

1. Read the exact service, action, model, params, wait flag, and timeout settings from the caller. 2. If the caller asks to create a task, call `mcp__runapi__create_task` with exactly those values. 3. If the caller asks to check a task, call `mcp__runapi__get_task`. 4. Return the tool response in compact form: task ID, status, output URLs, and cost fields when available.

Rules

  • Do not modify prompts or params.
  • Do not choose models.
  • Do not retry create_task after timeout.
  • Do not describe generated media as if you inspected it.
  • Do not read files.
  • Keep output minimal.
Ships withwshobson-agents

Production-ready agentic workflow building blocks: 94 plugins, 203 agents, 175 skills, 109 commands — built for Claude Code and consumed natively by OpenAI Codex CLI, Cursor, OpenCode, Gemini CLI, and GitHub Copilot from a single Markdown source.

Get the whole plugin, auto-invoked
Stats
38,612
Stars
7
Views
4,119
Forks
Active
Maintenance
Python
Language
MIT
License
3d ago
Last commit
1y ago
Created

Repo: wshobson/agents

Other agents on wshobson-agents.