Skip to content
Back to skills

Build Subagent Spawn Commands

ASecurity

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.

  • 19 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 19, 2026
ai-agentspythongobashnode

Works with

  • cli

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 19, 2026

npx -y skills add rondoflow/rondoflow --skill build-subagent-spawn-commands --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Build Subagent Spawn Commands?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Build Subagent Spawn Commands
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/rondoflow-build-subagent-spawn-commands/badge)](https://www.skillsdirectory.com/skills/rondoflow-build-subagent-spawn-commands)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: build-subagent-spawn-commands
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."
category: "Community"
author: community
version: "0.1.4"
icon: puzzle
---

# 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

- 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)
- `cwd` (optional) — working directory for the subagent
- `mode` (`run|session`, optional)

## Setup

Read the "Subagent Spawn Profiles" table in TOOLS.md for default values per profile. Pass values as explicit CLI arguments (`--model`, `--thinking`, `--run-timeout-seconds`, `--cleanup`). The `--profile` flag is now a logging label, not a lookup key for a config file.

## Generate payload

```bash
skills/subagent-spawn-command-builder/scripts/build_spawn_payload.mjs \
  --profile heartbeat \
  --task "Analyze recent context and return a compact summary" \
  --label heartbeat-test \
  --model claude-sonnet-4-20250514 \
  --thinking low \
  --run-timeout-seconds 300 \
  --cleanup delete
```

The script prints JSON directly usable for `sessions_spawn`.

## Merge/priority rule

All values come from explicit CLI arguments. `--profile` is a logging label only (not a config lookup key). Refer to the "Subagent Spawn Profiles" table in TOOLS.md for recommended defaults per profile.

`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`
- `--cwd <path>`
- `--mode run|session`

Files in this skill

  • SKILL.md2.2 KB
  • manifest.json416 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…