/github-ops:master-repo-newfrom github-ops
Start a new project as a master repo plus its component repos (app, website, API...), each created and wired in as a submodule from day one. Use on "new project with a master repo", "create X with repos for the app and site".
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.
For a project that doesn't exist yet. Creates the master repo and every component repo
together, so the submodule structure holds from the first commit. For repos that already
exist, use master-repo-consolidate; to add one component later, master-repo-add-component.
Read references/master-repo.md (the shape and rules) and the profile
(references/profile.md) first.
From the request, work out:
repo_naming style.master_repo.name_pattern with {Subject} filled in; visibility
master_repo.visibility.<Subject>-<Role>, e.g. Acme-Android,
Acme-Website), visibility (default_visibility unless the content is private) and the
submodule path (<submodule_dir>/<role>, lowercase).owners.default unless the user names another.repos_root; for layout: grouped, pick the narrowest group from
groups_doc and say why in one line.shortcut.command is set: one for the master (components are reached
through it). Check it is free with shortcut.list_command.Run repo-exists on every name. An existing one is not a new component: offer to adopt it
instead (that path is master-repo-add-component).
Show the plan as a table. Repo creation publishes public repos: the yes covers the table as shown, nothing added afterwards.
For each component, a repo with one real commit (a submodule can't point at an empty repo):
tmp=$(mktemp -d) && cd "$tmp"
git init -b main
printf '# %s\n\n%s\n\nPart of [%s](https://github.com/%s/%s).\n' \
"<Repo>" "<one-line description>" "<Master>" "<owner>" "<Master>" > README.md
git add -A && git commit -m "Initial commit"
gh repo create <owner>/<Repo> --<visibility> --description "<description>" --source=. --push
cd - && rm -rf "$tmp"
Seed from a template if the component type has one the user uses (an Android or site
starter): gh repo create --template <tmpl>, then check it has a commit.
There is no standalone clone of a component: the submodule is its working copy.
mkdir -p <local-path>/<Master> && cd <local-path>/<Master>
git init -b main
"$GO/scripts/add-submodule.sh" <owner>/<Repo> <submodule_dir>/<role> # once per component
$GO is ${CLAUDE_PLUGIN_ROOT}, else the profile's plugin_root. The script pins the
branch and prints a JSON line per component; keep them for the README.
Write README.md and CLAUDE.md from templates/master-repo/, filling every {{...}}.
No placeholder may survive (grep -n '{{' README.md CLAUDE.md must be empty).
git add -A && git commit -m "Create <Master> with <n> components"
gh repo create <owner>/<Master> --<master visibility> --description "<description>" --source=. --push
If shortcut.command is set, run it with {name} and {path} filled for the master.
git clone --recurse-submodules the master into a temp dir: every component folder is
populated, and for each, git -C <component> branch -r --contains HEAD lists
origin/<branch> (HEAD is detached after a submodule update; that is normal). Delete the
temp clone.gh api repos/<owner>/<each> returns the expected visibility..gitmodules has a branch = line for every entry.Master repo URL and local path, a table of components (repo, path, branch, visibility), the
shortcut, and the one-line daily routine: git submodule update --remote --merge, then work
inside a component (master-repo-sync).
What SKILL.md sets; muted values are Claude Code's defaults
github-ops@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin github-ops26 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".Other plugins' skills for the same job