/github:github-repo-init <what the project is — stack, purpose, public or private>from GitHub
Sets up a brand-new GitHub repository through the gh CLI from a short description of the project, proposing each choice for approval: name, owner, visibility, About description and topics, which of the user's templates fits, and the settings (merge methods, head-branch cleanup, Dependabot, secret and code scanning, Actions permissions, labels, a protected default branch with required checks), then optionally clones it. Use when the user wants a new repository created on GitHub, even if they only describe a project they are about to start: 'create a new GitHub repo for…', 'set up a repo from my template', 'start a new project on GitHub', 'załóż nowe repo', 'stwórz repozytorium na GitHubie', 'nowy projekt z templatki'. NOT for changing settings of an existing repository (github-repo-audit), pushing an existing local project, adding files such as dependabot.yml, syncing with a template (template-sync), or an existing repo's README (repository-documentation).
Ships in GitHub. 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.
Read when SKILL.md points to them.
Your first tool call in this skill creates the task list, before any command below. The run
asks many questions, and the list shows the user which phase is waiting on them. Use the task-list
tool the session has: mcp__ccd_turn__update_plan in the Claude desktop app, otherwise
TaskCreate and TaskUpdate, or TodoWrite; load it with ToolSearch first if it is only listed
as deferred. If the session has none of them, print the items as a Markdown checklist and reprint it
each time a phase finishes. A one-line announcement in chat does not replace it. Create these items:
[ ] 0 preflight → 00-preflight.md
[ ] 1 brief → 01-brief.md (owner, name, visibility, description, topics approved)
[ ] 2 template → 02-template.md (template or empty repository approved)
[ ] 3 settings → 03-settings.md (each settings group approved, adjusted or skipped)
[ ] 4 protection → 04-protection.md | 04-protection.skipped
[ ] 5 review → 05-plan.json + 05-approved | 05-cancelled
[ ] 6 apply → 06-apply.json (script result + read-back)
[ ] 7 clone and report → 07-report.md
3 settings: waiting for your decision.4 protection: skipped, 5 review: cancelled, 6 apply: create failed. A phase that won't run stays on the list with the reason.A new repository is usually created in a minute and configured never: merge methods left at the
defaults, head branches piling up, Dependabot off, main unprotected — or protected so tightly that
the release bot can no longer push its version commit, and nobody notices until the first release
fails. This skill turns a one-line description into a repository whose every setting was proposed,
explained and approved by the user, applied by one script, and then read back from GitHub.
Phase 4 guards against two silent failures: a ruleset that blocks the repository's own release automation, and required checks whose names no workflow produces.
The skill changes repository settings only, apart from the starter files gh repo create
itself adds to an empty repository (README, license, gitignore). It never commits or pushes any
other file; what would need one is listed in the final report.
gh CLI signed in with the repo scope — checked in phase 0 (gh --version, gh auth status).
Install from https://cli.github.com; the user runs gh auth login themselves.../../scripts/apply-plan.mjs — check with node --version.Eight phases, in order. Each ends by writing a file in the run directory, and the next phase
reads that file, not the conversation. A phase with no file did not happen. Nothing is written to
GitHub before phase 6, and phase 6 runs only when 05-approved exists.
Run directory: <session scratchpad>/github-repo-init/<YYYYMMDD-HHMMSS>/, created with mkdir -p
at the start of phase 0. Never put run files in the current repository.
Read each file when you reach that phase — not before, because the details of later phases pull the run toward skipping the decisions of the current one.
| # | Phase | Read | Exit |
|---|---|---|---|
| 0 | Preflight | phases/00-preflight.md | 00-preflight.md names login, owners, billing tiers |
| 1 | Brief | phases/01-brief.md | every field in 01-brief.md approved |
| 2 | Template | phases/02-template.md | 02-template.md names one source, approved |
| 3 | Settings | phases/03-settings.md | every group has a decision |
| 4 | Protection | phases/04-protection.md | bypass and checks approved, or .skipped |
| 5 | Review | phases/05-review.md | 05-plan.json dry-run clean and 05-approved written, or 05-cancelled |
| 6 | Apply | phases/06-apply.md | 06-apply.json written from the script's output |
| 7 | Clone and report | phases/07-report.md | 07-report.md shown to the user |
After a compaction or a detour, list the run directory, read the files that exist, and continue from the first missing one, with three exceptions:
05-cancelled exists → the run is finished; report the cancellation and do nothing else.05-plan.json exists without 05-approved → phase 5 is unfinished; show the plan and ask again.
The approval lives in a file because a remembered "yes" does not survive a compaction.06-apply.json exists → never apply again, the repository already exists; go to phase 7.A run directory from another session is gone with its scratchpad: say so and start over.
Shared with github-repo-audit, so they live at the plugin level:
05-plan.json
and of the script's report. Phase 5 reads it while building the plan.Phases name these files as ${CLAUDE_SKILL_DIR}/../../references/<file>, and the apply script as
${CLAUDE_SKILL_DIR}/../../scripts/apply-plan.mjs.
AskUserQuestion with the
recommended option first and a way to change or skip it. A guess written straight into the plan
is the failure this skill replaces.05-plan.json.)node ${CLAUDE_SKILL_DIR}/../../scripts/apply-plan.mjs on exactly the approved 05-plan.json — never
hand-typed gh calls, which drift from what the user approved and skip the ordering rules. The
one exception is the fix-up step phase 7 may offer, on its own explicit approval.05-cancelled with the reason and stop; do not ask again.gh secret set with a value, gh auth refresh, or gh auth login; name the command for the user to run instead. A secret value in a
command line ends up in shell history and in the transcript.delete_repo scope on purpose.Planned, not built. Do not perform these, even if they look like the obvious next move.
If asked mid-run, answer: "that step is planned but not part of this skill yet", and finish the current flow.
phases/00-preflight.md (opens in a new tab)phases/01-brief.md (opens in a new tab)phases/02-template.md (opens in a new tab)phases/03-settings.md (opens in a new tab)phases/04-protection.md (opens in a new tab)phases/05-review.md (opens in a new tab)phases/06-apply.md (opens in a new tab)phases/07-report.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub janszewczyk/claude-plugins --plugin github2 skills in this plugin