Command Palette

Search for a command to run...

Назад к скиллам
скилл № 85553

subagent-family-tracking

Track parent/child thread tree of spawned sub-agents with Open/Closed status. USE WHEN: spawned one or more sub-agents, task description suggests a tree…

БесплатноБез исполняемых скриптов
MiniMax-AIот MiniMax-AI★ 30 звёзд на GitHub

Установить subagent-family-tracking в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Sub-Agent Family Tracking

When you spawn sub-agents, you create a family tree: you are the parent, your spawned agents are children, and your children's spawned agents are grandchildren. If you do not track this tree explicitly, three failure modes are common:

  1. Lost child — you spawn an agent, lose track of its task_id, and never read its result.
  2. Sibling duplication — two children of yours do the same work, wasting tokens.
  3. Lingering child — you move on to the next sub-task, leaving an old child running in the background, burning context budget.

This Skill codifies a family-tracking file so these failures are visible, not hidden.

When to use

Activate when any of these is true:

  • You are about to call task and the result of that call is "fire and wait," not "do it inline." (Inline calls don't need a tree.)
  • You have already spawned one or more sub-agents in this session.
  • The task description suggests a tree: "X has sub-tasks", "for each of A/B/C, ...", "the migration has 5 stages, each stage can be parallelised."
  • A user asks "what's your sub-agent doing right now?" and you don't have an immediate answer.

When NOT to use

  • The sub-task is so cheap you would just inline it. (No sub-agent → no tree.)
  • The harness already exposes a live dashboard of running sub-agents. (Use that instead.)
  • You are the child, not the parent. Children don't track siblings; they only see their own parent.

Process

  1. Pick a single, predictable path. Default (illustrative; actual on-disk path is host-internal): <host-agents-root>/<thread-id>/subagents.md. The mcode 0.2.4 public surface does not document a family-file path. The Skills below use <host-agents-root> as a conceptual placeholder; the host determines the actual root. Different from the goal file (which is "what we are doing") and the world-state file (which is "where we are"); this is "who is working for us."

  2. Initialise the file on the first spawn in this exact shape:

    # Sub-agent family — <short task name>
    
    **Parent (you)**: <thread-id>
    **Last updated**: <ISO timestamp>
    
    ## Children
    
    | id | spawned_at | brief | status | result_summary |
    |----|------------|-------|--------|----------------|
    | <task_id> | <ISO> | <one-line brief> | open | (pending) |
    
  3. On every spawn, add a row with status: open and a one-line brief.

  4. On every sub-agent completion, update the row:

    • status: closed (or closed-failed if it didn't meet its pass condition)
    • result_summary: <one line>
  5. If a sub-agent spawns its own children, append a sub-section for that child:

    | <task_id> | <ISO> | <one-line brief> | open | (pending) |
      ## Children of <task_id>
      | grandchild-id | spawned_at | brief | status | result_summary |
      |---------------|------------|-------|--------|----------------|
    
  6. At every context-pressure-compact, the compact summary must reference the family file by path, not duplicate it. The file is the ground truth.

  7. At the end of a fan-out aggregation (see parallel-fanout), include a one-line "all children closed" check. If any are still open, surface that to the user — the aggregation is not safe to declare done while children are running.

Output contract

The user sees:

  • The family file's contents (full) at the start of any multi-agent task.
  • A one-line status update per spawn / completion (e.g. "spawned task-7a3f for OIDC review," "task-7a3f closed with PASS").
  • A "all children closed" check at the end of any fan-out.

Example

The path to the family file in the example below is illustrative; the actual on-disk path is host-internal. The thread-7c2b value is a placeholder for the calling session's thread id (on mcode 0.2.4 the relevant lifecycle identifier for a sub-agent is the task_id returned by task(...)). The file shape is what the calling agent maintains in its own bookkeeping.

# Sub-agent family — Auth refactor (OIDC alongside SAML)

**Parent (you)**: thread-7c2b *(placeholder for the calling session's thread id)*
**Last updated**: 2026-08-23T23:55:00Z

## Children

| id | spawned_at | brief | status | result_summary |
|----|------------|-------|--------|----------------|
| task-3f1a | 23:40:00Z | Audit /repo/server/Cargo.toml for CVEs | closed | No critical CVEs; 2 moderate, listed in SECURITY-REPORT.md |
| task-4d2b | 23:40:00Z | Audit /repo/web/package.json for CVEs | closed | 1 critical CVE (CVE-2024-xxxx); surfaced immediately, did not wait for others |
| task-5e3c | 23:40:00Z | List licenses of /repo/server and /repo/web direct deps | open | (pending) |

After task-5e3c finishes:

| task-5e3c | 23:40:00Z | List licenses of /repo/server and /repo/web direct deps | closed | 47 deps; 1 AGPL, 4 Apache-2.0, rest MIT — full table in SECURITY-REPORT.md |

If task-5e3c

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл subagent-family-tracking?

Track parent/child thread tree of spawned sub-agents with Open/Closed status. USE WHEN: spawned one or more sub-agents, task description suggests a tree (sub-tasks, "for each of A/B/C", "5 stages"), user asks "what's your sub-agent doing right now" / "子 agent 都在干嘛", sub-agent may fan out, want to know "还在跑吗" / "还有几个没关", before declaring fan-out done (all children closed check). TRIGGER PHRASES: "子 agent 都在干嘛", "sub-agent", "子任务", "family tree", "who is running", "还在跑吗", "还有几个没关", "what's your sub-agent doing", "subagent family", "subagent tree", "all children closed". SKIP WHEN: sub-task is so cheap you'd just inline it, harness already exposes live sub-agent dashboard, you are the child not the parent.

Как установить скилл subagent-family-tracking?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл subagent-family-tracking запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить subagent-family-tracking с