К основному содержанию
скилл CX Codex

topology-mutation-and-seat-management — скилл для Claude Code

Скилл учит агента менять топологию работающего рига в OpenRig на лету: добавлять или удалять места, привязывать сессии tmux и обновлять маршруты без перезапуска всей системы.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add mvschwarz/openrig --skill topology-mutation-and-seat-management -a claude-code
Открыть на GitHub

Что делает topology-mutation-and-seat-management

Скилл управляет изменениями запущенного рига через CLI-команды OpenRig. Он регламентирует добавление агентов через rig grow, масштабирование подами через rig expand и безопасное удаление узлов через rig shrink или rig remove. При простой вставке мест агент использует rig grow с параметрами --pod, --runtime или --cwd. Если же требуются отдельные профили ролей, политики доступов или нестандартные стартовые файлы, скилл предписывает формировать фрагменты спецификации.

Главная цель инструкций — предотвратить четыре типичных сбоя живой мутации. К ним относятся создание пустого места без очереди и ролей, рассинхронизация прав, зависание удалённых ссылок и ситуация, когда сессия привязана в tmux, но rig whoami не видит сущность OpenRig. Проверка мутации в чистом фикстурном тесте недостаточна: агент обязан сверять живое состояние топологии через rig ps --nodes.

Команда rig up решает другую задачу. Для инициализации с нуля или плановой ротации участников на стабильных местах используются отдельные сценарии.

Какие задачи решает

  • добавить новые места в работающий риг без пересборки окружения
  • привязать существующую сессию tmux к логическому узлу OpenRig
  • удалить лишнюю вычислительную ёмкость без битых ссылок в топологии
  • проверить синхронизацию ролей и очередей через rig ps --nodes

Примеры запросов агенту

  • Добавь два дополнительных воркера в активный риг rig-dev с помощью rig grow.
  • Подключи найденную сессию tmux к логическому узлу в работающем риге через rig bind.
  • Удали узел worker-3 из текущего рига и проверь, что в топологии не осталось висячих связей.

Как установить topology-mutation-and-seat-management

1Через Skills CLI (Vercel)

npx skills add mvschwarz/openrig --skill topology-mutation-and-seat-management -a claude-code

2Вручную: положить файлы

~/.claude/skills/topology-mutation-and-seat-management/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/topology-mutation-and-seat-management/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о topology-mutation-and-seat-management

Как установить topology-mutation-and-seat-management в Claude Code?

Выполните команду npx skills add mvschwarz/openrig --skill topology-mutation-and-seat-management -a claude-code.

Чем rig grow отличается от rig expand?

Команда rig grow добавляет места с дефолтным профилем агента без редактирования YAML. Для указания конкретной модели, прав доступа, стартовых файлов или новой спецификации пода скилл требует применять фрагменты через rig expand или rig add.

Какие сбои предотвращает этот скилл при изменении топологии?

Скилл защищает от четырёх ошибок: появления места без очередей и файлов роли, устаревания ссылок при удалении узлов, рассинхронизации прав доступа и частичной привязки сессии в tmux без регистрации в rig whoami.

Исходный текст

SKILL.md · Apache-2.0
---
name: topology-mutation-and-seat-management
description: Use when changing a rig while it is alive — `rig grow` / `rig expand` / `rig shrink` / `rig launch` / `rig remove` / `rig discover` / `rig bind` / `rig adopt` / `rig attach`. Covers the 4 failure modes (newly created seat lacks queue/startup/role; edges and permissions not updated; adopt/bind succeeds at tmux but not OpenRig identity; shrink/remove leaves stale topology references) and the rule that mutation must work while the rig is active, not just in clean fixtures.
metadata:
  cli_surfaces_referenced:
    - adopt
    - attach
    - bind
    - discover
    - expand
    - grow
    - launch
    - ps
    - release
    - remove
    - shrink
    - unclaim
    - up
    - whoami
  openrig:
    stage: factory-approved
    sibling_skills:
      - rig-lifecycle
      - seat-scaling-and-specialization
      - cross-host-rig-commands
      - sidecar-operator
      - rig-bundles-and-shareable-artifacts
      - specification-system
      - extension-and-user-workspace
---

# Topology Mutation and Seat Management

The ability to change a rig **while it is alive**: expand, shrink,
launch, remove, discover, bind, adopt, and attach seats or sessions.
Seat management includes the **stable identifiers, edges, roles, and
startup context** that make those mutations coherent.

