commit-push-pr
Skill76 starsChanged 6 months agoMITView on GitHub
Full git workflow - creates branch, commits, pushes, and creates or updates a PR with summary and test plan.
- Reads credentials
- Commits and pushes
12 other projects use a version of this, 2 of them edited.
Adopted by
Most recently taken up by
- converge-ai-labs/agent-foundationtheir own version, first seen Sep 30, 2026
- ZunoSmartLabs/zsl-superpowerstheir own version, first seen Sep 21, 2026
- congmnguyen/claude-code-wsl2-setupedited, first seen Sep 8, 2026
- dceoy/ai-coding-agent-skillsedited, 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
Used with
Projects with it also use systematic-debugging, tdd and 1 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.
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 · 2
- congmnguyen/claude-code-wsl2-setup★ 5016% same
- dceoy/ai-coding-agent-skills★ 411% same
Wrote their own version · 10
- llama-farm/llamafarm★ 837same name
- converge-ai-labs/agent-foundation★ 143same name
- jh941213/my-cc-harness★ 126same 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
- cmacnichol/skills★ 0same name
- moreh-dev/runes★ 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 repository8 other files it gives its agents.
- templates/CLAUDE.mdCLAUDE.md
- adopt-projectSkill
- commitSkill
- dreamSkill
- new-projectSkill
- reflectSkill
- rememberSkill
- simplifySkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. 0 are common, 11 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 11 edited versions we read keep these.
11
Distinctive
This author's own choices. Worth a look.
5
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
- Distinctive: line 31
NEVER update the git config
- Very specific: line 32
NEVER run destructive/irreversible git commands (like push --force, hard reset, etc) unless the user explicitly requests them
- Very specific: line 33
NEVER skip hooks (--no-verify, --no-gpg-sign, etc) unless the user explicitly requests it
- Distinctive: line 34
NEVER run force push to main/master, warn the user if they request it
- Very specific: line 35
Do not commit files that likely contain secrets (.env, credentials.json, etc)
- Distinctive: line 36
Never use git commands with the -i flag (like git rebase -i or git add -i) since they require interactive input which is not supported
- Very specific: line 45
Use the format username/feature-name:
- Distinctive: line 51
Use heredoc syntax for the message:
- Distinctive: line 58
Follow the repo's commit message style (check git log --oneline -10)
- Distinctive: line 60
Keep it concise (1-2 sentences)
- Very specific: line 68
Check if a PR already exists (from the gh pr view output above).
- Distinctive: line 70
If PR exists: - update it:
- Distinctive: line 83
If no PR: - create one:
- Distinctive: line 97
Keep PR titles under 70 characters.
- Distinctive: line 99
Test plan should be a checklist of verification steps
- Distinctive: line 103
Do all of the above in a single message using multiple tool calls.
“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 Open PR
Context
Gather this context first:
git statusgit diff HEADgit branch --show-currentgit diff main...HEAD(or default branch)gh pr view --json number 2>/dev/null || true
Git Safety Protocol
- NEVER update the git config
- NEVER run destructive/irreversible git commands (like push --force, hard reset, etc) unless the user explicitly requests them
- NEVER skip hooks (--no-verify, --no-gpg-sign, etc) unless the user explicitly requests it
- NEVER run force push to main/master, warn the user if they request it
- Do not commit files that likely contain secrets (.env, credentials.json, etc)
- Never use git commands with the -i flag (like git rebase -i or git add -i) since they require interactive input which is not supported
Task
Analyze ALL changes that will be included in the pull request - look at ALL commits from git diff main...HEAD, not just the latest commit.
Based on the changes:
1. Create branch (if on main/master)
Use the format username/feature-name:
git checkout -b username/descriptive-feature-name2. Create a single commit
Use heredoc syntax for the message:
git commit -m "$(cat <<'EOF'
Commit message here.
EOF
)"- Follow the repo's commit message style (check
git log --oneline -10) - Focus on "why" not "what"
- Keep it concise (1-2 sentences)
3. Push the branch
git push -u origin HEAD4. Create or update PR
Check if a PR already exists (from the gh pr view output above).
If PR exists - update it:
gh pr edit --title "Short title" --body "$(cat <<'EOF'
## Summary
<1-3 bullet points>
## Test plan
- [ ] Test item 1
- [ ] Test item 2
EOF
)"If no PR - create one:
gh pr create --title "Short, descriptive title" --body "$(cat <<'EOF'
## Summary
<1-3 bullet points>
## Test plan
- [ ] Test item 1
- [ ] Test item 2
EOF
)"Rules:
- Keep PR titles under 70 characters. Use the body for details.
- Summary should be 1-3 bullet points covering WHAT changed and WHY
- Test plan should be a checklist of verification steps
5. Return the PR URL
Do all of the above in a single message using multiple tool calls. Return the PR URL when done.
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.

