Command Palette

Search for a command to run...

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

sync-and-drive-group

Fan out a "sync your branch and drive to completion" nudge to every Claude Code Remote session in a group — a repo/project (like the "[FuzeFront]" heading in…

БесплатноЗапускает вложенные скрипты
FuzeOneот FuzeOne★ 18 звёзд на GitHub

Установить sync-and-drive-group в Claude Code и Claude Desktop

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

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

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

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

Sync and drive a group of sessions to completion

What "group" means here

The Claude Code sidebar groups sessions under a heading like "FuzeFront" or "FuzeInfra". That heading is not a local file or a folder concept — it's derived server-side from each session's own session_context.sources[].git_repository.url (recorded in the cloud when the session was created). There is no local desktop file to read for this; the only way to resolve "everyone in group X" is to list every session the account owns and filter by that field yourself. Keep this in mind if the user is surprised a session "isn't in the group" — it's whichever repo that session's sources say it is, not something manually curated.

Why a normal message doesn't reach these sessions

SendMessage/ListAgents only reaches agents that are live right now (subagents, or other Claude Code sessions actively running on the same machine). Most sessions in a sidebar group are idle, pending, or archived — ListAgents won't even list them. The only mechanism that reliably wakes a specific, existing Claude Code Remote session and delivers a message into its own conversation (not a new one) is a poke-only Routine bound to it:

  1. mcp__Claude_Code_Remote__create_trigger with persistent_session_id set to the target session's id, initiation: "human_request", and no cron_expression/run_once_at (this makes it a one-shot "poke" that never fires on its own).
  2. mcp__Claude_Code_Remote__fire_trigger on the trigger id it returns — this delivers the prompt into that session right now.
  3. mcp__Claude_Code_Remote__delete_trigger on the same id afterward, to avoid leaving clutter in the user's Routines list. A "not found" error here is harmless (some backends auto-clean a fired one-shot) — don't treat it as a failure.

If an archived session needs pinging, mcp__Claude_Code_Remote__unarchive_session it first — an archived session is read-only and can't be fired into.

Procedure

1. Resolve the group into a session list

Call mcp__Claude_Code_Remote__list_sessions with mine: true. Results are large (this account has had 100s of sessions) and will usually get written to a tool-result file rather than shown inline — that's expected. Parse that file with scripts/parse_sessions.py rather than eyeballing raw JSON:

python3 scripts/parse_sessions.py <tool-result-file> --repo <owner/repo-or-substring>

It prints one id | title | status | repo line per matching session. Repeat list_sessions with after_id set to the last id seen, and keep paginating (feeding each page's file through the script) until a page comes back empty or shorter than the page size — the account can easily have 100+ sessions, and the group you want is often not on page 1.

If the user gave explicit session IDs instead of a repo/group name, skip this step and use their list directly.

2. Filter out sessions you shouldn't ping

  • Drop the calling session itself (check its own id via mcp__Claude_Code_Remote__get_session with no session_id, or from context).
  • Drop SESSION_STATUS_ARCHIVED sessions unless the user asked to include archived ones — then unarchive_session each one first.
  • If a title appears more than once (duplicate/stale sessions on the same task), prefer the non-archived, more-recently-updated one and mention the skipped duplicate in your final report rather than pinging both.

3. Ping every matched session, in parallel

For each session, send one message with all three calls batched together across all matched sessions (i.e. all the create_trigger calls in one tool-call batch, then all the fire_trigger calls once you have every trigger id, then all the delete_trigger calls) — not one session fully handled before starting the next. These sessions are independent of each other, so there's no reason to serialize.

Default prompt template (adapt the branch/PR specifics to what you know about the repo — e.g. this repo's own CLAUDE.md may mandate an auto-merge label, a specific default branch name, or a particular PR gate):

Orchestration ping: sync your branch from <repo>'s default branch (master, or main —
check which this repo uses) first, then drive this task to completion.

1. git fetch origin and merge/rebase the default branch into your working branch,
   resolving any conflicts.
2. Continue implementing/validating your task, commit, and push.
3. Open (or update) a non-draft PR [+ any repo-specific requirement, e.g. an
   auto-merge label] and make sure CI is green.
4. Once you reach a terminal state (PR merged/closed) or hit a genuine blocker
   only a human can resolve, report status.

Proceed autonomously.

(This message was delivered via a one-shot Routine that has already been fired and
deleted on our end — don't spend a turn trying to list, update, or delete any
trigger/Routine related to this ping, there's nothing left to manage.)

That last paragraph is not filler — leave it out an

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

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

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

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

Вложенные файлы

  • scripts/parse_sessions.py

FAQ

Что делает скилл sync-and-drive-group?

Fan out a "sync your branch and drive to completion" nudge to every Claude Code Remote session in a group — a repo/project (like the "[FuzeFront]" heading in the Claude Code sidebar) or an explicit list of session IDs — AND keep checking on them until each is done or genuinely stuck. Use whenever the user asks to sync, ping, nudge, wake up, or orchestrate a batch of sessions, or to "drive them to completion" rather than message them once — e.g. "sync and drive to completion all sessions in FuzeFront", "orchestrate the FuzeInfra sessions", "get every session on this repo mergeable", "wake the idle sessions under this project and don't leave them until they're done". Not for one already-running session (message it directly), or sessions outside this account. NOT fire-and-forget — the "Keep watching" section is the point, not an extra.

Как установить скилл sync-and-drive-group?

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

Скилл sync-and-drive-group запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

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

Сравнить sync-and-drive-group с