/github-ops:master-repo-consolidatefrom github-ops
Bring a project's existing repos (app, site, API, plugin) under one master repo as submodules, retire the loose clones safely and repoint shortcuts. Use on "create some order", "central repo for X", "add these as submodules".
Ships in github-ops. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The project already has several atomic repos. This gathers them into one master repo as submodules. Every repo, history and deployment stays as it is. To fold several repos into one successor instead, that is a different job (merge histories, retire the rest).
Read references/master-repo.md and the profile (references/profile.md) first.
master_repo.examples, a repo named per
name_pattern, a local folder with a .gitmodules). Refresh it rather than starting a
parallel one: then this is master-repo-add-component per missing repo.repos_root, the user's list, gh search repos <subject> --owner <owner>, and what serves each domain or app (a deployment project may
name its repo). Several sites served from one repo are one submodule.full_name (resolve renames with repo-exists), default branch,
visibility, and the local clone path if any.name_pattern), visibility, the component table (repo, role,
submodule path, branch), and the shortcut name. Wait for a yes.gh repo create <owner>/<Master> --<visibility> --clone # or init locally and push, as in master-repo-new
cd <Master>
"$GO/scripts/add-submodule.sh" <owner>/<Repo> <submodule_dir>/<role> # per component
$GO is ${CLAUDE_PLUGIN_ROOT}, else the profile's plugin_root. Write README.md and
CLAUDE.md from templates/master-repo/ (no {{ left), commit, push.
The submodules become the only working copies. Before removing each old clone, check it;
git status alone misses most of this:
git rev-list --count --branches --not --remotes must be 0, and
git stash list empty. Otherwise push first (with the user's yes) or hold it back.rsync --ignore-existing silently skips modified tracked files.
Leave the work uncommitted in its new place and list it in the report..env*, local config, raw assets, deploy
links such as .vercel/): copy across everything except rebuildable folders
(node_modules, dist, build, .venv, .next, .gradle)./proc/*/cwd (Linux) or lsof +D <dir> for dev servers and agent
sessions, and whether commits are still arriving. Hold a live clone back and tell the
user. Never stop their processes unasked.Show the per-clone verdict table (remove / hold back + reason) and get the user's yes.
Removing the folder an agent session runs in breaks its shell: empty it with
find <dir> -mindepth 1 -delete and remove the directory last.
shortcut.command is set: move each component's existing shortcut to its submodule
path, and add one for the master.master-repo-sync for the commit-and-bump routine.Components and their paths, clones removed, clones held back and why, uncommitted work that moved, shortcuts changed. Say that pointers go stale between bumps and that this affects nothing in production.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
26 skills in this plugin
/breakaway-repoStart a new GitHub repo seeded from the current working directory (respecting .gitignore, no shared history) to try a radically different approach safely. Use on "break away from this repo"./bulk-apply-changeApply one file change to many GitHub repos with multi-gitter (script, dry run, push or PRs, verify). Use whenever the same edit is wanted in more than a few repos: "change this in all my repos", "update the footer/badge/workflow on every site", "add a LICENSE/CLAUDE.md to all of them", "bump X everywhere"./bulk-auditRead-only hygiene report across an owner's repos (missing description, topics, homepage, README, license; default-branch name; stale; forks/archived), as a table and JSON that feeds bulk-repo-ops. Use on "audit my repos", "which repos have no description", "repo hygiene report", "what's missing across my repos".github-ops@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin github-ops