跳到正文
TakoAPI
返回技能列表

subagent-spawn-command-builder

由 nextaltair 提供

Web & Frontend Development
664下载量由 clawskills.sh 提供
1浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Build sessions_spawn command payloads from JSON profiles.

描述

该技能的功能

Builds sessions_spawn payload JSON from reusable profile configs without executing the spawn. Profiles define model, thinking, timeout, cleanup, agentId, and label. A Node.js script merges CLI options, profile values, and defaults into ready-to-use command JSON.

Separating payload generation from execution lets you inspect and version spawn configs before any agent is actually started.

何时使用

  • Preparing a subagent spawn payload for review before execution
  • Reusing a named profile across multiple agent tasks
  • Overriding a profile's model at the CLI for a one-off run
  • Logging generated payloads to a JSONL file for auditing
  • Templating subagent configs for a team workflow

示例工作流

输入

User asks: build a spawn payload using the 'heartbeat' profile for a context summary task

智能体
  1. 1

    Reads spawn-profiles.json to load the 'heartbeat' profile

  2. 2

    Resolves model, thinking, timeout, and cleanup from profile and defaults

  3. 3

    Accepts --task and --label from CLI options

  4. 4

    Merges all values following CLI > profile > defaults priority

  5. 5

    Prints the final sessions_spawn-ready JSON to stdout

输出

{"task":"Analyze recent context and return a compact summary","label":"heartbeat-test","model":"...","thinking":"...","runTimeoutSeconds":...,"cleanup":"..."}

安装

clawhub install nextaltair/subagent-spawn-command-builder

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接