commit-push-pr
Skill2 starsChanged 52 days agoMITView on GitHub
Commit session changes, push the branch, and open a PR — in one shot. Refuses to run on the repo's default branch (main/master) so the PR step can't fail. Delegates the commit step to `/zsl:commit`, then pushes with `-u`, then opens the PR via `gh`. Use when user wants to ship a feature branch end-to-end, says "/commit-push-pr", or asks to commit, push, and open a PR.
- Commits and pushes
23 other projects use a version of this.
Adopted by
Most recently taken up by
- kbourzayq/arch-guardtheir own version, first seen Nov 8, 2026
- jh941213/my-cc-harnesstheir own version, first seen Nov 1, 2026
- jh941213/ADLC-harnesstheir own version, first seen Nov 1, 2026
- converge-ai-labs/agent-foundationtheir own version, first seen Oct 29, 2026
- dceoy/ai-coding-agent-skillstheir own version, first seen Oct 23, 2026
- tardigrde/agent-skill-evaltheir own version, first seen Oct 20, 2026
Used with
Projects with it also use docs-ci, docs-interfaces and 10 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.
jh941213Skilldocs-ci
문서 CI(링크·OpenAPI lint·breaking 게이트·mermaid 검증)나 문서 드리프트 감지(docs.yaml 신선도 검사)를 설치하거나 돌릴 때 사용. 문서 내용 작성은 docs-architecture·docs-interfaces·docs-manuals.
Also in 3 projects that use this
jh941213Skilldocs-interfaces
API·이벤트 인터페이스 문서(OpenAPI·swagger·AsyncAPI 명세, 엔드포인트 레퍼런스, API 구성도·시퀀스, API CHANGELOG)를 만들거나 코드와 맞출 때 사용. 시스템 구성도는 docs-architecture, API 설계 원칙은 api-design-principles.
Also in 3 projects that use this
RachaelQuiselSkillclient-docs
Client documentation. Use when a build needs documentation updates or missing project documents need to be identified.
Also in 3 projects that use this
dbankscardSkilltechdebt
Find and report technical debt, duplicated code, and cleanup opportunities. Run at end of sessions.
Also in 5 projects that use this
planailabsSkilldocs-architecture
Layout, build pipeline, and structural gotchas for this dual-Astro repo. Read before changing structure, routing, or adding content. Operational/dev-server questions → dev-build skill.
Also in 3 projects that use this
diego-tobalinaSkillbuild-fix
Fix build and compilation errors systematically. Run when build fails.
Also in 3 projects that use this
- +4 more from jh941213
Other versions23 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 23
- llama-farm/llamafarm★ 837same name
- converge-ai-labs/agent-foundation★ 825same name
- galacean/effects-runtime★ 751same name
- shenjingnan/xiaozhi-client★ 341same name
- RedWoodOG/Hermes-Desktop★ 177same name
- jh941213/ADLC-harness★ 125same name
- jh941213/my-cc-harness★ 125same name
- jh941213/my-claude-code-asset★ 125same name
- sneg55/agent-starter★ 76same name
- jackson-video-resources/skills★ 17same name
13 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 repository32 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- ask-zslSkill
- codebase-designSkill
- code-reviewSkill
- commitSkill
- decision-mappingSkill
- diagnoseSkill
- domain-modelingSkill
- git-branchSkill
- grill-with-docsSkill
- human-itlSkill
- improve-codebase-architectureSkill
- prototypeSkill
- setup-zsl-superpowersSkill
- tdd-parallelSkill
- tddSkill
- teach-me-the-codebaseSkill
- to-issuesSkill
- to-prdSkill
- triageSkill
- verify-coverageSkill
- edit-articleSkill
- setup-pre-commitSkill
- steampipeSkill
- grillingSkill
- grill-meSkill
- handoffSkill
- timesheetSkill
- writing-great-skillsSkill
- afk-fanoutSkill
- afk-workerSkill
- morning-reviewSkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 3 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 17 edited versions we read keep these.
3
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 19
If current branch equals the default branch, stop immediately.
- Distinctive: line 21
If the working tree is clean *and* the branch has no unpushed commits, also stop — there's nothing to ship.
- Distinctive: line 25
Run the pre-flight branch check: Stop if on the default branch.
- Very specific: line 37
If push fails (non-fast-forward, hook reject, auth), surface the error verbatim and stop.
- Very specific: line 46
If a PR for this branch already exists, gh pr create fails.
- Very specific: line 47
If the repo has an auto-PR workflow (.github/workflows/auto-pr.yml) and the push already created the PR, skip the gh pr create and just …
- Distinctive: line 53
Never force-push: If the remote rejects, stop and let the user resolve.
“Common” is measured: kept by at least 6 in 10 of the 17 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, Open PR
One-shot shipping for a feature branch: commit → push → PR.
The commit step is delegated wholesale to /zsl:commit — same rules (autonomous for session changes, explicit file lists, no Claude attribution). The novel work here is the pre-flight branch check and the push + PR open after the commit lands.
Pre-flight: not on the default branch
The PR step would fail on main/master — you can't open a PR from a branch into itself. Check before committing so the user isn't left committed-but-undeliverable.
git rev-parse --abbrev-ref HEAD→ current branch.git symbolic-ref refs/remotes/origin/HEAD --short 2>/dev/null | sed 's|^origin/||'→ remote default branch. Fall back tomain, thenmaster, if that returns nothing.- If current branch equals the default branch, stop immediately. Surface the mistake and suggest
/zsl:git-branch <description>to create a properly-prefixed feature branch. Do not proceed to the commit.
If the working tree is clean and the branch has no unpushed commits, also stop — there's nothing to ship.
Process
- Run the pre-flight branch check. Stop if on the default branch.
Delegate to
/zsl:commit. Follow that skill's full process: classify session vs other-origin changes, confirm only the other-origin bucket, plan the commit(s), execute with explicit file lists. If/zsl:commithalts (user declines an other-origin file, hook fails, etc.), halt here too — don't push a half-shipped state.Skip this step if the working tree is clean but the branch has unpushed commits — go straight to push.
Push with upstream.
git push -u origin <current-branch>-usets the upstream so subsequentgit push/git pullwork without arguments. Harmless if the branch already tracks.If push fails (non-fast-forward, hook reject, auth), surface the error verbatim and stop. Never
--force. Never--no-verify.- Open the PR.
gh pr create --title "<title>" --body "<body>"- Title: derive from the branch name (strip the
feature//fix//etc. prefix, replace hyphens with spaces, sentence-case) or the latest commit subject, whichever reads better. Keep under 72 chars. - Body: short why summary (1–3 bullets) plus a
## Test planchecklist. Multi-line via heredoc. If.github/pull_request_template.mdexists, follow its shape. - No Claude attribution. No
🤖 Generated with…, noCo-Authored-By:. Same rule as/zsl:commit. - If a PR for this branch already exists,
gh pr createfails; fall back togh pr view --json url -q .urland report the existing PR URL. - If the repo has an auto-PR workflow (
.github/workflows/auto-pr.yml) and the push already created the PR, skip thegh pr createand just resolve the URL.
- Title: derive from the branch name (strip the
- Report. One line: PR URL. Done.
Safety rails
- Never force-push. If the remote rejects, stop and let the user resolve.
- Never
--no-verify. Pre-push hooks exist for a reason — fix the issue, re-run. - Don't open against a release branch by accident.
gh pr createdefaults to the repo's base; if that'smainbut the user's flow usesdevelopor a release branch, ask before opening. - Don't re-litigate the commit grouping.
/zsl:commitowns that decision.
When to use a different skill
- Just committing, no push/PR? →
/zsl:commit. - Need a branch first? →
/zsl:git-branch, then this skill. - Pre-PR review pass? →
/zsl:code-reviewbefore this; fix findings, then run this.
Why this shape
- Pre-flight before commit because committing on
mainis harder to unwind than refusing up front. Onegit rev-parsesaves a futuregit reset. - Delegate to
/zsl:commitrather than re-implementing the commit rules — keeps the no--A, no-attribution, other-origin-confirmation logic in one place. -u originon push because half of "push failed" reports trace back to a branch with no upstream. Setting it once costs nothing.
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.

