Automated summary
Emits a bash lifecycle wrapper (register, heartbeat, retire) to prepend to a spawned worker's brief so that helpers launched through the Task tool stay visible in the Convergio daemon's agent registry.
Strengths
- Produces a unique subagent id derived from the task slug plus 8 random hex characters
- Embeds context-budget checks before and during the work via scripts/check-context-budget.sh
- Supports both subagent and background modes with different heartbeat cadences (5 min vs 60 s)
- Safe to re-run because agent registration is an upsert
Limitations
- Performs no calls itself: it only renders boilerplate the parent agent must paste into the worker brief
- Requires the Convergio daemon and repo scripts (check-context-budget.sh, /v1/agent-registry endpoints)
- Unnecessary for read-only helpers such as pure search or single-shot question answering
Invoke it right before a Task tool call whenever the spawned helper will edit files, run tests, push branches, or open pull requests.
Skip it for read-only helpers or when working outside a repository wired to the Convergio daemon.
Security analysis
CautionNo destructive, exfiltration, or obfuscated payloads are present; the skill mainly renders text and runs a local helper script. It does rely on Bash and causes spawned workers to make registry/audit HTTP calls, which is a powerful but clearly intentional and non-abusive pattern. Rated caution rather than safe because it shells out to an unshown script and triggers network/registry writes via a downstream agent.
- •Declares and uses Bash to execute a sibling script (cvg-spawn.sh) whose contents are not shown in SKILL.md; auditability depends on that script.
- •The rendered block instructs spawned workers to POST to /v1/agent-registry/... endpoints and to run ./scripts/check-context-budget.sh, delegating network/registry side effects to another agent without specifying host/base URL.
- •Provides a deterministic seam via CONVERGIO_SPAWN_HEX (legitimate for tests, but an environment-controlled input to id generation).
Examples
Spawn a subagent to refactor the auth module and run the test suite — wrap it with /cvg-spawn first so it registers in the daemon/cvg-spawn --mode background database migration cleanup, then launch it as a background TaskBefore calling Task to open a PR for the logging fix, run /cvg-spawn with the description 'logging fix PR' and paste the rendered block into the briefname: cvg-spawn version: 1.0.0 description: | Wrap spawned-worker briefs (subagent or background agent) with auto-register + heartbeat boilerplate so they stay visible in the Convergio daemon. Use this when invoking the Task tool for code-mutating work in this repo. allowed-tools:
- Bash triggers:
- cvg-spawn
- spawn subagent preamble-tier: 4
/cvg-spawn — wrap a spawned worker brief with Convergio auto-register
Why this skill exists
Claude Code spawned helpers (subagents and background agents launched
via the parent's Task tool) run in a different harness from the
top-level session. The SessionStart hook in .claude/settings.json
therefore does not fire for them — they would silently disappear from
the daemon's agent registry, which means:
cvg agent listcannot see them.- The TUI dashboard cannot colour-code them.
cvg coherence agentscannot detect zombies.- Audit cannot prove who did what.
/cvg-spawn solves this by emitting the canonical 3-step lifecycle
wrapper (register → work → retire) plus a heartbeat reminder. The
parent agent prepends the rendered block to every spawned-worker brief
that contains code-mutating work in this repository.
When to invoke
The parent (top-level) agent should invoke /cvg-spawn immediately
before calling the Task tool, then paste the rendered block
into the head of the spawned worker's brief.
You do not need to invoke /cvg-spawn for read-only helpers (pure
search, single-shot question answering). Invoke it whenever the spawned
worker will edit files, run tests, push branches, or open PRs.
What this skill renders
The skill produces three deterministic outputs (and is safe to re-run: agent registration is an upsert):
- A unique
subagent_idof the formsubagent-${TASK_DESC_SLUG}-${HEX8}where:TASK_DESC_SLUG= first 24 chars of the task description, lower-cased, spaces replaced with-, non-alnum stripped.HEX8= 8 random hex chars (openssl rand -hex 4).
- A bash block to prepend to the spawned-worker brief:
- line 1:
SUBAGENT_ID="subagent-<slug>-<hex8>"(orsubagent-bg-...in background mode) - line 2:
CVG_SPAWN_MODE="subagent"|"background" - line 3: budget pre-check —
./scripts/check-context-budget.shrefuses only on hard caps (exit 1). Soft warnings (exit 2) are advisory. - line 4: register POST to
/v1/agent-registry/agentswithkind=subagentandmetadata.spawn_mode. - line 5: heartbeat POST to
/v1/agent-registry/agents/${SUBAGENT_ID}/heartbeat. - line 6:
# heartbeat every 5 min(subagent) or# heartbeat every 60 s(background) - line 7: budget mid-flight reminder — re-run
check-context-budget.shevery ~200 LOC so the worker does not push past cap on push. - line 8:
# ... do work ... - line 9: retire POST to
/v1/agent-registry/agents/${SUBAGENT_ID}/retire.
- line 1:
- A one-line confirmation summary the parent prints back to the
user before launching the helper:
Subagent <id> will be registered as kind=subagent (mode=...).
Execution
# default (subagent)
bash "$(dirname "$0")/cvg-spawn.sh" <task-description>
# background helper spawned via Task tool background mode
bash "$(dirname "$0")/cvg-spawn.sh" --mode background <task-description>
<task-description> is the short human-readable label the parent
will pass into the Task tool's description field. The skill
slug-ifies it to seed the subagent id.
If CONVERGIO_SPAWN_HEX is set (used by the integration smoke
test), the skill uses it verbatim instead of generating fresh
random bytes — that is the only deterministic seam.
Output contract
| Stream | Content |
|---|---|
| stdout | The wrapper bash block (no leading blank line) followed by the one-line summary on its own line |
| stderr | Empty on success; one-line error on bad usage |
| exit | 0 on success, 2 on missing argument or invalid --mode |
The skill performs no network I/O. It only renders text. The register / heartbeat / retire calls fire when the spawned worker actually runs the rendered block.
Why kind=subagent
The agent registry kind field is a permissive lower-case string
(see convergio-durability::store::agent_validation). Existing
top-level sessions register as kind=claude or kind=copilot.
Subagents register as kind=subagent so:
- The TUI dashboard can render them with reduced visual weight (smaller indent, gray accent).
cvg coherence agentscan decide whether to count them as PR-author candidates (a subagent normally is not the PR author — its parent is).- Audit rows distinguish "I, the human-driven session, did this" from "I, a tool-spawned helper, did this".
The list of recognised kinds lives in
docs/multi-agent-operating-model.md
under "Subagent lifecycle".
Relation to /cvg-attach
/cvg-attach registers the top-level Claude Code session at
session start (the SessionStart hook calls it). /cvg-spawn
generates a wrapper for spawned helpers (subagents and background
agents) launched mid-session via the Task tool. The two skills do not
overlap — they cover the distinct harnesses in which Claude Code can run.
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/cvg-spawn-wrap-spawned-workers-with-auto-register-mryiqgzx/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/cvg-spawn-wrap-spawned-workers-with-auto-register-mryiqgzx' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/cvg-spawn-wrap-spawned-workers-with-auto-register-mryiqgzx/download' --output '.skill-downloads/cvg-spawn-wrap-spawned-workers-with-auto-register-mryiqgzx/SKILL.md.part' && mv '.skill-downloads/cvg-spawn-wrap-spawned-workers-with-auto-register-mryiqgzx/SKILL.md.part' '.skill-downloads/cvg-spawn-wrap-spawned-workers-with-auto-register-mryiqgzx/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/cvg-spawn-wrap-spawned-workers-with-auto-register-mryiqgzx/SKILL.md' && test -s '.skill-downloads/cvg-spawn-wrap-spawned-workers-with-auto-register-mryiqgzx/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/cvg-spawn' && cp -R '.skill-downloads/cvg-spawn-wrap-spawned-workers-with-auto-register-mryiqgzx' '.claude/skills/cvg-spawn'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/cvg-spawn-wrap-spawned-workers-with-auto-register-mryiqgzx'openskills read 'cvg-spawn-wrap-spawned-workers-with-auto-register-mryiqgzx'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/cvg-spawn-wrap-spawned-workers-with-auto-register-mryiqgzx/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
Configure a Chat Channel with SecretRefs
DevOps
Set up chat channels using non-interactive commands, with secrets only as SecretRefs. Covers gather, mutate, repair, and prove steps for reliable delivery.
Investigate ClickHouse CI Failures
DevOps
Investigate a ClickHouse CI failure end-to-end from a PR or S3 report URL. Fetches failed tests, classifies flaky vs real regression, and checks for existing issues/fixes.
Ansible PR Review
DevOps
Reviews an Ansible PR following the project's standardized process, including changelog checks, test coverage validation, and feedback tracking.