**OpenRig should be easy to reach for.** A user should be able to add
capacity, retire capacity, adopt an existing session, or attach a
terminal **without rebuilding the whole topology.** If mutation is
rarely tested, users avoid it and the product collapses back into
static launch scripts.

## Use this when

- Adding seats to a running rig (`rig grow <rig-id> <member...>` for the simple case, a fragment with `rig expand` or `rig add` otherwise; see below)
- Removing capacity (`rig shrink` / `rig remove`)
- Launching/relaunching a node in a running rig (`rig launch`)
- Binding a discovered session into an existing logical node (`rig bind`)
- Adopting a topology + binding live sessions (`rig adopt`)
- Attaching a shell or agent into a rig node (`rig attach --self`)

## Adding seats: `rig grow` first, a fragment when you need more

`rig grow <rig-id> <member...>` adds one or more seats to a running rig without
writing YAML. Each seat gets the default agent spec and its `default` profile.
Check `rig grow --help` on your installed version; at the time of writing:

- `--pod <pod>`: the target pod; inferred when the rig has one pod
- `--new-pod <pod>`: create a new pod for the seats (not together with `--pod`)
- `--runtime <runtime>`: one runtime for every named seat (default `claude-code`)
- `--cwd <path>`: one working directory for every named seat (default: the current directory)
- `--json`: output for agents

Write a fragment instead when a seat needs something `rig grow` does not set: an
explicit model, a permission policy, a different agent spec or role profile, a
per-seat runtime or working directory, or startup files. Use
`rig expand <rig-id> <pod-fragment-path>` to add a pod, or
`rig add <rig> <pod-namespace> <member-fragment-path>` to add one member to an
existing pod (`<rig>` is the rig id or its exact unique name).

## Don't use this when

- The rig is being created fresh from scratch — use `rig up` (lifecycle, not mutation)
- The intent is to scale specifically (add specialized capacity) — use `seat-scaling-and-specialization` skill
- The intent is occupant replacement on a stable seat — use `seat-continuity-and-handover` skill

## Failure modes (4)

1. **A newly created seat lacks the queue, startup context, or role files it needs to operate.** Topology mutation creates the seat, but the seat needs more than a tmux session to be useful.
2. **Edges and permissions are not updated when a seat is added or removed.** Topology references go stale; later workflows route to nonexistent seats.
3. **Adopt/bind succeeds at the tmux/session layer but not at the OpenRig identity layer.** The session is attached but `rig whoami` doesn't know about it; downstream consumers see partial state.
4. **Shrink/remove leaves stale topology references that later workflows route into.** Cleanup is part of the operation, not an afterthought.

## Proof standard

Proof must cover **mutation while a rig is active**, not just in a
clean test fixture. The useful matrix:

| Operation | What to verify |
|---|---|
| Add seat | New seat has queue, startup context, role; `rig whoami` resolves it |
| Remove seat | Stale references cleaned; edges/permissions updated |
| Adopt existing session | tmux session bound at OpenRig identity layer; `rig whoami` reports correctly |
| Attach observer terminal | External CLI attachment recorded |
| Verify topology projections after each move | `rig ps --nodes` reflects current truth, not pre-mutation cache |

A clean-fixture proof is necessary but not sufficient. Live-rig proof
catches the failure modes that fixture-mode misses.

## Stable roles during topology changes

Capacity changes must preserve useful roles, routing and durable work. Distinguish
adding or removing a seat from replacing its occupant; use
`seat-continuity-and-handover` for the latter.

## Currently shipped surfaces

Per `cli-reference.md` v0.2.0:

