gh-bootstrap
Installation
SKILL.md
gh-bootstrap
One-shot repository configuration for the merge-queue + squash-merge + auto-release-notes pattern.
This sits next to /gh (per-task GitHub ops) and answers a different question: how should this repo be configured in the first place?
What gets configured
| Concern | Result | Endpoint |
|---|---|---|
| Repo merge defaults | Squash-only; PR title → commit subject; delete branches on merge | PATCH /repos/{owner}/{repo} |
| Default branch protection | Ruleset with merge queue, required checks, no force-push, no deletion | POST /repos/{owner}/{repo}/rulesets |
| Release notes | .github/release.yml with category buckets driven by PR labels |
File commit |
| Release workflow (optional) | Tag push → gh release create --generate-notes on main only |
File commit |
All policy endpoints (repo settings, rulesets, branch protection) run through the gh CLI — gh api for the JSON endpoints, gh repo/gh release where there's a first-class subcommand. The skill writes files (.github/release.yml, the optional release workflow) directly to the working tree.