360 Secure SkillHub
360 安全技能中心

Spawner

核心功能:生成指定角色(如编码、写作等)的子代理,承接2分钟以上的重耗时任务,含文件编辑、构建等,不适用于快速小任务。典型场景:需长时间运行或涉及文件操作的工作。输入需明确角色、任务、所需文件、退出标准;子代理默认用免费模型,完成后验证输出文件存在,仅读取输出文件,一次仅生成1个代理,失败按规则处理。

dodge1218
dodge1218
热度 45.54
最近更新 2026-05-11 17:41:32
分类:自动化依赖:内部调用大模型 / 读写文件 / 联网浏览搜索 / 代码执行应用场景:自动化脚本 / 工作流 / 任务管理

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add dsb-spawner
Metadata
name
spawner
description
Spawn sub-agents for independent work that needs file edits, builds, or long-running tasks. Use when work is too heavy for inline execution. NOT for quick reads, one-liner fixes, or anything under 2 minutes.

Spawner

Before Spawning

  1. Role: Pick ONE — coder, writer, browser-automator, researcher, reviewer.
  2. Exit criteria: What artifact proves done? A file path, URL, test result.
  3. Context: Only inject files the agent needs. Task description under 2K tokens.

Model Routing

All sub-agents use free models (groq-llama → cerebras-llama → nim-llama → or-scout). Never spawn on premium models unless explicitly requested.

Task Template

You are a [ROLE]. Your job: [ONE SENTENCE].
Files you need: [LIST PATHS]
Exit criteria: [ARTIFACT]
If stuck after 2 attempts, STOP and report what failed.

After Completion

  • Verify output file exists. If missing, retry inline or on fallback.
  • Read only output files — never load sub-agent transcripts into context.

Rules

  • 1 sub-agent at a time.
  • Don't poll in a loop — they auto-announce.
  • Don't retry on the same model that just 429'd.