commit-push
Skill0 starsChanged 9 months agoMITView on GitHub
Stage, commit, and push changes on the current branch. If the user provides $ARGUMENTS, use it as the commit message. Otherwise, analyze the changes and generate a conventional commit message. Check if the project uses a pre-commit hook that auto-formats code: If a pre-commit hook exists that runs formatting, there's no need to run checks manually before committing. If no pre-commit hook is found, detect a verification command: Store as $VERIFY_CMD. If nothing found, skip verification. Identify what changed. Exclude…
- Reads credentials
- Commits and pushes
19 other projects use a version of this.
Adopted by
Most recently taken up by
- Adonis0123/adonis-skillstheir own version, first seen Nov 7, 2026
- Ssoulisack/claude-skillstheir own version, first seen Oct 15, 2026
- drewmerc302/claude-skillstheir own version, first seen Oct 13, 2026
- Nucleify/Nucleifytheir own version, first seen Oct 8, 2026
- Eatgrapes/WinIslandtheir own version, first seen Oct 8, 2026
- anyproto/anytype-tstheir own version, first seen Oct 8, 2026
Used with
Projects with it also use open-pr.
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.
Google CloudSkillopen-pr
Commits local changes to a new Git branch and opens a GitHub pull request through the configured GitHub MCP server. Use when proposing code changes in a new pull request. Don't use for local-only commits without a remote GitHub repository.
Also in 3 projects that use this
Other versions19 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 19
- anyproto/anytype-ts★ 9.1ksame name
- Eatgrapes/WinIsland★ 405same name
- Nucleify/Nucleify★ 171same name
- DataCovey/nornweave★ 30same name
- tykisgod/quick-question★ 12same name
- Adonis0123/adonis-skills★ 4same name
- Mitscherlich/skills★ 3same name
- wzh4464/claude-skills★ 3same name
- d-gangz/dgang-skills★ 2same name
- gtapps/skills★ 2same name
9 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 repository4 other files it gives its agents.
- create-issueSkill
- create-prdSkill
- reviewSkill
- submit-prSkill
The file
We split this skill into the rules it gives an agent
12 rules. 0 are common, 7 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 16 edited versions we read keep these.
7
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 12
If the user provides $ARGUMENTS, use it as the commit message.
- Distinctive: line 19
Check if the project uses a pre-commit hook that auto-formats code:
- Very specific: line 21
Look for husky in package.json (Node.js projects)
- Very specific: line 22
Look for .pre-commit-config.yaml (Python/general projects)
- Very specific: line 23
Look for .husky/ directory
- Distinctive: line 25
If a pre-commit hook exists that runs formatting, there's no need to run checks manually before committing.
- Distinctive: line 30
If no pre-commit hook is found, detect a verification command:
- Very specific: line 32
package.json: Look for scripts: check → lint
- Very specific: line 33
Makefile: Look for targets: check → lint
- Distinctive: line 62
Use a conventional commit message following this format:
- Distinctive: line 88
If the branch has no upstream, use:
- Distinctive: line 94
If push is rejected (non-fast-forward), stop and ask the user how to proceed.
“Common” is measured: kept by at least 6 in 10 of the 16 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
Stage, commit, and push changes on the current branch.
If the user provides $ARGUMENTS, use it as the commit message. Otherwise, analyze the changes and generate a conventional commit message.
Pre-flight: Auto-detect Environment
Step 0.1: Find Pre-commit Hook Info
Check if the project uses a pre-commit hook that auto-formats code:
- Look for
huskyinpackage.json(Node.js projects) - Look for
.pre-commit-config.yaml(Python/general projects) - Look for
.husky/directory
If a pre-commit hook exists that runs formatting, there's no need to run checks manually before committing.
Step 0.2: Find Verification Command (optional)
If no pre-commit hook is found, detect a verification command:
- package.json: Look for scripts:
check→lint - Makefile: Look for targets:
check→lint - Cargo.toml:
cargo clippy - pyproject.toml:
ruff check - go.mod:
go vet ./...
Store as $VERIFY_CMD. If nothing found, skip verification.
Steps
1. Review changes
git status
git diff
git diff --cachedIdentify what changed. Exclude files that shouldn't be committed:
.envor credentials files- Vendored/dead files that are no longer used
- Build output or generated code that should be gitignored
2. Stage relevant files
Stage files individually by name. Do not use git add -A or git add ..
3. Create commit
Use a conventional commit message following this format:
<type>: <short description>
<optional body with details>Types: feat, fix, docs, refactor, chore, test, perf
Pass the message via HEREDOC:
git commit -m "$(cat <<'EOF'
<message here>
EOF
)"4. Push
git pushIf the branch has no upstream, use:
git push -u origin $(git branch --show-current)If push is rejected (non-fast-forward), stop and ask the user how to proceed. Do not force push without explicit permission.
5. Confirm
Show the commit hash, message, and branch. Confirm the push succeeded.
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.

