commit-and-push
Skill2 starsChanged 8 days agoMITView on GitHub
Use when the user explicitly asks to commit, split commits, stage and commit, push, sync a branch, or commit directly to the default branch. Triggers on "commit", "push", "git push", "커밋", "분할 커밋", "push 해줘", "stage and commit", and "direct commit". Keeps unrelated worktree changes untouched and limits the default result to commits plus branch push. NOT for opening or rewriting a PR (use draft-pr), full CI certification, or issue/PR comments and edits unless the user explicitly includes them.
- Deletes or force-pushes
- Commits and pushes
12 other projects use a version of this.
Adopted by
Most recently taken up by
- FradSer/skillstheir own version, first seen Oct 13, 2026
- BUGLAN/skillstheir own version, first seen Oct 13, 2026
- zhiding512/claude-skillstheir own version, first seen Oct 13, 2026
- gigio1023/gigio-skillsword for word, first seen Oct 13, 2026
- nopanderer/claude-skillstheir own version, first seen Oct 11, 2026
- legions-developer/evilchartstheir own version, first seen Oct 8, 2026
Other versions12 projects use a version of this.
Word for word · 1
- gigio1023/gigio-skills★ 2100% same
Edited · 0
None found.
Wrote their own version · 11
- legions-developer/evilcharts★ 3.2ksame name
- FradSer/skills★ 4same name
- birdsigh/Skills★ 3same name
- Gusen1453/creed★ 3same name
- BUGLAN/skills★ 1same name
- iden0605/Claude-Skills★ 1same name
- lsaOntact/claude-skills★ 0same name
- nopanderer/claude-skills★ 0same name
- ProstDev/skills★ 0same name
- travis-south/agsk★ 0same name
1 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 repository53 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- 1password-cliSkill
- codex-delegateSkill
- credo-journalSkill
- credo-paper-planSkill
- credo-releaseSkill
- credo-tasteSkill
- cursor-cli-delegationSkill
- english-prompt-reviewSkill
- mermaid-diagramsSkill
- pdf-page-countSkill
- pr-review-commentSkill
- read-agent-sessionsSkill
- reddit-searchSkill
- release-notesSkill
- small-model-handoffSkill
- spot-gpu-evaluationSkill
- toss-portfolio-stateSkill
- vuln-reportSkill
- zcode-cliSkill
- bug-diagnosisSkill
- coding-standardsSkill
- copydeskSkill
- design-docSkill
- design-explorationSkill
- draft-prSkill
- evaluation-analysisSkill
- evaluation-auditSkill
- evaluation-designSkill
- evaluation-operationsSkill
- find-unknownsSkill
- frontend-designSkill
- git-worktree-setupSkill
- idea-critiqueSkill
- insight-dashboardSkill
- install-skill-packSkill
- internal-source-researchSkill
- interviewSkill
- literature-researchSkill
- load-testingSkill
- ml-experimentSkill
- model-routingSkill
- orchestrate-subagentsSkill
- praxis-directionSkill
- prompting-guideSkill
- review-panelSkill
- session-handoffSkill
- skill-builderSkill
- terminologySkill
- work-planSkill
- write-issueSkill
- write-notionSkill
The file
We split this skill into the rules it gives an agent
9 rules. 0 are common, 5 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 7 edited versions we read keep these.
5
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 31
Read repository instructions such as CONTRIBUTING.md and inspect recent commit style.
- Distinctive: line 35
When committing is requested, commit each unit and inspect what landed:
- Very specific: line 44
When pushing is requested, fetch and reconcile the selected upstream (often origin, but do not assume the name):
- Very specific: line 58
If an already-pushed, clearly user-owned topic branch was rebased, use git push --force-with-lease, never plain --force.
- Distinctive: line 72
Use the repository's message convention.
- Distinctive: line 100
Do not run git pull --rebase blindly in a mixed worktree.
- Distinctive: line 102
Never amend, squash, rebase, or force-push a shared branch merely to make the history prettier.
- Distinctive: line 103
Do not claim a push succeeded from local commit output.
- Very specific: line 104
If the repository uses jj or another VCS layer, stop before Git mutations and use the repository-specific publish path.
“Common” is measured: kept by at least 6 in 10 of the 7 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 and Push
Produce logically scoped commits and push the requested branch without absorbing unrelated user changes. Report the commits, pushed ref, verification evidence, and any remaining worktree state.
Workflow
Inspect before mutating:
git rev-parse --show-toplevel git status -sb git branch --show-current git remote -v git diff --stat git diff git diff --cached- Read repository instructions such as
CONTRIBUTING.mdand inspect recent commit style. Repository and user conventions override this skill's fallback. - Lock scope from the request and diff. Preserve unrelated tracked, untracked, staged, and unstaged changes. Stage explicit paths; use
git add -Aonly when the whole worktree clearly belongs to the request. - Run focused, relevant checks before committing. Reuse results already run against the unchanged intended diff; rerun after a relevant edit, conflict resolution, failed check, or repository requirement. Keep required results and failures; do not expand into an unrelated full-CI campaign unless requested or repository policy requires it.
- Split changes into independently revertible units. Keep implementation and its tests together; order prerequisite commits before dependents.
When committing is requested, commit each unit and inspect what landed:
git diff --cached --stat git diff --cached git commit -m "<message>" git show --stat --oneline HEADWhen pushing is requested, fetch and reconcile the selected upstream (often
origin, but do not assume the name):git fetch <remote> git status -sbIf the upstream advanced, rebase the local commits onto it. With a dirty worktree, finish only the intended commits first; do not hide unrelated work in an automatic stash. Resolve conflicts only when repository intent is clear, rerun affected checks, and abort with
git rebase --abortif safe resolution needs user or product judgment.Push the requested branch only when pushing is authorized. Use tracking when needed:
git push -u <remote> HEADIf an already-pushed, clearly user-owned topic branch was rebased, use
git push --force-with-lease, never plain--force. Ask before rewriting a shared or ambiguous branch.Verify the result:
git status -sb git log --oneline -n 5Confirm the pushed branch/upstream and retain any unrelated worktree changes.
Commit Shape
One commit should represent one logical change that can be reviewed and reverted on its own. Avoid splitting by arbitrary file count or layer when the files implement one behavior.
Use the repository's message convention. If none exists, use:
<type>(<scope>): <imperative subject>
<why this change is needed and any non-obvious consequence>Fallback types are feat, fix, refactor, docs, test, chore, ci, perf, and style. Default to concise English when the repository and user do not establish another language. Add a body only when rationale, risk, or a reference would otherwise be lost. Do not add agent branding, Co-Authored-By, or author lines unless explicitly requested.
For a direct default-branch commit without a PR, include enough rationale and verification in the commit body for the log to stand alone, but do not generate a ceremonial report or file-by-file inventory.
Side-Effect Boundary
Honor the requested Git actions: commit-only stops after commits, push-only pushes existing commits, and commit-and-push does both. An established session request for both needs no additional approval between them. None covers issue comments, issue/PR body or title edits, releases, tags, or other remote mutations. Perform those only when the same request explicitly includes them, and use the corresponding specialized skill. Publishing the branch as a pull request belongs to draft-pr, entered only on an explicit request to open or update one.
Output Contract
Lead with whether the requested Git actions succeeded. Include applicable items:
- each new commit hash and subject;
- the remote and branch pushed, including whether tracking or
--force-with-leasewas used; - checks run and their result, plus anything not run that materially limits confidence;
- remaining staged, unstaged, or untracked changes;
- the exact blocker and smallest next action if the push did not complete.
Gotchas
- Do not run
git pull --rebaseblindly in a mixed worktree. Inspect, preserve unrelated changes, and reconcile remote history at a safe point. - A pre-commit hook failure means the commit did not succeed. Fix only in-scope failures, restage the intended paths, and retry; do not bypass hooks unless the user explicitly accepts that risk.
- Never amend, squash, rebase, or force-push a shared branch merely to make the history prettier.
- Do not claim a push succeeded from local commit output. Verify the push and final branch status.
- If the repository uses
jjor another VCS layer, stop before Git mutations and use the repository-specific publish path.
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.