- `rig grow <rig-id> <member...> [--pod <pod> | --new-pod <pod>] [--runtime <runtime>] [--cwd <path>]` (added after v0.2.0; check `rig grow --help`)
- `rig expand <rig-id> <pod-fragment-path>` (with optional `session_source`)
- `rig shrink <rigId> <podRef>`
- `rig launch <rig> <nodeRef>` (the rig's name or ID)
- `rig remove <rigId> <nodeRef>`
- `rig discover [--draft]`
- `rig bind <discoveredId> --rig <rigId> (--node <id> | --pod <ns> --member <name>)`
- `rig adopt <path> --bind <logicalId=tmuxSessionOrDiscoveryId>`
- `rig attach --self --rig <rigId> --node <logicalId>`
- `rig unclaim <sessionRef>` / `rig release <rigId>`

## Choose the proving environment and authority

Select an isolated active rig or an explicitly authorized live target for the
relevant operation. Record its running build, before/after topology, continuity
and outstanding work. A passing schema check or isolated fixture does not prove
an existing live rig was changed correctly. A runtime timeout is indeterminate
until its durable and process effects are reconciled; do not retry blindly.

The matrix above is verification guidance, not permission to modify another
rig. Name the operation's owner and scope, preserve the state needed for recovery,
and retain missing or failed checks in the result. No local experiment or
unfinished proof obligation is implied by loading this skill.

## See also

- `openrig-user` skill — CLI surface for `rig grow / expand / shrink / launch / remove / bind / adopt / attach`
- `seat-scaling-and-specialization` skill — when to add specialized capacity vs generic
- `seat-continuity-and-handover` skill — replacing an occupant on a stable seat (different shape than topology mutation)
- `cross-host-rig-commands` skill — cross-host topology mutation (deferred)

© mvschwarz · Apache-2.0 · mvschwarz/openrig

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

Все скиллы по теме «Настройка агента: память, контекст, субагенты» →
setup-matt-pocock-skills Matt Pocock Скилл настраивает репозиторий для инженерных скиллов Matt Pocock: задаёт трекер задач, метки триажа и расположение доменной документации. Запустите его перед первым использованием остальных скиллов. 1 052 851установок ask-matt Matt Pocock Помогает выбрать подходящий скилл или рабочий поток из набора Matt Pocock. Пригодится, когда непонятно, с чего начать задачу: от идеи до разбора бага. 766 587установок to-tickets Matt Pocock Разбивает план, спецификацию или переписку на небольшие сквозные задачи и отмечает, какие из них блокируют остальные. Пригодится, когда нужно согласовать порядок работы до публикации задач в трекере. 711 230установок writing-plans Jesse Vincent Скилл превращает требования к многошаговой задаче в подробный план реализации до начала работы с кодом. Пригодится, когда исполнителю нужно зафиксировать файлы, интерфейсы и проверки. CX Codex 282 859установок caveman-review JuliusBrussee Пишет замечания к коду одной строкой: место, проблема, исправление. Пригодится, когда ревью диффа или PR надо пройти быстро и без воды. CX Codex +1 411 800установок caveman-compress JuliusBrussee Сжимает CLAUDE.md, списки задач и другие текстовые файлы в краткий формат, сохраняя читаемую резервную копию. CX Codex +1 411 500установок

Из того же набора49

exec-summary Собирает из папки фичи один документ на 600–800 слов: питч для продаж, стратегию для руководства и поведение для разработки. CX Codex +1 ★ 8 227звёзд репо context-builder Собирает контекст по фиче из заметок встреч, конкурентного анализа и регуляторных требований. Создаёт файл background.md и обновляет общую базу знаний. CX Codex +1 ★ 8 227звёзд репо backlog-capture Собирает идеи, запросы и наблюдения в структурированный бэклог, проверяя новые записи на дубли. Пригодится после встреч, разговоров с клиентами и конкурентного анализа. CX Codex +1 ★ 8 227звёзд репо watchdog Скилл для настройки политик rig watchdog: решает, когда будить застрявший цикл, когда вернуть его к задаче, а когда остановить на сверку. CX Codex +1 ★ 8 227звёзд репо specification-system Помогает описывать спецификации ригов, агентов и рабочих процессов так, чтобы сохранялись нужные роли, режим и повторяемое намерение. Пригодится при проверке переносимости и устройства библиотеки спецификаций. CX Codex +1 ★ 8 227звёзд репо session-source-fork Скилл для авторинга rig spec: запускает новое управляемое место из прошлой сессии Claude или Codex, не выдавая его за продолжение старого. CX Codex +1 ★ 8 227звёзд репо rig-lifecycle Помогает агенту корректно управлять жизненным циклом окружений OpenRig, проверять rig ps после сбоев и тестировать сценарии восстановления без скрытых откатов к чистым запускам. CX Codex +1 ★ 8 227звёзд репо rig-bundles-and-shareable-artifacts Скилл помогает создавать, проверять и устанавливать переносимые бандлы OpenRig с описанием топологии и рабочего процесса. Пригодится, когда нужно передать проверенный шаблон другой команде. CX Codex +1 ★ 8 227звёзд репо

Спонсоры проекта

Компании, которые помогают держать аналитику открытой