subagent-spawn-command-builderBuild sessions_spawn command payloads from JSON profiles. Use when you want reusable subagent profiles (model/thinking/timeout/cleanup/agentId/label) and com...
Install via ClawdBot CLI:
clawdbot install NEXTAltair/subagent-spawn-command-builderGenerate sessions_spawn payload JSON from profile config.
This skill does not execute sessions_spawn; it only builds payload/command JSON.
state/spawn-profiles.template.jsonstate/spawn-profiles.jsonscripts/build_spawn_payload.mjsstate/build-log.jsonltask (required)label (optional)agentId (optional)model (optional)thinking (optional)runTimeoutSeconds (optional)cleanup (keep|delete, optional)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.
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.
Value resolution order is:
--model, --thinking, etc.)profiles..* )defaults.*)task always comes from CLI --task.
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|deleteGenerated Mar 1, 2026
A company uses this skill to create standardized subagent profiles for handling different support ticket types. When a complex issue arrives, the main agent spawns a specialized subagent with predefined expertise (model, thinking style) to analyze the ticket and generate a resolution plan, ensuring consistent quality without manual payload construction.
An investment firm employs this skill to spawn subagents for analyzing quarterly earnings reports. Each subagent is configured with specific financial models and thinking parameters to extract key metrics, identify trends, and generate summaries, allowing parallel analysis of multiple reports with reusable profiles.
A social media platform uses this skill to create subagents for different moderation tasks (hate speech detection, spam filtering, copyright checks). The main agent spawns specialized subagents with appropriate models and timeouts to review user content, maintaining consistent moderation policies across millions of posts daily.
A telehealth service implements this skill to spawn subagents for preliminary patient symptom analysis. Based on symptom severity, different subagent profiles are used with specific medical knowledge models and thinking parameters to provide initial assessments before human doctor review, improving response times.
An online retailer utilizes this skill to spawn subagents for real-time customer behavior analysis. When a user browses products, subagents with specific recommendation models and thinking styles are spawned to analyze browsing patterns and generate personalized product suggestions, enhancing conversion rates.
Offer this skill as part of an AI automation platform with tiered subscriptions. Basic tier includes limited profiles, while enterprise tier offers unlimited profiles, priority support, and custom integration. Revenue comes from monthly/annual subscriptions per user or team.
Provide professional services to help companies implement this skill within their existing AI workflows. Offer customization of profiles, integration with their systems, and training for their teams. This includes one-time setup fees and ongoing maintenance contracts.
Create a marketplace where users can share and sell pre-configured subagent profiles for specific industries and use cases. Take a commission on profile sales while offering the core skill for free to drive marketplace adoption and create network effects.
💬 Integration Tip
Start by creating 2-3 essential profiles in spawn-profiles.json for your most common tasks, then use CLI overrides for task-specific adjustments to avoid profile bloat.
Captures learnings, errors, and corrections to enable continuous improvement. Use when: (1) A command or operation fails unexpectedly, (2) User corrects Clau...
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.
Search and analyze your own session logs (older/parent conversations) using jq.
Typed knowledge graph for structured agent memory and composable skills. Use when creating/querying entities (Person, Project, Task, Event, Document), linking related objects, enforcing constraints, planning multi-step actions as graph transformations, or when skills need to share state. Trigger on "remember", "what do I know about", "link X to Y", "show dependencies", entity CRUD, or cross-skill data access.
Ultimate AI agent memory system for Cursor, Claude, ChatGPT & Copilot. WAL protocol + vector search + git-notes + cloud backup. Never lose context again. Vibe-coding ready.
Headless browser automation CLI optimized for AI agents with accessibility tree snapshots and ref-based element selection