commit-push-pr
Skill143 starsChanged 2 months agoApache-2.0View on GitHub
Prepare focused commits, push branches, and create or update GitHub pull requests when requested. Perform only the stages authorized by the user; a commit-only request does not include pushing or opening a PR.
- Commits and pushes
12 other projects use a version of this.
Adopted by
Most recently taken up by
- ZunoSmartLabs/zsl-superpowerstheir own version, first seen Sep 21, 2026
- congmnguyen/claude-code-wsl2-setuptheir own version, first seen Sep 8, 2026
- dceoy/ai-coding-agent-skillstheir own version, first seen Sep 6, 2026
- cmacnichol/skillstheir own version, first seen Jul 31, 2026
- jh941213/my-cc-harnesstheir own version, first seen Jul 27, 2026
- sneg55/agent-startertheir own version, first seen Jun 11, 2026
Used with
Projects with it also use simplify, commit and 3 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
Hugging FaceSkillsimplify
Refactor code after tests pass. The "Refactor" phase of Red-Green-Refactor.
Also in 3 projects that use this
SentrySkillcommit
Create commit messages following Sentry conventions. Use when committing code changes, writing commit messages, or formatting git history. Follows conventional commits with Sentry-specific issue references.
Also in 4 projects that use this
OpenAISkillsystematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes
Also in 3 projects that use this
AWSSkilltdd
Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.
Also in 3 projects that use this
MicrosoftSkillhandoff
Compact the current conversation into a handoff document for another agent to pick up.
Also in 3 projects that use this
Other versions12 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 12
- llama-farm/llamafarm★ 837same name
- jh941213/my-cc-harness★ 126same name
- sneg55/agent-starter★ 76same name
- congmnguyen/claude-code-wsl2-setup★ 50same name
- dceoy/ai-coding-agent-skills★ 4same name
- wangyiyang/dev-agent-skills★ 4same name
- ZunoSmartLabs/zsl-superpowers★ 2same name
- arkan/skills★ 1same name
- enderyildirim/claude-skills★ 1same name
- renatorozas/claude-code-config★ 1same name
2 more not listed
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 repository5 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- audit-repository-consistencySkill
- spec-writingSkill
- uiux-polishSkill
The file
We split this skill into the rules it gives an agent
12 rules. 0 are common, 8 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 11 edited versions we read keep these.
8
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
- could be automatic: a setting could enforce it
- Very specific: line 14
Keep a suitable branch. For detached HEAD, a default branch, or another protected branch, follow the user's naming convention when provided.
- Very specific: line 16
If gh is unavailable or unauthenticated, finish independent authorized local preparation and report the missing prerequisite and applicable …
- Distinctive: line 22
Follow CONTRIBUTING.md for validation.
- Distinctive: line 24
Before staging, run git diff --check.
- Distinctive: line 28
Use an English Conventional Commit subject with lowercase type and required scope:
- Distinctive: line 34
Keep the subject concise without a trailing period.
- Distinctive: line 36
Do not create empty or duplicate commits, add agent co-author trailers, or invent attribution.
- Very specific: line 46
Do not force-push by default.
- Distinctive: line 52
Check for an existing open PR for the confirmed head/base so updates do not create duplicates:
- Distinctive: line 60
Use the scoped Conventional Commit format for the PR title, describing the resulting change rather than editing or review activity.
- Distinctive: line 64
Avoid vague summaries such as "refine controls", "align behavior", or "simplify handling" unless they also say what specifically changes.
- Very specific: line 78
Read the repository PR template, preferring the base-branch version.
“Common” is measured: kept by at least 6 in 10 of the 11 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, Push, and Pull Request
Complete the requested Git/GitHub handoff under AGENTS.md and CONTRIBUTING.md. Preserve existing authorization across follow-ups. Do not add Issue creation, reviewer requests, PR merges, releases, or deployments unless authorized. Do not start a separate code review or review subagent unless the user requests it.
Inspect and Prepare
- Inspect
git status --short --branch, the diff, untracked files, and relevant remotes. Separate intended changes from unrelated work, secrets, local configuration, caches, and generated artifacts. - Resolve the requested stages from context: commit-only ends after committing; push-only may use an existing commit; opening a PR normally includes the necessary branch, commit, and push. Ask only when the intended content or destination is materially ambiguous.
- Keep a suitable branch. For detached HEAD, a default branch, or another protected branch, follow the user's naming convention when provided; otherwise create a short descriptive branch such as
feat/harness-capability-runtimeorfix/session-cancellation. Do not push directly to a protected base. - GitHub operations use
gh; local Git work does not require it. On first use for a target, determine the host/repository from the remote and checkgh auth status --hostname <host>andgh repo view --json nameWithOwner,url,defaultBranchRef. Reuse that verification unless the target or authentication context changes, or an operation indicates it is no longer valid. - If
ghis unavailable or unauthenticated, finish independent authorized local preparation and report the missing prerequisite and applicable login command. Do not silently substitute browser automation, raw APIs, or another hosting CLI.
Unresolved material design questions follow the contribution workflow; this skill does not settle them or authorize an Issue post.
Validate the Intended Change
Follow CONTRIBUTING.md for validation. Reuse successful results whose relevant inputs remain unchanged and rerun affected checks after fixes. Committing or updating a PR does not itself invalidate prior results. Report failures and unavailable checks accurately; never bypass hooks.
Before staging, run git diff --check. Stage explicit intended paths and review both the staged diff and git diff --cached --stat.
Commit
Use an English Conventional Commit subject with lowercase type and required scope:
type(scope): imperative summaryKeep the subject concise without a trailing period. Describe material completed behavior or boundary changes in the body when needed; do not pad it with routine staging/formatting steps or require a fixed bullet count.
Do not create empty or duplicate commits, add agent co-author trailers, or invent attribution. If hooks rewrite files, inspect and stage only intended changes before committing again. Rewrite existing history only when that operation is explicitly authorized.
Push
Confirm the destination remote and branch, then push with upstream tracking where needed; for a confirmed origin destination:
git push -u origin HEADDo not force-push by default. Use --force-with-lease only when the concrete history rewrite is explicitly authorized. After an uncertain push result, inspect remote state before retrying.
When local checkout synchronization is part of the user's workflow, inspect that checkout before changing it. Synchronize only a clean checkout with a verified fast-forward; explain the impact and obtain missing authorization if local work, reset, rebase, or merge would be involved. Do not delete branches or worktrees merely to tidy up.
Create or Update the PR
Check for an existing open PR for the confirmed head/base so updates do not create duplicates:
gh pr view --json number,url,state,isDraft,titleIf no open PR exists, create one with the intended head/base. Preserve an existing PR's draft state; create a ready PR unless the user requests a draft. Drafts skip code CI; marking a draft ready starts the applicable checks. Do not toggle readiness just to refresh automatic labels.
Use the scoped Conventional Commit format for the PR title, describing the resulting change rather than editing or review activity. Write it for the component's users or integrators, not just someone familiar with the implementation:
- Name the concrete capability added, failure corrected, or behavior/default changed. Prefer the observable outcome over internal mechanisms, file names, or work-log language; internal-only changes should still identify their concrete result without inventing user impact.
- Make the summary understandable without opening the PR. Include the affected surface when the scope alone carries essential context: generated entries remove
type(scope)!:and retain only the summary. - Avoid vague summaries such as "refine controls", "align behavior", or "simplify handling" unless they also say what specifically changes. Keep useful technical terms, but do not let them substitute for the outcome.
- For cross-component changes, qualify differing defaults or behavior rather than implying that all components change identically. Lead with the main outcome instead of squeezing every implementation detail into the title; keep secondary details and migration steps in the body.
- Before creating or updating the PR, read the summary without its Conventional Commit prefix as a standalone changelog bullet. Can the target reader tell what they gain, what stops failing, or what changes? Check it against the final diff and update the title when the scope changes. The generator reads merged Git subjects, so editing a PR title after merging does not repair historical entries.
Examples (use only when supported by the diff):
| Too vague or implementation-led | Outcome-led summary |
| refine media previews | preview linked images, audio, and video in conversations |
| simplify proxy handling | allow proxied Web requests without local destination DNS |
| enable self-healing by default | repair supported model history rejections by default |
The PR Labels workflow automatically classifies PRs on opening and readiness; ordinary PRs need no manual labels or notes file. Mark incompatible changes with ! and explain impact and migration in the body. Existing type labels are preserved, so when an update changes the PR's classification, inspect its labels and adjust only the relevant ones with gh pr edit; preserve unrelated labels. Do not classify user-visible changes as chore. Label corrections are part of the authorized PR handoff, not permission to change repository settings or publish a release.
Read the repository PR template, preferring the base-branch version. Preserve required headings and checklist items, remove placeholders such as Closes #, link a relevant Issue when one exists, and mark only verified conditions. Human-review items require evidence from the human author.
Follow Writing Issues and Pull Requests for the opening explanation, choice of visuals, and concise validation evidence. Keep the body and diagrams aligned with the final diff when the PR scope changes. Explain material compatibility implications; use GitHub checks for CI status rather than repeating routine check results in the body. If no template exists, a short summary and validation section suffice. Pass multiline content with --body-file using a temporary file outside the repository. Do not claim a missing check passed or omit a known blocker.
Inspect gh pr checks once after creating or updating the PR. Report CI as pending, passing, or failed; wait or monitor only when requested. Before retrying an uncertain PR creation, query existing PRs again.
Handoff
Report only the completed/requested stages: branch and commit, push result, PR link/title, validation and current CI state, plus concrete blockers. Apply reviewer routing from MAINTAINERS.md when requesting reviewers is authorized.
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.

