/repertoire:commit-and-pr-authorfrom repertoire
Splits session changes into separate commits with conventional messages and writes a pull request description including problem, approach, rejected alternatives, and verification output. Use when work is ready to commit or a PR needs writing.
Ships in repertoire. 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.
Turn one session's changes into commits a reviewer, git revert, and git bisect can use, with messages that say why, and a pull request description a stranger can review from. The diff carries the what; this conversation carries the why. Nothing else does.
main).git push, gh pr create, --no-verify, --amend on a pushed commit, or a force push.Stop before step 1 when: the tree is clean and the branch has no unpushed commits (nothing to author); the branch is the base branch (ask which branch to commit on); or the user wants the change reviewed first (/repertoire:review-change, then rerun this).
Look, in order, and stop at the first source that answers each question (format, subject length, case, trailers):
CONTRIBUTING.md, .github/CONTRIBUTING.md, or docs/ for a commit or pull request section.commitlint.config.*, .commitlintrc*, a commitlint key in package.json, git config commit.template, and commit-msg hooks (.husky/, lefthook.yml, .githooks/). Enforced beats documented.git log --no-merges -n 40 --format='%s%n%b---': a type(scope): prefix, subject length, capitalization, trailing period, body presence, and trailers..github/PULL_REQUEST_TEMPLATE.md or .github/pull_request_template.md.Default when nothing answers: imperative subject at most 50 characters with no trailing period, a blank line, then a body wrapped at 72 that says why. Add only the trailers the log already uses plus any attribution the harness asks for. Write the convention you settled on in one line; it goes in the report.
Run git status --porcelain, git diff, git diff --cached, and git log @{upstream}..HEAD --oneline (skip the last if there is no upstream). Then:
git diff --cached shows staged changes you didn't make this session, ask before step 3 resets them..env*, keys, tokens, *.local.*). Say so and leave it.git reset --soft <base> to re-split it. Never rewrite a commit that @{upstream} contains.One commit per change a reviewer could approve alone and git revert could remove alone. Tests:
Keep together: a change and its tests, a source file and the output generated from it, a rename and the import updates it forces. Separate: a prerequisite refactor (first), the main change, drive-by fixes, formatting-only or rename-only churn, dependency bumps.
Order so each commit builds on the previous one. When one commit's files are imported by a later commit's, run the project's fastest check after the intermediate commit; otherwise judge buildability by reading. Default for a diff that is one change: one commit, no ceremony.
Staging, exactly:
git reset -q to clear the index.git add -- <paths> for whole files. When one file holds hunks from two commits, read references/hunk-splitting.md before touching it; git add -p is interactive and will hang.git diff --cached --stat must list only this commit's files. Fix before committing.The subject says what, in the convention's form. The body says why: the problem, the constraint, the approach rejected. Take these from the conversation.
Write the message to a file with a heredoc and commit with git commit -F <file>, never -m with multiline text and never -a.
Check before committing. If commitlint is configured, run npx --no-install commitlint < <file>; a nonzero exit means rewrite. Otherwise check by hand: prefix matches the convention, subject within length, case and period as the log does them, blank line before the body, body lines at most 72. Check the counts with awk 'NR==1 && length>50 {bad=1} NR==2 && $0!="" {bad=1} NR>2 && length>72 {bad=1} END {exit bad}' <file>, substituting the subject limit from step 1 for 50; a nonzero exit means rewrite. A commit-msg hook that rejects is a message to fix, never a hook to skip.
After each commit, git show --stat HEAD confirms the files. After the last, git status --porcelain shows only the files you listed as excluded.
Find the real check commands: package.json scripts (test, lint, typecheck, check), a Makefile, or the steps in .github/workflows/*.yml. CI's list wins when it exists. Run them on the committed tree and keep each command, its exit code, and the lines that state the result (the pass or fail summary, counts, the failing assertion in full). Don't paste whole logs.
A check fails: stop. Report it under failed, leave the commits as they are, and don't write the pull request body. The user decides whether to fix (not this skill's job), split the failure out, or open a draft. If they choose a draft, the Verification section says the check fails and shows the output.
No check command exists: say so under unverified, and ask what the user ran by hand.
Use the repository's template when step 1 found one, and make sure every section of ${CLAUDE_SKILL_DIR}/assets/pull-request-template.md has a home in it. Otherwise copy the skill's template. Fill from the conversation and the commits:
No [[...]] placeholder survives. Write the body to $(git rev-parse --git-dir)/PR_BODY.md (Git ignores its own directory, so it can't be committed by accident, and this resolves in linked worktrees too) unless the user names a path, and show it in the reply. The title is the main commit's subject unless the convention says otherwise.
Re-read the state, not your memory of it:
git status --porcelain is empty except the exclusions you reported.git log <base>..HEAD --format=%s shows the planned subjects in the planned order, and each message passed step 4's check.[[, and its Verification section holds output from this run on the final tree.Report in four parts: completed (each commit as short SHA and subject, the convention used, the body path), failed (checks that failed, hooks that rejected, a message you couldn't make pass), skipped (files excluded and why, template sections marked None), and unverified (claims in the body that rest on the user's word, and any why the user supplied without discussion).
Then give the exact next commands, for the user to run: git push -u origin <branch> and gh pr create --title "<title>" --body-file "$(git rev-parse --git-dir)/PR_BODY.md". Run them only when the user's request named pushing or opening the pull request, or they ask after the report. "Commit this" and "write the PR" are not that request. Never force-push, and never mark the pull request ready or merge it.
git log <base>..HEAD. Rerunning after a finished run does exactly this, so a second run adds no commits and overwrites only the body file.git apply rejects): git reset -q, re-run the commit's staging from a fresh git diff, and if it fails twice, commit the file whole and say the split wasn't possible.What SKILL.md sets; muted values are Claude Code's defaults
19 skills in this plugin
/agentic-coding-patternsRoutes a recurring failure with coding agents, or a task about to start, to one of fifteen patterns, checks the pattern's reasons not to use it, and names the repertoire component or mechanism that implements it. Use when an agent claims done too early, a plan went wrong late, a session repeats a past dead end, or an unattended run must be made safe. Not for executing a pattern, debugging one bug (debugging-protocol), writing a plan or spec (plan-writer, interview-to-spec), or authoring a component (skill-builder)./browser-checkChecks the agent's own UI work in a real browser by starting the app locally, writing short Playwright scripts that look before they act, reading the console, and fixing what it finds in the same session. Use after changing anything a user sees in a web app, before calling the change done. Not for writing the permanent end-to-end suite, reviewing visual design, browsing external sites, or checking a deployed environment unless the user names one, or proving non-UI work before completion (repertoire:verification-gate)./consult-codexGets a second opinion from OpenAI Codex by running one read-only, ephemeral `codex exec` and verifying its claims against the source before reporting them. Use when a question benefits from a model with different blind spots, such as risky logic before a merge, a same-model review that keeps approving, or the user asking what Codex thinks. Not for same-model review (/repertoire:review-change, repertoire:stickler), letting Codex edit anything, or calling Claude Code from Codex.npx claudepluginhub stevekinney/repertoire --plugin repertoireOther plugins' skills for the same job