跳至主要内容
小龙虾小龙虾AI
🤖

Subagent Spawn Command Builder

Build sessions_spawn command payloads from JSON profiles. Use when you want reusable subagent profiles (model/thinking/timeout/cleanup/agentId/label) and com...

下载539
星标0
版本0.1.2
开发工具
安全通过
⚙️脚本

技能说明


name: subagent-spawn-command-builder description: Build sessions_spawn command payloads from JSON profiles. Use when you want reusable subagent profiles (model/thinking/timeout/cleanup/agentId/label) and command-ready JSON without executing spawn.

subagent-spawn-command-builder

Generate sessions_spawn payload JSON from profile config. This skill does not execute sessions_spawn; it only builds payload/command JSON.

Files

  • Profile template: state/spawn-profiles.template.json
  • Active profile config: state/spawn-profiles.json
  • Builder script: scripts/build_spawn_payload.mjs
  • Builder log: state/build-log.jsonl

Supported sessions_spawn parameters

  • task (required)
  • label (optional)
  • agentId (optional)
  • model (optional)
  • thinking (optional)
  • runTimeoutSeconds (optional)
  • cleanup (keep|delete, optional)

Setup

cp skills/subagent-spawn-command-builder/state/spawn-profiles.template.json \
   skills/subagent-spawn-command-builder/state/spawn-profiles.json

Then edit spawn-profiles.json.

Generate payload

skills/subagent-spawn-command-builder/scripts/build_spawn_payload.mjs \
  --profile heartbeat \
  --task "Analyze recent context and return a compact summary" \
  --label heartbeat-test

The script prints JSON directly usable for sessions_spawn.

Merge/priority rule

Value resolution order is:

  1. CLI option (--model, --thinking, etc.)
  2. Profile value (profiles.<name>.*)
  3. Defaults value (defaults.*)

task always comes from CLI --task.

CLI options

Note: this builder is Node.js (.mjs) based. If generated tasks include Python execution steps, write commands with python3 (not python).

  • --profile (required)
  • --task (required)
  • --label
  • --agent-id
  • --model
  • --thinking
  • --run-timeout-seconds
  • --cleanup keep|delete

如何使用「Subagent Spawn Command Builder」?

  1. 打开小龙虾AI(Web 或 iOS App)
  2. 点击上方「立即使用」按钮,或在对话框中输入任务描述
  3. 小龙虾AI 会自动匹配并调用「Subagent Spawn Command Builder」技能完成任务
  4. 结果即时呈现,支持继续对话优化

相关技能