Xpersona
S

Subagent Spawn Command Builder

CLAWHUB · Unverified

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

62
Rank
84
Safety
451
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 451 downloads reported by the source. Last updated 4/15/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install kn747bx1r2jrbbyca61v6k06397zy93t:subagent-spawn-command-builder
  1. Install using `clawhub skill install kn747bx1r2jrbbyca61v6k06397zy93t:subagent-spawn-command-builder` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/NEXTAltair/subagent-spawn-command-builder before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-nextaltair-subagent-spawn-command-builder/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

10,391 characters of source documentation, loaded on request.

Extracted files

4 files captured from the source.

SKILL.md

---
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

```bash
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

```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
```

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`

README.md

# subagent-spawn-command-builder

`sessions_spawn` を**実行せず**、コマンド用payload JSONだけを生成するスキルです。

## 作成意図

このスキルは、以下の課題を解消するために作成しました。

- subagent呼び出し時の `model/thinking/timeout/cleanup` を毎回手で書くとミスが増える
- `agents.list` 依存の運用は、single-agent中心の使い方では設定コストが高い
- 実行まで1つのスキルに含めると責務が重くなり、トラブル時の切り分けが難しくなる

そのため、**「実行」と「生成」を分離**し、このスキルは

- プロファイル(JSON)管理
- `sessions_spawn` payload生成

だけに責務を限定しています。

## 目的

- subagent実行パラメータをJSONプロファイルで管理する
- `sessions_spawn` に渡すJSONを安定して生成する
- 実行は呼び出し側に任せる(このスキルは生成専用)

## 対応パラメータ

生成するpayloadは以下を扱います。

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

## ファイル構成

- テンプレート: `state/spawn-profiles.template.json`
- 実運用設定: `state/spawn-profiles.json`
- 生成スクリプト: `scripts/build_spawn_payload.mjs`
- 生成ログ: `state/build-log.jsonl`

## 使い方

### 1) テンプレートをコピー

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

### 2) `spawn-profiles.json` を編集

`model` などを自分の環境に合わせて設定。

### 3) 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
```

## 値の優先順位

同じ項目が複数場所にある場合、次の順で採用されます。

1. CLI引数(`--model` など)
2. `profiles.<name>.*`
3. `defaults.*`

`task` は必ずCLIの `--task` を使います。

## 注意

- このスキルは payload/command 生成専用です
- `sessions_spawn` の実行はこのスキルの責務外です
- Python実行コマンドをtaskに含める場合は `python3` を使ってください(`python` は環境によって未定義)。

_meta.json

{
  "ownerId": "kn747bx1r2jrbbyca61v6k06397zy93t",
  "slug": "subagent-spawn-command-builder",
  "version": "0.1.2",
  "publishedAt": 1771029448201
}

state/spawn-profiles.template.json

{
  "version": 1,
  "defaults": {
    "label": "",
    "agentId": "",
    "model": "",
    "thinking": "",
    "runTimeoutSeconds": 0,
    "cleanup": "keep"
  },
  "profiles": {
    "heartbeat": {
      "label": "heartbeat-default",
      "agentId": "",
      "model": "<set-by-user>",
      "thinking": "low",
      "runTimeoutSeconds": 180,
      "cleanup": "keep"
    },
    "journal": {
      "label": "journal-default",
      "agentId": "",
      "model": "<set-by-user>",
      "thinking": "high",
      "runTimeoutSeconds": 300,
      "cleanup": "keep"
    }
  }
}

Sponsored

Ads related to Subagent Spawn Command Builder and adjacent AI workflows.