Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

rollout-derived-repos

БесплатноБез исполняемых скриптовНе проверен

Fan out rapid-go's current state to every derived repository in one command: Go toolchain + dependency upgrades (as last done in rapid-go) and/or a pull-only…

abyssparanoiaот abyssparanoia★ 20 звёзд на GitHub

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

rollout-derived-repos

One command, run from rapid-go, that propagates rapid-go's HEAD state to every registered derived repository:

Workstream What it does per repo Branch
deps Go version, direct dependencies and tool versions brought to rapid-go's current state (plus whatever small code/config fixes the bump needs) chore/update-go-<major.minor>-and-deps
claude Pull-only .claude/ sync from rapid-go (token-mapped, project-specific content preserved) chore/sync-claude-config (suffix -YYYY-MM-DD if taken)

Each repo gets its own agent, running in parallel, working in git worktrees so the user's checkouts are never touched. The orchestrator (you, in rapid-go) only surveys, briefs, collects, verifies and reports. The agents hold no decision authority: every rule they follow lives in references/rollout-brief.md.

Usage

/rollout-derived-repos                 # both workstreams, all registered repos
/rollout-derived-repos deps            # dependencies only
/rollout-derived-repos claude          # .claude/ sync only
/rollout-derived-repos deps efso-core sunabe-server   # restrict to repos whose slug or path basename matches

Prerequisites

  1. Registry — .claude/derived-repos.local.yaml in rapid-go (gitignored; rapid-go is public and derived repos are not). Format: references/derived-repos.example.yaml. If it is missing, stop and ask the user to create it from the example — never guess repositories.
  2. GitHub access — gh auth status must succeed for every org in the registry (agents create branches, PRs and issues with gh).
  3. rapid-go state — run on a clean, up-to-date default branch of rapid-go. Its go.mod, .golangci.yml, .github/workflows/ci.yml, docker/*.Dockerfile and .claude/ ARE the target state; nothing else defines it.
  4. Local clones (optional) — when a registry entry has path and it exists, worktrees are created from that clone (after git fetch origin). Otherwise the agent clones with gh repo clone into its scratch directory.

Step 0 — Parse arguments & registry

  • Mode: deps, claude, or all (default). Optional repo filters match the registry slug (owner/repo) or the path basename.
  • Read the registry with the Read tool. Skip entries with enabled: false. Keep each entry's notes — they are passed verbatim to that repo's agent.

Step 1 — Capture the target state from rapid-go HEAD

Mechanically (grep, never by memory) collect and write a Target State block:

grep -m1 '^go ' go.mod                                           # GO_VERSION
grep -E 'golangci-lint/v2 ' go.mod                               # GOLANGCI_VERSION (tool block)
grep -E 'version: v[0-9]' .github/workflows/ci.yml               # must equal GOLANGCI_VERSION
grep -E 'golang.org/x/tools ' go.mod                             # XTOOLS_VERSION
grep -rhoE 'golang:[0-9.]+-alpine' docker/                       # GOLANG_IMAGE_TAG
git log --oneline -5 -- go.mod                                    # REFERENCE_PRS (the rapid-go bump PRs agents should read)
git log --oneline -5 -- .claude                                   # latest .claude changes (context for workstream claude)

Render the brief: copy references/rollout-brief.md to the scratchpad directory and replace the {{...}} placeholders in its "Target State" section with these values. Agents read the rendered copy, never the template.

Step 2 — Survey the registered repos (read-only, mechanical)

For each repo collect, with git -C <path> / gh ... -R <slug> (never cd inside a loop — it changes the session's working directory):

  • default branch (gh repo view <slug> --json defaultBranchRef), current checkout branch and dirtiness (informational only — the agent will not touch it)
  • go directive, golangci-lint version in go.mod and in CI, x/tools version
  • presence of wrench, yo, memeduck, jwx major(s), null major, renovate.json
  • .claude/ shape: counts of rules/skills/agents/commands, settings.json present?
  • open PRs/issues that overlap (Renovate/Dependabot dependency PRs, previous chore/sync-claude-config* branches)

Treat the survey as a hint only: the working copy may be behind origin/<default> (in the 2026-10 rollout two repos had already merged part of the work). The brief tells agents to verify against origin/<default>.

Persist the survey table and the rendered brief path now (e.g. in your task checkpoint, if your setup keeps one) — a rollout runs for an hour or more and the session may be compacted before the reports arrive.

Step 3 — Fan out: one agent per repo, in parallel

Launch all agents in ONE message (background; you'll be notified as each finishes). Per agent:

Agent(
  description: "<repo-basename> rollout (<mode>)",
  subagent_type: "general-purpose",
  prompt: """
Read the shared brief FIRST and follow it exactly: <absolute path of the rendered brief>

Mode: <deps|claude|all>
Repositor
Полный SKILL.md на GitHub

Установить rollout-derived-repos в Claude Code и Claude Desktop

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

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

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

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

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

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

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

references/derived-repos.example.yamlreferences/rollout-brief.md

FAQ

Что делает скилл rollout-derived-repos?

Fan out rapid-go's current state to every derived repository in one command: Go toolchain + dependency upgrades (as last done in rapid-go) and/or a pull-only .claude/ config sync, one agent per repo in parallel, one PR per workstream per repo, CI verified. Use when: (1) running '/rollout-derived-repos', (2) rapid-go just merged a Go/dependency bump or a .claude/ change that every derived project should receive, (3) asked to 'ばら撒く' / propagate / roll out template changes to all derived repos. Requires a local registry file .claude/derived-repos.local.yaml (gitignored). For a single repo in either direction use sync-claude-config instead.

Как установить скилл rollout-derived-repos?

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

Скилл rollout-derived-repos запускает скрипты?

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

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

Сравнить rollout-derived-repos с