commit-and-pr
Skill0 starsChanged 4 days agoMITView on GitHub
Commit the current change and write its PR, following docs/process.md: check the branch name, pick only the intended files, confirm local checks and the pre-PR gates, then write a Conventional Commits message and a PR body from the repo's template. Use when the work is ready to commit, or when asked for a commit message, a PR description or the staging commands.
- Reads credentials
- Commits and pushes
10 other projects use a version of this.
Adopted by
Most recently taken up by
- petros751/claude-skillstheir own version, first seen Nov 22, 2026
- 10x4hs/skillstheir own version, first seen Oct 17, 2026
- verl-project/verl-omnitheir own version, first seen Oct 8, 2026
- vaadin/flowtheir own version, first seen Oct 8, 2026
- isaac-sim/IsaacLab-Arenatheir own version, first seen Oct 8, 2026
- nimiusrd/agent-skillstheir own version, first seen Sep 19, 2026
Other versions10 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 10
- verl-project/verl-omni★ 1.6ksame name
- vaadin/flow★ 761same name
- isaac-sim/IsaacLab-Arena★ 675same name
- selfishprimate/gerillass★ 171same name
- 10x4hs/skills★ 1same name
- gasatrya/skills★ 1same name
- hsK10x2/skills★ 1same name
- nimiusrd/agent-skills★ 0same name
- petros751/claude-skills★ 0same name
- rohitgollarahalli/claude-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository25 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- adopt-toolkitSkill
- codebase-assessmentSkill
- code-optimiserSkill
- code-review-gateSkill
- debuggingSkill
- dependency-checkSkill
- design-thinking-ideationSkill
- devops-review-gateSkill
- doc-generatorSkill
- graph-of-thoughtSkill
- implementation-specSkill
- phase-acceptance-checkSkill
- project-retrospectiveSkill
- refactorerSkill
- requirements-elicitationSkill
- research-briefSkill
- test-generationSkill
- trade-off-analysisSkill
- tree-of-thoughtSkill
- value-chain-analysisSkill
- vrio-analysisSkill
- antigravitySkill
- codexSkill
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 4 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 7 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 16
Pick the files: Run git status and .github/scripts/review-diff.sh --stat, and decide what belongs in the commit, by name.
- Very specific: line 17
Check the names first. If one is a secret file (.env, a key, Terraform state or .tfvars, credentials), stop and tell the user: don't open …
- Very specific: line 19
Leave out, and mention: lockfile churn the change didn't cause, editor and OS files, local settings (.claude/settings.local.json), build …
- Distinctive: line 21
If files are already staged, check git diff --cached --name-only is exactly the intended list.
- Distinctive: line 22
Local checks: Run the project's full lint, tests and build (the commands are in AGENTS.md under Testing, or the project's own config).
- Distinctive: line 27
Don't write a PR that claims a gate it didn't get.
- Distinctive: line 32
no attribution or co-author lines unless the user asks for them.
- Very specific: line 50
Don't describe the change from memory: Write from the diff (review-diff.sh), so the PR says what the branch does, not what was planned.
“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Commit and PR
The last step before a PR: check the change is ready, then write the commit and the PR text. AGENTS.md and docs/process.md set the rules; this skill applies them in order. The hooks named below are the repo's own (.githooks/); if a project changed them, they're the reference.
Steps
- Branch. Run
git branch --show-current.- On the default branch: stop. Suggest a
<type>/<slug>branch andgit switch -cto it; nothing commits tomain. - The
pre-pushhook checks the name: a type (feat,fix,docs,style,refactor,perf,test,build,ci,chore,revert), then a slug of lowercase letters, digits and hyphens, at most 50 characters, starting and ending with a letter or digit. - The type should fit the change:
featfor new behaviour,fixfor a bug. If it doesn't, suggestgit branch -m <new>(before the first push).
- On the default branch: stop. Suggest a
- Pick the files. Run
git statusand.github/scripts/review-diff.sh --stat, and decide what belongs in the commit, by name. Don't stage yet unless the user asked you to commit.- Check the names first. If one is a secret file (
.env, a key, Terraform state or.tfvars, credentials), stop and tell the user: don't open it, stage it or run the full diff, which would print it. - Include new untracked files and links the change adds.
- Leave out, and mention: lockfile churn the change didn't cause, editor and OS files, local settings (
.claude/settings.local.json), build output. - Then read the picked files' diff (
.github/scripts/review-diff.sh -- <files>) for anything that mustn't be committed: credentials, environment values, account IDs, project numbers, service-account emails, internal hostnames, raw logs. Write as if the repo will be public. If you find any, stop and tell the user, without quoting the value. - If files are already staged, check
git diff --cached --name-onlyis exactly the intended list.
- Check the names first. If one is a secret file (
- Local checks. Run the project's full lint, tests and build (the commands are in
AGENTS.mdunder Testing, or the project's own config). All must pass. A failure is fixed first, not committed and explained. - Gates. Work out from
docs/process.mdwhich pre-PR gates this change needs: the lines changed and files touched, against the fast path and each gate's trigger. Run it is needed when the change alters behaviour.- Confirm each one ran, and its findings were handled as
docs/process.mdsays ("When an agent or gate flags something"): blocking findings and phase-acceptance gaps fixed; non-blocking ones fixed, or added todocs/tech-debt.mdand listed under "Known gaps" in the PR body. - If a gate hasn't run, say which and ask before going on.
doc-generatorand run it belong in this session, so run them. Don't run a gate that needs a fresh context (code-review-gate,devops-review-gate,test-generation,phase-acceptance-check) in this session (in Claude Code, the gate skill starts its own agent; in Codex or Antigravity, a new session). Theantigravitygate runs only from Claude Code; if it couldn't run, the PR body says so. - If anything other than wording changed after a gate ran, check the re-review that
docs/process.md("Changes after the gates") asks for has run on the final diff: antigravity, plus any gate whose trigger the later change, or the whole change, now meets. Not every gate. If it hasn't, say which and ask before going on. - Don't write a PR that claims a gate it didn't get.
- Confirm each one ran, and its findings were handled as
- Commit message. Conventional Commits, which the
commit-msghook checks:- subject:
type(scope): description, where the scope is optional (lowercase letters, digits,.,_and-) and!before the colon marks a breaking change; - the description is imperative, starts with a lowercase letter, a digit or an acronym (
fix: handle empty input, notfix: Handle…), and doesn't end with a full stop; keep the subject to 72 characters; - body: why the change was made and anything a reviewer would otherwise ask, wrapped at 72;
- no attribution or co-author lines unless the user asks for them.
- subject:
- PR body. Fill the repo's template (
.github/pull_request_template.md) section by section, keeping its headings (drop Known gaps when there are none). Say which gates saw the final diff.- Testing states what was actually run and what it showed, and any gap, with the reason.
- Known gaps lists what's deferred in the change itself: a gate finding left for later, behaviour that couldn't be run or tested. Each one gets a row in
docs/tech-debt.mdin the same PR, so it isn't lost once the PR merges (in the template's own repo, an issue instead:docs/toolkit.md). A gate that couldn't run, such as a logged-outagy, is noted in the PR body only. - Tick a checklist box only when it's true. Leave the rest unticked and say why.
- Reference the tracked issue (
docs/process.md, Issue tracking). If the tracker is private and the repo isn't, keep the body self-explanatory without the link. - The same rule as the commit: no identifiers, hostnames, emails or raw logs.
Hand over. By default, give the user:
- the
git addcommands for the exact files, thengit diff --cached --name-onlyto check the list, thengit commitwith the message; - the PR title and body, ready to paste.
Commit, push and run
gh pr createyourself only when the user asks. If you commit, check what's staged right before it, since that's what gets committed, not the working tree:git diff --cached --name-onlyis exactly the picked files, andgit diff --cachedhas nothing that mustn't be committed (step 2). In Codex's sandbox, and in Antigravity's unless the user approves running outside it, pushing andghdon't work (no network, andgh's config is denied), so hand those to the user. Never merge.- the
Don't
- Don't skip hooks (
--no-verify) or edit hook or permission settings to get a commit through. Fix what the hook found. - Don't amend or force-push commits that are already pushed unless the user asks.
- Don't commit to the default branch, docs-only changes included.
- Don't describe the change from memory. Write from the diff (
review-diff.sh), so the PR says what the branch does, not what was planned.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

