AgentSkillsCN

task-runner

根据 TaskList 条件,执行待处理的 autoRun 任务。

SKILL.md
--- frontmatter
name: task-runner
description: "Executes pending autoRun tasks based on TaskList conditions"
user-invocable: true
allowed-tools: TaskList, TaskUpdate, TaskGet, Skill

/task-runner

Automatic task execution controller.

Progress Checklist

code
- [ ] Step 1: Get all tasks
- [ ] Step 2: Find executable tasks
- [ ] Step 3: Execute or exit

Steps

  1. Get all tasks:

    • Call TaskList tool
  2. Find executable tasks:

    • From TaskList result, find tasks meeting ALL conditions:
      • status: pending
      • metadata.autoRun: true
      • blockedBy is empty OR all blockedBy tasks are completed
  3. Execute or exit:

    • If no executable tasks found: END (no report needed)
    • If executable tasks found:
      • For each task:
        1. TaskUpdate: set status to "in_progress"
        2. TaskGet to read full task details including metadata
        3. If metadata.skill exists: Call Skill tool with skill=metadata.skill, args=metadata.args
        4. After skill completes: TaskUpdate: set status to "completed"
      • Parallel execution: If multiple tasks meet conditions, call multiple Skill tools in parallel