تخطَّ إلى المحتوى
TakoAPI
العودة إلى المهارات

subagent-spawn-command-builder

بواسطة nextaltair

Web & Frontend Development
664التنزيلات وفق ما يذكره clawskills.sh
1المشاهدات
لا إعجاباتسجّل الدخول للإعجاب بهذه المهارة
—لم يُقيَّم بعد
تقييمك

موجز

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

شغّل أمر واجهة سطر الأوامر، أو الصق النص في Claude Code أو Cursor أو Codex أو أي وكيل برمجة تستخدمه.

الروابط