/github-ops:set-repo-visibilityfrom github-ops
Flip a GitHub repo between public and private, sweeping history for secrets before anything private is published. Use on "make X public", "make this repo private".
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.
Needs only repo scope. For one repo; for many, bulk-repo-ops.
Read the current state (repo-visibility). Already the target: say so and stop.
Private → public: sweep first, then ask. Every commit in history becomes public, not just the current tree; a file deleted later is still served from history.
gh api "repos/<owner>/<name>/secret-scanning/alerts" -q 'length' 2>/dev/null
git -C <clone> log --all --name-only --pretty=format: | sort -u | grep -Ei \
'(\.env|\.pem|\.key|credential|token|secret|id_rsa|\.p12|\.keystore)' || echo "no credential-shaped paths in history"
git -C <clone> log --all --format='%ae' | sort -u # author emails that will be published
If the user keeps a list of personal terms, grep git log -p --all for them too. Report
what the sweep found, then ask for confirmation quoting the slug. If history holds
something private, don't flip: recreate a clean public repo instead.
Public → private: no sweep, but say first: forks stay public with their copy, stars and watchers are lost, inbound links and Pages sites start failing (free plans disable Pages on private repos).
Apply:
gh repo edit <owner>/<name> --visibility <public|private> --accept-visibility-change-consequences
The flag is mandatory on recent gh; without it the command waits on a prompt.
Verify from the API: gh api "repos/<owner>/<name>" -q .visibility.
Name any marketplace, index or site that lists the repo and now needs updating; don't edit those here. Making a repo public reaches an audience and can't truly be undone.
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