/workflow:github-flowfrom workflow
Branches, pull requests, changelog, CLAUDE.md and review rules for my GitHub repos. Use whenever you start a change in a repo with a GitHub remote, before creating a branch, committing, pushing, opening or updating a PR, answering PR review comments, cleaning up after I say a PR is merged, or cutting a release/version.
Ships in workflow. 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.
Applies to every repo with a GitHub remote. Commit messages still follow commit-style.
main yourselfmain, never push to main, never merge into it.gh pr merge (not even --auto), no merge_pull_request MCP call,
no merge button through a browser. Only I merge. A hook in this plugin blocks these;
if it fires, don't look for a way around it.Start from an up-to-date main (git switch main && git pull --ff-only), then
git switch -c <type>/<short-slug>. Lowercase, hyphens, 2-5 words.
| Type | For |
|---|---|
feature/ | new functionality |
bug/ | fixing something broken |
hotfix/ | urgent fix for something broken right now |
minor/ | small tweak: wording, a value, a one-line change |
refactor/ | restructuring, no behaviour change |
docs/ | documentation only |
chore/ | deps, config, CI, tooling |
If the work comes from a GitHub issue, put its number first in the slug and close it from the
PR body: bug/42-login-crash + Closes #42.
One branch is one topic. Something unrelated comes up: new branch, new PR.
A bug/ or hotfix/ branch: before fixing, get Codex's own root-cause analysis (codex
skill) and note in the PR body where you and Codex agreed or differed.
A feature or major change: its ADR comes first and I approve it before any code
(adr-manager). Then one branch and one PR per ADR, carrying the ADR and its implementation.
Several dependent ADRs: lower number first, one PR each.
CHANGELOG.md at its root (Keep a Changelog
format). Create it if missing:
# Changelog
## Unreleased
## Unreleased, in the matching section
(### Added for feature, ### Fixed for bug/hotfix, ### Changed for
minor/refactor/docs/chore, ### Removed when something goes away):
- github-flow skill: branch, PR and changelog rules.
Plain words, same voice as the commit subject, no 🤖.## Unreleased to
## [x.y.z] - YYYY-MM-DD, add a fresh empty ## Unreleased above it, bump the version
where the repo keeps one (plugin.json, package.json, Cargo.toml, ...). Semver: anything
under Added → minor bump, otherwise patch; breaking changes → ask me. This goes through its
own chore/release-x.y.z PR. After I merge it, tag vx.y.z on main only if I ask..claude-plugin/marketplace.json): no release PRs. An
installed plugin only updates when its version changes, so every PR bumps version in the
plugin.json of each plugin it touches (same semver rule) and names it in the changelog
line: - workflow 0.4.0: plugin-audit skill.CLAUDE.md at its root: what Claude needs to work in it without
rediscovering it. Create it if missing, from what you can read in the repo:
# <repo>
<one line: what this is>
## Commands
<build, test, lint, run: the exact commands>
## Layout
<the dirs and files that matter, one line each>
## Conventions
<rules not obvious from the code: style, gotchas, things to never do>
git log main..HEAD. If there are fixups, WIP or
"oops" commits, squash them into one (or a few that each make sense alone):
git reset --soft $(git merge-base main HEAD) then commit again with a proper message.
Interactive rebase isn't available.git push --force-with-lease, and only on
your own branch, never on main.main: write it
like a commit subject (commit-style, ending in 🤖).codex skill) on
the branch, verify each finding, commit the fixes, review again until a review needs no
more code changes, and keep the results for
## Codex review ("nothing found", or "skipped ()" only if Codex is unavailable).
CI then checks the reviewed code. Commits added later get reviewed again before you push,
and each re-review's results are added to ## Codex review (earlier entries stay).git push -u origin <branch>, then gh pr create --base main. Run every
git push as a command of its own, not chained with &&: the merge guard refuses pushes it
can't parse..github/pull_request_template.md or
.github/PULL_REQUEST_TEMPLATE/). Otherwise the body is:
## Why
<what was wrong or missing>
## What changed
- <bullet per change>
## Testing
<how you checked it, or "not tested" and why>
## Changelog
<the line you added>
## CLAUDE.md
<what you updated, or "no change">
## Codex review
- fixed: <finding> (<sha>)
- dismissed: <finding>: <why>
With a repo template, append ## Codex review to it if it has none: every PR carries it.gh pr view <n> --web.gh pr checks <n>) before telling me it's ready.When I (or anyone) leave comments on the PR and ask you to address them:
gh pr view <n> --comments plus inline ones,
gh api repos/{owner}/{repo}/pulls/<n>/comments.fixed in <sha>,
won't fix: <why> or question for you: <...>. Update the PR body if the change grew,
and always add each re-review's results to ## Codex review (keep the earlier entries).When I say it's merged ("done", "merged"):
gh pr view <n> --json state says MERGED. If not, say so and stop.git switch main && git pull --ff-only, then git branch -D <branch> (squash merges
leave it looking unmerged, so -d refuses). GitHub deletes the remote branch itself./plugin marketplace update <marketplace>
and /reload-plugins. Never leave such a repo on a feature branch: a marketplace added
from a local folder installs whatever is checked out.[ADR-NNNN], no minor version, see
commit-style), tag the merge commit on main with that number and push the tag on its own:
git tag -a ADR-0011 -m "ADR 0011: <title>", then git push origin ADR-0011.
Minor [ADR-NNNN.N] changes get no tag.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub nobodyone04/claude --plugin workflow5 skills in this plugin
/codexTalk to OpenAI Codex, my read-only second agent, through its CLI. Use whenever you call Codex for a review, an audit, a second opinion or docs, when I say "ask Codex", "have Codex review/check/write", or when another skill tells you to bring in Codex./commit-styleWrite git commit messages in my style. Use whenever you are about to run `git commit` in any of my repos (zsh, nvim, tmux, claude, personal-ai, dotfiles), or when asked to write, fix or review a commit message./new-projectStart every new project with its own GitHub repo, so all work is backed up from the first commit. Use whenever I start a new project, app, tool, script collection or experiment, ask to "create/set up/scaffold/init" one, or when you're about to write code in a folder that isn't a git repo or has no GitHub remote./plugin-auditSecurity check of the Claude Code plugins, hooks, MCP servers and skills installed on this machine. Use after installing or updating a plugin or marketplace, when I ask "are my plugins safe", "audit my plugins/MCPs/skills", or before trusting a new third-party plugin.