git-commit-push
Skill15 starsChanged 5 months agoMITView on GitHub
Commit all staged/unstaged changes and push to remote. Use proactively for committing and pushing changes.
- Commits and pushes
9 other projects use a version of this.
Adopted by
Most recently taken up by
- limi58/skillstheir own version, first seen Nov 7, 2026
- aktsmm/Agent-Skillstheir own version, first seen Nov 1, 2026
- l3rowniecakez/Claude_Skilltheir own version, first seen Oct 19, 2026
- farm-fe/farmtheir own version, first seen Oct 8, 2026
- gogf/gftheir own version, first seen Oct 8, 2026
- Abilityai/corneliustheir own version, first seen Oct 8, 2026
Other versions9 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 9
- gogf/gf★ 13ksame name
- farm-fe/farm★ 5.6ksame name
- Abilityai/cornelius★ 109same name
- aktsmm/Agent-Skills★ 26same name
- Mingo07-dev/claude_skills★ 2same name
- ZhaoYis/My-Skills★ 2same name
- andyshen1121/skills★ 1same name
- l3rowniecakez/Claude_Skill★ 0same name
- limi58/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 repository21 other files it gives its agents.
- AGENTS.mdAGENTS.md
- public/llms-full.txtllms.txt
- public/llms.txtllms.txt
- add-componentSkill
- add-diagram-componentSkill
- add-languageSkill
- add-pageSkill
- ai-diff-reviewerSkill
- dailybotSkill
- deepworkplanSkill
- doc-editSkill
- fix-lintSkill
- pr-review-liteSkill
- quick-fixSkill
- refactor-safeSkill
- responsive-lighthouse-auditSkill
- security-checkSkill
- translate-syncSkill
- type-fixSkill
- update-stylesSkill
- write-testsSkill
The file
We split this skill into the rules it gives an agent
11 rules. 0 are common, 11 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
11
Distinctive
This author's own choices. Worth a look.
0
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 19
Commit all current changes with a well-crafted conventional commit message and push to the remote repository.
- Distinctive: line 23
Does NOT create new branches
- Distinctive: line 24
Does NOT resolve merge conflicts
- Distinctive: line 25
Does NOT force push
- Distinctive: line 26
Does NOT amend previous commits (unless explicitly requested)
- Distinctive: line 27
Does NOT push to protected branches (main/master) without confirmation
- Distinctive: line 48
Before running this skill, ensure:
- Distinctive: line 64
If working tree is clean, report "Nothing to commit" and stop.
- Distinctive: line 88
Follow the repository's existing commit message conventions.
- Distinctive: line 127
If upstream not set:
- Distinctive: line 221
Commit message is ambiguous (multiple unrelated changes)
“Common” is measured: kept by at least 6 in 10 of the 6 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
Skill: Git Commit & Push
Objective
Commit all current changes with a well-crafted conventional commit message and push to the remote repository.
Non-Goals
- Does NOT create new branches
- Does NOT resolve merge conflicts
- Does NOT force push
- Does NOT amend previous commits (unless explicitly requested)
- Does NOT push to protected branches (main/master) without confirmation
Tier Classification
Tier: 1 - Light/Cheap
Reasoning: This is a mechanical, low-risk task that follows established patterns (conventional commits). The AI analyzes changes and generates an appropriate commit message.
Inputs
Required Parameters
- None - the skill analyzes the current git state
Optional Parameters
$MESSAGE: Custom commit message (default: auto-generated from changes)$SCOPE: Commit scope override (default: inferred from files)
Prerequisites
Before running this skill, ensure:
- You are in a git repository
- There are changes to commit (staged or unstaged)
- No merge conflicts exist
Steps
Step 1: Check Git Status
Review current repository state:
git statusIf working tree is clean, report "Nothing to commit" and stop.
Step 2: Review Changes
Analyze what changed:
git diff --stat
git diff HEADIdentify:
- Which files changed
- Type of changes (new features, fixes, docs, refactor, etc.)
- Scope/area affected
Step 3: Check Recent Commits
Review commit message style:
git log --oneline -5Follow the repository's existing commit message conventions.
Step 4: Stage Changes
Add all changes:
git add -AStep 5: Create Commit
Generate a conventional commit message based on changes:
git commit -m "$(cat <<'EOF'
<type>(<scope>): <description>
<body if needed>
EOF
)"Commit Types:
feat: New featurefix: Bug fixdocs: Documentation onlyrefactor: Code change that neither fixes a bug nor adds a featuretest: Adding or updating testschore: Maintenance tasks
Step 6: Push to Remote
Push to the current branch:
git pushIf upstream not set:
git push -u origin HEADStep 7: Confirm Success
Verify the push:
git status
git log --oneline -1Output Format
Success Output
## ✅ Committed and Pushed
### Commit
`<commit-hash>` <commit-message>
### Branch
<branch-name> → origin/<branch-name>
### Changes
- <N> files changed
- <N> insertions(+), <N> deletions(-)
### Files
- <file1>
- <file2>
...Nothing to Commit Output
## ℹ️ Nothing to Commit
Working tree is clean. No changes to commit.Error Output
## ❌ Commit Failed
### Error
<error message>
### Suggestion
<how to resolve>Guardrails
Scope Limits
- Maximum files: Unlimited (commits whatever is changed)
- Allowed: Any tracked files
- Forbidden: Force push, push to main/master without confirmation
Safety Checks
- Not pushing to protected branch without confirmation
- No merge conflicts present
- Commit message follows conventional format
Stop Conditions
Stop immediately if:
- Merge conflicts exist
- Push to main/master requested (ask for confirmation)
- Authentication fails
- Remote is ahead (pull needed first)
Definition of Done
- All changes are committed
- Commit message follows conventional format
- Changes are pushed to remote
- Git status shows clean working tree
Escalation Conditions
Ask user if:
- Pushing to main/master branch
- Remote has changes not in local (need to pull first)
- Commit message is ambiguous (multiple unrelated changes)
Examples
Example 1: Component Update
Context: User updated the methodology reader navigation
Execution:
git add -A
git commit -m "fix(methodology): keep active section in sync while scrolling"
git pushOutput:
## ✅ Committed and Pushed
### Commit
`a1b2c3d` fix(methodology): keep active section in sync while scrolling
### Branch
fix/methodology-nav → origin/fix/methodology-nav
### Changes
- 2 files changed
- 15 insertions(+), 3 deletions(-)Example 2: New Feature
Context: User added dark mode support to a component
Execution:
git add -A
git commit -m "feat(theme): add dark mode to footer component
- Add dark mode Tailwind classes
- Update color scheme
- Test with theme toggle"
git pushOutput:
## ✅ Committed and Pushed
### Commit
`d4e5f6g` feat(theme): add dark mode to footer component
### Branch
feature/dark-mode-footer → origin/feature/dark-mode-footer
### Changes
- 3 files changed
- 45 insertions(+), 12 deletions(-)Example 3: Nothing to Commit
Context: User says "commit and push" but no changes exist
Output:
## ℹ️ Nothing to Commit
Working tree is clean. No changes to commit.Related Skills/Agents
quick-fix- Often used before this skillpr-review-lite- Review before committing
Changelog
| Version | Date | Changes |
| 1.0.0 | 2024-01 | Initial version |
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.

