GitHub
Create a repository, protect or reset its default branch and settings, open a pull request from a branch or work one locally, and scaffold a GitHub Pages docs site.
5 commands · 5 skills · 4 tools
Create a repository, open a pull request from a branch, or pull one down and work on it locally — review its changeset, or address the comments it already has.
What it does
gh-create-repo— creates a repository with a README-only first commit, then protects the default branch with a ruleset: a mandatory pull request, with a bypass policy the caller chooses. Merged head branches are deleted on merge.gh-configure-repo— protects the default branch of a repository that already exists, or resets its settings: the ruleset, the required checks, and the merge settings, dry run first. Carries the traps — a free-plan private repository answers 403, and a required check is the job’sname:that must have reported on a pull request once or it blocks every one of them.gh-create-pr— opens a pull request from a branch onto the default branch.gh-make-review— checks out a PR and code-reviews its changeset locally.gh-address-review— reads a PR’s review comments and addresses them locally.gh-review-loop— the Copilot adapter for thedevmodule’s review loop: requesting, verifying, waiting and reading a Copilot review on a pull request, until a round introduces no new findings and every required check is green with the pull request mergeable.gh-pages— scaffolds a Jekyll documentation site deployed to GitHub Pages: a project site, or the org-level umbrella that indexes every project’s docs site.gh-deploy-watch— waits for a GitHub Actions deploy run to appear and finish: a run id or URL, or a workflow with a branch or commit, polled until its verdict and printed as one digest. Exit codes carry the outcome, so a caller never parses the digest.
gh-configure-repo resets a repository that already exists to the same standard: the pull-request and
merge settings, merged-branch cleanup, and one default-branch ruleset that carries the status checks
already in force. Legacy classic protection is kept unless --remove-classic-protection is passed —
removing it is what lets the ruleset’s override take effect. It is a dry run by default, writes only
with --apply, and is idempotent.
gh-create-repo, gh-configure-repo and gh-create-pr are the module’s writes to GitHub: creating a
repository and its ruleset, reconfiguring an existing one, and creating a pull request plus the
git push -u origin <branch> a never-pushed branch needs. The review commands keep their output
local — no replies, comments or resolutions are posted back — except in the Copilot loop, where
marking each finding resolved is the point.
gh-pr-open runs those writes as one call, and its --type mode is the finish flow’s publisher: a
review-improvement, global-memories or proj-memories call carries the stream’s standing title,
its repository — the dev-bot one for the global streams, the checkout’s own for project memories —
and, for the memory streams, the standing body. It is told the worktree to publish from (--cwd),
appends to the branch’s open pull request, refuses a twin or a push remote that is not the pull
request’s repository, and reports one it finds after creating. Publishing a session’s memories or
reviewer improvements is therefore one deterministic command instead of a push and a gh pr create
spelled out in each skill.
Contents
| Type | Name | Purpose |
|---|---|---|
| Command | gh-create-repo |
Create a GitHub repository with a README-only first commit and default-branch ruleset protection |
| Command | gh-address-review |
Review a GitHub PR and address its review comments locally |
| Command | gh-make-review |
Check out a GitHub PR and code-review its changeset locally |
| Command | gh-create-pr |
Open a pull request from a branch onto the default branch |
| Command | gh-review-loop |
Loop Copilot pull-request reviews and fixes until a review introduces no new findings |
| Skill | gh-create-repo |
Use when creating a GitHub repository. Triggers on ‘create a repo’, ‘new repository’, ‘gh repo create’, ‘scaffold a repo’. |
| Skill | gh-configure-repo |
Use when protecting a branch of an existing GitHub repository — the default branch, branch protection, a required PR on main, a required status check — or resetting its merge settings and rulesets. Triggers on ‘protect the default branch’, ‘set branch protection’, ‘require a PR on main’, ‘require a status check’, ‘ruleset’, ‘gh-configure-repo’. |
| Skill | gh-create-pr |
Use when opening a pull request from a branch. Triggers on ‘open a PR’, ‘create a pull request’, ‘raise a PR’. |
| Skill | gh-review-loop |
Use when looping a GitHub Copilot review on a pull request. Triggers on ‘Copilot review loop’, ‘address Copilot’s comments’, ‘iterate until Copilot is happy’. |
| Skill | gh-pages |
Use when publishing a documentation website to GitHub Pages: a single project site or an org-level umbrella index. Triggers on ‘make a docs site’, ‘gh-pages’, ‘docs umbrella’, ‘org documentation site’. |
| Tool | gh-configure-repo |
Reset an existing GitHub repository to the devbot standard — pull-request merge settings, merged-branch cleanup, and a single default-branch ruleset (PR + 1 approval with an override, conversation resolution, carried-over status checks, no force push, no deletion). Keeps legacy classic protection by default. Dry-run by default; pass –apply to write. |
| Tool | gh-pr-open |
— |
| Tool | gh-pr-watch |
— |
| Tool | gh-deploy-watch |
— |
Configuration
Needs the gh CLI and jq, authenticated on the machine; the module’s lifecycle scripts install and
update both. No project configuration is required.
See also
- Polyrepo sessions — how this module scopes itself to the owning project
- Git — the commit and history skills these commands lean on
- Self-improvement — improving what the reviewer catches